MCFB_AKDFault
Description
Outputs AKD drive fault Information. The FAULT output turns TRUE when the selected drive goes into a fault state. The fault number is the same number as reported on the display of the AKD drive. This function can be used with the PLCopenA vendor -and product- independent worldwide association active in Industrial Control and aiming at standardizing PLC file formats based on XML Motion engines.
-
-
This function block lists the highest priority fault as displayed on the AKD. The FB_AKDFltRpt function block lists faults in the order they occur.
The following figure shows the function block I/O:
Arguments
Input
EN | Description | ENABLES the Kollmorgen UDFB"User Defined Function Block" UDFB can be used as a sub-function block in another program of the application. It is described using FBD, LD, ST or IL language. Input / output parameters of a UDFB (as well as private variables) are declared in the variable editor as local variables of the UDFB (used in FFLD editor only) |
Data type | BOOL | |
Range | [0 , 1] | |
Unit | n/a | |
Default | — | |
Axis | Description | Name of a declared instance of the AXIS_REF library function. For more details, About Axis Name and Number. |
Data type | AXIS_REF | |
Range | [1, 256] | |
Unit | n/a | |
Default | — |
Output
FAULT | Description | TRUE if selected drive currently has a Fault |
Data type | BOOL | |
Range | [0 , 1] | |
Unit | n/a | |
FaultNumber | Description | Three digit AKD Fault identifier |
Data type | DINT | |
Range | [100 , 999] | |
Unit | n/a |
Usage
Typical usage for this UDFB are:
- Provide drive fault information that the application program uses to determine next steps such as perform a machine controlled stop or perform an immediate disable of the servo drives.
- In the application program send output fault information from this UDFB to the HMI"Human-machine interfaces " Also known as computer-human interfaces (CHI), and formerly known as man-machine interfaces, they are usually employed to communicate with PLCs and other computers, such as entering and monitoring temperatures or pressures for further automated control or emergency response for review by the machine operator.
Related Functions
MC_ReadStatus (PLCopen Motion Engine)
Example
Structured Text
//Execute and Read the Function BlockA function block groups an algorithm and a set of private data. It has inputs and outputs.
Inst_MCFB_AKDFault( Axis1(*lib:AXIS_REF*) );
FaultDrive1 := Inst_MCFB_AKDFault.FAULT;
FaultDrive1Number := Inst_MCFB_AKDFault.FaultNumber;
FaultDrive1Description := MCFB_AKDFaultLookup( FaultDrive1Number(*DINT*) );
Ladder Diagram
Function Block Diagram