Specifications

7. Application Instructions
© DELTA ELECTRONICS, INC. ALL RIGHTS RESERVED
7-40
Program Example 3:
Ϩʳ When PLC connects to VFD-B series AC drives (ASCII Mode,
M1143=OFF), (16 bits Mode, M1161=OFF), it will transmit data to read
6 continuous data that start from VFD-B reference address H2101.
transmit
request
write delivery data in
ad
v
a
n
ce
SET M1122
delivery
request
Pluse
X10
RS D100 K17 D120 K35
Receive
compeleted
deal with received
data
Receive compeleted
Flag reset
M1123
RST M1123
M1002
MOV
M1120
D1129
Setting communication
protocol 9600, 7, E, 1
Communication protocol
latched
Setting communication time
out 100ms
H86 D1120
SET
K100MOV
PLC VFD-B, PLC transmits: : 01 03 2101 0006 D4 CR LF
VFD-B PLC, PLC receives: : 01 03 0C 0100 1766 0000 0000 0136 3B
CR LF ”
PLC transmits data register (PLC transmits messages)
Register DATA
D100 lower : 3A H STX
D100 upper 0 30 H ADR 1
D101 lower 1 31 H ADR 0
ADR (1,0) is AC drive address
D101 upper 0 30 H CMD 1
D102 lower 3 33 H CMD 0
CMD (1,0) is command code
D102 upper 2 32 H
D103 lower 1 31 H
D103 upper 0 30 H
D104 lower 1 31 H
Start data address
D104 upper 0 30 H
D105 lower 0 30 H
D105 upper 0 30 H
D106 lower 6 36 H
Number of data(count by word)
D106 upper D 44 H LRC CHK 1
D107 lower 4 34 H LRC CHK 0
LRC CHK (0,1) is fault check
code
D107 upper CR A H
D108 lower LF D H
END
PLC receive data register (VFD -B response messages)
Register DATA
D120 lower ‘ : ’ 3A H STX
D120 upper 0 30 H ADR 1
D121 lower 1 31 H ADR 0
D121 upper 0 30 H CMD 1
D122 lower 3 33 H CMD 0
D122 upper 0 30 H
D123 lower C 43 H
Number of data (count by byte)
D123 upper 0 30 H
D124 lower 1 31 H
D124 upper 0 30 H
D125 lower 0’ 30 H
Content of address 2101 H
D125 upper ‘1 31 H
D126 lower 7’ 37 H
D126 upper 6 36 H
D127 lower 6 36 H
Content of address 2102 H