Delta DVP-ES2 User Manual
Page 410
D V P - E S 2 / E X 2 / S S 2 / S A2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g
3-294
Program Example:
Connect PLC to VFD series AC motor drive (RTU mode, M1143 = ON), (8-bit mode, M1161 =
ON), Write the data to be sent (H1770) into address H0706 on VFD.
M1002
MOV
H86
D1120
SET
M1120
Sending
request pulse
Write data to be sent in advance
SET
M1122
MOV
K100
D1129
X0
RS
D100
K8
D120
K8
Processing received data
RST
M1123
M1123
Receiving completed
Set communication protocol as
9600,7,E,1
Retain communication setting
Set communication timeout as:
100ms
Sending request
Reset M1123
SET
M1161
8-bit mode
PLC VFD, PLC sends: 01 06 0706 1770 66 AB
Registers for sent data (sending messages)
Register Data
Explanation
D100 low byte
01 H
Address
D101 low byte
06 H
Function
D102 low byte
07 H
D103 low byte
06 H
Data address
D104 low byte
17 H
D105 low byte
70 H
Data content
D106 low byte
66 H
CRC CHK 0
D107 low byte
AB H
CRC CHK 1
The error checksum CRC CHK (0,1) can be calculated by CRC instruction (8-bit mode, M1161 =
ON).
M1000
CRC
D100
K6
D106
CRC checksum: 66 H is stored in low byte of D106 and AB H in low byte of of D107,