Diagnostics
11-7
FM 351 Positioning Module
C79000-G7076-C351-02
Figure 11-4 shows a possible program structure with which you can evaluate all
errors based on the entries in the diagnostic DB. This allows you to react in the
program when one or more new errors are entered in the diagnostic buffer of the
module. Several possible programmed reactions are shown in detail in Figures
11-5 to 11-8.
< 0 = 0 > 0
Reaction to possible causes:
Causes:
DB not loaded
DB too short
Incorrect DB number
Gen. programming error
Evaluate current entries in the diagnostic DB
see Figures 11–5 to 11–8
Call FC ABS_DIAG
Diagnostic buffer
modified
(DIAG=1 or
diagnostic memory bit=1) ?
Set diagnostic memory bit to 1
Yes
Set diagnostic memory bit to 0
Call FC ABS_CTRL
No
Next cycle
Evaluate return value (RET_VAL) of FC ABS_DIAG
Figure 11-4 User Program with Complete Evaluation using the Diagnostic DB