Specifications

IP 240 Positioning
Note
The IP 240 accepts the specified position number only when control bit HAND is not
set. In addition,
status bit SYNC must be set and the specified channel's outputs disabled or
SOSY=1 or ZYSY=1 (if ZYSY=1 for the first time) must be transferred together
with the position number.
You can set and transfer the following control bits together with the position number:
AMSK to mask all interrupts,
ZYSY or SOSY to select the synchronization mode,
FREI to enable the outputs.
If you do not transfer the control bits in a direct data interchange with the IP 240, the old control
bits are reevaluated.
Sequence for selecting a position between 1 and 254
1) Check to make sure that the IP outputs are disabled
A position number can be transferred only when the IP outputs are disabled.
To check the state of the outputs, you must read the status area and evaluate bits DA1 and
DA2 ( Section 10.16 ”Reading and Evaluating the IP Status Information”).
2) Disable the outputs
You can disable the IP outputs by initializing the FREI bit to ”0”.
AMSK ZYSY SOSY HASY DA2S DA1S HAND FREI
0/10000000
3) Transfer the new position number and the control bits
After transferring the new position number with FREI=0, you can determine the relation of
the current actual value to the new position value by reading the status area and evaluating
status bits BEE1 to 3 and RICH.
4) a) Enable IP outputs with HAND=0
(IP outputs under module firmware control)
AMSK ZYSY SOSY HASY DA2S DA1S HAND FREI
0/10000001
b) Enable outputs with HAND=1
(IP outputs controlled by DA1S and DA2S via S5 CPU)
x) depending on the DAV parameter
AMSK ZYSY SOSY HASY DA2S DA1S HAND FREI
0/1 0 0 0
xx11
EWA 4NEB 811 6120-02a
10-51