10 description of ascii codes – TOHO ELECTRONICS TRM-006A User Manual

Page 29

Advertising
background image

29

6.9.2 Response message for a write/store request message

a) Start code

“:”

b) Slave address

“0” , “3”

c) Function code

“1” , “0”

High level

“0” , “0”

d) Register address

Low level

“0” , “0”

First register address

High level

“0” , “0”

e) Number of registers

Low level

“0” , “2”

Fixed at 2

f)

LRC

“E” , “B”

g) End code

CR, LF


6.9.3 Response message in the case of an error

a) Start code

“:”

b) Slave address

“1” , “B”

h) Function code

“8” , “3”

j)

Error code

“0” , “2”

f) LRC

“6” , “0”

In the case of an error, the function

code for the request message +
80H is entered.

g) End code

CR, LF


6.10 Description of ASCII codes

n The codes from a) start code to b) slave address to j) error type described below are expressed

in ASCII codes.

n For ASCII codes, see "10. Table of ASCII codes."
n For converting to ASCII codes, see 6.8 and 6.9 "Message composition."

a) Start code

The receiver side is the code required for detecting the top of the message. It is affixed to
the top of a character string to be transmitted.

b) Slave address

This is the address of the party (this product) with which the high-level computer
communicates. The address in the response message from this product represents the
source of the response message. Note that, when CH2 is used, 2 addresses are occupied.
(When the ADR is set to 1, addresses 1 and 2 are occupied.)

c) Function code

Enter a code 03H or 10H.

03H: To read data from this product
10H: To write or store data in this product

Advertising