274 CANopen Master and Slave
WAGO-I/O-SYSTEM 750
750-8215 PFC200; G2; 4ETH CAN USB
Manual
Version 1.2.0, valid from FW Version 03.02.02(14)
•
DRIVERNAME:
The DRIVERNAME input parameter does not need to be indicated for the
controller.
•
DEVICENUMBER:
The DEVICENUMBER is device-
specific, and the variable “DeviceNumber”
must be adapted accordingly based on the information given in the section
“Appendix” > … > “BusDiag.lib.”
7.
Call the function block DiagGetBusState() for the slave diagnostics from the
library BusDiag.lib.
8.
Create an instance of the function block DiagGetState().
Shown in this example is “DiagnosticsNode.”
Figure 72: Function Block DiagGetState() in FUP
In this example, both function blocks are called during the program sequence. To
avoid prolonging the cycle times during the program sequence, set the input
“ENABLE” for DiagGetState() to “TRUE” only when performing diagnostic
operations.
10.4.1.2 Calling the Diagnostics Function Block
Call the function block as shown in the following figure.
Figure 73: Off-line View of Variable Window in CODESYS