R
02/92
Programming Instructions
9.4.7 Use of the Function Block
The module must be parameterized with function block FB 156 before function block FB 158 can
be called.
The parameter transfer is performed via the working data block. The function to be executed by
function block FB 158 is selected by entering the appropriate command code in format KS in data
word DW n.
Before a new command is entered in data word DW n in the working data block, a check must be
performed to determine whether the contents have been deleted by function block FB 158 (DW n
KH = 0000). The procedure is shown in the following
pictogram.
Contents of data word DW n in working data block equal zero?
Yes
I
No
I
Write new command in DW n
—
Call function block FB 158
Calling function block FB 158 with KH = 0000 in data word DW n of the working data block causes
the block to be exited without triggering a function (idling).
1P
241 Equipment Manual
@
.Siemens
AG
1989, Order No.: 6ES5 998-0KD21
9 – 37
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com