Specifications
C-24
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 170 function is called absolutely with function 1; this means that it is
always processed and reads the actual value and the status bits in every pro-
gram cycle.
The actual value changes according to the sensor pulses. If the actual value
runs into a configured track, the reference bit REFx belonging to the track is
set. This can be monitored with “Monitor/Modify variable”.
DB 170.DBD 60 Actual value
DB 170.DBX 39.0 Sign of the actual value
DB 170.DBX 38.0 REF1,
DB 170.DBX 38.2 REF3.
The hysteresis is not taken into account when the reference bits are set.
You can define new limit values for the tracks that were configured at
start-up. Change the track limits in the data block
DB 170.DBD 68 Start value, track 1
DB 170.DBD 72 End value, track 1
DB 170.DBD 84 Start value, track 3
DB 170.DBD 88 End value, track 3
and transfer the values with the input I 2.0 (M 180.0). Now the reference bits
are controlled according to the new track limits.
To change the zero displacement, set the desired value in the data block
DB 170.DBD 132 Zero displacement
and transfer the zero displacement with the input I 2.1 (M 180.1). The zero
displacement is added to the current actual value (a negative value can also
be specified).
General Remarks
Reading the Actual
Value and Status
Bits
Setting the
Reference Bits
Writing New Track
Limits
Writing Zero
Displacement
IP 240 Counter, Position Decoder and Positioning Module