The GetMoveQueueLength function returns the number of entries in the queue for the specified axis.
When the number of entries in the queue is greater than 1, the axis moves bumplessly along a continuous path. Entries are placed in the queue using the MoveQueue function. Entries are removed from the queue as the movement for an axis is planned (current movement and next movement).
If a GetMoveQueueLength is executed immediately after the first entry is placed in the queue by a MoveQueue function, the returned value will be 0. This is because the movement for the axis is planned as soon as the entry is placed in the queue. The trajectory generator removes it before the GetMoveQueueLength function can be executed. Up to 34 movements can be managed: 32 movements in the queue, the current and next movements present in the trajectory generator.
NOTE: The GetMoveQueue only returns the number of entries waiting without taking into account either the current or next movements.
This function is implemented with the help of the
WRITE_CMD instruction (see
WRITE_CMD).
Associated Language Objects
Exchange via WRITE_CMD:The table below presents the different language objects linked to this function.
Object
|
Name
|
Function code
|
Description
|
%MWr.m.c.26
|
ACTION_CMD
|
9510
|
Command
|
%MDr.m.c.20
|
RETURN_CMD_1
|
-
|
Result of the command
|
%MWr.m.c.19
|
ERROR_CMD
|
-
|
|