beautypg.com

Page 17 – Dwyer 4C User Manual

Page 17

background image

Communication Protocol
Command code to read N words: 03H. The maximum value of N is 3.
For example, in order to read two words from controller 01 (address 01H)
at starting data address 4700H, the command in ASCII mode is:

ASCII mode:
Command message: Response message:

LRC check:
LRC check is the added sum from “Address” to Data content”. For
example, 01H + 03H + 47H + 00H + 00H + 02H = 4DH, then take the
complementary of 2, B3H.
Command code to write 1 word: 06H
For example, in order to write 1000 (03E8H) in controller 01 (comm.
address 01H) at starting data address 4701H, the command is ASCII
mode is:

ASCII mode:
Command message: Response message:

STX
ADR1
ADR0
CMD1
CMD0

Starting
data
address

Number of data
(count by word)

LRC CHK 1
LRC CHK 0
END 1
END 0

Page 17

‘:’
‘0’
‘1’
‘0’
‘3’
‘4’
‘7’
‘0’
‘0’
‘0’
‘0’
‘0’
‘2’
‘B’
‘3’
CR
LF

STX
ADR1
ADR0
CMD1
CMD0
Number of data
(count by byte)

Content of start
address 4700H

Content of start
address 4700H

LRC CHK 1
LRC CHK 0
END 1
END 0

‘:’
‘0’
‘1’
‘0’
‘3’
‘0’
‘4’
‘0’
‘1’
‘9’
‘0’
‘0’
‘0’
‘0’
‘0’
‘6’
‘7’
CR
LF

STX
ADR1
ADR0
CMD1
CMD0

Starting
data
address

Data Content

LRC CHK 1
LRC CHK 0
END 1
END 0

‘:’
‘0’
‘1’
‘0’
‘6’
‘4’
‘7’
‘0’
‘1’
‘0’
‘3’
‘E’
‘8’
‘C’
‘6’
CR
LF

STX
ADR1
ADR0
CMD1
CMD0

Starting
data
addresses

Data Content

LRC CHK 1
LRC CHK 0
END 1
END 0

‘:’
‘0’
‘1’
‘0’
‘6’
‘4’
‘7’
‘0’
‘1’
‘0’
‘3’
‘E’
‘8’
‘C’
‘6
CR
LF

This manual is related to the following products: