PT630 Programming Reference Guide
Page 69 of 59
------------------------------------------------------------------------------------------------------------------
2.4.19
Terminal Mode Configuration ( ESC T )
Format:
⇒
STX ESC ‘T’ <termtable> CS1 CS2 ADDR
⇐
STX ESC ‘T’ <retcode> CS1 CS2 ETX ;<retcode>=00H success
; 01H error
⇒
ACK or NAK
Description: The command set the configuration for PT630 Terminal Mode.
<termtable> is defined as:
typedef struct {
char id[8];
// terminal ID
= fixed 8 characters string
char online;
// ‘R’ /’ L’ = remote / local
char echo;
// ‘N’ /’ F’ =echo on / echo off
char autolf;
// ‘N’ / ‘F’ =autoLF / no autoLF
char mode;
// ‘C’ /’ B’ =character / block mode
char linepage;
// ‘L’ /’ P’ / ‘B’ = block defined as line / page / both
char
lineterm;
//
line
mode
terminator
character
char
pageterm;
//
page
mode
terminator
character
}
termtable;
The new terminal control table takes effect immediately after the command has been
successfully received.
2.4.20
Device Configuration ( ESC V )
Format:
⇒
STX ESC ‘V’ <devtable> CS1 CS2 ADDR
⇐
STX ESC ‘V’ <retcode> CS1 CS2 ETX
;<retcode>=00H success
; 01H error
⇒
ACK or NAK
Description: The command sets configuration of PT630 device control table.
<devtable> is defined as:
typedef struct {
char scanner_type; // ‘P’ /‘A’/‘D’ = Pen/Auto/Disable
char lcd_backlit; // ‘N’ / ‘F’ = LCD backlight ON /OFF
char buzzer;
// ‘N’ /‘F’ = Buzzer ON /OFF
char
reserved;
char beepvol;
// ‘0’ /‘5’ /‘9’ = Vol. Low/Medium/High
char serial_port; // ‘N’ /‘F’ = RS232 port Enable/Disable
char auto_off;
// ‘0’ = disable auto-off
//
‘1’
~
‘9’ auto-off
timer
(1~9
minutes)
char
reserved;
}
devtable;
The new device control table takes effect immediately after the command has been successfully
received.