I have a school project in which I need to unload parts to 2 different racks.
There are a switch at the start of a conveyor. There are are always 5 parts between the start point and the unloading point.
I want to add a functionality IF one will press the switch the part which is at the beginning will be placed on a different rack.
I have 2 sub-programs ( 2 racks ) : Rack1() and Rack2()