Conveyor maximum content

Conveyor maximum content

Jonathan_Huang
Not applicable
113 Views
5 Replies
Message 1 of 6

Conveyor maximum content

Jonathan_Huang
Not applicable

[ FlexSim 23.1.2 ]

Hi everyone


Please instruct me how to close and open input port of straight conveyor using Trigger when it is containing a certain amount of flow item? for example when conveyor is containing greater than 1 flow item. the input port will be closed. And be opened again when he flow item 's number equal or less than 1

You can provide me the code


Thanks and best regards

0 Likes
Accepted solutions (1)
114 Views
5 Replies
Replies (5)
Message 2 of 6

dhakshna9AYUP
Contributor
Contributor
Accepted solution

Hi @Jonathan_Huang,

OnEntry: Check the content of the conveyor. If it is greater than 1, then close the EntryTransfer.

OnExit: Check the content again and open the input (EntryTransfer) if it is less than or equal to 1.

example01.fsm

Message 3 of 6

moehlmann_fe
Enthusiast
Enthusiast

One small addition: In the attached you can see that past the initial two items, only one item can enter the conveyor at a time. This is caused by the timing of the triggers. Because the On Exit trigger fires while the exiting item is still on the conveyor and opening the input allows the next item to enter before the current one actually exits, the input is closed again, as in that instant two items are on the conveyor.

To work around this, you can send a message with a delay of 0s in the On Exit trigger and open the input when that message is received.

example01(1).fsm

0 Likes
Message 4 of 6

Jonathan_Huang
Not applicable
Thank you Mr Dhakshna!
0 Likes
Message 5 of 6

Jonathan_Huang
Not applicable
Hi Mr Felix. Thanks for your comment

But I see in your attached model. There were always 2 items joined the conveyor in the same time


0 Likes
Message 6 of 6

moehlmann_fe
Enthusiast
Enthusiast
Which aligns with the condition that the input is closed if more than 1 item is on the conveyor. In @Dhakshna​'s model, at the very start two items enter the conveyor and afterwards only ever one. Which I would classify as irregular behaviour and thus proposed a solution to always allow the same quantity regardless of the exact timing of the arrivals.
0 Likes