# Difficulty Coding Stacker Crane using WinSPS-S7

**URL:** <https://community.factoryio.com/t/difficulty-coding-stacker-crane-using-winsps-s7/3062>\
**Category:** Support\
**Created:** [July 12, 2024, 10:52am UTC](https://community.factoryio.com/t/difficulty-coding-stacker-crane-using-winsps-s7/3062 "2024-07-12T10:52:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rishab.shekhar](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@rishab.shekhar](https://community.factoryio.com/u/rishab.shekhar)\
**Post date:** [July 12, 2024, 10:52am UTC](https://community.factoryio.com/t/difficulty-coding-stacker-crane-using-winsps-s7/3062/1 "2024-07-12T10:52:15Z")

</div>

![Screenshot 2024-07-12 161003](https://europe1.discourse-cdn.com/flex017/uploads/factoryio/original/1X/e7386f838678fc27869e6b9ba6312fb4bb0c944a.jpeg)

I am confused about how to work QW100- Stacker Crane 0 Target Position. Is it an output? do I assign a value to it using MOV then use it as an output? I am struggling to figure out how to work this. For reference I am using WinSPS-S7. Any help would be greatly appreciated. Thank you very much.

---

<div class="post-metadata">

**Author:** ![rishab.shekhar](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@rishab.shekhar](https://community.factoryio.com/u/rishab.shekhar)\
**Post date:** [July 12, 2024, 10:54am UTC](https://community.factoryio.com/t/difficulty-coding-stacker-crane-using-winsps-s7/3062/2 "2024-07-12T10:54:03Z")

</div>

I understand that the stacker crane position works based on an integer value, and will go to the position corresponding to the integer value, however I am lost on how to actually code it and the syntax I should use to put in the values.

---

<div class="post-metadata">

**Author:** ![janbumer1](https://dub1.discourse-cdn.com/flex017/user_avatar/community.factoryio.com/janbumer1/32/60_2.png) [@janbumer1](https://community.factoryio.com/u/janbumer1)\
**Post date:** [July 12, 2024, 11:20am UTC](https://community.factoryio.com/t/difficulty-coding-stacker-crane-using-winsps-s7/3062/3 "2024-07-12T11:20:42Z")

</div>

The stacker crane works according to [this](https://docs.factoryio.com/manual/parts/stations/#stacker-crane-and-rack) documentation.  
As it’s an output from your PLC to the simulation, you can assign a value to the output in your PLC and the stacker crane will move to the set position when the Factory I/O Simulation is running. You can also test this by forcing the value in run mode, see [this](https://docs.factoryio.com/manual/tags/#forcing-tags) documentation.

Does this help?

---

<div class="post-metadata">

**Author:** ![rishab.shekhar](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@rishab.shekhar](https://community.factoryio.com/u/rishab.shekhar)\
**Post date:** [July 15, 2024, 6:26am UTC](https://community.factoryio.com/t/difficulty-coding-stacker-crane-using-winsps-s7/3062/4 "2024-07-15T06:26:16Z")

</div>

Thank you for the response. It does give me a starting point. I am trying to assign a value to the output using the MOVE function, but it does not seem to be working. I wrote a simple line just for testing, but it is not moving the stacker crane? is there any issue visible to you?

 ![Screenshot 2024-07-15 115423](https://europe1.discourse-cdn.com/flex017/uploads/factoryio/original/1X/b6220629fb7cfaaa5c7c7f14c10be65c188a2fc8.jpeg)  
for reference, I10.0 is the start button, and QW100 is Stacker Crane 0 Target Position as shown in the images in my original post. Am I using the right method to assign a number to the output? if so, is there something else I need to do in order to actually call the output? thank you.
