Rockwell Automation AutoMax ControlNet Communication Interface Module User Manual
Page 47

AutoMax ControlNet Module Page
47
Publication number DSMBCN-UM001B-EN-P February 2003
Command 4, Word Range Write, transfers a block of data from the
specified AutoMax registers on the module to the target registers at the
destination address. The data must already exist in the registers on the
module. Data can be transferred from any file in the PLC-5 data image
area. The data is stored in the specified registers on the module. A
maximum of one file (1000 registers) can be transferred in a single
request. The transfer cannot cross file boundaries.
Command 5, Read-Modify-Write, sets or resets specified bits in
specified registers in the data table at the remote address. The data (AND
and OR masks) must already exist in the registers on the module. A
maximum of ten registers can be modified in a single request.
NOTE: The A-B controller at the remote address may change the states
of the original bits in memory before this command (command 5) can
write the word back to memory. Therefore, some bits may
unintentionally be overwritten. To help prevent this, we suggest that you
use this command to write into the storage area of a programmable
controller's data table, and have the controller read the word only, not
control it.
Command 6, Typed Read, transfers a block of data from the target
registers at the remote address to the specified AutoMax registers on the
module. Data can be transferred to any file in the PLC-5 data image area.
The data is stored in the specified registers on the module. A maximum
of one file (1000 registers) can be transferred in a single request. The
transfer cannot cross file boundaries.
Command 7, Typed Write, transfers a block of data from the specified
AutoMax registers on the module to the target registers at the destination
address. The data must already exist in the registers on the module. Data
can be transferred from any file in the PLC-5 data image area. The data
is stored in the specified registers on the module. A maximum of one file
(1000 registers) can be transferred in a single request. The transfer
cannot cross file boundaries.
In cases where any of the commands above generates multiple messages
on the network (for example, reading or writing more registers than can
fit in one message) the module takes care of formatting and generating
the messages required. The GATEWAY_CMD_OK@ command is
complete when a reply is received for the last message in the group.
Example 1: Command 3, Word Range Read
In the example below, the module is reading 100 words from file N7:0 in
the PLC at node address 3. The data read is stored in the local B3 file.
The variable B3BASE% is defined in the rack configuration.
10 COMMON B3BASE%
\! Represents the physical address of &
the starting register on the &
module to be read from