NEC RS-232C user manual Set parameter reply

Models: RS-232C

1 50
Download 50 pages 13.24 Kb
Page 9
Image 9
5.4 "Set parameter" reply

This OP code page data must be encoded to ASCII characters.

Ex.) The byte data 02h must be encoded to ASCII '0' and '2' (30h and 32h).

Refer to the Operation code table.

4th-5thbytes) OP code: Operation code

This OP code data must be encoded to ASCII characters.

Ex.) OP code 1Ah -> OP code (Hi) = ASCII '1' (31h)

OP code (Lo) = ASCII 'A' (41h)

Refer to the Operation code table. 6th-9thbytes) Set value: (16bit)

This data must be encoded to ASCII characters.

Ex.) 0123h -> 1st(MSB) = ASCII '0' (30h)

2nd = ASCII '1' (31h)

3rd = ASCII '2' (32h)

4th(LSB) = ASCII '3' (33h)

10thbyte) ETX: End of Message

ASCII ETX (03h)

5.4 "Set parameter" reply

 

Result

OP code page

 

OP code

 

Type

 

Max value

Requested setting

 

STX

 

 

 

 

Value

 

ETX

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hi

 

Lo

Hi

 

Lo

 

Hi

 

Lo

 

Hi

Lo

MSB

 

 

 

LSB

MSB

 

 

 

LSB

 

1st

2nd

-3rd

 

4

th-5th

 

6th

-7th

 

8th

-9th

 

 

10th-13th

14th -17th

18th

 

 

The Monitor echoes back the parameter and status of the requested operation code.

 

 

 

1stbyte) STX: Start of Message

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ASCII STX (02h)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2nd-3rdbytes) Result code

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ASCII '0''0' (30h, 30h): No Error.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ASCII '0''1' (30h, 31h): Unsupported operation with this monitor or unsupported operation under

 

 

 

current condition.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4th-5thbytes) OP code page: Echoes back the Operation code page for confirmation.

 

 

 

 

 

Reply data from the monitor is encoded to ASCII characters.

 

 

 

 

 

 

 

 

 

Ex.) OP code page 02h ->

 

 

OP code page = ASCII '0' and '2' (30h and 32h)

 

 

 

 

 

Refer to Operation code table.

 

 

 

 

 

 

 

 

 

 

 

 

 

6th-7thbytes) OP code: Echoes back the Operation code for confirmation. Reply data from the monitor is encoded to ASCII characters.

Ex.) OP code 1Ah -> OP code (Hi) = ASCII '1' (31h)

OP code (Lo) = ASCII 'A' (41h)

Refer to Operation code table 8th-9thbytes) Type: Operation type code

(9/50)

Page 9
Image 9
NEC RS-232C user manual Set parameter reply