question

Ryosuke S avatar image
0 Likes"
Ryosuke S asked Ryosuke S commented

How to use send to port By time of day

How do you use Send to port By time of day? I want the queue to start sending 5 flowitems let's say from 9:00AM and I have set as follows, but doesn't seem to work. Is this the correct way of setting?

By_Time_of_Day_Test.fsm

FlexSim 20.1.3
queueflexsim 20.1.3send to portby time of day
capture070.jpg (21.4 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.

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Ryosuke S commented

This function has nothing to do with amount of items nor with minutes of an hour. It just tells the queue the port number which is used to release items. In your case it is port number 5 or 50 which is available to release items. If you have not 5 nor 50 output port connections in your model for the queue, then all items stay at the queue Or by default port number 0 releases items to the first available port.

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

Ryosuke S avatar image Ryosuke S commented ·

@Jörg Vogel Oh! Yes I just checked and realized it. Thank you. When I set to 50 at 8AM, it coincidently started from 8:50, so I misunderstood.

0 Likes 0 ·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Ryosuke S commented

An object can work or not. A function of an object depends on the state. If it is inactive, then you can do nothing. You can’t stop partly a function of an object. You can use a queue to send items or not. Because the queue is an independent object you can stop it by a time table. Please insert a queue into your model, which is only responsible to distribute your items. If you need more control over the queue then you can change the max. capacity to one and close the input if the output should be disabled.

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

Ryosuke S avatar image Ryosuke S commented ·

@Jörg Vogel Thank you for your reply. I think I got it. But then I'm bit confused. For example, in following case, my understanding is that queue will start sending flowitems from 8:50 then stop at 9:00, then restart at 9:50. But it doesn't happen that way. In the following case, queue doesn't send item at 8:50 but starts at 9:50.

If I set only 8:50 and leave 9AM at 0, then queue starts to send at 8:50.

0 Likes 0 ·
capture071.jpg (20.6 KiB)