3. Instruction Set
Program Example 2:
Communication between PLC and VFD-B series AC motor drive (RTU Mode, M1143= ON)
MOV D1120
H87
M1002
SET
M1120
MOV D1129
K100
M1127
Receiving
completed
Set communication protocol as 9600, 8, E, 1
Retain communication protocol
Sett receiving timeout as 100ms
Processing received data
Reset M1127
Sending request
X1
The received data
in HEX.
is stored
in D1070~D1085
Set as RTU mode
X0
MODRD K1 H2102
Set communication instruction:
D
Data address: H2102
D
ata length: 2 words
evice address: 01
K2
SET
M1143
SET
M1122
RST
M1127
PLC → VFD-B , PLC transmits: 01 03 2102 0002 6F F7
VFD-B → PLC, PLC receives: 01 03 04 1770 0000 FE 5C
Registers for data to be sent (sending messages)
Address of AC motor drive
Command code of AC motor drive
Starting data address
Number of data (count by word)
Registers for received data (responding messages)
Address of AC motor drive
Command code of AC motor drive
Number of data (count by byte)
Content of address 2102 H
Content of address 2103 H