question

Marian Cretu avatar image
1 Like"
Marian Cretu asked tannerp commented

Set photoeye state

Hello guys,

Please help with this matter.

When a conveyor changes direction (speed -1) the photoeye doesn't change it's state from blocked to idle. Please advise.

Thank you.photocell-state.fsm

FlexSim 20.0.0
conveyorsphotoeye
photocell-state.fsm (39.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

·
tannerp avatar image
1 Like"
tannerp answered

Hi @Marian Cretu,

I don't know if this is a bug or just a problem with the way the change speed is used, but I found that by moving the decision point a small distance down the conveyor belt, the error you described no longer occurs. I've updated your model to reflect this.

photo-eye-change-state.fsm

My best guess is that the blocked photo eye is anticipating the back end of the object to pass through it, so when the conveyor is reversed and the front end passes through, it doesn't register that the item has left.


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.