Specifications

C-31
IP 240
EWA 4NEB 811 6120-02b
Cyclic Program
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.
The FC 168 function is called absolutely with function B#(1,0); this means
that it is always processed and reads the actual value, the end value, the posi-
tion number and the status bits in every program cycle.
The example is structured such that by activating the input I 1.0 (M 190.0),
you can transfer any function to the module.
Proceed as follows:
1. Enter, for example with “Monitor/Modify variable”, the appropriate data
in the data block (see below).
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).
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
DB 168.DBX 72.5 SOSY = TRUE,
DB 168.DBW 38 FUNCTION = B#(20,0)
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.
General Remarks
Reading the Actual
Value, End Value,
Position Number
and Status Bits
Specifying a
Function
Synchronization
IP 240 Counter, Position Decoder and Positioning Module