question

Brad Champeau avatar image
0 Likes"
Brad Champeau asked Sam Stubbs answered

How to control conveyor with two photoeyes?

I have a conveyor that I want to run with the following logic:

If photoeye 1 and photoeye 2 are clear for more than 3 seconds, turn the conveyor on.

FlexSim 17.1.0
conveyor control
· 3
5 |100000

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

Jeff Nordgren avatar image Jeff Nordgren commented ·
@Brad Champeau

Do you have a sample model you could send in? It would be easier to see exactly what you are trying to accomplish.

0 Likes 0 ·
Brad Champeau avatar image Brad Champeau commented ·

phsmustang.fsmIn the attached model, the two photoeyes PE 1600 and PE 1515 would need to control motor 9.

0 Likes 0 ·
phsmustang.fsm (58.9 KiB)
Brad Champeau avatar image Brad Champeau commented ·

@Jeff Nordgren Any headway on an answer to this one? Thanks.

0 Likes 0 ·

1 Answer

·
Sam Stubbs avatar image
1 Like"
Sam Stubbs answered

As we discussed on the phone here is an example that can model what I think you were looking for. Essentially you have to set up logic so that the downstream and upstream photo eyes "talk" to each other letting the other one know when the first one is blocked. You can do this will a little bit of custom code and sending messages to each other.

Here is an example which should help you:

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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