MCFB_DriveFault
Function Block A function block groups an algorithm and a set of private data. It has inputs and outputs. - Returns the fault status, number, and description of the requested axis mapped to a Kollmorgen drive.
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
EN |
BOOL |
0, 1 |
N/A |
No default |
Used in the FFLD "Free Form Ladder Diagram" editor only. |
Axis |
AXIS_REF |
1, 256 |
N/A |
No default |
Name of a declared instance of the AXIS_REF library function.
|
Outputs
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
FAULT |
BOOL |
0, 1 |
N/A |
TRUE if the selected drive currently has a Fault. |
FaultNumber |
DINT |
No range |
N/A |
If the axis is:
|
FaultDescription |
STRING |
N/A |
N/A |
Description of the fault. |
Bitmask Causes
Bit |
Description |
Cause |
---|---|---|
0 |
Saturated |
Drive stage operates with maximum duty cycle. |
1 |
Over temperature. |
Internal temperature is higher than 80 °C. |
2 |
Motor current is higher than the rated current. |
|
3 |
Under voltage. |
Motor supply voltage is either:
|
4 |
Over voltage. |
Motor supply voltage is 10% higher than the configured nominal voltage. |
5 |
Short circuit A. |
Short circuit in motor coil A. |
6 |
Short circuit B. |
Short circuit in motor coil B. |
7 |
No control power. |
Control voltage at the power contacts is less than 12V. |
8 |
Misc. error. |
Either:
|
9 |
Configuration error. |
CoE change has not yet been adopted into the current configuration. |
Remarks
-
- This function block requires FB_S700FltRpt, MCFB_AKDFault, and MCFB_AKDFaultLookup subprograms imported to project to compile and function.
- 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, the fault number is the same number as reported on the display of the drive.
- AKT2G Stepper, the fault number represents the drive status word.
- This word is a bitmask that represents the various error conditions.
- If the drive is an:
This image shows the function or function block I/O.
Figure 6-94: MCFB_DriveFault
Usage
- Provide drive fault information the application program uses to determine next steps.
- Example: Perform a machine-controlled stop or perform an immediate disable of the servo drives.
- In the application program, sends 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.
FBD Language Example
FFLD Language Example
IL Language Example
Not available.
ST Language Example
//Execute and Read the Function A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. Block
Inst_MCFB_DriveFault( Axis1 );
Axis1Fault := Inst_MCFB_DriveFault.FAULT;
Axis1FaultNumber := Inst_MCFB_DriveFault.FaultNumber;
Axis1FaultDescription := Inst_MCFB_DriveFault.FaultDescription;
Related Functions