Binary output file (see, 12 app, Binary output – Yokogawa Touch Screen GP20 User Manual

Page 69

Advertising
background image

2-55

IM 04L51B01-17EN

Commands and Responses

1

2

App

Binary Output

The responses to output commands consisting of binary data output requests are in binary.

Format

The following figure shows the binary output format. The GX/GP adds a header to the front

of binary output data and a checksum at the end. The request data is entered in the data

block.

'E'

'B'

CR

LF

Data block

Data length

Data sum

Flag

Reserved area 1

Reserved area 2

Header sum

1 byte

2 bytes

4 bytes

EBCRLF

The EBCRLF block stores ASCII code “E,” ASCII code “B,” followed by “CR” “LF.” This

indicates that the output data is binary.

Data length (32 bits, big endian)

The data length block indicates the length of “flag + reserved area 1 + reserved area 2 +

header sum + data block + data sum” in bytes.

Flag (16 bits, big endian)

The flag block indicates information of the entire data block.

Bit

Flag Value

Flag Meaning

0

1

15

Always zero

Not used

14

No

Yes

Data sum inclusion

13

Always zero

Not used

:

1

0

Intermediate

data

Last data

If the output data is continuous data, this flag

indicates whether the last value in the data block

is intermediate data or last data.

Reserved area 1 (16 bits), reserved area 2 to (16 bits)

Not used

Header sum (16 bits, big endian)

The header sum block indicates the sum of “data length + flag + reserved area 1 + reserved

area 2.”

2.9 Responses to Commands

Advertising
This manual is related to the following products: