CHAPTER 5 TPCL-LE MODE (INTERFACE COMMANDS)
B-EP
Series
5-182
5.11 COMMANDS RELATED TO GRAPHICS
5.11.1 GRAPHIC COMMAND
[ESC] SG
Function
Draws graphic data.
Format
[ESC] SG; aaaa(D), bbbb(D), cccc, dddd, e, ggg --- ggg [LF] [NUL]
Term
aaaa(D): X-coordinate of the print origin for drawing graphic data
Fixed at 4 digits (in 0.1 mm units)
* If “D” is attached after a 4-digit value, the coordinate is specified in units of
dots.
0000D or greater
bbbb(D): Y-coordinate of the print origin for drawing graphic data
4 or 5 digits (in 0.1 mm units)
* If “D” is attached after a 4- or 5-digit value, the coordinate is specified in
dots.
0000D or greater
cccc:
No. of graphic width dots
Fixed at 4 digits (in units of dots)
However, when the graphic data “2: BMP file” or “6: PCX file” is selected,
this designation is ignored.
(The information of the graphic width is contained in the graphic data.)
dddd:
No. of graphic height dots
4 or 5 digits (in units of dots)
However, when the graphic data “2: BMP file” or “6: PCX file” is selected,
this designation is ignored.
(The information of the graphic width is contained in the graphic data.)
When “3: TOPIX compression mode” is selected for the type of graphic data:
Resolution of graphic data:
*only two types
0150: 150 DPI (Draws data in double resolution.)
e:
Type of graphic data
When the command starts with “[ESC] SG;”:
0: Nibble mode (4 dots/byte) Overwrite
drawing
1: Hex. mode (8 dots/byte) Overwrite
drawing
2: BMP file mode
Overwrite drawing
3: TOPIX compression mode Overwrite drawing
4: Nibble mode (4 dots/byte)
OR drawing
5: Hex. mode (8 dots/byte)
OR drawing
6: PCX file mode
Overwrite drawing
7: TOPIX compression mode XOR drawing
ggg --- ggg: Graphic data