question

ahmedmedhat avatar image
0 Likes"
ahmedmedhat asked Jeanette F commented

Changeover Process Flow

I want the processor to make a changeover every time a flow item is finished processing according to its "Code" and its corresponding change over time present in the global table (ChangeOver)

I have tried to place a counter to help me with this but I keep getting an error saying that the (GlobalVariable) I am using is invalid although I have seen multiple other models use it.

Also I can't seem to link the label "Code" with a token in the process flow.

Please help. I have placed my model below.

Process Flow.fsm

FlexSim 22.1.0
processflowtokenchangeover
process-flow.fsm (38.9 KiB)
· 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.

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

Consider, instead of creating a new token for every entry, re-using a single token that waits for the item entry - that way you can have the previous item's information stored on the token and you know the processor's state.

Consider also cleaning up and paying attention to the messages in the system and compiler consoles - they're telling you things that are wrong in your model. For example - global variables need to be declared in the Toolbox.

Lastly is there any reason you want to do this in process flow? It's a standard function of the processor to have a conditional changeover.

I hope these pointers/guidelines help. We encourage students to work through recommendation themselves rather than have the community solve and provide finished answers for them. If you get stuck come back and we'll guide you further.

· 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.