Programming Instructions
R
02/92
Alarm processing may only be performed at block boundaries (exception: PLCS S5–155U and
S5–115U).
Example:
Program in 062:
Program in 061:
– Save scratchpad flags
–Save DW n, DL
n+l,
DR
n+6
and DW
n+7
IA
DB 158
:L
KS KB
:T
DW n
:L
KY 0,0
:T DW n+7
: JU FB 158
NAME :
PER:WSI
DBDW
:
KY
158,n
PAFE
:
:L
DW n+6
:T FY 191
:0
F 190.0
:0
F
191.0
:
JC
FB xx
:0
F
190.1
:0
F
191.1
:
JC
FB yy
IA
DB 158
:L
KS xx
:T
DW n
:L
KY
0,0
:T DW
n+7
:
JU
FB 158
NAME :
PER:WSI
DBDW
:
KY
158,n
PAFE
:
:L
DW n+6
:T FY 190
:U
F 190.0
:
JC
FB xx
:U
F 190.1
: JC FB yy
:L
KBO
:T
FY 190
:T FY 191
- Load DW n, DL
n+l,
DR
n+6
and DW
n+7
- Load scratchpad flags
: BE
FB xx = Your own alarm program for channel 1
FB yy = Your own alarm program for channel 2
After the control bits have been evaluated in the alarm–controlled program, they must be reset or
the alarm programs
(FBxx
and FByy) might be processed again during the cyclic program.
9 – 44
1P
241 Equipment Manual
@
Siemens
AG
1989, Order No.: 6ES5 998-0KD21
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com