beautypg.com

Message configuration, Error check, 2 message configuration – Dwyer UXF3 User Manual

Page 37: 3 error check, 1 reception, 2 acknowledge, 3 error acknowledge

background image

- 33 -

8.2 Message

Configuration

8.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)

8.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)

8.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

8.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-107-UXF3-S