Specifications

IP 240 Operation
Example for setting the coding switches
Three IP 240s are to be enabled for interrupt generation. One IP 240 is to be operated as master
module and the other two as slave 1 and slave 2. Slave 1 is assigned to PY 0.1 and slave 2 to PY 0.2.
Bits PY 0.3 to PY 0.6 are reserved by other modules. PY 0.7 is not used and must be masked on the
master module or else OB9 must not be programmed.
Fig. 5-4 shows the necessary settings of coding switches on the IP 240 modules.
Fig. 5-4. Settings of the Coding Switches (Example)
IP 240 as
master
21 43 65 87
on
off
S1
S1
21 43 65 87
on
off
21 43 65 87
on
off
S2
S2
87
S2 IP 240 as
slave 1
87
S1 IP 240 as
slave 2
87
PY 0. 1 32 4 7650
If slave 1 and slave 2 generate a process interrupt, the value 06
H
is stored in PY 0.
Additional evaluation of I/O byte 0 for interrupt generation over the IRx interrupt circuit
(S5-115U, S5-135U and S5-155U (155 mode))
I/O
byte 0 on the IP 240 can also be scanned when the interrupt is generated over interrupt
circuit IRx. Additonal evaluation of I/O byte 0 makes it possible to operate several IP 240s on a
single interrupt
circuit. When this option is used, however, I/O byte 0 may not be reserved by any
other module.
Required switch settings on the IP 240:
Use the coding switches on bank S1 to determine which bit in I/O byte 0 is to be reserved.
(Switch S1.1 corresponds to bit 0.0 etc.)
Close switches S2.7 and S2.8 (”on” position)
After reading I/O byte 0, only those bits reserved by the IPs must be evaluated.
EWA 4NEB 811 6120-02a
5-5