beautypg.com

Delta Electronics Programmable Logic Controller DVP-PLC User Manual

Page 404

background image

8 Application Instructions API 100-149

DVP-PLC Application Manual

8-2

MOV

D1120

H87

M1002

SET

M1120

MOV

D1129

K100

M1127

RST

M1127

receiving

completed

Set up communication protocol 9600, 8, E, 1

Retain communication protocol

Set up communication time-out: 100ms

Process of receiving data

Sending/receiving of data is completed. The flag is reset.

SET

M1122

Set up sending request

X1

X0

MODRD

K1

H2101

K6

Set up communication instruction device address 01
data address H2101 data length 6 words

The received data are stored in D1070 ~ D1085 in ASCII format.
PLC will automatically convert the data into numerals and store
them in D1050 ~ D1055.

PLC VFD-S, PLC sends: “01 03 2101 0006 D4

VFD-S PLC , PLC receives: “01 03 0C 0100 1766 0000 0000 0136 0000 3B

Registers for sent data (sending messages)

Register DATA

Explanation

D1089 low

‘0’

30 H

ADR 1

D1089 high

‘1’

31 H

ADR 0

Address of AC motor
drive: ADR (1,0)

D1090 low

‘0’

30 H

CMD 1

D1090 high

‘3’

33 H

CMD 0

Instruction code: CMD
(1,0)

D1091 low

‘2’

32 H

D1091 high

‘1’

31 H

D1092 low

‘0’

30 H

D1092 high

‘1’

31 H

Starting data address

D1093 low

‘0’

30 H

D1093 high

‘0’

30 H

D1094 low

‘0’

30 H

D1094 high

‘6’

36 H

Number of data (counted by words)

D1095 low

‘D’

44 H

LRC CHK 1

D1095 high

‘4’

34 H

LRC CHK 0

Checksum: LRC CHK
(0,1)

Registers for received data (responding messages)

Register DATA

Explanation

D1070 low

‘0’

30 H

ADR 1

D1070 high

‘1’

31 H

ADR 0

D1071 low

‘0’

30 H

CMD 1

D1071 high

‘3’

33 H

CMD 0

D1072 low

‘0’

30 H

D1072 high

‘C’

43 H

Number of data (counted by byte)

D1073 low

‘0’

30 H

D1073 high

‘1’

31 H

D1074 low

‘0’

30 H

D1074 high

‘0’

30 H

Content of
address 2101 H

PLC automatically convert
ASCII codes to numerals
and store the numeral in
D1050 = 0100 H

D1075 low

‘1’

31 H

D1075 high

‘7’

37 H

D1076 low

‘6’

36 H

D1076 high

‘6’

36 H

Content of
address 2102 H

PLC automatically convert
ASCII codes to numerals
and store the numeral in
D1051 = 1766 H

D1077 low

‘0’

30 H

D1077 high

‘0’

30 H

D1078 low

‘0’

30 H

D1078 high

‘0’

30 H

Content of
address 2103 H

PLC automatically convert
ASCII codes to numerals
and store the numeral in
D1052 = 0000 H