DVP-ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming
3-354
3. D1252D1249: Set value for data receiving timeout
4. M1320M1139: ASCII/RTU mode selection
5. M1316M1312: sending request
6. M1318M1314: receiving completed flag
H87MOV
M1002 D1109
SET M1136
K100
MOV D1252
Set communication protocol as 9600, 8, E, 1
Retain communication protocol
Set receiving timeout as 100ms
MODRW K15K1
X0 H0500 D0 K16
Connection device
address: K1
Function code: K15
Write in multiple bit devices
Data address: H0500
Data storing register
Data length(bit)
SET
X0 M1316 Sending request
M1320 = OFF
ASCII mode
RST M1320 M1320 = ON
RTU mode
SET M1320
RST M1318
M1318
Reset M1318
ASCII mode: No processing on received data .
RTU mode: No processing on received data .
Received data
Receiving completed
ASCII mode (COM3: M1320 = OFF, COM1: M1139 = OFF):
When X0 = ON, MODRW executes the function specified by Function Code H0F
PLC1 Ö PLC2, PLC sends: “ 01 0F 0500 0010 02 3412 93
PLC2 Ö PLC1, PLC receives: “ 01 0F 0500 0010 DB
(No data processing on received data)
RTU mode (COM3: M1320 = ON, COM1: M1139 = ON):
When X0 = ON, MODRW executes the function specified by Function Code H0F
PLC1 Ö PLC2, PLC1 sends: “01 0F 0500 0010 02 34 12 21 ED
PLC2 Ö PLC1, PLC1 receives: “01 0F 0500 0010 54 CB” ,
(No data processing on received data)