Delta DVP-ES2 User Manual Page 452

  • Download
  • Add to my manuals
  • Print
  • Page
    / 702
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 451
DVP-ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming
3-336
H87
MOV
M1002
D1109
SET
M1136
K100
MOV
D1252
MODRW
K2
K1
X0
H0500 D0 K16
Connection device
address:
K1
Function code: K2
read multiple bits
Data address: Y0=H0500
Data st ori n g regis ter
Data length
(bit)
SET
X0
M1316
M1320 = OFF,
ASCII mode
RST
M1320
SET
M1320
Set communication protocol as 9600,8,E,1
Retain communication setting
Set receiving timeout as 100ms
Sending request
M1320 = ON
RTU mode
RST
M1318
Processing received data
Reset M1318
M1318
Receiving completed
ASCII mode: The received data is converted to Hex value
and stored in registers starting from D0
RTU mode: The received data is stored in registers starting from D0
z ASCII mode (COM3: M1320 = OFF, COM1: M1139 = OFF):
When X0 = ON, MODRW instruction executes the function specified by Function Code 02
PLC1Ö PLC2, PLC1 sends: “01 02 0500 0010 E8
PLC2 ÖPLC1, PLC1 receives: “01 02 02 3412 B5
PLC1 data receiving register D0
Register Data Descriptions
D0 1234H
PLC converts the ASCII data in address 0500H~0515H and
stores the converted data automatically.
Analysis of the read status of PLC2 Y0~Y17: 1234H
Device Status Device Status Device Status Device Status
Y0 OFF Y1 OFF Y2 ON Y3
OFF
Y4 ON Y5 ON Y6 OFF Y7
OFF
Y10 OFF Y11 ON Y12 OFF Y13
OFF
Y14 ON Y15 OFF Y16 OFF Y17
OFF
z RTU mode (COM3: M1320 = ON, COM1: M1139 = ON):
When X0 = ON, MODRW instruction executes the function specified by Function Code 02
PLC1 Ö PLC2, PLC1 sends: “01 02 0500 0010 79 0A
PLC2 Ö PLC1, PLC1 receives: “01 02 02 34 12 2F 75
Page view 451
1 2 ... 447 448 449 450 451 452 453 454 455 456 457 ... 701 702

Comments to this Manuals

No comments