MCFB_AKDFault

PLCopen motion icon

 Function BlockClosed A function block groups an algorithm and a set of private data. It has inputs and outputs. - Outputs AKD drive fault information.

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

100, 999

N/A

The AKD drive fault number.

Remarks


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

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

Figure 6-92: MCFB_AKDFault

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_AKDFault( Axis1(*lib:AXIS_REF*) );

FaultDrive1 := Inst_MCFB_AKDFault.FAULT;

FaultDrive1Number := Inst_MCFB_AKDFault.FaultNumber;



FaultDrive1Description := MCFB_AKDFaultLookup( FaultDrive1Number(*DINT*) );

See Also