DL06 Micro PLC User Manual; 3rd Edition Rev. E
4–22
Chapter 4: System Design and Configuration
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Network Master Operation (using MRX and MWX
Instructions)
This section describes how the DL06 can communicate on a MODBUS RTU network as a
master using the MRX and MWX read/write instructions. These instructions allow you to
enter native MODBUS addressing in your ladder logic program with no need to perform octal
to decimal conversions. MODBUS is a single master/multiple slave network. The master is the
only member of the network that can initiate requests on the network. This section teaches you
how to design the required ladder logic for network master operation.
MODBUS Function Codes Supported
The MODBUS function code determines whether the access is a read or a write, and whether
to access a single data point or a group of them. The DL06 supports the MODBUS function
codes described below.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
a
b
c
D
MODBUS Function Code
Function
DL06 Data Types Available
01
Read a group of coils
Y, CR, T, CT
02
Read a group of inputs
X, SP
05
Set / Reset a single coil (slave only)
Y, CR, T, CT
15
Set / Reset a group of coils
Y, CR, T, CT
03, 04
Read a value from one or more registers
V
06
Write a value into a single register (slave only)
V
07
Read Exception Status
V
08
Diagnostics
V
16
Write a value into a group of registers
V
Slave #1
Slave #3
Master
MODBUS
,
RTU Protocol, or DirectNET
,
Slave #2
LOGIC
K oyo
06
C0
C4
C2
X1
X3
X4
X6
X11
X13
X14
X16
X21
X23
N.C.
C1
C3
X2
X5
X7
X10
X12
X15
X17
X20
X22
X0
N.C.
AC(N) 24V
0V
N.C.
C1
C3
Y0
Y15
Y12
Y10
Y17
Y7
Y5
Y2
C0
C2
Y16
Y14
Y13
Y11
Y6
Y4
Y3
Y1
LG
G
AC(L)
D0-06DR
2.0A
OUTPUT: 6-240V
50 - 60Hz
2.0A, 6 - 27V
INPUT: 12 - 24V
3 - 15mA
Y
X
40VA
50-60Hz
PWR: 100-240V
0
1
2
3
4
5
6
7
10
11
12
13
14
15
16
17
20
21
22
23
PORT1
PORT2
TERM
RUN STOP
PWR
RUN
CPU
TX1
RX1
TX2
RX2