$1C $94
Printers: KPM300
VeriPrint
, KUBE II
VeriPrint
, KUBE-L
VeriPrint
, TK300II
VeriPrint
[Name]
Save the image received from serial port into the fl ash
[Format]
ASCII
FS { } nH nL xDimH xDimL yDimH yDimL TbdH TbdL Id0..Idn d0..dn >
Hex
1C 94 nH nL xDimH xDimL yDimH yDimL TbdH TbdL Id0..Idn d0..dn 3E
Decimal
28
148 nH nL xDimH xDimL yDimH yDimL TbdH TbdL Id0..Idn d0..dn 62
[Range] 0
≤
nH, nL
≤
255,
0
≤
xDimH, xDimL
≤
255,
0
≤
yDimH, yDimL
≤
255
0
≤
d0, dn
≤
255
[Description]
Saves the image received from serial port into the printer
fl
ash; if the number used to
store logo is not already present inside the printer, the new logo is appended to stored
logos. Otherwise the new logo is updated.
•
nH
and
nL
indicates the number of logo (2 bytes expressed in hexadecimal notation).
•
xDimH
and
xDimL
indicate the logo horizontal dimension in pixel (2 bytes expressed in
hexadecimal notation); the value must be multiple of 16.
•
yDimH
and
yDimL
indicates the logo vertical dimension in pixel (2 bytes expressed in
hexadecimal notation).
•
TbdH
and
TbdL
2 bytes
fi
xed to $00 (RESERVED)
•
Id0..Idn
indicates the
fi
le-name of the logo, a sequence of 16 bytes to identify univocally
the logo.
•
d0 ...dn
are the image data. The size of image is de
fi
ned as follows :
xSize = xDim /16; number of WORD (16 bit) in a horizontal image line
Total Size = (xSize * yDim) *2;
•
‘>’ is
the character terminator (in ASCII) of this command.
The printer returns a sequence of bytes as follows :
<PC0>
if the saving include an incorrect syntax or the memory in
fl
ash available for
logos is
fi
nished (128Kbyte);
<PC1n>
if the syntax command is correct and there’s memory enough in
fl
ash for
saving logos; n returns the status of the
fl
ash programming :
$88 -> sector not erased
$77 -> error during programming
$AA -> Programming done.
[Notes]
• If
fi
le-name length is shorter than 16 byte, add a terminator (0) and make padding to
16 characters.
• If
fi
le-name extension is absent, it is automatically added to the name.
[Default]
[Reference]
[Example]
The following example shows the bytes sequence received from serial port to store a logo
into the printer
fl
ash :
Offset
Hexadecimal
ASCII
00000000: 1C 94 00-08 01 C0 02-49 00 00 4C-6F 67 6F 32 36
° ° ° ´ + ˆ I L o g o - 2 6
00000010: 2E 42 4D-50 00 00 00-00 00 00 00-00 00 00 00 00
.BMP
00000020: 00 00 00-00 00 00 00-00 00 00 00-00 00 00 00 00
....
Image data
....
....
00008000: 00 00 00 00-00 00 00 00-00 00 00 00-00 00 00 00
00008010: 00 00 3E
>
If the programming is successful, the printer’s answer will be :
HEX
$3C $50 $43 $31 $AA $3E
ASCII
<
P
C
1
{}
>
ESC/POS™ Emulation
38
Command Reference
Содержание KPM300
Страница 72: ...Blank page ESC POS Emulation 72 Command Reference ...
Страница 127: ......