MCFB_DriveFault

PLCopen motion icon

 Function BlockClosed 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

Enables the KollmorgenUDFBClosed "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 the FFLDClosed "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

TorqueClosed Torque 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 either:

  • 20% lower than the configured nominal voltage (warning).
  • Less than 8V.

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:

  • The terminal initialization failed.
  • Supply voltage is less than 8V.
  • Internal terminal temperature is higher than 100 °C.

9

Configuration error.

CoE change has not yet been adopted into the current configuration.

Remarks

  • 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.

This image shows the function or function block I/O.

Figure 6-94: MCFB_DriveFault

Usage

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

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