MCFB_DriveFault
Description
This function block returns the fault status, fault number and fault description of the requested axis which is mapped to a Kollmorgen drive such as S300"Servostar 300 drive" See Servo Drive in Glossary, S700"Servostar 700 drive" See Servo Drive in Glossary, AKD, AKD2G, and AKT2G Stepper.
The FAULT output returns TRUE when the selected drive goes into a fault state. The fault number and description depend on the drive type mapped to the axis.
- If the drive is an AKD or AKD2G then the fault number is the same number as reported on the display of the AKD/AKD2G drive.
- If the drive is an AKT2G Stepper, then the fault number represents the drive status word which is a bitmask that represents the various error conditions.
-
- This function blocks requires FB_S700FltRpt, MCFB_AKDFault, and MCFB_AKDFaultLookup subprograms imported to project to compile and function
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 see About Axis Name and Number. |
Data type | AXIS_REF Structure | |
Range | [1, 256] | |
Unit | N/A | |
Default | — |
Output
FAULT | Description | TRUE if the selected drive currently has a Fault | |||||||||||||||||||||||||||||||||
Data type | BOOL | ||||||||||||||||||||||||||||||||||
Range | [0 , 1] | ||||||||||||||||||||||||||||||||||
Unit | N/A | ||||||||||||||||||||||||||||||||||
FaultNumber | Description |
If the axis is: S300/S700: Three-digit fault identifier. See the article S300 & S700 Errors and Warnings on KDN for a full list of fault codes. AKD: Three-digit fault identifier. See the AKD Fault and Warning Messages for a full list of fault codes. AKD2G: Four-digit fault identifier. See the AKD2G Faults and Warning Messages for a full list of fault codes. AKT2G Stepper: Drive Status word (bitmask). See following table.
|
|||||||||||||||||||||||||||||||||
Data type | DINT | ||||||||||||||||||||||||||||||||||
Range | |||||||||||||||||||||||||||||||||||
Unit | N/A | ||||||||||||||||||||||||||||||||||
Fault Description | Description | Description of the Fault | |||||||||||||||||||||||||||||||||
Data type | STRING | ||||||||||||||||||||||||||||||||||
Range | N/A | ||||||||||||||||||||||||||||||||||
Unit | N/A |
Usage
Typical usage for this UDFB is:
- 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
- MCFB_AKDFault
- MCFB_AKDFaultLookup
- FB_S700FltRpt
- MC_ReadStatus (PLCopenA vendor -and product- independent worldwide association active in Industrial Control and aiming at standardizing PLC file formats based on XML 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_DriveFault( Axis1 );
Axis1Fault := Inst_MCFB_DriveFault.FAULT;
Axis1FaultNumber := Inst_MCFB_DriveFault.FaultNumber;
Axis1FaultDescription := Inst_MCFB_DriveFault.FaultDescription;
Ladder Diagram
Function Block Diagram