Function BlockMCFB_AKDFaultLookupPLCopen motion icon

Description

String message of the corresponding AKD drive fault number. The OK output turns TRUE when the there is a match for the FaultNumber. The FaultDescription displays the corresponding text string. The FaultNumber is the same number as reported on the display of the AKD drive. This function can be used with the PLCopenClosedA vendor -and product- independent worldwide association active in Industrial Control and aiming at standardizing PLC file formats based on XML Motion engines. The following figure shows the function I/O:

Figure 7-243: MCFB_AKDFaultLookup

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
FaultNumber Description The AKD drive fault number
  Data type DINT
  Range
  Unit N/A
  Default

Output

OK Description TRUE if there is a match for the FaultNumber
  Data type BOOL
  Range [0 , 1]
  Unit N/A
FaultDescription Description Description of the Fault
  Data type STRING
  Range N/A
  Unit N/A

Usage

Typical usage for this UDFB are:

Related Functions

MCFB_AKDFault

FB_AKDFltRpt

MC_ReadStatus (PLCopen Motion Engine)

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_AKDFault( Axis1(*lib:AXIS_REF*) );
FaultDrive1 := Inst_MCFB_AKDFault.FAULT;
FaultDrive1Number := Inst_MCFB_AKDFault.FaultNumber;

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

Ladder Diagram

Function Block Diagram

Go back to the top of the page [Top]