question

BING SYUAN L avatar image
0 Likes"
BING SYUAN L asked tannerp commented

How to prevent overflow in downstream queue by using flexcript to create TS

tasksequence-problem.fsmHi everyone

In the beginning, I don't want to transfer the pallet to the downstream queue upon the empty arrived.

The pallet should be moved to the downstream queue by operator after the box be placed on.

therefore, I creat a Tasksequence to operator by flexscript after robot has finished the transport.

But the downstream queue's max content is 1, It's will be overflowed.

Is there a idea to avoid this condition happend?

Thank you

FlexSim 18.2.3
flexscripttask sequence
5 |100000

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

1 Answer

tannerp avatar image
0 Likes"
tannerp answered

This condition can be avoided using normal Process Flow activities (rather than custom code). The insertion of a Decide activity after the Load activity can check the contents of the queue that will receive the item and if there is not space for the item, the item will not be unloaded. Otherwise, there's not a clear-cut way to abruptly change the task sequence created through Custom Code, as it becomes more convoluted.

I've updated your model to include an example of the logic I've described. Hopefully this helps.

ts-problem-help.fsm


ts-problem-help.fsm (50.8 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.