DeviceDiagnosisInfo (FB)¶
FUNCTION_BLOCK DeviceDiagnosisInfo
This function block is used by the application composer to create the device diagnosis visualization. Each instances of this function block get initialized by code the composer creates, which connects it to an existing device PLC. Each instance then offers functionalities to get the state, type, etc. of an existing device, or to start, stop, etc. it.
Note: Usually this function block does not need to be used by any IEC programmer.
- InOut:
Scope
Name
Type
Initial
Comment
Output
uiNameUINTThe index of the name of the device diagnosed by this function block as entry of a text list.
pNamePOINTER TO STRING
A pointer to a string containing the name of the device diagnosed by this function block
dwDeviceErrorCodeDWORDThe current device error code if available
stDeviceDiagnosisSTRING‘’
The current device diagnosis text if available
stDeviceSpecificStateSTRING‘’
The current device diagnosis state if available
stDeviceSpecificErrorSTRING‘’
The current device diagnosis error if available
dwBusErrorCodeDWORDThe current bus error of a bus-device if available
stBusDiagnosisSTRING‘’
The current bus diagnosis text of a bus-device if available
dwErrorCodeDWORDThe common error code of this function block if available
Properties:
Methods:
Structure: