The status of the axis modules TB_xxx_CY is available as a structure variable at the _Result output. The TB_Result function module is used to break down and display this status. Thus not only the status of the axis module is available, but also the status of the drive in its entirety.
This function module is used for the diagnosis of the axis module and the drive. The _Result structure, which is available at the output of the axis module, is used as an interface.
The outputs that describe the status of the drive were generated in the axis module of TB_DriveState.
The outputs that describe the status of the axis module are generated in the "output" action. The error messages can be expanded or modified, depending on the application. The error code is structured as follows:
dw_Result:
Bits 0 to 15: error number of the faulty function module
Bits 16 to 23: number of the module/function module
Thus it is possible to transmit the following fault message:
In "Automatic" mode (bits 24 to 32), the "third" function module (bits 16 to 23) has the error number "-110" (bits 0 to 15).
Mode No. |
Description |
1 |
Enable – enabling of the drive/drive fault |
2 |
MC-State Errorstop |
3 |
ErrorControl – unknown operating mode |
4 |
Manual Mode |
5 |
Homing Mode |
6 |
Auto Initialization |
7 |
Automatic Mode |
8 |
Reserved |
9 |
Reserved |
10 |
Reserved |
Recommended task: |
Cyclic |
Libraries used: |
TECH_TYPES_30bd05 or higher |
Additional data type definitions: |
... |
Use of Static-Variables: |
... |
InOut Parameter
Input Parameter
Marking: |
Data type: |
Default: |
Data range: |
Description: |
_Result |
DriveStateType |
... |
... |
Status of an axis module. |
Output Parameter
Marking: |
Data type: |
Description: |
x_DriveRdy |
BOOL |
TRUE: Drive is ready for switch-on. (for more detailed information, see TB_DriveState function module). |
x_DriveComRdy |
BOOL |
TRUE: Communication to the drive is ready. (for more detailed information, see TB_DriveState function module). |
w_Statusword |
BOOL |
Status word of the drive (P301). (for more detailed information, see TB_DriveState function module). |
i_Status |
INT |
Drive status corresponding to the status machine of the drive and displayed at the drive display. (for more detailed information, see TB_DriveState function module). |
x_Error |
BOOL |
TRUE: Drive fault. |
x_Warning |
BOOL |
TRUE: Drive warning. |
x_LinkVolt |
BOOL |
TRUE: System voltage/Intermediate circuit voltage is applied. |
x_HW_PulsEnable |
BOOL |
TRUE: Pulse enable input at drive is closed. |
x_HW_Quickstop |
BOOL |
TRUE: Quick stop input at drive is closed. |
x_HW_SafetyRelais |
BOOL |
TRUE: Undervoltage in safety relay. |
x_ComError |
BOOL |
TRUE: Demand data communication error of the internally used BM_ReadPar function module. |
i_MC_Mode |
INT |
Mode number, see table under General description. |
s_MC_ModeTxt |
STRING |
Mode number text. |
i_ModuleId |
INT |
Module number, e.g. third function module in "Automatic" mode. |
i_MC_MessageId |
INT |
Error number/Message number of the faulty function module. |
i_Status |
Description: |
0 |
Not ready for switch-on |
1 |
Switch-on block |
2 |
Ready for switch-on. |
3 |
Switched on |
4 |
Operation enabled |
15/F |
Fault. |