Chapter 5: Standard RLL Instructions - Modbus
Modbus Write to Network (MWX)
1
The Modbus Write to Network (MWX) instruction is used to write a block of data from the
230
network master's (DL260) memory to Modbus memory addresses within a slave device on the
240
network. The instruction allows the user to specify the Modbus Function Code, slave station
2
250-1
address, starting master and slave memory addresses, number of elements to transfer, Modbus
260
data format and the Exception Response Buffer.
3
DS
Used
4
HPP
N/A
5
6
7
8
9
10
11
• Port Number: must be DL260 Port 2 (K2)
12
• Slave Address: specify a slave station address (0 to 247)
• Function Code: The following Modbus function codes are supported by the MWX instruction:
13
14
A
• Start Slave Memory Address: specifies the starting slave memory address where the data will be
written.
B
• Start Master Memory Address: specifies the starting address of the data in the master that is to be
written to the slave.
C
• Number of Elements: specifies how many consecutive coils or registers will be written to. This field
is only active when either function code 15 or 16 is selected.
• Modbus Data Format: specifies Modbus 584/984 or 484 data format to be used
D
5–208
DL205 User Manual, 4th Edition, Rev. B
05 – Force Single coil
06 – Preset Single Register
15 – Force Multiple Coils
16 – Preset Multiple Registers
Need help?
Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?