Overview of motion-related data types
630 Rockwell Automation Publication MOTION-RM002H-EN-P-February 2018
You must define a motion control tag for each motion instruction that you use.
The tag uses the MOTION_INSTRUCTION data type and stores status
information about the instruction.
Mnemonic Data Type Description
FLAGS DINT Use this DINT to access all the status bits for the instruction in one 32-bit value.
For this status bit Use this bit number
EN 31
DN 29
ER 28
PC 27
IP 26
AC 23
DECEL 1
ACCEL 0
EN BOOL The enable bit indicates that the instruction is enabled (the rung-in and rung-out condition is true).
DN BOOL The done bit indicates that all calculations and messaging (if any) are complete.
ER BOOL The error bit indicates when the instruction is used illegally.
PC BOOL The process complete bit indicates that the operation is complete.
The .DN bit sets after an instruction has completed execution. The .PC bit sets when the initiated
process has completed.
IP BOOL The in process bit indicates that a process is being executed.
AC BOOL The Active Bit lets you know which instruction is controlling the motion when you have instructions
queued. It sets when the instruction becomes active. It is reset when the Process Complete bit is set
or when the instruction is stopped.
ACCEL BOOL The .ACCEL bit indicates that the velocity has increased for the individual instruction that it is tied to,
that is, jog, move, gearing.
TrackingMaster BOOL Indicates that the Slave Coordinate System is tracking the Master Axis (only used in Master Driven
Mode).
CalculatedDataAvailable BOOL Indicates that the requested data has been returned in the Calculated Data array element and that
the Logix Designer application has updated the output data in the Calculated Data parameter. Only
one status bit is used to indicate all Calculated Data is available.
DECEL BOOL The .DECEL bit indicates that the velocity has decreased for the individual instruction that it is tied to,
that is, jog, move, gearing.
ERR INT The error value contains the error code associated with a motion function.
See Error Codes (ERR) on page 557 for Motion Instructions.
ON Data Type