Ref: "Ap1400ProgGuide1_2.docx"
Page 17 of 42
Document Revision: “1.2”
Document Date: “9 Apr. 2013”
5. Settings and Configuration
The printer maintains a large number of internal settings and configuration information which is not
derived from ESCPOS control codes, and is unique to Able Systems printers.
In general, the ESC,"X",m,... command is used to set these values, and the GS,"I",m command is
used to query them. The following table details all valid combinations of these commands:
(N.B. See the section SAVING CONFIGURATION INFORMATION).
m
ESC,"X",m,...
m
GS,"I",m
3
n1,n2
Report Firmware Version Number
4
eg
"9600,N,8,1",CR
Set Baud
4
eg "
9600,N,8,1",CR
Report Baud Setting
6
eg "SerialNo",CR
Report Unit Serial Number
9
n1
Set Internal Defaults
9
n1,n2,n3
Report Internal Defaults
15
15
n1,n2,n3
Report Voltage/Temp Data
18
n1..n18
Set LED patterns
18
n1..n18
Report LED patterns
19
n1
Set MT102FLAGS
19
n1
Report MT102FLAGS
20
n1,n2
Set MarkFeed /
EjectFeed
20
n1,n2
Report MarkFeed / EjectFeed
23
n1
Set AUXFLAGS
23
n1
Report AUXFLAGS
33
n1
Set MaxDotsAtOnce
33
n1
Report MaxDotsAtOnce
42
n1
Set EjectOffset
42
n1
Report EjectOffset
48
Save all settings to
Flash
52
n1,n2
Set Auto-Save Period
52
n1,n2
Report Auto-Save Period
66
n1
Set print darkness
66
n1
Report print darkness
110
Produce test print
Setting Configuration Information
N.B. This section contains details of how to modify some of the basic operating functions of
the printer. Do NOT attempt to modify any parameter unless you fully understand the potential
consequences.
The command ESC,"X",m,... may be used to set various internal configuration values according to
the value of m as defined below.
m=4
Select Baud rate, parity, word length and number of stop bits. (Default: “9600,N,8,1”)
Command parameters must have format: e.g."19200,E,8,2", so:
4 or 5 number characters,
[the required Baud rate]
1 comma character
1 "N/n/E/e/O/o" letter character,
[the required Parity]
1 comma character
1 "7/8" number character,
[the required Data bits]
1 comma character
1 "1/2" number character
[the required Stop bits]
e.g. To select 19200,E,8,2 the following 14 byte command should be sent:
ESC,"X",04H,"19200,E,8,2"
or as hex codes: 1BH,58H,04H,31H,39H,32H,30H,30H,2CH,45H,2CH,37H,2CH,32H
The Ap1400 accepts the following RS232 baud rates;
1200, 2400, 4800, 9600, 38400, 57600, 115200
It accepts 8 data bits followed by either 1 or 2 stop bits and can use Odd, Even or No parity.
The setting must saved to non-volatile memory (FLASH), and does not come into effect until
after the next printer reset.
m=9
Set Internal Default Values.