question

Lucas avatar image
0 Likes"
Lucas asked Jason Lightfoot commented

Photo eyes and conveyors

How could I do it for, for example, two conveyors and the second appointment arrives and the photocell detects that it is busy for more than four seconds, so it stops the previous tape. But to stop the previous belt it would have to have the condition of four seconds or more busy otherwise it will not stop. Could you do it for me?

FlexSim 24.0.0
conveyorsphoto eyelogyc
· 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 Jason Lightfoot ♦ commented ·

Hi @Lucas, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of the answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Felix Möhlmann commented

Photo eyes have two sets of triggers: Cover/Uncover and Block/Clear.

A photo eye becomes covered as soon as an item touches it and becomes uncovered when no item is present.

Through the settings "Block Time" and "Clear Time" you can set for how long a Photo Eye must be covered or uncovered for it to also become blocked or cleared.

1706080159139.png

So you would use the On Block and On Clear triggers to stop the upstream conveyor and choose the block time accordingly so that it only fires once an item has been present for 4s.


1706080159139.png (1.6 KiB)
· 6
5 |100000

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

Lucas avatar image Lucas commented ·

But I only want to stop the motor if is covered more than four seconds only in that case.

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Lucas commented ·

I explained how to achieve this. What part are you having trouble with?

"use the On Block and On Clear triggers to stop the upstream conveyor and choose the Block Time accordingly so that it only fires once an item has been present for 4s."

0 Likes 0 ·
Lucas avatar image Lucas commented ·

4 segundos para cinta anterior.fsm

For example here the firts boxes stop also the motor and I only want if is blocked four or more seconds , otherwise no.

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Lucas commented ·
Hm, apparently my comment got lost when your answer got changed into a comment.

In your model you use the On Cover and On Uncover trigger, as opposed to the On Block and On Clear triggers that I mentioned.

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Felix Möhlmann commented ·

That's weird @Felix Möhlmann - I still see it:

1706121438258.png

0 Likes 0 ·
1706121438258.png (81.7 KiB)
Show more comments
Lucas avatar image
0 Likes"
Lucas answered Felix Möhlmann edited

I dont understand can you complete de model that i share?

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

Felix Möhlmann avatar image Felix Möhlmann commented ·

motor-1_1.fsm

And please post follow-up questions as a comment (if they belong to the 'main' topic of the post) or as a new question, but not as an answer.

0 Likes 0 ·
motor-1-1.fsm (45.7 KiB)
Lucas avatar image
0 Likes"
Lucas answered Felix Möhlmann commented

Motor 1.fsmI understand to here I dont understand more


motor-1.fsm (46.2 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.

Felix Möhlmann avatar image Felix Möhlmann commented ·

In the "On Wait Timer Fired" trigger, the token is by default released through the first. Change this to be the second connector, so it takes a different path compared to where it would normally go.

1706179613254.png

On that second path use a Custom Code activity. It contains many different options. One of which is to stop an object (Control -> Stop Object).

1706179697521.png

0 Likes 0 ·
1706179613254.png (10.5 KiB)
1706179697521.png (1.7 KiB)
Lucas avatar image
0 Likes"
Lucas answered Felix Möhlmann commented

And how would you do the same with process flow?

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

Felix Möhlmann avatar image Felix Möhlmann commented ·
Have an Event Triggered Source react to the On Cover event of the Photo Eye. The token then enters a Wait for Event activity that waits for the On Uncover event. This activity should have a maximum wait time of 4s set. If the wait time expires, send the token a Custom Code activity that stops the conveyor. If the token exits the Wait for Event 'normally' (the PE was uncovered in time) the token goes straight to a sink.
0 Likes 0 ·

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.