Trigger "On exit" Problem

Trigger "On exit" Problem

samueltan5550
Participant Participant
183 Views
2 Replies
Message 1 of 3

Trigger "On exit" Problem

samueltan5550
Participant
Participant

Morning, I have a problem with the trigger 'On Exit', I want to close the output after 13 boxes were transported, but it close the output when 13 boxes is input. Thanks a lot

0 Likes
184 Views
2 Replies
Replies (2)
Message 2 of 3

FelixMoehlmann
Collaborator
Collaborator

You are currently telling the object to close its output when an item exits while at least 13 items are inside the object.

What you need to do is use the output count of the object as the condition.

moehlmann_fe_0-1764751913101.png

The "%" is the modulo operator (rest of division). With this setting the object will close its output if the remainder of the total output divided by 13 is equal to 12. Meaning when the 13th, 26th, 39th, ... item is about to exit.

 

Note: If the items are transported by a task executer you must be aware of the delay between an item being released and the item actually leaving the object. Closing the output after an item is released will not hold it and the transport task will still be completed. In this case you would need to close the output when the 13th item is released, which is trickier, because there is no trigger option for this. One option would be to put the code to close the output into the transport reference field. 

0 Likes
Message 3 of 3

samueltan5550
Participant
Participant

alright,thanks for the help. I have solved it already, I have posted my next problem in the forum group,appreciate if u could check it.

0 Likes