Delta DVP-ES2 User Manual Page 462

  • Download
  • Add to my manuals
  • Print
  • Page
    / 702
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 461
DVP-ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming
3-346
Register Data Descriptions
D1074 Low byte FF H
D1075 Low byte 00 H
Data content (ON = FF00H)
D1076 Low byte 8C H CRC CHK Low
D1077 Low byte F6 H CRC CHK High
Program example 6: COM1(RS-232) / COM3(RS-485), Function Code H05
1. Function Code K5 (H05): Force ON/OFF bit device.
2. PLC1 connects PLC2: (M1320 = OFF, ASCII Mode ), (M1320 = ON, RTU Mode)
3. n = 1 indicates Force ON (set FF00H) and n = 0 indicates Force OFF (set 0000H)
4. PLC COM1/COM3 will not process the received data.
5. Take the connection between PLC1 (PLC COM3) and PLC2(PLC COM1) for example, the
tables below explains the status when PLC1 reads Y0~Y17 of PLC2
z If PLC1 applies COM1 for communication, the below program can be usable by
changing:
1. D1109D1036: communication protocol
2. M1136M1138: retain communication setting
3. D1252D1249: Set value for data receiving timeout
4. M1320M1139: ASCII/RTU mode selection
5. M1316M1312: sending request
6. M1318M1314: receiving completed flag
H87
MOV
M1002
D1109
SET
M1136
K100
MOV
D1252
MODRW
K5
K1
X0
H0500 D0
K1
Function Code K5:
Force ON/OFF bit device
Reserved
Force ON status (Set FF00H)
SET
X0
M1316
RST M1320 SET M1320
Connection device address: K1
Data address : Y0 = H0500
M1320 = OFF
ASCII mode
Set communication protocol as 9600,8,E,1
Retain communication protocol
Set receiving timeout as 100ms
Sending request
M1320 = ON
RTU mode
RST M1318
M1318
Reset M1318
ASCII mode: No processing on received data .
RTU mode: No processing on received data .
Received data
Receiving completed
Page view 461
1 2 ... 457 458 459 460 461 462 463 464 465 466 467 ... 701 702

Comments to this Manuals

No comments