question

Enrique Elizaga avatar image
0 Likes"
Enrique Elizaga asked Enrique Elizaga commented

when using the moveobject command

I am moving objects from one queue to another in a processflow using code.

If I use the moveobject command, do I need to add any other instructions to not mess up the queue´s events like transport etc?

FlexSim 22.1.2
moveobject
5 |100000

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

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered

You need to account for the queue's capacity if you don't want to breach it.

The standard code will be looking at the content of the queue and the variable 'nroftransportsin'. If you are mixing your moveobject commands with other processes that are transporting in then you should also account for those if you don't want to go over the capacity. If capacity is unconstrained then it's not a problem.

5 |100000

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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Enrique Elizaga commented

If the queue does not have any output connections, then no. Generally the queue should not have any pending events that directly reference the item after the 'Send to Port' logic has fired.

If the queue does send the items somewhere on its own and a task executer is on the way to pick up the item, then moving the item will not stop this task. The task executer would still move to the queue and the item will be teleported back to them.

You would need to find a way to identify the correct task executer and manually finish their task sequence. I would generally try to avoid mixing process flow and 3d-logic like this though (where a task might be triggered/controlled by either).

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

Enrique Elizaga avatar image Enrique Elizaga commented ·
hank you, this is very informative as well.
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.