R 02/92
Programming Instructions
Example:
Program in062
– Save scratchpad flags
:JU
FB157
NAME
:PER:W#T
SPDB
:
BEF
:
KSKB
ABIT
:
KYo.o
w:
!%
:
FY 191
PAFE
:
;0 F 190.0
:0 F 191.0
:JC
FB
xx
:0 F 190.1
:0 F 191.1
:JC
FByy
Program in 061
NAME
SPDB
BEF
ABIT
w
!%
PAFE
:JU
FB157
:PER:WST
KY
KSxx
KYo.o
FY 190
;A
F 190.0
:JC
FBxx
:A
F 190.1
:JC
FB
yy
KBO
FY 190
FY 191
- Load scratchpad flags
:BE
FB xx – Customer–specific interrupt program for channel 1
FB yy – Customer–specific interrupt program for channel 2
After the control bits in the interrupt–controlled program have been evaluated, they must be reset,
as otherwise the interrupt programs
(FBxx
and
FByy)
could be processed again in the cyclic pro-
gram.
Saving and loading scratchpad flags
Intheblocksfortime–controlled processing, saving and loading scratchpad flags (FY200to FY
255) and the assigned system data is absolutely
necessaty
when flags from the mentioned area
are used in these blocks.
Saving and loading must take place in a different data area from the one for process interrupts.
The same applies to an automatic or manual restart. This is not required forS5–115U or in the
event of faulty 06s.
1P
241 Equipment Manual
@
SiemenS
AG 1989, Order No.: 6ES5
998-0KD21
9 – 29
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com