Samples
12-15
FM 351 Positioning Module
C79000-G7076-C351-02
Error Evaluation:
If an error occurs during execution, the sequence of steps is stopped. The value –1
is entered as the step number. You will find the latest entry of the diagnostic buffer
in USER_VAT. You can find out the cause of the error using the error class and
error number (appendix C.5, page C-15).
Try to create errors that are entered in the “USER_DB”.ERR bit as group errors by
the central error evaluation.
• In USER_VAT, activate the prepared control value for incremental dimension
number 1 (“USER_DB”.TRG_INC_1), that is higher than the software limit
switch.
The sequence of steps is stopped, –1 is displayed as the step number. Check
the errors in the error evaluation dialog or in the diagnostic data in USER_VAT.
• In USER_VAT, activate further control values for incremental dimension number
1 (“USER_DB”.TRG_INC_1) one after the other, incremental dimension number
255 (“USER_DB”.TRG_INC_2), or the switchover difference
(“USER_DB”.CHGDIF) and switch-off difference (“USER_DB”.CUTDIF). Check
the error in the same way as for incremental dimension 1.
• Produce a diagnostic interrupt by disconnecting the power supply for the
module or by removing the front connector. The diagnostic error
“USER_DB”.ERR_MOD and group error “USER_DB”.ERR become 1 and the
step number becomes –1.
User Program (FB PROG):
The task is the same as in Sample Program 4 “OneChannel”.
In this sample, no special measures have been taken for restarting after
eliminating the error.
Diagnostic interrupt (OB82)
Depending on the address of the module that triggered the interrupt
(OB82_MDL_ADDR), the error ID in the corresponding instance DB (USER_DB) of
the user program is entered in the diagnostic interrupt. There is a reaction in the
cyclic user program.