6.9 Motion Axis Set Deceleration (AKD_Set_Decel)
6.9.1 Description
Use the motion axis set deceleration (AKD_Set_Decel) instruction to set the axis deceleration parameter
used with axis moves.
The AKD_Set_Decel instruction execution may take multiple scans to execute because it requires trans-
mission of a message to the motion module. The Done (.DN) bit is not set immediately, but only after the
deceleration is set.
This is a transitional instruction. In ladder diagram, toggle the rung-condition-in from cleared to set each time
the instruction should execute.
6.9.2 Operands
Operand Type Format Description
AKD_Set_Decel AKD_SET_DECEL Tag Control tag for this instruction.
Axis AKD_AXIS Tag The name of the axis to modify.
Decel DINT Immediate
Deceleration parameter for axis moves.
6.9.3 AKD_SET_DECELStructure
Mnemonic Data
Type
Description
.EnableIn BOOL The enable input bit indicates that the instruction is enabled. It remains set until the
instruction completes and the rung-condition-in goes false.
.EnableOut BOOL The enable output bit is the output of the enable input bit.
.DN
(Done)
BOOL The done bit indicates when the deceleration is successfully set.
.ER (Error) BOOL
The error bit indicates if the instruction detects an error.
6.9.4 Execution
Condition Ladder Diagram Action
Prescan Initialize variables and clear timeout.
Rung-con-
dition-in is
false
Initialize variables and clear timeout.
Instruction
execution
Reset done and error bits and send deceleration command when instruction is enabled. Set
done bit when axis command response received. If a general fault occurs or there is a com-
munication response timeout, set the error bit.
Ethernet IP with RSLogix | 6 AKD Instructions
Kollmorgen | kdn.kollmorgen.com | November 2018 43