Вы находитесь на странице: 1из 5

R-J3 CONTROLLER INSTALLATION

Installing the R-J3 A-B RIO Interface on the R-J3 controller involves three
major steps:

• 1. Setting the R-J3 A-B RIO Interface DIP switches.

Because you cannot access the DIP switches when the board is installed in the controller, you
must set them before you install the board in the controller. You can use system variables to see
the DIP switch positions when the board is installed.

• 2. Plugging the R-J3 A-B RIO Interface into the R-J3 controller.
• 3. Wiring the serial communication line to the R-J3 A-B RIO Interface.

Back to top

2.4.1
Setting DIP Switches

Before you plug in the R-J3 A-B RIO Interface, you must set the Dual In-line Package (DIP)
switches on the interface board. These switch settings must not be modified while the controller is
turned on. The DIP switches are accessible only when the PCB is removed from the controller.

The way you set the DIP switches depends on how you want your system to function. There are
two banks of DIP switches: Switch 1 and Switch 0. The switch positions are oriented as shown in
Figure 2-2 , with Switch 0 to the left of Switch 1 as you look at the PCB with the 6-position
terminal block to the left.

As it is difficult to determine the DIP Switch positions when the R-J3 mini-slot PCB is installed, the
settings for the switch positions have been stored in two system variables for easy access:

• • The DIP switches in SW0 are decimal encoded and stored in the system variable
$AB_INT_CFG.$DIP_SW_0.
• • The DIP switches in SW1 are decimal encoded and stored in the system variable
$AB_INT_CFG.$DIP_SW_1.

Refer to Appendix C for more detailed information on these system variables.

Figure 2-2 . DIP Switches


(Click here for an image you can zoom (PDF format).)

The eight switches in Switch 1 are described in Table 2-2 , Table 2-3 , and Table 2-4 . The eight
switches in Switch 0 are described in Table 2-5 , Table 2-6 , Table 2-7 , and Table 2-8 . Keep in
mind when you read the descriptions of these switch settings that the PLC sees the R-J3 A-B RIO
Interface as another remote I/O rack. (See Chapter 1.)

Consult the appropriate Allen-Bradley documentation for information on the proper DIP switch
settings for your particular PLC and I/O
scanner.

Table 2-2 . DIP Switch Settings, Switch 1


Position Function State Description
Module operates at 57.6 kBd, 115.2 kBd, and
230.4 kBd at distances of 10,000 ft, 5,000 ft, and
Baud rate
8-7 2,500 feet respectively. The settings of each
(BAUD SEL)
switch for various baud rates are summarized in
Table 2-3 .
OPEN Block Transfer Mode is not
(Off) supported.
Discrete/Block I/O data is transferred in discrete
6 Transfer mode only.
(DISC/BLK) CLOSED* Discrete input data to the PLC from
(On) the R-J3 controller for this slot will be
reported by the R-J3 A-B RIO
Interface.
The PLC sees the R-J3 A-B RIO
OPEN Interface as having the highest
(Off) starting module group address of this
Last rack rack.
5
(LAST RACK) The PLC does not see the R-J3 A-B
CLOSED RIO Interface as having the highest
(On) starting module group address of this
rack.
When serial communication with the
OPEN
PLC is broken, the inputs from the
(Off)
Last state (LAST PLC remain in their last state.
4
STAT) When serial communication with the
CLOSED
PLC is broken, the inputs from the
(On)
PLC are zeroed out.
When serial communication with the
PLC is reestablished after being
OPEN
broken, the R-J3 A-B RIO Interface
(Off)
will automatically begin
communicating with the PLC.
Restart When serial communication with the
3
(RESTART) PLC is reestablished after being
broken, the R-J3 A-B RIO Interface
CLOSED
will not automatically begin
(On)
communicating. Power to the robot
controller will need to be cycled to
reestablish communication.
This is the size of the remote I/O rack as it
Rack size appears to the I/O scanner and the PLC. The
2-1
(RACK SIZE) settings of each switch for various rack sizes are
summarized in Table 2-4 .

* Recommended setting of switch

See Figure 2-2 for a description of switch settings. Refer to the appropriate Allen-Bradley
documentation to determine valid rack addresses for the particular PLC model used.
Table 2-3 . Baud Rate Setting, Switch 1
Position 8 Position 7 Baud Rate Distance
CLOSED (ON) CLOSED (ON) 57.6 kBd 10,000 ft
CLOSED (ON) OPEN (OFF) 115.2 kBd 5,000 ft
OPEN (OFF) CLOSED (ON) 230.4 kBd 2,500 ft
OPEN (OFF) OPEN (OFF) 230.4 kBd 2,500 ft

Table 2-4 . Rack Size Switches, Switch 1


Position 2 Position 1 No. Module Groups Rack Size
CLOSED (ON) CLOSED (ON) 2 1/4 rack
CLOSED (ON) OPEN (OFF) 4 1/2 rack
OPEN (OFF) CLOSED (ON) 6 3/4 rack
OPEN (OFF) OPEN (OFF) 8 FULL rack

Table 2-5 . DIP Switch Settings, Switch 0


Position Description
Rack select. Used to define the rack address at which the PLC will see the interface.
8-3
Settings are summarized in Table 2-7 .
Starting module group number, used to define the address of the first module group of
2-1 the R-J3 A-B RIO Interface. The settings of each switch for various starting module
group numbers are summarized in Table 2-6 .

See Table 2-6 and Table 2-7 for a description of switch settings. Refer to the appropriate Allen-
Bradley documentation to determine valid rack addresses for the particular PLC model used.

Table 2-6 . Starting Module Group Number Switches, Switch 0


Position 2 Position 1 Starting Module Group Number
CLOSED (ON) CLOSED (ON) 0
CLOSED (ON) OPEN (OFF) 2
OPEN (OFF) CLOSED (ON) 4
OPEN (OFF) OPEN (OFF) 6

Table 2-7 . Rack Select Switch Settings, Switch 0


Switch
Rack Number
8 7 6 5 4 3
00 CLOSED CLOSED CLOSED CLOSED CLOSED CLOSED
01 CLOSED CLOSED CLOSED CLOSED CLOSED OPEN
02 CLOSED CLOSED CLOSED CLOSED OPEN CLOSED
03 CLOSED CLOSED CLOSED CLOSED OPEN OPEN
04 CLOSED CLOSED CLOSED OPEN CLOSED CLOSED
05 CLOSED CLOSED CLOSED OPEN CLOSED OPEN
06 CLOSED CLOSED CLOSED OPEN OPEN CLOSED
07 CLOSED CLOSED CLOSED OPEN OPEN OPEN
10 CLOSED CLOSED OPEN CLOSED CLOSED CLOSED
11 CLOSED CLOSED OPEN CLOSED CLOSED OPEN
12 CLOSED CLOSED OPEN CLOSED OPEN CLOSED
13 CLOSED CLOSED OPEN CLOSED OPEN OPEN
14 CLOSED CLOSED OPEN OPEN CLOSED CLOSED
15 CLOSED CLOSED OPEN OPEN CLOSED OPEN
16 CLOSED CLOSED OPEN OPEN OPEN CLOSED
17 CLOSED CLOSED OPEN OPEN OPEN OPEN
20 CLOSED OPEN CLOSED CLOSED CLOSED CLOSED
21 CLOSED OPEN CLOSED CLOSED CLOSED OPEN
22 CLOSED OPEN CLOSED CLOSED OPEN CLOSED
23 CLOSED OPEN CLOSED CLOSED OPEN OPEN
24 CLOSED OPEN CLOSED OPEN CLOSED CLOSED
25 CLOSED OPEN CLOSED OPEN CLOSED OPEN
26 CLOSED OPEN CLOSED OPEN OPEN CLOSED
27 CLOSED OPEN CLOSED OPEN OPEN OPEN
30 CLOSED OPEN OPEN CLOSED CLOSED CLOSED
31 CLOSED OPEN OPEN CLOSED CLOSED OPEN
32 CLOSED OPEN OPEN CLOSED OPEN CLOSED
33 CLOSED OPEN OPEN CLOSED OPEN OPEN
34 CLOSED OPEN OPEN OPEN CLOSED CLOSED
35 CLOSED OPEN OPEN OPEN CLOSED OPEN
36 CLOSED OPEN OPEN OPEN OPEN CLOSED
37 CLOSED OPEN OPEN OPEN OPEN OPEN

CLOSED = ON, OPEN = OFF.


NOTE: Combinations not listed are invalid.

See Figure 2-2 for a description of switch settings. Refer to the appropriate Allen-Bradley
documentation to determine valid rack addresses for the particular PLC model used.

Table 2-8 lists the valid and invalid rack size and starting module group number combinations you
can have in your system.

Table 2-8 . Rack Size and Starting Module Group Number Combinations
Starting Module Group Number
Rack Size
0 2 4 6
1/4 valid valid valid valid
1/2 valid valid valid invalid
3/4 valid valid invalid invalid
FULL valid invalid invalid invalid