Siemens Simatic S5 IP 240 Manual page 383

Counter/positioning/position decoder module
Hide thumbs Also See for Simatic S5 IP 240:
Table of Contents

Advertisement

Cyclic Program
General Remarks
The cyclic program is in OB 1.
At the beginning of the program, the inputs are mapped to memory bits
which are then used in the rest of the program. At the end of the program, the
control memory bits are transferred to the outputs and displayed.
Reading the Actual
The FC 168 function is called absolutely with function B#(1,0); this means
Value, End Value,
that it is always processed and reads the actual value, the end value, the posi-
Position Number
tion number and the status bits in every program cycle.
and Status Bits
Specifying a
The example is structured such that by activating the input I 1.0 (M 190.0),
Function
you can transfer any function to the module.
Proceed as follows:
1. Enter, for example with "Monitor/Modify variable", the appropriate data
2. Specify the desired function in the data word DBW 38.
3. Transfer the function by briefly activating the input I 1.0.
In the event of an error, the group error message Q 1.7 is set. If, for example,
values with an invalid range are transferred, the module returns a correspond-
ing error in the data word DBW 20 (MB 196 then shows B#16#01).
Synchronization
Before any positioning can occur, the recording of the actual value must be
synchronized. We use software synchronization.
Through transfer of the corresponding control bits
with the input I 1.0 (M 190.0), the actual value is set to the value of the last
transferred zero displacement.
The control bit SOSY should be reset so that synchronization is not repeated
the next time the control bits are transferred.
IP 240
EWA 4NEB 811 6120-02b
IP 240 Counter, Position Decoder and Positioning Module
in the data block (see below).
DB 168.DBX 72.5
DB 168.DBW 38
SOSY = TRUE,
FUNCTION = B#(20,0)
C-31

Advertisement

Table of Contents
loading

Table of Contents