question

Marvin P avatar image
0 Likes"
Marvin P asked Jeanette F edited

How to send to different conveyor at different time of day

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.



FlexSim 21.0.10
conveyor
1678097097831.png (89.7 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

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

1 Answer

·
Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Felix Möhlmann commented

Use this as your condition on the routing DP:

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

1678118013072.png


1678118013072.png (10.3 KiB)
· 2
5 |100000

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

Marvin P avatar image Marvin P commented ·

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 0 ·
Felix Möhlmann avatar image Felix Möhlmann Marvin P commented ·

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 ( "!(...)" ).

1 Like 1 ·

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.