CIP_Axis_Fault_Reset AOI
Description
The CIP_Axis_Fault_Reset AOI requests to reset the AKD2G-SPI axis via the CIP_Axis_State_Machine AOI.
Compatibility
The CIP_Axis_State_Machine AOI is only compatible with AKD2G-SPI drives when used with Motion Supported PLCs with Studio 5000 and the CIP Sync connection.
Required Command Source and Operation Mode
AXIS#.CMDSOURCE = Fieldbus
AXIS#.OPMODE = Position
The CIP_Axis_Fault_Reset AOI passes a RequestedAction of 3 to the corresponding CIP_Axis_State_Machine AOI for the given axis. When the axis status bit Fault is False (OFF) then the CIP_Axis_Fault_Reset command is successful and the .DN bit is set. If the axis status bit Fault does not transition to False in a timely manner (command timeout = 2000 msec), then a command timeout for the CIP_Axis_Fault_Reset AOI is declared and its .ER bit is set the status bit for fault is Axis.Status.Fault which is bit 3 of the status word.
The CIP_Axis_Fault_Reset AOI execution time may require multiple scans (additional 300-350 ms) due to the required fieldbus communication time and time for the drive’s axis to clear the axis' fault.
Operands
These entries are required by the user.
|
Operand |
Data Type |
Format |
Description |
|---|---|---|---|
|
CIP_Axis_Fault_Reset |
CIP_Axis_Fault_Reset |
Tag |
Tag name for instance of the AOI. |
|
Axis |
CIP_Axis |
Tag |
User tag defined in the Axis1 or Axis2 field of the CIP_Drive_Comms AOI. |
|
Error_Description |
STRING |
Tag |
User tag to display the string error code description. In run-time when the mouse cursor is hovered over the tag the string can be monitored.
|
Structure
The following fields are not entered by the user and are populated automatically with Read Only data once the Operands (in the Operand table for this AOI) are entered or presented as output data (bits).
|
Mnemonic |
Type |
Format |
Description |
|---|---|---|---|
|
.EnableIn |
Input |
BOOL |
The Enable Input bit indicates the instruction is enabled. |
|
.EnableOut |
Output |
BOOL |
The Enable Output bit is the output of the Enable Input (.EnableIn) bit. |
|
.DN |
Output |
BOOL |
Turns on when the fault status response is returned (no fault state acknowledged). Axis.Status.Fault (bit 3 of status word) is OFF. (No fault) |
|
.ER |
Output |
BOOL |
The .ER bit is set if the Fault status Axis.Status.Fault (bit 3 of status word) is not confirmed OFF in the time set by the Command Timeout preset. |
|
Error_Code |
Output |
SINT |
0 = No Error, 1 = Command Timeout |
Changes to Axis Status Bits and Control Word bits Description
-
All status bits are updated from the drive. See Status Word in CIP Sync Response Assembly Data Structure (106) for more information.
-
Control Word bits descriptions and functions are described under Control Word in CIP Sync Command Assembly Data Structure (105).
On Fault Clear the axis changes to the Switch On Disabled state and the status bits are as follows:
| Bit | Name | Status |
|---|---|---|
| 0 | Ready To Switch On | OFF |
| 1 | Switched On | OFF |
| 2 | Operation Enabled | OFF |
| 3 | Fault | OFF |
| 6 | Switch On Disabled | ON |
See the sections "States of the state machine" and "Mode-dependent bites in the statusword" in CIP Sync: State Machine for more information.
Example of Usage/Programming Guidelines
In the Sample project the CIP_Axis_Fault_Reset AOI is used in the subroutine for the given axis under MainTask → MainProgram → Axis1_Routine or Axis2_Routine.
Subroutines are called in the MainRoutine_with_CIP_State_Machines routine under MainTask → Main Program.
The best practice for the CIP_Axis_Fault_Reset AOI is to use a conditional N.O. Contact as a trigger (Ax1_Fault_Reset_Toggle in the example below) and then use a One Shot (ONS) to trigger the CIP_Axis_Fault_Reset AOI .EnableIn. A parallel branch is implemented around the N.O. Contact and One Shot to seal-in the .EnableIn of the AOI until execution completes (.DN; Done) or fails (.ER; Error).
An additional rung provides a way to monitor the faulted state in the ladder based on the AXIS_ONE.Status_Fault status bit in the axis status word as a N.O. Contact and when it is true (ON) a coil in the ladder named Axis1_Faulted turns ON. Note AXIS_ONE is the name given to Axis1 in the CIP_Drive_Comms in the Sample project as an alias for all other Kollmorgen CIP_Axis AOIs to use for that axis.
Figure 1: Example: Axis1_Routine with CIP_Axis_Fault_Reset AOI
Troubleshooting
The condition for the Error (.ER) bit to be set for the CIP_Axis_Fault_Reset AOI:
If the Axis.Status.Fault bit does not turn OFF in 2000 msec then declare a command timeout error.
Step Summary
|
Step Number |
Operation/Result |
|---|---|
|
0 |
Clear bits and error codes |
|
1 |
Set the Axis.RequestedAction to 3 (Reset Faults) |
|
2 |
Monitor Axis.Status.Fault to determine success (DN) or command timeout (ER) |
|
-1 |
Error (Command Timeout) |
Revision History
| Revision Number | Description/Notes | Date of Revision |
|---|---|---|
| v1.5 | Initial release | 03-14-2024 |







