130
CANopen Master in CoDeSys 2.3
12.3.5
Performing Device Diagnostics via DiagGetState()
If the bus diagnostics have revealed that an I/O module contains diagnostic
information, then conduct participant diagnostics on the corresponding slave. To
do this, proceed as follows:
1.
Call up the function block DiagGetState() by setting the input ENABLE to
"True."
2.
Specify the slave that provides the diagnostic information at the input
variable BUSMEMBERID. In this example it is the slave with the fieldbus
address 5.
Figure 86: Diagnostics call DiagGetState()
• DRIVERNAME:
The input parameter DRIVERNAME is specified through the instance data of
the function block DiagGetBusState.
• DEVICENUMBER:
The DEVICENUMBER for the I/O-IPC must always be 4.
5
WAGO-I/O-SYSTEM 750
I/O-IPC-C10E, CANopen Master