question

Mason W avatar image
0 Likes"
Mason W asked Kari Payton answered

Close Input Port based off Processor Label

Hi all,

I'm trying to close input ports of two processors when the label associated with the processor reaches 0. I've tried several OnMessage triggers using the label, but have been unsuccessful so far. I would like this to be done within the 3D model not Process Flow as well. How would I do this? A sample version of what I'm trying to do is attached.

Thanks in advance!

sample-2.fsm

FlexSim 18.0.3
input port
sample-2.fsm (43.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.

1 Answer

Kari Payton avatar image
0 Likes"
Kari Payton answered

@Mason W You have on reset label "CartonQtyl" and in entry label "CartonQty". Idk if you meant to have 2 different spellings. To get this to work, move the logic from "On Message" to "On Process Finish". This way the condition can be evaluated after the item is done processing. I'm not sure why the "On Message" doesn't work. 12260-sample-2.fsm


12260-sample-2.fsm (168.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.