FB_S700FltRpt![This function or function block supports PLCopen motion PLCopen motion icon](../Resources/Images/Icon_PLCopen.png)
![This function or function block supports Pipe Network motion Pipe Network motion icon](../Resources/Images/Icon_PipeNetwork.png)
Description
Outputs S700"Servostar 700 drive"
See Servo Drive in Glossary drive fault Information.
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 S700 drive fault history variable (FLTHIST), and the fault number and message for the last 3 drive faults.
Each fault has two outputs: the fault number and a fault message. The fault number is the same number as reported on the display of the S700 drive. The fault message provides a short description of the fault. For example if the first fault is a feedback error with a F04 is displayed on the front of the drive, the output of this FB are:
- oFirstFaultNumber = 04
- oFirstFaultMessage = Feedback Error
The iResetfaultHistory Input resets the faults reported by the FB.
The oDriveNotUsed outputs a 1 (True) if the axis is configured to Simulated in the ProjectEthercat setup screen.
This function Block can be used with either the PipeNetwork or PLCopenA 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 block I/O:
Arguments
Input
EN |
Description |
ENABLES the Kollmorgen UDFB |
Data type |
BOOL |
|
Range |
[0 , 1] |
|
Unit |
N/A |
|
Default |
— |
iEtherCat_ID |
Description |
EtherCAT |
Data type |
DINT |
|
Range |
— |
|
Unit |
N/A |
|
Default |
— |
iRstFltHist |
Description |
When input is TRUE, clears all Faults saved to drives history |
Data type |
BOOL |
|
Range |
[0 , 1] |
|
Unit |
N/A |
|
Default |
— |
Output
oFAULT |
Description |
TRUE if selected drive currently has a Fault |
Data type |
BOOL |
|
Unit |
N/A |
oNumberFaults |
Description |
Number of faults saved in the Drive's history |
Data type |
DINT |
|
Range |
[0 , 10] |
|
Unit |
N/A |
oFirstFaultNumber |
Description |
Two digit S700 drive Fault identifier |
Data type |
DINT |
|
Range |
[00 , 32] |
|
Unit |
N/A |
oFirstFaultMessage |
Description |
Description of the Fault |
Data type |
STRING |
|
Unit |
N/A |
oSecondFaultNumber |
Description |
Two digit S700 drive Fault identifier |
Data type |
DINT |
|
Range |
[00 , 32] |
|
Unit |
N/A |
oSecondFaultMessage |
Description |
Description of the Fault |
Data type |
STRING |
|
Unit |
N/A |
oThirdFaultNumber |
Description |
Two digit S700 drive Fault identifier |
Data type |
DINT |
|
Range |
[00 , 32] |
|
Unit |
N/A |
oThirdFaultMessage |
Description |
Description of the Fault |
Data type |
STRING |
|
Unit |
N/A |
oDriveNotUsed |
Description |
Is this Drive Real (0) on Simulated (1) |
Data type |
BOOL |
|
Unit |
N/A |
Usage
Typical usage for this UDFB are:
- Provide drive fault information that the application program uses to determine next steps such as perform a machine controlled stop or perform an immediate disable of the servo drives.
- In the application program send output fault information from this UDFB to the HMI
"Human-machine interfaces " Also known as computer-human interfaces (CHI), and formerly known as man-machine interfaces, they are usually employed to communicate with PLCs and other computers, such as entering and monitoring temperatures or pressures for further automated control or emergency response for review by the machine operator.
Related Functions
MC_ReadStatus (PLCopen Motion Engine)
MLAxisStatus (Pipe Network Motion Engine)
Example
Structured Text
//Execute the Function Block A1_FaultReporting (1001, 0);
//Read Function A1_Fault:= A1_FaultReporting.oFault; A1_NumFault:= A1_FaultReporting.oNumberFaults; A1_FirstFaultNumber:= A1_FaultReporting.oFirstFaultNumber; A1_FirstFaultMessage:= A1_FaultReporting.oFirstFaultMessage; A1_SecondFaultNumber:= A1_FaultReporting.oSecondFaultNumber; A1_SecondFaultMessage:= A1_FaultReporting.oSecondFaultMessage; A1_ThirdFaultNumber:= A1_FaultReporting.oThirdFaultNumber; A1_ThirdFaultMessage:= A1_FaultReporting.oThirdFaultMessage; A1_Simulated:= A1_FaultReporting.oDriveNotUsed;
|
-
-
A1_FaultReporting is an instance of the FB_S700FltRpt function block.
Ladder Diagram
Function Block Diagram