Delta RMC101 User Manual
Page 441
Modbus Plus 5.3
Communications
5-191
addr
- the slot and port on the TSX Premium to communicate with, plus the first byte in the
routing address. For example, to communicate with Modbus Plus node #30, this would be
"ADR#0.1.30".
func
- Which SEND_REQ operation to run (read, write, etc.). Refer to TSX Premium
documentation for details.
control
- A block of 5 registers, specifying additional information:
control:0:
Second and third routing address bytes. Notice that the second address byte refers to the
data path in the RMC100 and therefore must be a number between 1 and 8. Each
simultaneous request from the same RMC should use a different data path value.
Typically, the third address byte will be left 0.
control:1:
Fourth and fifth address bytes. These will typically be left at zero.
control:2:
Segment and type (depends on the type of the variable to be read or written; refer to TSX
Premium documentation).
control:3:
Address of the first internal word to be read from the remote (RMC100) device. This is an
offset from 400001.
control:4:
Size of the data to read (in bytes).
local_addr -
This is where the data being read will be saved in the TSX Premium, or what data in
the TSX Premium is to be written.
status
- Refer to TSX Premium documentation for details
Example
The following example reads 10 registers from addresses 400001-400009 in the RMC100-MBP
located at Modbus Plus node 30. It uses data path 1, and stores the information in %MW450-
%MW459. The control area is located at %MW300-%MW304 and the status area is located at
%MW600-%MW603 in the TSX Premium.
SEND_REQ(ADR#0.1.30, 16#36, %MW300:5, %MW450:10, %MW600:4)
%MW300 = 0x0001 Second and third routing addresses (01, 00)
%MW301 = 0x0000 Fourth and fifth routing addresses (00, 00)
%MW302 = 0x0768 Segment 104 and type 4 (dpeends on the type of the variable to be read)
%MW303 = 0 Address of the first word in the RMC100 (offset from 400001).
%MW304 = 20 Size of the data to be read in bytes (10 words at 2 bytes per word).