WAGO-I/O-SYSTEM 750
PROFIBUS Master in CoDeSys 2.3 157
758-874/000-131 WAGO-I/O-IPC-C6
Manual
Version 1.0.0
8.
Create an instance of the DiagGetState() function block. In this example it is
"DiagnosticsNode."
Figure 84: Function block DiagGetState() in FBD
In this example, both function blocks are called up during the program sequence.
In order to not prolong the cycle times during the program sequence, do not set
the input "ENABLE" of DiagGetState() to "TRUE" until you have conducted a
diagnostic.
12.5.4
Calling the Diagnostic Block
Call the function block as shown in the following image.
Figure 85: Offline view of the variable window in CoDeSys