User manual

APOS Premium Printer Series User Manual Page 129 /136 Reference: FDE 3107312 Issue A
SET
COMMUNICATION INTERFACE PARAMETERS
Synopsis:
Setting communication parameters
Syntax:
ASCII:
US STX n1 n2
n3 n4 n5 n6
Decimal:
31 2 n1 n2
n3 n4 n5 n6
Hex:
1F 02 n1 n2 n3 n4 n5 n6
Description:
n1 Interface
00h RS232
03h USB
n2, bit [0..2] RS232 Baudrate
00h 1200
01h 2400
02h 4800
03h 9600
04h 19200
05h 38400
06h 57600
07h 115200
n2, bit 4 RS232 Number of stop bits
0 1
1 2
n2, bit 5 RS232 Number of data bits
0 8
1 7
n3 RS232 Parity
0x00 Odd parity
0x01 Even parity
n4 RS232 Parity mode
0x00 No parity
0x01 Enabled and set using parameter described above
n5 RS232 Handshaking
0x00 Xon/Xoff
0x01 DTR/DSR
n6 RS232 Parity Error Processing
0x00 Ignore
0x01 Print '?'
Notes:
1) This command is processed only in boot mode (see section 3.6.2).
If the printer is running in normal mode, send first command “switch to Boot Mode” (1B 5B 7D).
2) This command must be followed by “Printer Reset” command (1D FF).