Specifications
7. Application Instructions
© DELTA ELECTRONICS, INC. ALL RIGHTS RESERVED
7-67
M1002
MOV
M1120
D1129
setting communication
protocol 9600, 8, E, 1
Communication protocol
latched
setting communication time
out 100m
s
X0
H87 D1120
SET
K100MOV
X1
SET
hadling receive data
receive data
completed and reset
fl
ag
M1123
ASCII mode: receive return data in special register D1070~D1078 in ASCII form
RST
setting transmit flag
M1122
M1123
K1
connection
device
address K1
data
address
H2000
D50H2000MODRW K12K6
saving
data
register
read/write
data length
word
M1143
X10
RTU mode: receive return data in special register D1070~D1077 in HEX form
receive
compeleted
read
many
items
data
Program Example 2:
Ϩʳ Function code K6(H6): write a WORD to register
A. PLC connects to VFD-S AC drive. (ASCII Mode when M1143=OFF)
B. PLC connects to VFD-S AC drive. (ASCII Mode when M1143=ON)
Ϩʳ When in ASCII mode, users save data that will be wrote to AC drive in
ASCII form in assigned register D0. Data that return from AC drive will
be saved in registers D1070~D1076.
Ϩʳ When in RTU mode, users save data that will be wrote to AC drive in
HEX form in assigned register D0. Data that return from AC drive will
be saved in register D1070~D1076.
Ϩʳ When in ASCII mode or RTU mode, PLC will save data that will
transmit in transmission registers D1256~D1295. Users can move
these data to general registers by using MOV, DMOV or BMOV
commands.
Ϩʳ After receiving return data from AC drive, PLC will check the receiving
data automatically. If having 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
will be 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
t
im
e
out
1
00
m
s
X0
H87 D1120
SET
K100MOV
X1
SET
hadling receive data
receive data
completed and reset
flag
M1123
A
SCII 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
D50H2000MODRW K12K6
write a
WORD to
register
saving
data
register
read/write
data
length
word
M1143
X10
RTU mode: receive return data in special registers D1070~D1077 in HEX form
receive
co
m
pe
l
eted