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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @ahmedmedhat, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

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.

ahmedmedhat avatar image ahmedmedhat commented ·
i really dont understand, all of your comments on all of my questions are really not helpful at all, you are not even guiding me into finding the solution??!!
0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ ahmedmedhat commented ·

These were intended to guide you:

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


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


"global variables need to be declared in the Toolbox ". Since at the moment you're getting this output:

1676987774980.png

due to you writing this in a code snippet:

1676988623042.png

Another pointer - don't call your global variables "Global Variable" - any variable or label name should be useful and immediately convey its purpose.

If you don't feel our support is helpful then feel free to get it directly from your university or local distributor, who may be able to better communicate with you.


0 Likes 0 ·
1676987774980.png (28.2 KiB)
1676988623042.png (9.0 KiB)