Siemens SIMATIC S5 Equipment Manual page 165

Digital position decoder ip 241 with fb 156/1 57 158
Hide thumbs Also See for SIMATIC S5:
Table of Contents

Advertisement

Programming Instructions
Alarm processing may only be performed at block boundaries (exception: PLCS S5–155U and
S5–115U).
Example:
Program in 062:
– Save scratchpad flags
–Save DW n, DL n+l, DR n+6
and DW n+7
DB 158
KS KB
: T
DW n
0,0
KY
: T
DW n+7
: JU FB 158
NAME : PER:WSI
KY 158,n
DW n+6
: T
FY 191
F
190.0
191.0
F
:
190.1
F
191.1
F
: 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
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Program in 061:
DB 158
KS xx
: T
DW n
: T
DW n+7
: JU FB 158
NAME : PER:WSI
KY 158,n
DW n+6
: T
FY 190
F
190.0
: JC FB xx
F 190.1
: JC FB yy

Advertisement

Table of Contents
loading

Table of Contents