question

Andre T6 avatar image
0 Likes"
Andre T6 asked Joerg Vogel commented

Picking and sending in series

Hi,
I have some problem with my custom code. When the model run at start, the model picking box from queue 2 or 3 as intended, and send it to queue 5. And when a box arrive in queue 1, the crane will move the box from queue 1 to queue 4.
After some time, the crane will only move the box from queue 1 to queue 4 and moving the box from queue 4 to queue 5 and leaving queue 2 and 3 empty
How do i fix this in my custom code?
1638003231208.png

FlexSim 21.2.2
custom codefifo
1638003231208.png (28.5 KiB)
· 3
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 @Andre T6,

It's hard to know how to help without looking at your model. To receive a more accurate solution, please post your model or a sample model that demonstrates your question.

Proprietary models can be posted as a private question visible only to FlexSim U.S. support staff. You can also contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·
Andre T6 avatar image Andre T6 Jeanette F ♦♦ commented ·

Hi @Jeanette F,

fifo-model11-rc.fsm
Here is the model


0 Likes 0 ·
fifo-model11-rc.fsm (91.5 KiB)
Ryan Clark avatar image Ryan Clark commented ·

Hi @Andre T6, was Joerg Vogel's answer helpful? If so, please click the "Accept" button at the bottom of their answer. 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

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

Probably the content of queue 4 never exceeds 20. This happens, because for each item there is already created an transport tasksequence and it is not counted for current content. The current content is content of stored items + items in transit to this queue - items in transit to other objects. And when an item is just waiting to get transported, then it doesn’t belong anymore to the counted content of the queue. You need a customized logic, that prevents items to be send right from arriving in the queue. I would choose something like holditem or do not release item through an On Entry event. Then whenever a situation occurs where the crane gets available I would release the last item by command releaseitem Or similar action in process flow. This command calls automatically the function of Send to Port and the actual situation gets evaluated.

· 17
5 |100000

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

Andre T6 avatar image Andre T6 commented ·

Hi @Joerg Vogel, I just know about holditem and release item command, how do i used it in the custom code?

And about do not release item On Entry event, i checked it in my crane, but i didn't find 'do not release item' in On Entry trigger. Where do I find it?

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Andre T6 commented ·
I am sorry, as I described there are some events involved and you do such kind of logic not in a single central custom code.


But if you want to do it in single structure then you would call this function from different events and depending of the event only a portion of your complete source code would be executed.


A crane does not release an item on entry. I said, if a crane gets available he releases an hold item in a queue. The trigger is called On Resource Available. If a queue receives an item, an on entry trigger of involved queue helds the entering item.

0 Likes 0 ·
Andre T6 avatar image Andre T6 Joerg Vogel commented ·
Thanks for your explanation @Joerg Vogel .

I will try it and maybe will ask something about this in the future if i have the same problem.


0 Likes 0 ·
Show more comments

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.