3. Instruction Set

Program Example 3:

1.In the communication between PLC and VFD-B series AC motor drive (ASCII Mode, M1143 = OFF), executes Retry when communication time-out, data receiving error or parameter error occurs

2.When X0 = ON, PLC will write data H1770 (K6000) into address H0100 in device 01 (VFD-B).

3.M1129 will be ON when communication time-out occurs. The program will trigger M1129 and send request for reading the data again.

4.M1140 will be ON when data receiving error occurs. The program will trigger M1140 and send request for reading the data again.

5.M1141 will be ON when parameter error occurs. The program will trigger M1141 and send

request for reading the data again.

M1002

 

 

Set communication protocol as 9600, 8, E, 1

 

 

 

 

 

 

MOV

H87

D1120

 

 

 

 

 

 

 

 

 

 

SET

M1120

Retain communication protocol

 

 

 

 

 

 

 

 

 

 

 

 

MOV

K100

D1129

Set communication timeout as 100ms

 

 

 

 

 

 

X0

M1122

Sending request

 

 

 

 

 

 

SET

 

 

 

 

 

 

 

 

 

 

 

 

M1129

Retry when communication time-out occurs

M1140

Retry when data receiving error occurs

M1141

Retry when parameter error occurs

X0

 

 

 

 

 

 

 

 

 

 

MODWR

K1

H0100 H1770

Set communication instruction:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Data: H1770

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Data address: H0100

 

 

 

 

 

 

 

 

 

 

Receiving completed

 

 

 

 

 

Device address: 01

 

 

 

 

 

 

 

 

 

 

 

M1127

 

 

 

The received data is stored in D1070-D1085

 

 

 

 

Processing received data

 

 

 

 

 

 

 

 

 

 

 

 

in ASCII format .

 

 

 

 

RST

M1127

Reset M1127

 

 

 

 

 

 

M1129

M1129

Reset M1129 (receiving timeout)

 

 

 

 

RST

 

 

 

 

3 - 2 7 7

Page 393
Image 393
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual M1002 Set communication protocol as 9600, 8, E