question

Sandy Huang avatar image
0 Likes"
Sandy Huang asked David Seo edited

How to use script to acquire an operator to perform a task?

I need to write codes to acquire an operator to load and unload varying number of items from one queue to another queue. It seems to be too slow, if possible at all, for me to going through the "Command Help" to piece together the script. Can someone please send me a quick example?

FlexSim 17.1.0
using script to acquire task executor to perform a taskusing script to excute a
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

·
David Seo avatar image
0 Likes"
David Seo answered David Seo edited

operator-varyingqty-transfer.fsm @Sandy Huang.

I attach the model of one operator transporting varying number of items from a queue to another queue.

The opartor can handle maximum five items. You can control the capacity field.

And you can set the batch perform quantity using script. I used duniform(1,5) and you can change it to your requirement.

You can use the quantity of it in onEntry trigger of the queue.


5 |100000

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

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.