Technical training seminars are available through Rice Lake Weighing Systems.
Course descriptions and dates can be viewed at www.ricelake.com/training
or obtained by calling 715-234-9171 and asking for the training department.
About This Manual ................................................................................................................................... 1
This manual provides information needed to install
and use the Rice Lake Weighing Systems Remote I/O
Interface card. The Remote I/O Interface allows
®
720i
, 820i®, and 920i® indicators to communicate
®
with PLC
Allen-Bradley
720i, 820i, or 920i Installation Manual for additional
and SLC™ controllers using the
®
Remote I/O network.1 See the 520,
520,
installation information and detailed descriptions of
indicator functions.
The Remote I/O Interface card is installed inside the
indicator enc
losure. Installation in NEMA 4X
stainless steel enclosures permits use in washdown
environments.
Some procedures described in this manual
require work inside the indicator enclosure.
These procedures
qualified service personnel only.
are to be performed by
Authorized distributors and their employees
can view or download this manual from the
Lake Weighing Systems distributor site
1.Allen-Bradley®, PLC®, and SLC™ are trademarks of
Allen-Bradley Company, Inc., a Rockwell International
company.
Rice
www.ricelake.com.
at
1.0Introduction
The Remote I/O Interface returns weight and status information from the 520, 720i, 820i, or 920i indicator to the
PLC controller. The Remote I/O Interface also provides the PLC programmer with limited control of indicator
functions. Indicator configuration and calibration cannot be performed through the Remote I/O Interface.
The Remote I/O Interface behaves as a node adapter device to the mas
The PLC controller and Remote I/O Interface communicate using a quarter rack of data slots (4 slots with 8 bits
of input, 8 bits of output per slot). Each pair of slots corresponds to a “module group”, one input and one output
word. The Remote I/O Interface contains two module groups and therefore communicates two words of data.
The PLC controller sends commands
to the indicator
through the Remote I/O Interface by writing the commands
to the output image table, and reads returned weight and status data from the input image table. These actions are
referred to as discrete transfers. See Section 3.0 for information about using discrete transfer commands.
Block transfers are accomplished by sending a block write command
Separate data files are set up for block commands. The length of these files depends on the length of the data
being read or written. See Section 4.0 for information about using block transfer commands.
ter PLC, appearing as a quarter rack of I/O.
followed by a block read command.
Introduction1
2.0Installation
W arning
SW2
SW1
150Ω
82Ω
JMP4
1
1
P1
TP1
TP3
TP2
J2
1
Allen-Bradley Network
connections
J1
CPU board connection
1, 4 = BLUE
2, 5 = SHIELD
3, 6 = CLEAR
STATUS LED
123 4567 8123 4567 8
This section describes the procedures used to install
the Remote I/O interface card into the
920i indicators; connect communications cables;
and
520, 720i, 820i,
select the termination resistance; and set the
configuration DIP switches for the Remote I/O
interface.
2.1Installing the Remote I/O Interface
Use the following procedure to install the Remote I/O
Interface card into
1. Disconnect indicator from power source.
2. Open indicator enclosure. For indicator
models with backplates, place indicator
face-down on an antistatic work mat and
remove screws that hold the backplate to the
enclosure body.
3. Carefully align the option card connector with
the option card slot on the indicator CPU
board (or
to seat the option card in the CPU board
connector.
4. Use the screws provided in the option kit to
secure the other end of
threaded standoffs on the CPU board.
5. Set termination resistance (jumper JMP4) as
described in
6. Wire the card to the network as described in
Section 2.1.2 on page 3.
7. Set DIP switches as described in Section 2.2
on page 4.
8. Use cable ties to secure loose cables inside the
enclos
For indicator models that include a backplate,
9.
position the backplate over the enclosure
reinstall the backplate screws. For the
and 920i desktop and universal m odels, use
the torque pattern shown in Figure 2-1 to
prevent distorting the backplate gasket.
Torque screws to 15 in-lb (1.7 N-m).
10. Ensure no excess cable is left inside the
enclosure a
2Remote I/O Installation and Programming Manual
520, 720i, 820i, and 920i indicators.
Disconnect power before removing indicator
backplate. The 520, 720i, 820i, and 920i
have no on/off switch. Before opening the
unit, ensure the power cord is disconnected
from the power outlet.
Use a wrist strap to ground yourself and
protect components from elect
discharge (ESD) when working inside the
indicator enclosure.
920i expansion board). Press down
the option card to the
Section 2.1.1 on page 3.
ure.
nd tighten cord grips.
rostatic
and
820i
.
1612
14
Torque backplate screws
to 15 in-lb (1.7 N-m)
5
3
1
17
9
Figure 2-1. 820i and 920i Enclosure Backplate.
8
7
10
11
11. Reconnect power to the indicator. The
indicator automatically recognizes all
installed option cards when the unit is
powered on. No hardware-specific
configuration is required to identify the
newly-installed Remote I/O card to the
system.
Figure 2-2. Remote I/O Interface Card
18
13
6
2
4
15
2.1.1Termination Resistance
If the Remote I/O Interface is the last, or only, device
attached to the PLC, the interface must provide a
termination resistance. Use Table 2-1 to determine the
appropriate termination resistance value and JMP4
jumper
position for the network. If the Remote I/O
Interface is not the last device in a chain, position the
jumper on one pin only. Resistance values for the
jumper positions are marked on the Remote I/O
Interface card.
JMP4
Network Data
Rate
57.6 Kbps10 000 ft16150
115.2 Kbps5000 ft
230.4 Kbps2500 ft3282
Table 2-1. JMP4 Jumper Positions and Termination
Maximum
Cable Length
Resistance Values
Maximum
Nodes
Termination
Resistance
2.1.2A-B Network Connections
Connections to the Allen-Bradley network are made at
connector J2 on the Remote I/O Interface card (see
Figure 2-2). Connectors 4–6 are tied to connectors
1–3 to allow daisy-chaining through the Remote I/O
Interface.
Feed Allen-Bradley network cable through cord grip.
Allow enou
gh cable for routing along inside of
enclosure to J2 connector on the Remote I/O Interface
card. Connect Allen-Bradley network cables into
connector J2 on the Remote I/O Interface card, then
use cable ties to secure network cables to the cable tie
mounts.
2.1.3LED Status Indicator
A single LED on the Remote I/O card provides status
information for troubleshooting (see Figure 2-2).
Table 2-2 summarizes the function of the LED.
LEDFunction
OFFNot initialized or not receiving valid frames
Pulsing
(2Hz)
ONValid communications established with
Communications established with Comm
1’
s or timeout
mmand 2’
Co
s
and
Table 2-2. Remote I/O Interface Status LED
Installation3
2.2DIP Switch Configuration
SW2
SW1
Starting
Quarter
Rack Address
MSB
LSB
Network
Data Rate
Reserved
Last Rack
Rack Size
Reserved
Link Address
Block Transfer
12 345678
12 345678
OPEN
OPEN
Two banks of DIP switches, SW1 and SW2, are used to configure the Remote I/O Interface for communication
with the indicator and the network. Figure 2-3 shows the switch assignments for SW1 and SW2.
Figure 2-3. SW1 and SW2 DIP Switch Assignments.
Starting Quarter
Switches SW1-1 and SW1-2 set the starting quarter
(or group number) used by the Remote I/O Interface.
Use Table 2-3 to select the correct switch settings.
Starting
Quarter
1st0CLOSEDCLOSED
2nd2OPENCLOSED
3rd4CLOSEDOPEN
4th6OPENOPEN
Group
Number
Table 2-3. Starting Quarter
Rack Address
SW1 Switch Settings
12
Switches SW1-3 through SW1-8 are used to set the
rack address of the Remote I/O Interface. Use Table
on page 5 to select the correct switch settings for the
rack address.
logical “1” and that SW1-3 represents the least significant bit
(LSB) of the rack address.
Network Data Rate
Note that setting a switch OPEN acts as a
SW2-1 and SW2-2 set the data rate of the
Allen-Bradley network. Use Table 2-4 to select the
correct switch settings for the network.
SW2 Switch Settings
Remote I/O Data Rate
57.6 KbpsCLOSEDCLOSED
115.2 KbpsOPENCLOSED
230.4 KbpsCLOSEDOPEN
12
OPENOPEN
Table 2-4. Network Data Rate
Last Rack
Set SW2-3 OPEN if the Remote I/O Interface link
address includes the highest module group in this rack
address.
Rack Size
At this time only a quarter rack size is supported. This
option has been included for possible future expansion
to include half rack support. Switch 2-4 is ignored.
Block Transfer
Set SW2-6 CLOSED to enable or OPEN to disable
block transfer to the Remote I/O Interface. Setting this
switch OPEN causes the Remote I/O Interface to
ignore unsolicited block transfer requests from the
PLC.
Discrete transfer commands return no decimal point information to the PLC. For example, a value of 750.1
displayed on the indicator is returned to the PLC as 7501.
Block Transfer
Block transfer commands support decimal point information with no special handling.
Installation5
3.0Discrete Transfer Commands
Discrete commands are used by the PLC to send and receive data from the Remote I/O Interface. The PLC
controller and Remote I/O Interface share a quarter rack of slot space, resulting in two 16-bit words for the output
image table (used to write commands to the indicator) and two 16-bit words for the input image table (used to
read data from the indicator).
NOTE: Data returned by discrete transfer commands is not valid when the indicator is in setup mode.
3.1Output Image Table Format
To perform a discrete command, the PLC places two 16-bit words in the PLC output image table, which is sent
by the scanner to the node adapter of the Remote I/O Interface. The Remote I/O Interface provides the contents
of the output image table to the indicator for command processing.
The format of the output image table is shown in Table 3-1.
Bit1514131211109876543210
Word 0v15v14v13v12v11v10v09v08v07v06v05v04v03v02v01v00
Word 1p07p06p05p04p03p02p01p00c07c06c05c04c03c02c01c00
Table 3-1. Output Image Table Format
where:
v00–v1516-bit unsigned integer value
p00–p07Parameter value
c00–c07Command number
These fields are described below:
Val ue
Word 0 of the output image table is used to pass value
data on certain commands. This field should be used
only when block transfer is disabled. For example, to
enter a tare value, use word 0 to specify the tare value;
the Enter Tare command number (12) is specified in
bits 00 through 07 of word 1.
Values entered in this field are
treated as
unsigned
integers. Possible values range from 0 to 65535.
DecimalHexBinaryCommand
00x000000 0000Return Status and Weight
10x010000 0001Display Channel
20x020000 0010Display Gross Weight
30x030000 0011Display Net Weight
40x040000 0100Display Piece Count
90x090000 1001Gross/Net key press (tog
100x0A000
110x0B0000 1011Display Tare
120x0C0000 1100Enter Tare (integer)
130x0D0000 1101Acquire Tare
0 1010Zero
Parameter value
To allow communication with a multi-scale indicator,
the scale number is sent in the upper byte of word 1. A
value of 0 represents the current scale. Certain
commands require a parameter other than a scale
number. These commands are noted in the table as
requiring a slot number or other selection parameter.
Command Number
The number representing the indicator command is
sent in the lower byte of word 1. Table 3-2 lists the
remote commands that can be specified for
920i indicators on discrete write commands.
NOTE: A lockout feature that looks for any change in the
image table data is incorporated into the indicator receive
mechanism to prevent inundation by the same command.
Repeated commands must be separated by any other valid
command/parameter/value combination.
In response to a discrete command, the Remote I/O Interface interface returns data and status information across
the network as two 16-bit words. This information is read from the input image table by the PLC. The format of
the input image table is shown in Table 3-3:
Bit1514131211109876543210
Word 0v15v14v13v12v11v10v09v08v07v06v05v04v03v02v01v00
Word 1s11s10s09s08s07s06s05s04s03s02s01s00v19v18v17v16
Table 3-3. Input Image Table Format
where:
v00–v1920-bit unsigned integer
s00–s11Status data
Val ue
Weight data is returned to the PLC using word 0 and
bits 0 to 3 from word 1 of the input image table. The
PLC can use just word 0 to read data in a 16-bit
format, allowing unsigned values from 0 to 65,535 to
be returned from the indicator. If larger numbers or
greater precision is required, the PLC can piece
together the additional four bits from word 1, resulting
in a 20-bit unsigned value. This format allows the
indicator to return values up to 1,048,575. Polarity is
returned with status data. The weight data returned is
the displayed weight after the command is executed
unless the command specifies otherwise.
Status Data
Indicator status data is returned in bits 4–15 of word 1.
Status data is listed in Table 3-4. Batch commands
return batch status in place of bits 8–15 as listed in
Table 3-5.
Channel Bits
Bits s01–s03 of the indicator status data (Table 3-4)
are used to represent the lower three bits of the scale
channel number. For example, if a value of ‘001’ is
returned in these bits, the scale channel number is 1, 9,
17 or 25.
Word 1
Status
Bit
04s00Positive weightNegative weight
05s01Lower three bits of scale number
06s02
07s03
08s04GrossNet
09s05No tareTare acquired
10s06Primary unitsSecondary/ other
11s07StandstillIn motion
12s08Weight invalid /
13s09Not zeroCenter of zero
14s10Tare not enteredTare entered
15s11ErrorNo error
Bit
Table 3-4. Indicator Status Data Format
Word 1
Status
Bit
08s04Alarm OFFAlarm ON
09s05Batch not stoppedBatch stopped
10s06Batch not runningBatch running
11s07Batch not pausedBatch paused
12s08Digital input 1 OFFDigital input 1 ON
13s09Digital input 2 OFFDigital input 2 ON
14s10Digital input 3 OFFDigital input 3 ON
15s11Digital input 4 OFF
Bit
Indicator Status Data
Value=0Value=1
uni
We
ight OK
-range
Over
Batch Function Status Data
Value=0Value=1
Digital input 4 ON
520) Error
(
(520) No error
s
t
8Remote I/O Installation and Programming Manual
Table 3-5. Batch Function Status Data Format
3.3Discrete Command Descriptions
NOTE: For all commands that require a scale number, a value
of 0 indicates the current scale. Unless otherwise specified,
the indicator returns weight and status data for the specified
scale.
Return Status and Current Weight
Command: 0, 0x00
Parameter: Scale number
Command 0 returns the status and weight of the
specified scale in integer format, without changing the
display.
Display Channel
Command: 1, 0x01
Parameter: Scale number
Command 1 causes the weight of the specified scale to
be displayed and returned in its current mode and
format. This command is valid for the
Display Gross Weight
Command: 2, 0x02
Parameter: Scale number
Command 2 causes the gross weight of the specified
scale to be displayed and returned.
Display Net Weight
Command: 3, 0x03
Parameter: Scale number
Command 3 causes the net weight of the specified
scale to be displayed and returned.
Display Piece Count
Command: 4, 0x04
Parameter: Scale number
Command 4 causes the piece count on the specified
scale to be displayed and returned. This command is
valid only for the
520 indicator, and only if count
mode is enabled.
Gross/Net Key Press (toggle mode)
Command: 9, 0x09
Parameter: Scale number
Command 9 toggles between gross and net mode (and
count mode, if enabled). If a scale number other than 0
is specified, the action may not be evident until the
specified scale is displayed.
Zero
Command: 10, 0x0A
Command 10 performs a zero action on the current
scale.
920i only.
Display Tare
Command: 11, 0x0B
Parameter: Scale number
Command 11 causes the tare weight on the specified
scale to be displayed. If a scale number other than 0 is
specified, the indicator first causes the specified scale
to be displayed. The tare data continues being
returned even if the display times out and returns to
another mode, until another command is issued.
Enter Tare (integer)
Command: 12, 0x0C
Parameter: Scale number
Value: Tare weight
Command 12 enters a tare for the scale selected. Tare
data must be in integer format. The indicator
continues to return weight data in the current mode for
the specified scale. This command is not valid if block
transfer is enabled.
Acquire Tare (simulate tare key press)
Command: 13, 0x0D
Parameter: Scale number
Command 13 acquires a tare based on the weight
currently on the specified scale. The indicator
continues to return weight data in the current mode for
the specified scale.
Clear Tare
Command: 14, 0x0E
Parameter: Scale number
Command 14 clears the tare for the specified scale.
The indicator continues to return weight data in the
current mode for the specified scale.
Primary Units
Command: 16, 0x10
Parameter: Scale number
Command 16 switches the current format of the
specified scale to the primary units configured for that
scale.
Secondary Units
Command: 17, 0x11
Parameter: Scale number
Command 17 switches the current format of the
specified scale to the secondary units configured for
that scale.
Tertiary Units
Command: 18, 0x12
Parameter: Scale number
Command 18 switches the current format of the
specified scale to the tertiary units configured for that
scale. This command is valid for the
920i only.
Discrete Transfer Commands9
Units Key Press (toggle units)
Command: 19, 0x13
Parameter: Scale number
Command 19 toggles the current format of the
specified scale to the next units configured for that
scale, as available.
Return Piece Count
Command: 35, 0x23
Parameter: Scale number
Command 35 returns the piece count value for the
specified scale. This command is valid only for the
520 indicator, and only if count mode is enabled.
Print Request
Command: 20, 0x14
Parameter: Scale number
Command 20 causes the indicator to execute a print
request using the current scale.
Display Accumulator
Command: 21, 0x15
Parameter: Scale number
Command 21 causes the value of the accumulator for
the specified scale to be displayed and returned. This
command is only valid if the accumulator for the
specified scale is enabled.
Clear Accumulator
Command: 22, 0x16
Parameter: Scale number
Command 22 clears the value of the accumulator for
the specified scale. This command is only valid if the
accumulator for the specified scale is enabled.
Push Weight to Accumulator
Command: 23, 0x17
Parameter: Scale number
Command 23 adds the net weight on the specified
scale to the value of the accumulator for the specified
scale. The scale must return to net zero between
accumulations. The indicator returns the accumulated
weight data for the specified scale. This command is
only valid if the accumulator for the specified scale is
enabled.
Return Gross as Integer
Command: 32, 0x20
Parameter: Scale number
Command 32 returns the gross weight value for the
specified scale as an integer.
Return Current Display as Integer
Command: 37, 0x25
Parameter: Scale number
Command 37 returns the weight value for the
specified scale as currently displayed. This may
include gross, net, tare, piece count, or accumulator
values, as enabled. On the
920i, the weight value is
returned in the mode used to display a scale widget.
Return Accumulator as Integer
Command: 38, 0x26
Parameter: Scale number
Command 38 returns the accumulator value for the
specified scale. This command is only valid if the
accumulator for the specified scale is enabled.
Return Rate of Change as Integer
Command: 39, 0x27
Parameter: Scale number
Command 39 returns the current rate of change value
for the specified scale. This command is valid only for
720i, 820i, 920i.
the
Return Peak as Integer
Command: 40, 0x28
Parameter: Scale number
Command 40 returns the net peak value for the
specified scale. This command is valid only for the
520 indicator, and only if the peak hold function is
Command 95 sets the batching (BATCHNG)
parameter. Indicator status is returned with the current
weight for the last scale specified.
Return Net as Integer
Command: 33, 0x21
Parameter: Scale number
Command 33 returns the net weight value for the
specified scale as an integer.
Return Tare as Integer
Command: 34, 0x22
Parameter: Scale number
Command 34 returns the tare weight value for the
specified scale as an integer.
10Remote I/O Installation and Programming Manual
Batch Start
Command: 96, 0x60
Parameter: Scale number
Command 96 starts a batch program from the current
step after a stop, pause or reset. Batch status is
returned with the current weight for the specified
scale.
Batch Pause
Command: 97, 0x61
Parameter: Scale number
Command 97 pauses a batch program at the current
step. Batch status is returned with the current weight
for the specified scale.
Batch Reset
Command: 98, 0x62
Parameter: Scale number
Command 98 stops a batch program and resets it to
the first batch step. Batch status is returned with the
current weight for the specified scale.
Batch Status
Command: 99, 0x63
Parameter: Scale number
Command 99 returns the status of a batch. Batch
status is returned with the current weight for the
specified scale.
Lock Front Panel of Indicator
Command: 112, 0x70
Parameter: Scale number
Command 112 disables all the keys on the front panel
of the indicator. Indicator status is returned with the
current weight for the specified scale.
Unlock Front Panel of Indicator
Command: 113, 0x71
Parameter: Scale number
Command 113 re-enables all the keys on the front
panel of the indicator. Indicator status is returned with
the current weight for the specified scale.
Set Digital Output ON
Command: 114, 0x72
Parameter: Slot number
Val ue : Bit n umber
Command 114 sets the specified digital output ON
(active). Use slot number 0 for onboard digital
outputs. Indicator status is returned with the current
weight for the last scale specified. This command is
not valid if block transfer is enabled.
Read Digital I/O
Command: 116, 0x74
Parameter: Slot Number and Shift (1 = low; 2 = high)
Command 116 returns the status of all digital I/O
(digital inputs only, for the
520) for the slot specified
in word 0.
Because word 0 only contains 16 bits,
a shift is used to
slide a "window" over the slot data to be returned. The
high nibble of the parameter contains 1 to look at the
low 16 bits of the slot (bits 1–16) or 2 to return the
high 16 bits (bits 9–24). Use slot number 0 for
onboard digital inputs. Indicator status is returned in
the status area for the last scale specified.
No Operation
Command: 253, 0xFD
Parameter: Scale number
Command 253 provides a command to use between
operations, as necessary, without causing the indicator
to perform any action. Indicator status and weight data
for the specified scale is still returned.
Reset Indicator
Command: 254, 0xFE
Parameter: None
Command 254 provides a command to remotely reset
the indicator. No data is returned.
Set Register
Command: 368
Registers: 1 thru 256
Command 368 sets register value. 1 through128 are
integer and 129 through 256 are real. This command
is only valid for the
Get Register
Command: 402
Registers: 1 thru 256
720i PCE version.
Command 402 returns register value. 1 through128
are integer and 129 through 256 are real. This
command is only valid for the
720i PCE version.
Set Digital Output OFF
Command: 115, 0x73
Parameter: Slot number
Val ue : Bit n umber
Command 115 sets the specified digital output OFF
(inactive). Use slot number 0 for onboard digital
outputs. Indicator status is returned with the current
weight for the last scale specified. This command is
not valid if block transfer is enabled.
Discrete Transfer Commands11
4.0Block Transfer Commands
The Remote I/O Interface supports block transfer commands for the 520, 720i, 820i, and 920i indicators. These
commands allow the PLC controller to exchange larger blocks of data with the indicator, such as 32-bit
floating-point values and partial setpoint configuration.
NOTE: Weight data returned by block transfer commands is not valid when the indicator is in setup mode.
Table 4-1 shows the block write and block read commands supported by the Remote I/O Interface.
Command Number
Command Name
2680x10CSet Tare Value44
2880x120Read Gross Weight24
2890x121Read Net Weight24
2900x122Read Tare Weight24
2910x123Read Piece Count24
2930x125Read Current Display24
2940x126Read Accumulator24
2950x127Read Rate of Change24
2960x128Read Peak Value24
3020x12ERead Gross, Tare, Net28
3030x12FRead Multiple Weights44–62
3040x130Set Setpoint Value42
3050x131Set Setpoint Hysteresis42
3060x132Set Setpoint Bandwidth42
3070x133Set Setpoint Preact42
3190x13FSet Single Setpoint, All Values102
3200x140Read Setpoint Value24
3210x141Read Setpoint Hysteresis24
3220x142Read Setpoint Bandwidth24
3230x143Read Setpoint Preact24
3350x14FRead Single Setpoint, All Values210
3360x150Set Multiple Setpoint Values4–622
3370x151Read Multiple Setpoint Values24–62
and lengths expressed as number of words. Number of words required for variable length commands depends on
NOTE: Com
number of setpoints or scales specified.
m
Block Write
Command
Length
Block Read
Command
LengthDecimalHex
Table 4-1. Block Transfer Commands
12Remote I/O Installation and Programming Manual
4.1Block Write Command Format
The format for sending a block write command includes a minimum of two words. The first word always
contains the command to be executed by the indicator. The second word contains one or more parameters
necessary to execute the command, such as a scale number or setpoint number. If a command requires additional
values, this data follows, generally as one or more 4-byte, single-precision floating-point numbers. Below is a
general outline and example for setting up a data file for a block write command.
WordDescriptionSample DataDescription
0Command number (hex)0x010CSet Tare command
1Parameter data (hex)0x0000Current scale
2Value, MSW125.0 Ta r e v a l u e
3Val ue , LSW
Table 4-2. Block Write Command Format Example
4.2Block Read Command Format
Block read commands have a similar format. The first word echoes the command number. If the command fails
or is not recognized, the negative of the command number is returned to signal the error. The second word
contains a status of the indicator for the scale selected , or a batch status for setpoint commands. Data being
returned to the PLC follows, as required by the command, generally as one or more 4-byte, single-precision
floating-point numbers. Below is a general outline and example for setting up a data file for a block read
command.
Block command status bit definitions are shown in
Table 4-4. Setpoint commands return the setpoint
ber in the low byte, batch status in the high byte
num
of the status word (see Table 4-5).
Word 1
Status
Bit
00s00Positive weightNegative weight
01s01Reserved
02s02
03s03Scale number
04s04
05s05
06s06
07s07
08s08GrossNet
09s09No tareTare acqu i red
10s10Primary unitsSecondary/ other
11s11StandstillIn motion
12s12Weight invalid /
13s13Not zeroCenter of zero
14s14Tare not enteredTare entered
15s15ErrorNo error
Bit
(NOTE: Value 0 represents scale #32)
Indicator Status Data
Val ue =0Va lue=1
un
Weight OK
-range
Over
i
ts
Word 1
00s00Setpoint number
01s01
02s02
03s03
04s04
05s05
06s06
07s07
08s08Alarm OFFAlarm ON
09s09Batch not stoppedBatch stopped
10s10Batch not runningBatch running
11s11Batch not pausedBatch paused
12s12Digital input 1 OFFDigital input 1 ON
13s13Digital input 2 OFFDigital input 2 ON
14s14Digital input 3 OFFDigital input 3 ON
15s15Digital input 4 OFF
Bit
Status
Bit
Batch Function Status Data
Value=0Value=1
Digital input 4 ON
520) Error
(
(520) No error
Table 4-5. Batch Function Status Data Format
Table 4-4. Block Command Status Data Format
14Remote I/O Installation and Programming Manual
4.3Block Transfer Command Descriptions
NOTE: For all commands that require a scale number, a value
of 0 indicates the current scale. Unless otherwise specified,
the indicator returns weight and status data for the specified
scale.
Command 290 returns the tare weight value for the
specified scale in floating-point format.
Read Piece Count
Command: 291, 0x123
Block Write: 2 words
Parameter: Scale number
Value: None
Block Read: 4 words
Return Status: Selected scale
Return Value: Count value
Command 291 returns the piece count value for the
specified scale in floating-point format. This
command is only valid for the
520, and only if count
mode is enabled.
Read Current Display
Command: 293, 0x125
Block Write: 2 words
Parameter: Scale number
Value: None
Block Read: 4 words
Return Status: Selected scale
Return Value: Currently displayed
weight
Command 293 returns the weight value for the
specified scale as currently displayed in floating-point
format. This may include gross, net, tare, piece count,
or accumulator values, as enabled. On the
920i, the
weight value is returned in the mode used to display a
scale widget.
Read Accumulator
Command: 294, 0x126
Block Write: 2 words
Parameter: Scale number
Value: None
Block Read: 4 words
Return Status: Selected scale
Return Value: Accumulator value
Command 294 returns the accumulator value for the
specified scale in floating-point format. This
command is only valid if the accumulator for the
specified scale is enabled.
Read Rate of Change
Command: 295, 0x127
Block Write: 2 words
Parameter: Scale number
Value: None
Block Read: 4 words
Return Status: Selected scale
Return Value: Rate of change value
Command 295 returns the current rate of change value
for the specified scale in floating-point format. This
command is only valid for the
920i.
Block Transfer Commands15
Read Peak Value
Command: 296, 0x128
Block Write: 2 words
Parameter: Scale number
Val ue : None
Block Read: 4 words
Return Status: Selected scale
Return Value: Net peak weight
Command 296 returns the net peak value for the
specified scale in floating-point format. This
command is only valid for the
520, and only if the
peak hold function is enabled.
Set Setpoint Value
Command: 304, 0x130
Block Write: 4 words
Parameter: Setpoint number
Value: Target Value
Block Read: 2 words
Return Status: Batch
Return Value: None
Command 304 sets the target value for the specified
setpoint in floating-point format. This command is
only valid if the setpoint is enabled and requires a
target value.
Read Gross, Tare, Net
Command: 302, 0x12E
Block Write: 2 words
Parameter: Scale number
Val ue : None
Block Read: 8 words
Return Status: Selected scale
Return Value: Gross, tare, and net
weights
Command 302 returns the gross, tare, and net weights
on a single command. The structure of the command
is as follows:
Word 0:Command number
Word 1:Scale number
Words 2–3: Gross weight
Words 4–5: Tare weight
Words 6–7: Net weight
Read Multiple Weights
Command: 303, 0x12F
Block Write: 4 words
Parameter: Weight type
Value: Bit-map of scales
Block Read: Variable, 4 words minimum
Return Status: Composite
Return Value: Weight for each scale
re
quested
Command 303 returns the weights for up to 30 scales
in floating-point format. The weights are returned in
the mode specified by the parameter weight type, 0 for
gross or 1 for net. Words 2 and 3 contain a bit map of
the scales for which a weight should be returned; the
least significant bit represents scale 1. Each 2-word
value represents the weight for the next scale
requested, if valid, beginning with scale 1. If a scale is
not valid (scale does not exist), the bit is ignored.
Status data returned is a composite of the scales
requested, according to the following rules:
•Indicator status: If a bit is set for any of the
scales requested, it is set in the composite.
•Scale number: The total number of scales in
the composite is returned.
This command is valid only for
820i or 920i.
Set Setpoint Hysteresis
Command: 305, 0x131
Block Write: 4 words
Parameter: Setpoint number
Value: Hysteresis value
Block Read: 2 words
Return Status: Batch
Return Value: None
Command 305 sets the hysteresis va lue for the
specified setpoint in floating-point format. This
command is only valid if the setpoint is enabled and
requires a hysteresis value.
Set Setpoint Bandwidth
Command: 306, 0x132
Block Write: 4 words
Parameter: Setpoint number
Value: Bandwidth value
Block Read: 2 words
Return Status: Batch
Return Value: None
Command 306 sets the bandwidth value for the
specified setpoint in floating-point format. This
command is only valid if the setpoint is enabled and
requires a bandwidth value.
Set Setpoint Preact
Command: 307, 0x133
Block Write: 4 words
Parameter: Setpoint number
Value: Preact Value
Block Read: 2 words
Return Status: Batch
Return Value: None
Command 307 sets the preact value for the specified
setpoint in floating-point format. This command is
only valid if the setpoint is enabled and requires a
preact value.
16Remote I/O Installation and Programming Manual
Set Single Setpoint, All Values
Command: 319, 0x13F
Block Write: 10 words
Parameter: Setpoint number
Value: Values as required
Block Read: 2 words
Return Status: Batch
Return Value: None
Command 319 sets the target, hysteresis/bandwidth
and preact values for the specified setpoint in
floating-point format. This command is only valid if
the setpoint is enabled and requires a target value.
The structure of the block write command is as
follows:
Word 0:Command number
Word 1:Setpoint number
Word 2:Setpoint kind
Word 3:Re
Words 4–5: Target value
Words 6–7: Hysteresis or band value
Words 8–9: Preact value
served/not used
The value sent in words 6 and 7 is interpreted as
hysteresis or band value based on the TRIP setting of
the setpoint. If the setpoint requires neither a
hysteresis nor a band value, this value is ignored and
only the target value is set. The preact value is ignored
if preact is not enabled for the setpoint.
Table 4-6 lists the values specified for the setpoint
kind in word 2.
000FAUTOJOG
0010COZ (Center of zero)
0011INMOTON (In motion)
0012INRANGE (In range)
0013BATCHPR (Batch process)
0014TIMER
0015CONCUR
0016DIGIN (Digital input)
0017AVG (Average)
0018TOD (Time of day)
0019DELTA (Delta weight)
001ACHKWEI (Checkweigher)
001BPLSCNT (Pulse counter)
001CPLSRAT (Pulse rate)
001DALWAYS
001ENEVER
520
920i
Table 4-6. T able nt Kind Values (Continued)
Read Setpoint Value
Command: 320, 0x140
Block Write: 2 words
Parameter: Setpoint number
Value: None
Block Read: 4 words
Return Status: Batch
Return Value: Target value
Command 320 returns the target value for the
specified setpoint in floating-point format. This
command is only valid if the setpoint is enabled and
requires a target value.
Read Setpoint Hysteresis
Command: 321, 0x141
Block Write: 2 words
Parameter: Setpoint number
Value: None
Block Read: 4 words
Return Status: Batch
Return Value: Hysteresis value
Command 321 returns the hysteresis value for the
specified setpoint in floating-point format. This
command is only valid if the setpoint is enabled and
requires a hysteresis value.
Table 4-6. Table nt Kind Values
Block Transfer Commands17
Read Setpoint Bandwidth
Command: 322, 0x142
Block Write: 2 words
Parameter: Setpoint number
Val ue : None
Block Read: 4 words
Return Status: Batch
Return Value: Bandwidth value
Command 322 returns the bandwidth value for the
specified setpoint in floating-point format. This
command is only valid if the setpoint is enabled and
requires a bandwidth value.
Read Setpoint Preact
Command: 323, 0x143
Block Write: 2 words
Parameter: Setpoint number
Val ue : None
Block Read: 4 words
Return Status: Batch
Return Value: Preact value
Command 323 returns the preact value for the
specified setpoint in floating-point format. This
command is only valid if the setpoint is enabled and
requires a preact value.
Read Single Setpoint, All Values
Command: 335, 0x14F
Block Write: 2 words
Parameter: Setpoint number
Val ue : None
Block Read: 10 words
Return Status: Batch
Return Value: Values as available
Command 335 returns the target,
hysteresis/bandwidth and preact values for the
specified setpoint in floating-point format. This
command is only valid if the setpoint is enabled and
requires a target value.
The structure of the block read command is as
follows:
Word 0:Command number
Word 1:Setpoint number
Word 2:Setpoint kind
Word 3:Reser
Words 4–5: Target value
Words 6–7: Hysteresis or band value
Words 8–9: Preact value
ved/not used
The value returned in words 6 and 7 is either the
hysteresis or band value, based on the TRIP setting of
the setpoint. If the setpoint requires neither a
hysteresis nor a band value, this value is set to 0. The
preact value returned is set to 0 if preact is not enabled
for the setpoint.
See Table 4-6 for a list of the setpoint kind valu es
returned in word 2.
Set Multiple Setpoint Values
Command: 336, 0x150
Block Write: Variable, 4 words minimum
Parameter: Setpoint range
Value: Values as required
Block Read: 2 words
Return Status: Batch
Return Value: None
Command 336 sets the target values for the specified
range of setpoints in floating-point format. The first
value sent is the target value for the setpoint number
specified in the low byte of the parameter. The last
value sent is the target value for the setpoint number
specified in the high byte of the parameter. If a target
value is not required for any setpoint, the value should
be set to 0.0, but is actually ignored by the indicator.
Up to 30 setpoints can be set at one time. The return
status includes the setpoint number of the last setpoint
set.
Read Multiple Setpoint Values
Command: 337, 0x151
Block Write: 2 words
Parameter: Setpoint range
Value: None
Block Read: Variable, 4 words minimum
Return Status: Batch
Return Value: Values as available
Command 337 returns the target values for the
specified range of setpoints in floating-point format.
The first value returned is the target value for the
setpoint number specified in the low byte of the
parameter. The last value returned is the target value
for the setpoint number specified in the high byte of
the parameter. If a target value is not required for any
setpoint, the value returned is 0.0. Up to 30 setpoints
can be requested at one time. The return status
includes the setpoint number of the last setpoint read.
18Remote I/O Installation and Programming Manual
5.0Operation
The examples on the following pages provide PLC programming examples for using the Remote I/O Interface.
5.1Test Program for Verifying Remote I/O Interface Operation
The programming example shown on the next page writes a series of dis crete commands to the Remote I/O
Interface and checks the status bits returned in the input image table to confirm completion of each command.
This example assumes the Remote I/O scanner to be in slot #2, with the Remote I/O Interface at rack address 0,
quarter 0.
NOTES:
•This program can be edited and used to test communic
•The COMMAND WORD must be zeroed after chec
ations between the PLC and the Remote I/O Interface.
king the status bits to confirm that the command has been executed.
Operation19
MOV
MOV
COMMAND WORD
COMMAND WORD
MOV
COMMAND WORD
MOV
COMMAND WORD
MOV
COMMAND WORD
S2:1
B3
0
15
B3
B3
B3
1
2
3
0
1
2
3
4
5
MOV
COMMAND WORD
JSR
Jump To Subroutine
SBR File Number U:8
CONVERT
6
7
[END]
B3
0
(U)
B3
1
(U)
B3
2
(U)
B3
3
(U)
TARE SCALE
DISPLAY
GROSS WEIGHT
DISPLAY
NET WEIGHT
CLEAR TARE
B3
0
I:2.1
6
B3
1
I:2.1
7
B3
2
I:2.1
7
B3
3
I:2.1
6
TARE SCALESCALE TARE STATUS
DISPLAY
GROSS WEIGHT
GROSS/NET
STATUS
DISPLAY
NET WEIGHT
GROSS/NET
STATUS
CLEAR TARE
SCALE TARE
STATUS
MONITOR STATUS BITS TO CONFIRM EACH TASK IS PERFORMED,
THEN CLEAR DISCRETE WRITE OUTPUT
CLEAR DISCRETE WRITE OUTPUT COMMAND
IF TARE BIT IS SET, SEND ACQUIRE TARE COMMAND TO DISCRETE WRITE OUTPUT
TARE SCALE
DISPLAY GROSS WEIGHT
DISPLAY NET WEIGHT
CLEAR TARE
IF GROSS BIT IS SET, SET SCALE TO GROSS MODE
IF NET BIT IS SET, SET SCALE TO NET MODE
IF CLEAR TARE BIT IS SET, CLEAR TARE VALUE
FIRST PASS
Move
Source 0
Dest O:2.0
0
Move
Source 14
Dest O:2.0
0
Move
Source 0
Dest O:2.0
0
Move
Source 13
Dest O:2.0
0
Move
Source 2
Dest O:2.0
0
Move
Source 3
Dest O:2.0
0
20Remote I/O Installation and Programming Manual
5.2PLC Program for Converting 20-bit Values to Floating Integers
The following programming example converts a 20-bit value in the input image table to a floating integer value
stored at location F8:5.
DISCRETE WRITE WEIGHT CONVERSION ROUTINE
COPY INPUT IMAGE WORD 0 TO INTEGER FILE
0
COPY INPUT IMAGE WORD 1 TO INTEGER FILE
1
IF BIT 15 IS 0, COPY WORD 0 TO FLOAT ADDRESS
N10:9
2
15
IF BIT 15 IS 1, ADD 65536 TO WORD 0
N10:9
3
15
MASK OFF BITS 4-15 OF WORD 1
4
INPUT IMAGE WORD 1
COP
Copy File
S
ce #I:2.0
our
Dest #N10:9
Length 1
INPUT IMAGE WORD 0
COP
Copy File
Source #I:2.1
Dest #N10:10
Length 1
MOV
Move
Source #N10:9
29728
Dest #F8:0
29728.0
ADD
Add
Source A 65536.0
Source B N10:9
29728
Dest F8:0
29728.0
AND
Bitwise AND
ce A N10:10
Sour
000h
Source B 15
Dest N10:9
000h
MULTIPLY BITS 0-3 OF WORD 1 BY 65536
5
ADD UPPER AND LOWER VALUES
6
IF BIT 4 OF WORD 1 (POLARITY BIT) IS SET, CHANGE SIGN OF DATA TO NEGATIVE
I:2.1
7
8
8
9
MUL
Multiply
Source A 65536.0
Source B N10:10
2
Dest F8:1
131072.0
ADD
Add
Source A F8:0
29728.0
Source B F8:1
131072.0
Dest F8:5
160600.0
MUL
Multiply
Source A F8:5
160600.0
Source B -1.0
Dest F8:5
160600.0
RET
Return
[END]
Operation21
5.3Using Block Transfer to Set and Read Setpoint Values
[END]
BTW
1
BTR
BTW
2
BTR
N10:0
N10:5
15
BTR
enable bit
15
BTW
enable bit
N10:0
N10:5
15
BTR
enable bit
15
BTW
enable bit
N10:0
N10:5
15
BTR
enable bit
15
BTW
enable bit
N10:0
N10:5
15
BTR
enable bit
15
BTW
enable bit
0
3
BLOCK TRANSFER WRITE COMMAND 335:SET SETPOINT VALUES
BLOCK TRANSFER READ COMMAND 319:SET SETPOINT VALUES (READ RESPONSE CODE)
BLOCK TRANSFER READ COMMAND 319:SET SETPOINT VALUES
BLOCK TRANSFER WRITE COMMAND 335:READ SETPOINT VALUES
Rack 3
Group 2
Module 0
Ctl Blk #N10:5
Data File #N11:10
Length 10
Continuous NO
Rack 3
Group 2
Module 0
Ctl Blk #N10:0
Data File #N11:0
Length 2
Continuous NO
Rack 3
Group 2
Module 0
Ctl Blk #N10:5
Data File #N11:10
Length 2
Continuous NO
Rack 3
Group 2
Module 0
Ctl Blk #N10:0
Data File #N11:0
Length 10
Continuous NO
The following program example uses block transfer commands to write setpoint values to the 520, 820i, or 920i
indicator (block write/block read command 335), then read the values for the setpoint (block write/block read
command 319). See Section 4.0 for more information about the Set and Read Setpoint Va
commands.
lue block transfer
22Remote I/O Installation and Programming Manual
Floating point values used for the Set Setpoint Values parameters must be copied into separate words before
7
[END]
0
COP
COP
COPY FLOATING POINT SETPOINT VALUE INTO TWO SEPARATE WORDS
CONVERT 2-WORD PREACT VALUE TO FLOATING POINT VALUE
1
COP
COPY FLOATING POINT BAND VALUE INTO TWO SEPARATE WORDS
2
COP
COPY FLOATING POINT HYSTERESIS VALUE INTO TWO SEPARATE WORDS
3
COP
COPY FLOATING POINT PREACT VALUE INTO TWO SEPARATE WORDS
6
COP
CONVERT 2-WORD HYSTERESIS VALUE TO FLOATING POINT VALUE
5
COP
CONVERT 2-WORD BAND VALUE TO FLOATING POINT VALUE
4
COP
CONVERT 2-WORD SETPOINT VALUE TO FLOATING POINT VALUE
(SET SETPOINT VALUES, READ SETPOINT VALUES BLOCK TRANSFER COMMANDS)
Copy File
Source #F8:1
Dest #N11:13
Length 2
Copy File
Source #F8:2
Dest #N11:15
Length 2
Copy File
Source #F8:3
Dest #N11:17
Length 2
Copy File
Source #F8:4
Dest #N11:19
Length 2
Copy File
Source #N11:13
Dest #F8:1
Length 1
Copy File
Source #N11:15
Dest #F8:2
Length 1
Copy File
Source #N11:17
Dest #F8:3
Length 1
Copy File
Source #N11:19
Dest #F8:4
Length 1
issuing the command. Values returned on the Read Setpoint Values block read command must be converted back
to floating point values. The following example shows these conversions for all four parameters on the Set and
Read Setpoint Values commands.
Operation23
6.0Remote I/O Interface Card Specifications
Power Requirements
Option Card, DC Power:
Supply voltage: 6 VDC, supplied by indicator
Typical current draw: 137 mA
Power consumption: 126 mW
Indicators, Typical AC Load:
520Power (TRMS):2.0 W
Current (TRMS): 65 mA
720i Power (TRMS):1.1W
Current (TRMS): 15 mA
820i Power (TRMS):1.1W
Current (TRMS): 15 mA
920i Power (TRMS):1.1 W
Current (TRMS): 15 mA
bus
Communications Specifications
Allen-Bradley Remote I/O Network Communications:
Twinaxial cable attachment to n
230.4 Kbps
Update rate is dependent on the configured baud rate and the
number of network nodes. Maximum update rates are:
etworks at 57.6, 115.2, or
520: up to 120 updates/sec
720i: up to 960 updates/sec
820i: up to 960 updates/sec
920i: up to 960 updates/sec
Environmental Specifications
Temperature:–10° to +40° C (14° to 104° F)
24Remote I/O Installation and Programming Manual
Remote I/O Interface Limited Warranty
Rice Lake Weighing Systems (RLWS) warrants that all RLWS equipment and systems properly installed by a
Distributor or Original Equipment Manufacturer (OEM) will operate per written specifications as confirmed by
the Distributor/OEM and accepted by RLWS. All systems and components are warranted against defects in
materials and workmanship for one year.
RLWS warrants that the equipment sold hereunder will conform
by RLWS. RLWS warrants the equipment against faulty workmanship and defective materials. If any equipment
fails to conform to these warranties, RLWS will, at its option, repair or replace such goods returned within the
warranty period subject to the following conditions:
to the current written specifications authorized
•Upon discovery by Buyer of such nonconformity
, RLWS will be given prompt written notice with a
detailed explanation of the alleged deficiencies.
•Individual electronic components returned to RL
WS for warranty purposes must be packaged to
prevent electrostatic discharge (ESD) damage in shipment. Packaging requirements are listed in a
publication, “Protecting Your Components From Static Damage in Shipment,” available from RLWS
Equipment Return Department.
•E xamination of such equip ment by RLWS confirms that
the nonconformity actually exists, and was
not caused by accident, misuse, neglect, alteration, improper installation, improper repair or
improper testing; RLWS shall be the sole judge of all alleged non-conformities.
•S uch equipment has not been modified, altered, or ch
anged by any person other than RLWS or its
duly authorized repair agents.
•RLWS will have a reasonable time to repair or replac
e the defective equipment. Buyer is responsible
for shipping charges both ways.
•In no event will RLWS be responsible for travel time or on-location r
epairs, including assembly or
disassembly of equipment, nor will RLWS be liable for the cost of any repairs made by others.