Chapter 4:
Querying the Printer
51
O’Neil Programming Language Reference Manual
Printhead Query
Printhead Reply Explanation
Printhead Query
Query Format
ESC{PH?}
Reply Format
{PH!
TD
:x;
DD
:x;
T
:x;
M
:x}
Function
Returns the printhead type used and the total number of dots
across. Available for original MF2/MF3/2t/4t and radio ready
2t/3l/4t printers.
Reply Example
Thermal: {PH!
TD
:0384;
DD
:203;
M
:LPT3245;
T
:+25.6C;}
Impact: {
PH!IMPACT1
;
PINS
:09;
W
:080}
Reply Example
Explanation
Thermal:
PH!
- Reply to a printhead query.
TD
:0384; - The printhead in this printer has 384 dots across.
DD
:203; - The dot density is 203 dots per mm).
M
:LPT3245 - The printhead model number is LPT3245.
T
:+25.6C; - The current printhead temperature is +25.6°
centigrade.
Impact
:
PH!IMPACT1
; - 1920 dots across at maximum density; 960
dots across at middle density; 480 dots across at lowest
density.
PINS
:09; - 9 pin printhead.
W
:080; - 80 columns wide.
Query Reply
Definition
TD
Nnnn
Total number of dots across the printhead:
384 = two inch printhead on the 2t
832 = four inch printhead on the 4t
DD
Nnn
Dot density of the printhead (dot per mm).
M
x...x
(variable
width)
Printhead model number.
T
+ nn.nC
Printhead temperature.
D
Nnn
File version of downloaded fonts.
IMPACT1 IMPACT1 = 1920 dots across at maximum density; 960 dots
across at middle density; 480 dots across at lowest density.
PINS
Xx
Numbers of pins on printhead.
W
Xx
Width of columns.
Содержание microFlash2
Страница 3: ......