Specifications
Positioning IP 240
Table 10-19. Contents of the DB and the Transfer Buffer for Transferring the Control Bits
Bit
76543210
Description
Data byte
Data
block
Offset
in transfer
buffer
Control bits
2AMSK ZYSY SOSY HASY DA2S DA1S HAND FREIDL 36
30 . . . 0 0 . . . 0DR 36
Transfer of the control bits
with control FB 168 in direct data interchange
Yo must enter the new control bits in the
data block in DL 36.
Initialize the FB 168 as follows to transfer the
control bits:
: JU FB 168
NAME : STEU.POS
:
FKT : 20,0
Initialize the FB as follows to disable the IP
outputs with FREI=0
: JU FB 168
NAME : STEU.POS
:
FKT : 20,1
You must specify the following job numbers
to transfer the control bits:
• For channel 1: 1A
H
• For channel 2: 2A
H
If you also want to transfer the byte with
offset 3, you first initialize it to ”0”.
10.15.2 Controlling the PLC Outputs
Depending on how the IP 240 was configured, the auxiliary digital outputs are required to change
the traversing speed or to control the direction.
The IP 240 provides the following status bits to control these outputs:
• Direction bit RICH:
RICH=1 Traverse in negative direction (descending actual value).
RICH=0 Traverse in positive direction (ascending actual value).
• Range bits BEE1, BEE2 and BEE3:
BEEn=1 The actual value is outside the corresponding range.
BEEn=0 The actual value is within the corresponding range.
To evaluate the RICH and BEE1 to 3 bits, transfer the position number with FREI=0, wait for the
status bits, and then enable the IP outputs with FREI=1.
• Error bit ZBEV:
ZBEV=1 The target range of the position (range BEE3) was exited without selection of a
new position
• Reversal bit RIUM:
RIUM=1 The BEE2 range was exited. This bit can be used to reverse the direction of travel
when a position was ”overrun”.
When you configure the IP 240, you can allocate bits BEEn=0, ZBEV=1 and RIUM=1 to interrupt
bits to trigger an interrupt, thus making it possible to control the auxiliary digital outputs via the
interrupt service routine. Each interrupt is generated only once for a given position.
10-56
EWA 4NEB 811 6120-02a