question

kimsh avatar image
0 Likes"
kimsh asked kimsh commented

stop and resume item on conveyor

stopresume.fsm

Hi,


I made it possible to change the variable to photo-eye on the conveyor as shown below, and it passes when it is 0 and stops when it is 1. But is this far from happening repeatedly? The decision point variable changes to 0 > 1 > 0, but it stops working.

FlexSim 23.2.2
stop and resume item on conveyor
stopresume.fsm (38.5 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered kimsh commented

In the OnClear of the photoeye you need to resume the item (if there is one) at DP1. The triggers by default only evaluate once - they don't listen to label value changes or get called repeatedly on some loop. This is how discrete event simulation works and makes it fast/efficient to execute.

In the attached model I've modified the triggers to store the stoppedItem and resume it.

stopresume_jl.fsm


stopresume-jl.fsm (38.6 KiB)
· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

kimsh avatar image kimsh commented ·

I'm working on building two conveyor into one. One of them is the main line and the other is the auxiliary line. So I want to pull it out of the main line and when all the main line items are exhausted, I want to pull them out one by one from where they stopped. What's the best way?

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann kimsh commented ·

So something like this?

stopresume-fm.fsm

Items on the second incoming conveyor are stopped if any items from the main conveyor are between the two Photo Eyes. In the Uncover trigger of the second PE I check if there is an item waiting on the incoming conveyor. If this is the case and the zone is now empty, that item is resumed.

1 Like 1 ·
stopresume-fm.fsm (41.7 KiB)
kimsh avatar image kimsh Felix Möhlmann commented ·
Yes!! great!! exactly!! Thank you for your coment
0 Likes 0 ·