DVP - ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming

Program Example:

Connect PLC to VFD series AC motor drive (RTU mode, M1143 = ON), (8-bit mode, M1161 = ON), Write the data to be sent (H1770) into address H0706 on VFD.

 

M1002

MOV

H86

D1120

Set communication protocol as

 

 

 

 

 

 

 

 

 

 

 

 

 

9600,7,E,1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SET

M1120

Retain communication setting

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MOV

K100

D1129

Set communication timeout as:

 

 

 

 

 

 

100ms

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SET

M1161

8-bit mode

 

 

 

Sending

 

 

 

 

 

 

 

 

 

 

 

request pulse

Write data to be sent in advance

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SET

M1122

Sending request

 

 

 

X0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RS

D100

K8

D120

K8

 

 

 

 

 

 

 

Receiving completed

 

 

 

 

 

 

M1123

Processing received data

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RST

M1123

Reset M1123

 

 

 

 

 

 

 

 

 

 

PLC VFD, PLC sends:

01 06 0706 1770 66 AB

 

 

Registers for sent data (sending messages)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Register

 

 

Data

Explanation

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D100 low byte

 

01 H

Address

 

 

 

 

 

 

D101 low byte

 

06 H

Function

 

 

 

 

 

 

D102 low byte

 

07 H

Data address

 

 

 

 

 

D103 low byte

 

06 H

 

 

 

 

 

 

 

 

 

 

 

 

 

D104 low byte

 

17 H

Data content

 

 

 

 

 

D105 low byte

 

70 H

 

 

 

 

 

 

 

 

 

 

 

 

 

D106 low byte

 

66 H

CRC CHK 0

 

 

 

 

 

D107 low byte

 

AB H

CRC CHK 1

 

 

The error checksum CRC CHK (0,1) can be calculated by CRC instruction (8-bit mode, M1161 = ON).

M1000

CRC D100 K6 D106

CRC checksum: 66 H is stored in low byte of D106 and AB H in low byte of of D107,

3 - 294

Page 410
Image 410
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual 01 06 0706 1770 66 AB