Diagnostics
11-4
FM 351 Positioning Module
C79000-G7076-C351-02
11.4 Displaying Errors on an OP
Figure 11-2 shows the structure of a user program as illustrated in Figure 6-2 with
extra functions for reading out the diagnostic buffer for display on an OP. FC DIAG
stores the diagnostic buffer in a DB that can be displayed by the OP.
Initialization:
Call FC ABS_INIT
Set job data and job trigger bits
Set control signals
Read out the diagnostic buffer of the module:
Call FC ABS_DIAG
Call FC ABS_CTRL
Cyclic call
(e.g. OB1)
Single call
(e.g. OB100)
Are jobs still
unfinished?
Yes
No
<0 =0 >0
General
non-specified
reaction to:
data error,
programming error
Evaluate
data of read jobs and
return signals
Next job
Next cycle
If applic.
Error Jobs done
Jobs being
executed
Evaluate return value (RET_VAL) of FC ABS_CTRL
Figure 11-2 Program Structure with Diagnostic Display for an OP