question

Grant S2 avatar image
0 Likes"
Grant S2 asked Grant S2 commented

Only send item if over certain age (time spent on conveyor)

Hi all,

I have items (boxes) entering a conveyor, as they enter the conveyor their creation age should be set (0 or time()). These boxes should move along the conveyor and once they reach a photoeye at the end their time on the conveyor/age should be checked, if they are older than 60 seconds they can be released otherwise the conveyor must stop until this box is >= 60 seconds age then the conveyor can continue, this should apply for each box. I've tried stuff like putting a photoeye at the end and checking the age something like "if time() - creationAge < 60 set conveyorspeed 0 else set conveyorspeed 200". Obviously that doesn't work, I've played around quite a bit and if I get it working it only works for the first box and messes up on all the other boxes.

Any help would be appreciated.


sendifold.fsm

FlexSim 21.0.2
listsphoto eye
sendifold.fsm (42.9 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

Parker S avatar image
1 Like"
Parker S answered Grant S2 commented

@Grant S2

Here is an example of how you could do this:

sendifold_PS.fsm

When the item arrives at the DP it checks how long it has been on the conveyor. If that time is less the 60 sec, the conveyor stops completely and then has a delay for the time left until 60 seconds, then everything resumes.

Let me know if you have any questions!


sendifold-ps.fsm (46.1 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.

Grant S2 avatar image Grant S2 commented ·
Perfect, thanks a lot, exactly what I needed.
1 Like 1 ·