beautypg.com

Message configuration, Error check, Reception – Dwyer UXF2 User Manual

Page 118: Acknowledge, Error acknowledge

background image

- 108 -

6.1.2. Message configuration

6.1.2.1. Reception

Description Bytes Remarks

Start mark

1

: (3Ah)

Slave address (SLV)

2

01 to 31

Function code (F_CD)

4

See function code table.

Error check

2

LRC

1 CR

(0Dh)

End mark

1 LF

(0Ah)

6.1.2.2. Acknowledge

Description Bytes Remarks

Start mark

1

: (3Ah)

Slave address (SLV)

2

01 to 31

Function code (F_CD)

4

See function code table.

Data length (L)

2

Data 2L

Error check

2

LRC

1 CR

(0Dh)

End mark

1 LF

(0Ah)

6.1.2.3. Error acknowledge

Description Bytes Remarks

Start mark

1

: (3Ah)

Slave address (SLV)

2

01 to 31

Function code (F_CD)

4

See function code table.

Error data

2

See error data table.

Error check

2

LRC

1 CR

(0Dh)

End mark

1 LF

(0Ah)

Receive format

:

SLV

F_CD

LRC

CR

LF

Acknowledge format

:

SLV

F_CD

Data

length

Data

LRC

CR

LF

Error acknowledge format

:

SLV

F_CD

Error

data

LRC

CR

LF

6.1.3. Error check

Arrange the LRC so that the sum (carry not included) of all ASCII data excluding ":", "CR" and "LF" will be 00h.

[LRC creation procedure]

(1) Add the data headed by the start mark (:) excluding the carry.
(2) Obtain 2's complement for the sum.
(3) Convert the 2's complement into ASCII (= LRC).

BULLETIN F-70