question

Roberto S6 avatar image
0 Likes"
Roberto S6 asked tannerp commented

How generate a token when change of step?

2.fsmI am using a FluidMixer and I need to generate a token when changing the step, this to be able to identify what type of material the FluidMiexer is receiving and thus make a motion decision.

I hope you can support me.

Regards

FlexSim 19.1.0
tokenstepfluidmixer
change-pf.png (201.2 KiB)
2.fsm (38.2 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

tannerp avatar image
0 Likes"
tannerp answered

Hi @Roberto S6,

In this updated model, I have a line of script that creates a new token using the After Step Delay Trigger. It should work for what you need, but I'm not a fluids expert, so let me know if something goes wrong.

In the example, the trigger is fired after each step and the token is created at a "Start" activity, which can then be used to run a sub-flow. You can pass in other variables by modifying and adding to the script. Hopefully this helps answer your question.

create-token-on-message.fsm


5 |100000

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