Examples
13.10 Sample program 4 "Interrupts"
FM 352 electronic cam controller
Operating Instructions, 05/2011, A5E01071724-03
161
User program (FB PROG)
The task is the same as in sample program 3 "One Module". However, the block was
expanded by adding evaluation of the diagnostics event.
In this sample, no special measures have been taken for restarting after eliminating the
error. We have left this up to you as part of the exercise.
Diagnostic interrupt (OB82)
Depending on the address of the module that triggered the interrupt (OB82_MDL_ADDR),
the error identifier in the corresponding instance DB of the user program is entered in the
diagnostic interrupt.