How to send to different conveyor at different time of day

How to send to different conveyor at different time of day

marvin_p
Not applicable
0 Views
4 Replies
Message 1 of 5

How to send to different conveyor at different time of day

marvin_p
Not applicable

[ FlexSim 21.0.10 ]

Hello,

I have a short question:


How can I transfer the item to Conveyor no. 2 at a defined time of day (e.g. from 10pm to 6am) and to Conveyor no. 1 the rest of the day?


1678097097831.png


Thanks for your help.



0 Likes
Accepted solutions (1)
1 View
4 Replies
Replies (4)
Message 2 of 5

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

Use this as your condition on the routing DP:

Model.dateTime.hour>=6&&Model.dateTime.hour<22

1678118013072.png

Message 3 of 5

marvin_p
Not applicable

Thanks for your answer.

With your condition it reacts the other way round. (item goes in direction 1 between 6 and 22 o'clock).

The attempt to modify the condition did not work.

So I need a solution that the item goes to direction 2 between 10pm and 6am. And the rest of the day in direction 1.

0 Likes
Message 4 of 5

moehlmann_fe
Observer
Observer

From your screenshot I would assume that direction 1 is the default, meaning items go that way if you don't send them anywhere else. As such you don't really need a connection to that direction which is what Jason probably assumed in his answer: Have one outObject that marks the alternative path and send items there via condition.

You can of course leave both connection and just change the index in the destination from 1 to 2.

To negate a logic expression you either switch all operands within it to their counterpart (">=" becomes "<", "<" becomes ">=", "&&" becomes "||") or you just put the entire expression in parentheses and put a "!" in front ( "!(...)" ).

Message 5 of 5

Jeanette_Fullmer
Community Manager
Community Manager

Hi @Marvin P, was Jason Lightfoot's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. 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 unaccept and comment back to reopen your question.

0 Likes