Action Table

Use the Actions view to setup tasks for the drive to perform based on selected sources and conditions. Up to 32 actions can be configured. Each action, at a minimum, has three elements, of which may have additional requirements.

For example, Action 1 below attempts to Enable Axis 1 any time it sees a rising edgeClosedA rising edge is the transition of a digital signal from low to high. It is also called positive edge on Digital Input 1. This action also has a Source ID setting which digital input to react on and a Task ID setting which axis to enable.

Action Execution

Actions are executed sequentially, top to bottom, starting at Action 1, at a 4kHz rate.

Certain tasks, like clearing faults, may take a longer than 4kHz cycle to execute. These tasks will be initiated in a low priority thread. If the task is triggered a second time while the task is already running, it will not be queued to run again and the action will be ignored until the running task is complete.

Scanning of the table does not begin until boot up has completed. Any edges occurring on any signal will be ignored until this time. In addition, edge triggered actions will not be executed if the test condition is already true at boot time.

To avoid inconsistent behavior, an action is automatically disabled when any of its fields are edited. Reactivate the action after editing any of its field settings.

Chaining Actions

Actions are executed sequentially so they can be configured to execute a chain of actions.

For example, if Action 1 enables axis 1 when mains ready is true, then Action 2 can be configured to start homing when axis 1 is enabled. When Action 1 completes its task, it triggers Action 2 to execute.

Reference

Element Description Parameter
Task

An action task defines the drive function to execute when the source's condition is met. Some tasks execute a drive function when the condition becomes true. Other tasks execute every cycle and use the condition or source to set a drive value.

Value Description
0 No task
1 Digital Output from Source, Continuous
2 Set Digital Output, Edge-triggered
3 Clear Digital Output, Edge-triggered
5 Motion Task, Edge-triggered
6 Home Task, Edge-triggered. Homes based on the saved parameters on the drive
7 Stop, Edge-triggered
8 Start Jog, Edge-triggered
9 Controlled Stop, then disable with re-enable. Drive disables but SW disable bit is not set. If an active Task is disabled (or deactivated) CS bit is cleared and the drive is enabled.
10

Controlled Stop, then disable. Drive disables and SW disable bit is set. If an active Task is disabled (or deactivated) CS bit is cleared but the SW bit remains set and the drive remains disabled.

11 Controlled Stop, and stay enabled. While this action is active then bit 1 in AXIS#.MOTIONDISSOURCES will be set. Drive remains enabled while motion stops. CS bit is not set.
12

Clear Faults, Edge-triggered

In addition to clearing the fault, this action sets the software enable to prevent the axis from immediately enabling.

See action task 28 to avoid the software enable set.

ACTION#.TASKID selects which axis the faults will be cleared on, zero will clear the faults on both axes.

13 Enable Axis, Edge-triggered
15 Set Analog Output
16 Disable Axis, Edge-triggered
18 Activate Gearing, Edge-triggered
19 Add Gearing Position, Edge-triggered
20 Set Motion Task Feedrate
21 Digital DIO From Source, Continuous
22 Set Digital DIO, Edge-triggered
23 Clear Digital DIO, Edge-triggered
24 Fault Axis
25 Release brake on axis. While this action is active, the brake will be released on axis.
26 Command Buffer, Execute up to eight user defined commands. See Command Buffer for more details.
27 Set the Command Source and Op-Mode depending on value in the task parameter, Edge-triggered.
28

Clear Faults Software Enable Unchanged, Edge-triggered

This action clears any faults on the axis and will not set the software enable. The axis immediately enables after the fault is cleared when using this action task. When using the AKD2G drive with wired digital inputs,it is convenient to clear faults and not have the drive set the software enable automatically.

See action task 12 for the software enable set when faults are cleared.

ACTION#.TASKID selects which axis the faults will be cleared on, zero clears the faults on both axes.

 

ACTION#.TASK
Task ID Some tasks require the Task ID to specify what is acted upon such as setting a DOUT value. ACTION#.TASKID
Task Param.

Some tasks require task parameters to further specify what is acted on. For example, if the task is Motion Task, Edge-triggered the task parameter field appears. Setting this field to 5 specifies the action starts motion task 5 on the selected axis.

ACTION#.TASKPARAM
Source

The action source is the input to which the drive reacts.

Value Name Description
0 No source Default value of no specified source
1 Mains ready This digital source goes high when the bus voltage is available to the drive. It does not take any ID or parameters.
2 Digital Input This digital source corresponds to a DIN. It takes an ID.
3 Digital Dio (Bidirectional) This digital source corresponds to DIO. It takes an ID.
4 Velocity Feedback This analog source holds the value of AXIS#.VL.FB . It takes an axis ID.
5 Axis Faulted This digital source goes high when a fault exists on an axis. It takes an axis ID.
6 Home Complete This digital source is high when a Home operation is completed on an axis. It takes an axis ID.
7 Motion Task in Position This digital source is high when on an axis specified by the axis ID, a MotionTask specified by Source Parameter, has reached its position. It takes both ID and parameter.
8 Controlled Stop Active This digital source is high when a Controlled Stop is active on an axis. It takes an axis ID.
9 Software Limit This digital source is high when a software limit on an axis is reached. It takes an axis ID.
10 Move Complete

This digital source is high when a Motion Task with a specified Source Parameter on an axis, specified by Axis Id, has finished execution. It takes both ID and parameter.

11 Position Error, Absolute This analog source holds the value of AXIS#.PL.ERR . It takes an axis ID.
12 Axis Enabled This digital source holds the value of AXIS#.ACTIVE . It takes an axis ID.
13 Analog Input This analog source holds the value of AIN#.VALUE. It takes as Source ID, the ID of AIN.
14 Current Command This analog source holds the value of AXIS#.IL.CMD . It takes an axis ID.
15 Velocity Error This analog source holds the value of AXIS#.VL.ERR . It takes an axis ID.
16 Velocity Command This analog source holds the value of AXIS#.VL.CMD. It takes an axis ID.
17 Position Feedback This analog source holds the value AXIS#.PL.FB . It takes an axis ID.
18 Axis Disable Immediately This digital source goes high when the power stage is disabled or dynamic braking is applied. It takes an axis ID.
19 Brake State This digital source holds the value of BRAKE#.STATE. It takes a Brake ID.
20 Ready to Operate (RTO/BTB) This digital source goes high when the drive/axis is ready to operate, i.e., the power stage is ready and there are no axis faults. It can default to an ID of 0 for the entire drive or take an axis ID.
21 Compare Digital Inputs This bit-mapped source shows the value of all the DINs and DIOs compared with a mask which is settable with UI.
22 Feedback Fault This source holds the value of FB#.FAULTBITS. It takes a Feedback ID.
23 User Variable This source holds the value of USER.INT#. It takes an ID.
24 Action Row Running This digital source indicates if an Action Row is running, i.e. if the task is being executed (see ACTION.RUNNING). It takes an Action Row ID.
25 Current Feedback This analog source holds the value of AXIS#.IL.FB . It takes an axis ID.
26 Recordable Parameter This allows the trigger of an action by using any Recordable Parameter.
200 Safe Input  
201 Safe Dual Input  
202 Safe Output  
203 Safe Dual Output  
204 STO active  
205 SS1 active  
206 SS2 active  
207 SOS active
208 SBC active  
209 SLS active  
210 SSM active  
211 SSR active
212 SDI_n active  
213 SDI_p active  
214 SLA active  
215 SAR active
216 SLI active
217 SLP active  
218 SCA active  
ACTION#.SOURCE
Source ID Some action sources require a specific Source ID number such as a DIN value. ACTION#.SOURCEID
Source Param.

Some sources require source parameters to further specify what is acted on. For example, if the source is Move Complete, the source parameter field becomes editable. Setting this field to 8 specifies the action considers Move Complete for motion task 8 on the selected axis.

To Add
Condition

A condition value is required when the condition performs a comparison. For example, if the action source is set to Analog Input, and the condition is set to "Falls Below Threshold", a condition value defines the threshold. If the condition value is set to 4.5, the action checks if the analog input transitions from a value greater than 4.5 volts to a value less than 4.5 volts.

Digital Source Analog Source Trigger Type
Follows Greater than Level
Inverts Lesser than Level
Rising EdgeClosedA rising edge is the transition of a digital signal from low to high. It is also called positive edge Rises Above Threshold Edge
Falling Edge Falls Below Threshold Edge
Rising Edge (Triggers on High at Start)    
Falling Edge (Triggers on Low at Start)    
ACTION#.CONDITION
Condition Value Defines the value used by the Condition to test against the Source. ACTION#.CONDITIONVALUE