question

Chun-Ju C avatar image
0 Likes"
Chun-Ju C asked Joerg Vogel answered

About Transportation

As the model works, the results satisfy my requirement,

I record ABC three queues' current number in GlobalTable1,

The "Flow" option in A, I select "Conditional Port", the following is condition,

current.num > 5 && getdatastat(STAT_MIN, gettablerows("GlobalTable1"), gettablenum("GlobalTable1", count, 3)) < 2

I let the queue which current number is bigger than 5 throws a product to the queue which current number is less than 2,

At the beginning, I let Source1's "Arrival Style" be "Inter-Arrival Time", this option can work correctly,

But when I set "Arrival Style" to "Arrival Sequence", and one arrival with quantity 10, this option can't work correctly, can somebody tell me why?

transportation.fsm

FlexSim 18.1.0
transportation
transportation.fsm (25.5 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.

Isaac Litster avatar image Isaac Litster commented ·

@Chun-Ju C,

Were you able to find a solution for your question?

0 Likes 0 ·

1 Answer

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

This seems a runtime problem. The items get the state to be releasing the queue. But releasing isn´t the same as exiting or entering another queue. The transfer isn´t finished. The send to port function evaluates on each item the conditional states in the model, there isn´t a change as long as the transfer isn´t complete.

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

Chun-Ju C avatar image Chun-Ju C commented ·

@Jörg Vogel, so how can I do for my requirement?

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Chun-Ju C commented ·

give FlexSim the time to move the items. Create the items instead 10 at a time stamp, create each single item with a small time gap of 1/100 second.

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.