Rockwell-automation 1775-KA PLC-3 Communication Adapter Module User Ma Uživatelský manuál Strana 93

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 239
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 92
Error Reporting
Chapter 7
74
Note that an ON_ERROR or an IF command may contain an embedded
command to execute another procedure. In these cases, the embedded
execute command is treated just like a nesting level. Figure 7.2 illustrates
this point for an ON_ERROR command. In this figure, an addressing
error in line 10 of procedure MAIN causes activation of the ON_ERROR
command, which calls for execution of procedure SAM. But SAM also
contains an error. The error in SAM is the last one detected, so it is the
one finally reported in the error block. Since procedure SAM is called by
the ON_ERROR command in procedure MAIN, the nesting for SAM is 2
levels deep.
Figure 7.2
Examples
of ON_ERROR Nesting
MAIN
SAM
Line Number Procedure Word
1
8
Error Block
160
2
1
1
8
0
10031–I
10
ON_ERROR @SAM
7.2 = 1000
0
1
2
3
4
5
Contents (decimal)
$25:0 = N
Zobrazit stránku 92
1 2 ... 88 89 90 91 92 93 94 95 96 97 98 ... 238 239

Komentáře k této Příručce

Žádné komentáře