beautypg.com

2 cmd (command code) and data, Cmd (command code) and data -8 – Delta DVP-ES2 User Manual

Page 610

background image

D V P - E S 2 / E X 2 / S S 2 / S A2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g

4.3.2 CMD (Command code) and DATA

The content of access data depends on the command code. For descriptions of available command

codes, please refer to 4.2.2 in this chapter.

Example: read consecutive 8 words from address 0614H~H61B (T20~T27) of PLC Slave ID#1.

PC→PLC

“ 01 03 06 14 00 08 04 80”

Sent message:

Field Name

Example (Hex)

START

No data input ≥ 10 ms

Slave Address

01

Command code

03

06

Starting Address

14

00

Number of Points

08

CRC CHK Low

04

CRC CHK High

80

END

No data input ≥ 10 ms


PLC→PC

“ 01 03 10 00 01 00 02 00 03 00 04 00 05 00 06 00 07 00 08 72 98”

Feedback message:

Field Name

Example (Hex)

START

No data input ≥ 10 ms

Slave Address

01

Command code

03

Bytes Count

10

Data Hi (T20)

00

Data Lo (T20)

01

Data Hi (T21)

00

Data Lo (T21)

02

Data Hi (T22)

00

Data Lo (T22)

03

Data Hi (T23)

00

Data Lo (T23)

04

Data Hi (T24)

00

4 - 8

This manual is related to the following products: