S5-115U Manual
Error Diagnostics
5.2.2
Program Trace with the Block Stack ("BSTACK") Function
(not possible on the PG 605U programmer)
During program scanning, jump operations enter the following information in the block stack:
•
the data block that was valid before program scanning exited a block;
•
the relative return address. This address indicates the location at which program scanning
continues after it returns from the block that was called.
•
the absolute return address. This address indicates the location in the program memory at
which program scanning continues after it returns from the block that was called.
You can call the information listed above using the "BSTACK" programmer function in the
"STOP" mode if the CPU has entered this mode as the result of a malfunction. The "BSTACK"
reports the status of the block stack at the time the interruption occurred.
Example:
Program scanning was interrupted at function block FB2. The CPU went into the
"STOP" mode with the error message "TRAF" (because of incorrect access. DB5 is
two words long. DB3 is ten words long).
You can use the "BSTACK" function to determine the path used to reach FB2 and to
determine which block has passed the wrong parameter. The "BSTACK" contains the
three return addresses (as marked in Figure 5-4).
06
OB 1
04 JU PB 2
02
00 JU PB 1
PB 1
xx
BE
00
PB 2
04
02 JU PB4
00 C DB5
xx
BE
18
BE
PB 3
16 JU FB 2
00 C DB3
PB 4
08 JC FB2
00
10
xx
BE
FB 2
00
2A L DW4
xx
BE
a a a a a a a a a a
a a a a a a a a a a
a a a a a a a a a a
a a a a a a a a a a
a a a a a a a a a a
a a a a a a a a a a
a a a a a a a a a a
Interruption
with the "TRAF"
error message
a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a
08 JC PB 3
xx
BE
10
a a a a a a a a a a a
a a a a a a a a a a a
a a a a a a a a a a a
a a a a a a a a a a a
a a a a a a a a a a a
a a a a a a a a a a a
Figure 5-4. Program Trace with the "BSTACK" Function
EWA 4NEB 811 6130-02b
5-15
Содержание SIMATIC S5-115U
Страница 6: ...EWA 4NEB 811 6130 02b ...
Страница 16: ...EWA 4NEB 811 6130 02b ...
Страница 18: ...EWA 4NEB 811 6130 02b ...
Страница 26: ......
Страница 62: ...EWA 4NEB 811 6130 02b ...
Страница 64: ...EWA 4NEB 811 6130 02b ...
Страница 67: ......
Страница 74: ......
Страница 79: ......
Страница 80: ......
Страница 81: ......
Страница 82: ......
Страница 83: ......
Страница 84: ......
Страница 97: ......
Страница 98: ......
Страница 99: ......
Страница 114: ...EWA 4NEB 811 6130 02b ...
Страница 280: ...EWA 4NEB 811 6130 02b ...
Страница 372: ...EWA 4NEB 811 6130 02b ...
Страница 432: ...EWA 4NEB 811 6130 02b ...
Страница 442: ......
Страница 528: ...EWA 4NEB 811 6130 02b ...
Страница 590: ......
Страница 591: ......
Страница 592: ......
Страница 593: ......
Страница 594: ......
Страница 600: ...EWA 4NEB 811 6130 02b ...
Страница 602: ...EWA 4NEB 811 6130 02b ...
Страница 604: ...EWA 4NEB 811 6130 02b ...
Страница 624: ...EWA 4NEB 811 6130 02b ...
Страница 632: ...EWA 4NEB 811 6130 02b ...
Страница 644: ...EWA 4NEB 811 6130 02b ...
Страница 646: ...EWA 4NEB 811 6130 02b ...
Страница 652: ...EWA 4NEB 811 6130 02b ...
Страница 654: ...EWA 4NEB 811 6130 02b ...
Страница 660: ...EWA 4NEB 811 6130 02b ...
Страница 662: ...EWA 4NEB 811 6130 02b ...
Страница 666: ...EWA 4NEB 811 6130 02b ...
Страница 668: ...EWA 4NEB 811 6130 02b ...
Страница 674: ...EWA 4NEB 811 6130 02b ...