beautypg.com

TOHO ELECTRONICS TRM-006A User Manual

Page 30

background image

30

d) Number of registers

This specifies the number of registers to be written in. Since this product has a fixed
number of registers (which is 2), specify 0002H.

e) Register address

The locations of the data to be read or that to be written are specified in 2 bytes.

For the addresses of the commands, see "9. Table of identifiers (codes)."


f)

LRC

LRC is an error check code for detecting message errors. An LRC is transmitted. The LRC
used in this product is the 2-complement of the sum of the data portions without a carry,
except for the start code and end code of the message.

The parts of the data portions expressed as a "1" and "B" are considered as "1BH."

To learn how to calculate the LRC, see "6.12 Example of LRC calculations."

If 12H is calculated as an error code, affix a "1" or "2" at the end of the message.

g) End code

This code is required for the receiver to detect the end of a message. Affix CR (0DH) and
LF (0AH) at the end of a character string to be transmitted.

h) Number of data

This specifies the number of registers to be read and written x 2. Since the number of
registers in this product is fixed at 2, specify 04H here.

i)

Data portion

This specifies data to be written in the register. The data is fixed at 4 bytes. This product
will write data without the decimal point.

Example: In the case of numerical data

Example

Significance of the value

Proportional band (P) = 1.0 %

0 0 0 0 0 0 0 A H

PV = 1200.0

°

C

0 0 0 0 2 E E 0 H

SV = -10.00

°

C

F F F F F C 1 8 H

In the case of text data, write the ASCII code "□INP" (□ is a space): 20494E50H.