8 computer link protocol, Generai message format, Computer link protocol – Toshiba SX 2000 User Manual

Page 42

Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

Advertising
background image

1.3.8

Computer link protocol

This section introduces the general message format of the T-series computer link

protocol and the types of commands which are used for the S2T.

For details of the T-series computer link protocol, refer to the separate manual

"T-series Computer Link Operation Manuai".

Generai message format

1.3 Computer link mode

Max.255bytes

1 2 3 4 5 6 7

( A ADR CMD DATA &

SUM )/; CR

Checksum creation range

Text contents

(

Start code (H28)

Ibyte

A

Format identification code (FI41)

Ibyte

ADR ..........

Station number

01 (H3031) through 32(H3332)

2byte

CMD .........

Command

2byte

DATA ........

Data field - depending on the command (max.244bytes)

&

Checksum delimiter (FI26)

Ibyte

SUM ..........

Checksum

ASCII code of the lowest one byte of the sum obtained by
addingfrom the start code ’(’ to the checksum delimiter

See the following example.

2byte

)

End code (H29)

Ibyte

? ..........................

End code (H3B)

in case of halfway of entire data

Ibyte

CR

Carriage return code (FIOD)

Ibyte

Checksum creation example:

(

A

0

1

s

T

&

9

7

)

CR

/\

Lower two digits

■(’

= H28

‘A’

= H41

‘0’

= H30

‘1’

= H31

‘S’

= H53

‘T’

= H54

■&’

= H26

HI 97-^

Sum

6F8C0926

25

Advertising