Addressing
S5-115F Manual
Setting addresses
Use the left-hand switch ( in Figure 5-3) on the addressing panel of the IM 306 to indicate what
type of module
*
you have plugged into the slot. Proceed as follows:
Set the switch to OFF for a 32-bit digital module.
Set the switch to ON for a 16-bit digital module or an 8-channel analog module (16 bytes).
Use the seven address switches ( in Figure 5-3) on the addressing panel of the IM 306 to indicate
the least significant address (the address for channel ”0”) for the module in question. This setting
establishes the addresses of the other channels in ascending order.
When setting starting addresses, note the following:
•
32-bit digital modules can only have starting addresses whose byte number is divisible by 4
(e.g. 0, 4, 8 etc.).
•
16-bit digital modules can only have starting addresses whose byte number is divisible by 2
(e.g. 0, 2, 4 etc.).
•
16-bit addressing is used for 8-bit digital modules. The even-numbered byte is used and the
remaining eight bits are unused.
•
The interrupt input module also has eight bits. The following assignment applies:
- Read even byte (e.g. byte 0): Status byte
- Read odd byte (e.g. byte 1): Interrupt register byte
- Write even byte (e.g. byte 0): Interrupt enable byte (”1” =enable)
- Write odd byte (e.g. byte 1): Interrupt edge byte (”1” = falling)
•
16-channel analog modules can only have the starting addresses 128, 144, 160 to 240.
•
The four-channel 463 analog module is addressed without gaps using a switch on the front
cover of the module.
Example
Plug a 16-bit digital input module into slot 2.
Assign it starting address 46.0 by performing the following steps:
•
Check to see if the byte number of the starting address can be divided by 2 since you are
dealing with a 16-bit digital module.
46 : 2 = 23
Remainder 0
•
Set the number of input bits (switch in ON position).
•
Set the address switches on the DIP switch for slot number 2 as shown in Figure 5-2.
Slot No.
Address switch
16
32
ON
2
Switch for setting the number of input bits
1
2
4
6
7
1
5
3
Figure 5-3. Setting a DIP Switch
* The digital input/output modules 482-7LA 11, 482-7LF11, 482-7LF21 and 482-7LF31 are handled like 16-channel
modules.
5-4
EWA 4NEB 811 6148-02