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 137: | Line 137: | ||
== How It Works == | == How It Works == | ||
− | === | + | === Control And Initialization === |
− | * Wait until both memory modules have a non-zero value | + | * Wait until both memory modules have a non-zero value, then configure the sorter and stacker with the right mode and reset their counters. Reset the memory module for quantity. |
− | |||
− | |||
− | |||
− | |||
− | === | + | === Main ExportItem Loop === |
− | |||
− | |||
− | |||
− | |||
* 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 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) |