FB_AKDFltRpt

PLCopen motion icon Pipe Network 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.

iEtherCat_ID

INT

No range

N/A

No default

EtherCATClosed ***EtherCAT is an open, high-performance Ethernet-based fieldbus system. The development goal of EtherCAT was to apply Ethernet to automation applications which require short data update times (also called cycle times) with low communication jitter (for synchronization purposes) and low hardware costs address of AKD Drive.
Example: 1001 or AKD_1.

iRstFltHist

BOOL

0, 1

N/A

No default

When input is TRUE, clears all Faults saved to drives history.

Outputs

Output

Data Type

Range

Unit

Description

oFAULT

BOOL

 

N/A

TRUE if selected drive currently has a Fault.

oNumberFaults

DINT

0, 10

N/A

Number of faults saved in the drive's history.

oFirstFaultNumber

DINT

100, 999

N/A

Three-digit fault identifier.

oFirstFaultMessage

STRING

 

N/A

Description of the fault.

oSecondFaultNumber

DINT

100, 999

N/A

Three-digit fault identifier.

oSecondFaultMessage

STRING

 

N/A

Description of the fault.

oThirdFaultNumber

DINT

100, 999

N/A

Three-digit fault identifier.

oThirdFaultMessage

STRING

 

N/A

Description of the fault.

oDriveNotUsed

BOOL

 

N/A

Is this drive:

  • 0 (zero) = Real.
  • 1 = Simulated.

Remarks


  • This function block lists the earliest occurring fault first.
    This may not be the same fault as is being reported on an AKD's display, which is based on priority.
    The MCFB_AKDFault function block may be preferred as it reports the same error as displayed on the drive.

  • The oFAULT output turns TRUE when the selected drive goes into a fault state.
  • This function block outputs the:
    • Total number of faults in the drive fault history variable. (Pre-Defined Error Field Object 1003h)
    • Fault number and message for the last three drive faults.
  • Each fault has two outputs: the fault number and a fault message.
    • The fault number is the same number reported on the display of the drive.
    • The fault message provides a short description of the fault.
    • Example: If the first fault is a feedback error with a F401 is shown on the front of the drive, the output of this FB are:
      • oFirstFaultNumber = 401.
      • oFirstFaultMessage = Failed To Set Feedback Type.
      • iResetfaultHistory resets the faults reported by the FB.
      • oDriveNotUsed outputs 1 (True) if the axis is configured to Simulated in the ProjectEtherCAT setup screen.
  • This function block can be used with either the PLCopenClosed A vendor -and product- independent worldwide association active in Industrial Control and aiming at standardizing PLC file formats based on XML or Pipe Network Motion engines.

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

UDFB AKDFltRpt

Figure 6-82: AKDFltRpt

Usage

FBD Language Example

UDFB AKDFltRpt: FBD example

FFLD Language Example

UDFB AKDFltRpt: LD example

IL Language Example

Not available.

ST Language Example

//Execute 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

1_AKDFltRpt (1001, resetFaultHistST);



//Read Function Block Outputs

AKD1_Fault:= A1_AKDFltRpt.oFault;

AKD1_NumFault:= A1_AKDFltRpt.oNumberFaults;

AKD1_FirstFaultNumber:= A1_AKDFltRpt.oFirstFaultNumber;

AKD1_FirstFaultMessage:= A1_AKDFltRpt.oFirstFaultMessage;

AKD1_SecondFaultNumber:= A1_AKDFltRpt.oSecondFaultNumber;

AKD1_SecondFaultMessage:= A1_AKDFltRpt.oSecondFaultMessage;

AKD1_ThirdFaultNumber:= A1_AKDFltRpt.oThirdFaultNumber;

AKD1_ThirdFaultMessage:= A1_AKDFltRpt.oThirdFaultMessage;

;

  • A1_FaultReporting is an instance of the FB_S700FltRpt function block.

See Also