Modbus Write To Network (Mwx) - Automationdirect.com DirectLOGIC DL205 Series User Manual

Table of Contents

Advertisement

Chapter 4: System Design and Configuration

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 masters's (DL260) memory to Modbus memory addresses within a slave device on
240
the network. The instruction allows the user to specify the Modbus Function Code, slave
2
250-1
station address, starting master and slave memory addresses, number of elements to transfer,
Modbus data format and the Exception Response Buffer.
260
3
4
5
6
7
8
9
10
11
• Port Number: must be DL260 Port 2 (K2)
• Slave Address: specify a slave station address (0–247)
12
• 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
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
• Exception Response Buffer: specifies the master memory address where the Exception Response
will be placed.
4–50
DL205 User Manual, 4th Edition, Rev. B
05 – Force Single coil
06 – Preset Single Register
08 – Diagnostics
15 – Force Multiple Coils
16 – Preset Multiple Registers

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?

Table of Contents

Save PDF