3. Enable/Disable Barcode Symbologies ( ESC B )
Format:
?
STX ESC ‘B’ <C
1
C
2
C
3
C
4
C
5
C
6
C
7
C
8
> CS1 CS2 ADDR
C
1
=
‘E’
Enable Code 39
‘F’
Enable Code 39 full ASCII
‘D’ Disable Code 39
C
2
- C
8
=
‘E’
Enable Interleaved 2 of 5, Codabar,
UPC/EAN, Code
128,
EAN 128, Code 93, Trioptic Code respectively
‘D’ Disable
?
STX ESC ‘B’ <retcode>CS1 CS2 ETX
;<retcode>= 00H successful
;
01H error
4. Communication Configuration ( ESC C )
Format:
?
STX ESC ‘C’ <comtable> CS1 CS2 ADDR
?
STX ESC ‘C ‘ <retcode> CS1 CS2 ETX
;<retcode>= 00H successful
; 01H error
Description: The command writes <comtable> to PT600 communication
control table.
<comtable> is defined as:
typedef strut {
char baud_rate; // ‘0’~’9’/‘A’:
110/150/300/600/1200/2400
//
4800/9600/
9200/38400/57600
char stop_bit,
// ‘1’/’2’:
1/2 stop bits
char data_bit
// ‘7’/’8’:
7/8 data bits
char parity;
// ‘N’/’O’/’P’:
None/Odd /Even
parity
char flow_control;
// ‘X’/’C’/’F’:
XON XOFF/RTS
CTS/NONE
char protocol;
// ‘M’/’F’ MULTIPOINT/None
char address
// ‘A’~’Y’ or ‘0’~’6’
char reserved;
char reserved;
char timeout
;
// communication time-out
} comtable;
Содержание PT600
Страница 1: ...PT600 Portable Terminal Programming Reference Guide Document number 3506000120...
Страница 7: ......
Страница 16: ......
Страница 20: ...regs h bh 5 regs h al unsigned char type regs h bl unsigned char status int86 0x21 regs regs...
Страница 57: ......
Страница 66: ...Host Command STX ESC CMD parameters CS1 CS2 ADDR Acknowledgement ACK Negative ACK NAK...