AGV cannot move normally after being relocated using MoveObject

AGV cannot move normally after being relocated using MoveObject

cfujee2001
Participant Participant
92 Views
1 Reply
Message 1 of 2

AGV cannot move normally after being relocated using MoveObject

cfujee2001
Participant
Participant

I am using a Source to generate numbers from 1 to 4, and by reading a Global Table, I control the AGV to move to the corresponding Control Point.

Suppose when the second instruction arrives, if the AGV is still moving toward the previous Control Point, it should cancel the current movement and directly use MoveObject() to move to the new Control Point.

After this relocation, when the next instruction arrives, the AGV should be able to move normally to the assigned Control Point, instead of being relocated again.

However, I am currently facing a problem: after the AGV is relocated using MoveObject(), it can no longer move normally afterward.

Is there any method or setting that can solve this relocation issue and allow the AGV to resume its normal movement behavior?

 

0 Likes
93 Views
1 Reply
Reply (1)
Message 2 of 2

joerg_vogel_HsH
Mentor
Mentor

An AGV belongs to a class called taskexecuter. If you want to cancel a task execution you do this by a mechanism called preempting. This is implemented in a new taskesequence. You can dispatch a tasksequence to let travel a taskexecuter to a new destination and abort currently active tasksequence or all queued tasksequences. A third option allows you to interrupt currently active tasksequence and put it into the tasksequence queue to be finished later. Please be aware of any dependencies if you destroy tasksequences, because the FlexSim engine won’t update any expected data of incoming items in fixed resources for variables like nroftransportsin. This variable is evaluated for example in queue objects to decide how many items can be received by transport jobs. A queue object cumulates “number of transports in” and currently stored items to compute currently content for receiving new items in comparison to maximum allowed content.

0 Likes