Programming Instructions
R
 02/92
9.4
Function Block FB 158 
(PER:WSI)
9.4.1 Function Description
Function block FB 158 
(PER:WSI)
 can be used to execute the same functions as function block FB
157 except that function block FB 158 transfers the parameters indirectly using the so–called
working data block.
The working data block must beat least seven (eight) data words long for 
PLCS
 S5–115U and
S5–
 135U 
(PLCS
 
S5–
 150U and 
S5–
 
155U).
 The number of the first relevant data word (DW n) can
be determined with formal operands 
DBDW.
Function:
Control the 
1P
 241 digital position encoder module with indirect parameterization
9.4.2 Calling the Function Block
In the STL (statement list)
PLCS5–115U
PLCS5–135U
PLCS5–150U/S
PLCS5–155U
:JU 
FB158
NAME 
:PER:WSI
DBDW
 :
PAFE :
9 – 30
in the 
LAD/CSF
 (ladder 
diagram/controI
 system
flow chart)
FB 158
P
1P
 241 Equipment Manual
@ Siemens 
AG
 
1989,
 order No.: 6ES5 998-0KD21
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com