question

Cody F avatar image
0 Likes"
Cody F asked Jason Lightfoot commented

How to have photo eyes direct traffic of other conveyors?

upload model.fsm

I am trying to have some flexibility in deciding which "machine" to direct the conveyor items. The blue location at the start of the main conveyor dictates which machine to go based on the current states. I have it running to prioritize the furthest machine at all times if open space is available and then machine 3 and 2 then 1 as each fills up. This makes too many items flow to the furthest locations and not allowing the nearest machines to fill up since the items think they need to go to the 4th machine but it is full when they arrive since other items in the meantime have filled the spaces.

I would like to know how to have the photo eyes from the machine sections of conveyor direct traffic on the main conveyor. Each machine has a capacity of 2 items. The orange is the processing location while the blue is blocking a photo eye to say the space is full. If the item arrives at the first machine and the photo eye on the blue decision point is open, how can I tell the item to go there vs if it's full move to see the next possible machine? Essentially just travel around the loop taking any open machine space as it arrives.

FlexSim 21.0.2
conveyorsflexsim 21.0.2photo eye
1613757661580.png (90.6 KiB)
upload-model.fsm (481.3 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

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

You're probably better off having a counter/label on the station that you increment and decrement as you go. Call it freeSpace for example and set it to 2 on reset. When you send one to the station decrement that and when one leaves the station you increment it. Then each decision point can just check it the counter value allows it to enter by checking station.freeSpace>0

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

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

Example in your model: upload-model_jl.fsm

0 Likes 0 ·
upload-model-jl.fsm (481.8 KiB)
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Jason Lightfoot ♦♦ commented ·

In this version it also tests item.FULL==0 in order for them to enter the workstations.

upload-model_jl2.fsm

0 Likes 0 ·
upload-model-jl2.fsm (482.2 KiB)