question

Dhuey C avatar image
0 Likes"
Dhuey C asked Matthew Gillespie edited

How to divert to secondary line when photo eye is blocked?

conveyor-with-eye.fsmThe normal process uses a distribution to feed a primary and secondary processor. When the primary processor conveyor gets full and turns the photo eye 1 to blocked, all product needs to be sent to the secondary processor. When the primary line photo eye 2 becomes clear resume normal operations.

FlexSim 19.0.0
photo eyeconveyor systemsend item
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

Joshua S avatar image
1 Like"
Joshua S answered Joshua S commented

This model should work. I added a label to DP2 called Blocked, then changed it based on if the PE is blocked or not, then on the Trigger "On Arrival" I edited to code in it to only do the distribution based on if it's label Blocked is a 1/0.

18564-conveyor-with-eye.fsm


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

Dhuey C avatar image Dhuey C commented ·

Thanks, for quick reply this works. I was trying to open and close the DP input and output ports. What is the function of these ports? can they be opened and closed?

0 Likes 0 ·
Joshua S avatar image Joshua S Dhuey C commented ·

Normal ports, say from a source to a queue or queue to processor, denote the flow from one object to another, or just general relationship. DPs use connections to only denote relationships between objects, this allows you to reference the connections easier by using DP.outObjects[i] for all the different connections. They don't have any ports to open or close since they are really just there to be triggered and then logic can be initiated based on different triggered cases.

0 Likes 0 ·