Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Ascii

Models: DVP-ES2/EX2/SS2/SA2/SX2/SE

1 702
Download 702 pages 56.54 Kb
Page 616
Image 616

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

4.5.2 Command Code: 02, Read Status of Contact (Input point X is included)

Example: Read status of contact Y024~Y070 from Slave ID#01

PC→PLC “: 01 02 05 14 00 25 BF CR LF”

Sent message:

Field Name

ASCII

STX

:

 

 

Slave Address

01

 

 

Command code

02

 

 

Starting Address Hi

05

 

 

Starting Address Lo

14

 

 

Number of Points Hi

00

 

 

Number of Points Lo

25

 

 

Error Check (LRC)

BF

 

 

END 1

0D (Hex)

 

 

END 0

0A (Hex)

 

 

Assume Number of Points in sent message is n (Dec), quotient of n/8 is M and the remainder is N. When N = 0, Bytes Count in feedback message will be M; when N≠0, Bytes Count will be M+1.

PLC→PC “: 01 01 05 CD 6B B2 0E 1B E5 CR LF”

Feedback message:

Field Name

ASCII

STX

:

 

 

Slave Address

01

 

 

Command code

02

 

 

Bytes Count

05

 

 

Data (Coils Y033…Y024)

CD

 

 

Data (Coils Y043…Y034)

6B

 

 

Data (Coils Y053…Y044)

B2

 

 

Data (Coils Y063…Y054)

0E

 

 

Data (Coils Y070…Y064)

1B

 

 

Error Check (LRC)

E5

 

 

END 1

0D (Hex)

 

 

END 0

0A (Hex)

 

 

4 - 14

Page 616
Image 616
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Ascii