Function BlockMCFB_DriveFaultPLCopen motion icon

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 S300Closed"Servostar 300 drive" See Servo Drive in Glossary, S700Closed"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.

Figure 7-244: MCFB_DriveFault

Arguments

Input

EN Description ENABLES the Kollmorgen UDFBClosed"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.

Bit Description Cause
0 Saturated Drive stage operates with maximum duty cycle
1 Over temperature Internal temperature is higher than 80o C
2 TorqueClosedTorque is the tendency of a force to rotate an object about an axis. Just as a force is a push or a pull, a torque can be thought of as a twist overload. Motor current is higher than the rated current
3 Under voltage. Motor supply voltage is 20% lower than the configured nominal voltage (warning), or Motor supply voltage is less than 8 V
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 12 V
8 Misc. error Terminal initialization failed, or supply voltage is less than 8 V, or internal terminal temperature is higher than 100°C
9 Configuration error CoE change has not yet been adopted into the current configuration
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:

Related Functions

Example

Structured Text

//Execute and Read the Function BlockClosedA 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