Actions

Editing Vending Machine Export IC10

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 123: Line 123:
 
== Setup ==
 
== Setup ==
  
* Place all components listed above and connect them using [[Cables]] and [[Chutes]] as shown in the picture. (For cables just connect everything)
+
* Place all components listed above and connect them using [[Cables]] and [[Chutes]] as shown in the picture
 
* Load the code into the IC and turn everything on
 
* Load the code into the IC and turn everything on
 
* You may want to put a junction and an inlet to the import of the vending machine so you can restock it.
 
* You may want to put a junction and an inlet to the import of the vending machine so you can restock it.
Line 151: Line 151:
 
=== _ExportItem ===
 
=== _ExportItem ===
 
* Request the item from the vender and wait for it to arrive into the stacker, then run _WaitForDevices​ to make sure nothing is busy.
 
* Request the item from the vender and wait for it to arrive into the stacker, then run _WaitForDevices​ to make sure nothing is busy.
* Calculate the setting for the stacker depending on the remaining items, the quantity inside the stacker and the maximum stacking size (in manual mode, it won't do anything until the Output parameter is set to 1)
+
* Calculate the setting the stacker depending on the remaining items, the count inside the stacker and the maximum stacking size (in manual mode, it won't do anything until we set Output to 1)
 
* Either make another request from the vender, or flush the stacker if it's full.
 
* Either make another request from the vender, or flush the stacker if it's full.
 
* Make more requests if there are remaining items, or empty the stacker and route any excess items back into the vender.
 
* Make more requests if there are remaining items, or empty the stacker and route any excess items back into the vender.
  
 
=== _RunStacker ===
 
=== _RunStacker ===
* Set the output of the sorter, run the stacker and wait for the item to arrive in the sorter.
+
* Set the output of the sorter, run the stacker and wait for the item to arrive in the sorter
  
 
=== _WaitForDevices ===
 
=== _WaitForDevices ===
 
* Makes sure none of the devices have occupied import/export slots - the exception being the stacker, since it may have a full processing slot and items stuck in the import slot (for example when the vender exports 30 coal twice in a row. 50 will be in the processing slot and 10 in import.)
 
* Makes sure none of the devices have occupied import/export slots - the exception being the stacker, since it may have a full processing slot and items stuck in the import slot (for example when the vender exports 30 coal twice in a row. 50 will be in the processing slot and 10 in import.)

Please note that all contributions to Unofficial Stationeers Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Unofficial Stationeers Wiki:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)