Specifications

7. Application Instructions
© DELTA ELECTRONICS, INC. ALL RIGHTS RESERVED
7-68
Program Example 3:
Ϩʳ Function code K16(H10): write many WORD to register
A. PLC connects to VFD-S AC drive (when M1143=OFF, ASCII
Mode)
B. PLC connects to VFD-S AC drive (when M1143=ON, RTU Mode)
Ϩʳ When in ASCII mode, users will save data that being wrote to AC drive
in 12 continuous registers that start from D0 and designated by user in
ASCII form. Data that AC drive return will save in registers
D1070~D1076.
Ϩʳ When in RTU mode, users will save data that being wrote to AC drive
in 12 continuous registers that start from D0 and designated by user in
HEX form. Data that AC drive return will save in registers
D1070~D1078.
Ϩʳ When in ASCII mode or RTU mode, PLC will save data that being
transmitted in registers D1256~D1295. Users can move these data to
general registers by using MOV, DMOV or BMOV commands. Other
commands are invalid to this area.
Ϩʳ After receiving data that return from AC drive, PLC will check it. If there
is fault, M1140 will be ON.
Ϩʳ Inner data address of AC drive. If address is illegal to assigned
equipment, it will have fault code. Fault code will be saved in D1130
and M1141 will be on. For example, 4000H is illegal to VFD-S, M1141
is ON and D1130=2. Please refer to VFD-S user manual for detail.
Ϩʳ After M1140 is ON or M1141 is ON, it will transmit a correct data to AC
drive. If return data is correct, M1140 and M1141 will be reset.
M1002
MOV
M1120
D1129
setting communication
protocol 9600, 8, E, 1
Communication protocol
latched
setting communication time
out
1
00
m
s
X0
H87 D1120
SET
K100MOV
X1
SET
hadling receive data
receive data
completed and reset
flag
M1123
ASCII mode: receive return data in special registers D1070~D1078 in ASCII form
RST
setting transmit flag
M1122
M1123
K1
connection
device
address K1
data
address
H2000
D50H2000
MODRW
K12K16
write
many
WORD to
register
saving
data
register
read/write
data
length
w
o
r
d
M1143
X10
RTU mode: receive return data in special registers D1070~D1077 in HEX form
receive
com
p
eleted
Footnote:
1. V4.9 and above of ES / EX / SS series have this command MODRW.
2. Relative flag signal and special register of RS -485 communication
MODRW command: please refer to footnote of API 80 RS command
for detail.
Flag Function explanation
M1120 Communication setting latched
M1121 Transmit waiting message
M1122 Delivery request