question

Claire Krupp avatar image
0 Likes"
Claire Krupp asked Felix Möhlmann commented

How to resume conveyor flow on change of label value?

I have a large High-Speed Sortation system. We want to manually force a section of conveyor to stop and observe how the system reacts. Then later we want to manually "un-stop" the section and see how the system recovers.

I achieved the first part by setting a label on a decision point, which stops the item when the label is set to 1:

1656701058348.png


Now I want to make the item resume travel when I set the label back to 0, but when I change the value, nothing happens - I need a trigger that would allow me to tell the item to resume. Perhaps I can use the OnMessage trigger and send a message from somewhere? But where?

I looked at the MTBF/MTTR properties or a User Event, but I don't see a way to cause an event manually.

I also want this to be easy to use so that I could teach my customer how to switch it on and off via a Global Table or maybe a GUI.

Any ideas?

FlexSim 22.1.2
triggerresume iteminteractive stopmanual stop
1656701058348.png (24.6 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.

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Claire Krupp commented

You can use a dashboard button and just stop() and resume() the conveyor.

DashboardButton_StopResume.fsm

Or you can place an interactive button in the 3D view and connect it to the object you want to stop/resume.

InteractiveButton.fsm


· 1
5 |100000

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

Claire Krupp avatar image Claire Krupp commented ·
Thanks @Jason Lightfoot the dashboard button is exactly what I need. (Though it took me a while to figure out that I had to check the Edit box to look at the code! )
0 Likes 0 ·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Felix Möhlmann commented

If you use a tracked variable label, you can listen to its 'On Change' event and resume the item when the value is reset.

However, do not use the 'Automatically Reset' function. It seems to break/overwrite the link to the listening object.

ListenToTrackedVariable.fsm


· 2
5 |100000

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

Claire Krupp avatar image Claire Krupp commented ·
Thanks @Felix Möhlmann this is a nice solution if you want to do it according to a timed pattern, but it would not let me change the value of the label manually, so I could not stop and start the flow on demand. Perhaps I am missing something?
0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Claire Krupp commented ·
The manual change could be done via code (object.labelName = value) in the script console.

I agree, that Jason's answer is more convenient for this.

1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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