NEC RS-232C user manual Message block format, Header, Check code Delimiter

Models: RS-232C

1 50
Download 50 pages 13.24 Kb
Page 4
Image 4
4.2 Message block format
MSB

5thbyte) Message Type: (Case sensitive.)

Refer to section 4.2 “Message block format” for more details.

ASCII 'A' (41h): Command.

ASCII 'B' (42h): Command reply.

ASCII 'C' (43h): Get current parameter from a monitor.

ASCII 'D' (44h): "Get parameter" reply.

ASCII 'E' (45h): Set parameter.

ASCII 'F' (46h): "Set parameter" reply.

6th -7thbytes) Message Length:

Specify the length of the message (that follows the header) from STX to ETX. This length includes STX and ETX.

The byte data must be encoded to ASCII characters.

Ex.) The byte data 3Ah must be encoded to ASCII characters '3' and 'A' (33h and 41h). The byte data 0Bh must be encoded to ASCII characters '0' and 'B' (30h and 42h).

4.2 Message block format

Header

Message

Check code Delimiter

“Message block format” is allied to the “Message Type” in the “Header”. Refer to the section 6 “Message format” for more detail.

1Get current parameter

The controller sends this message when you want to get the status of the monitor.

For the status that you want to get, specify the “OP code page” and “OP code”,

refer to “Appendix A. Operation code table”.

 

 

“Message format” of the “Get current

parameter” is as follows,

 

STX

OP code page

OP code

ETX

 

 

Hi

Lo

Hi

 

Lo

 

 

 

 

 

 

Refer to section 5.1 “Get current parameter from a monitor.” for more details.

2Get Parameter reply

The monitor will reply with the status of the requested item specified by the controller in the “Get parameter message”.

“Message format” of the “Get parameter reply” is as follows,

 

Result

OP code

OP code

Type

Max value

Current Value

 

STX

page

ETX

 

 

 

 

 

Hi

Lo

Hi

Lo

Hi

Lo

Hi

Lo

MSB

LSB

LSB

Refer to section 5.2 “Get parameter reply” for more details.

3Set parameter

The controller sends this message to change a setting of the monitor.

(4/50)

Page 4
Image 4
NEC RS-232C user manual Message block format, Header, Check code Delimiter