question

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

Conditional decide to check photo eye state

Hello!

How does the line of code should read for a conditional decide to check for the photo eye state?

Photo Eye State logic:

On Clear -> Release child token

On Block -> Wait for event

TY

Happy Holidays!

FlexSim 20.0.0
wait for eventsubflowconditional decideflexsim 20.0.0photoeye
pe.jpg (24.3 KiB)
pe2.jpg (38.4 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.

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered tannerp commented

Here's an example for you, but this is similar to the default behaviour without a photoeye, and will break with simultaneous arrivals.

You took the sublflow from this post which was testing if the queue was full and waiting for an exit event.

The closest test to that is to test if the photo eye is clear ("state" variable) and if not wait for it to clear as shown in the model.

ConveyorPEavailability.fsm



· 4
5 |100000

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

Roberto Z avatar image
0 Likes"
Roberto Z answered tannerp commented

Thanks for your feedback. I wasn't trying to avoid port connections despite the fact that imo controlling things with process flow is a much cleaner way of working, making it easier to catch up any mistakes and it's visually more pleasing by eliminating clutter from port connections.

I actually used your answer from this post to complete the simulation. This way as bottlenecks get created downstream the operators don't have any space to discharge and eventually they stop working.

Thank you again!

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