3. Instruction Set

Program Example 2:

Communication between PLC and VFD-B series AC motor drive (RTU Mode, M1143= ON)

 

M1002

 

MOV

H87

D1120 Set communication protocol as 9600, 8, E, 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SET

M1120

Retain communication protocol

 

 

 

 

 

 

 

 

 

 

 

 

 

MOV

K100

D1129 Sett receiving timeout as 100ms

 

 

 

 

 

 

 

 

 

 

 

 

 

SET

M1143 Set as RTU mode

 

 

 

X1

 

 

 

 

 

 

 

 

Sending request

 

 

 

 

 

 

 

 

SET

M1122

 

 

 

 

 

 

 

 

 

 

X0

 

MODRD

K1

H2102

K2

 

 

 

 

 

 

 

 

Set communication instruction:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Data length: 2 words

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Data address: H2102

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

M1127

 

 

 

 

 

 

 

 

Device address: 01

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The received data is stored

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Processing received data in D1070~D1085 in HEX.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Receiving

 

 

RST

M1127

Reset M1127

 

 

 

 

 

 

completed

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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)

 

Register

Data

Descriptions

 

D1089 low byte

01 H

Address of AC motor drive

 

 

 

 

 

D1090 low byte

03 H

Command code of AC motor drive

 

 

 

 

 

D1091 low byte

21 H

Starting data address

 

 

 

 

D1092 low byte

02 H

 

 

 

 

 

 

 

D1093 low byte

00 H

Number of data (count by word)

 

 

 

 

D1094 low byte

02 H

 

 

 

 

 

 

 

D1095 low byte

6F H

CRC CHK Low

 

 

 

 

 

D1096 low byte

F7 H

CRC CHK High

 

 

 

 

Registers for received data (responding messages)

 

 

 

 

 

Register

Data

Descriptions

 

D1070 low byte

01 H

Address of AC motor drive

 

 

 

 

 

D1071 low byte

03 H

Command code of AC motor drive

 

 

 

 

 

D1072 low byte

04 H

Number of data (count by byte)

 

 

 

 

 

D1073 low byte

17 H

Content of address 2102 H

 

 

 

 

D1074 low byte

70 H

 

 

 

 

 

 

 

D1075 low byte

00 H

Content of address 2103 H

 

 

 

 

D1076 low byte

00 H

 

 

 

 

 

 

3 - 2 7 1

Page 387
Image 387
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual K100 D1129 Sett receiving timeout as 100ms