Specifications
Programmers Guide TH230/TH230+
132
GS ( L p
L
p
H
m fn a kc1 kc2 b x
L
x
H
y
L
y
H
[c d1...dk]1...[c d1...dk]b (fn=67)
Code ASCII: GS ( L p
L
p
H
m fn a kc1 kc2 b x
L
x
H
y
L
y
H
[c d1...dk]1...[c d1...dk]b
Code HEX: 0x1D 0x28 0x4C p
L
p
H
0x30 0x43 0x30 kc1 kc2 b x
L
x
H
y
L
y
H
[c d1...dk]1...[c
d1...dk]b
Range: 12 ≤ (p
L
+ p
H
× 256) ≤ 40972
(0 ≤ p
L
≤ 255, 0 ≤ p
H
≤ 255)
m = 48,
fn = 67,
a = 48
32 ≤ kc1 ≤ 126
32 ≤ kc2 ≤ 126
b = 1, 2 (when the recommended two-color paper is used)
b = 1 (when the recommended monochrome paper is used)
1 ≤ (x
L
+ x
H
× 256) ≤ 8192 (0 ≤ x
L
≤ 255, 0 ≤ x
H
≤ 32)
1 ≤ (y
L
+ y
H
× 256) ≤ 2304 (0 ≤ y
L
≤ 255, 0 ≤ y
H
≤ 9)
c = 49, 50 (when the recommended two-color paper is used)
c = 49 (when the recommended monochrome paper is used)
0 ≤ d ≤ 255
k = (int((x
L
+ x
H
× 256) + 7)/8) × (y
L
+ y
H
× 256)
p
L
+ p
H
× 256 = (x
L
+ x
H
× 256) x (y
L
+ y
H
× 256) / 8 + 10 + b
Description:
Defines items of NV graphics data ( d1 ... dk) corresponding to key codes (
kc1 and kc2) in non-volatile memory.
• Switch b is used to specify the number of colors for NV graphics.
• x
L
and x
H
specify the horizontal size of NV graphics in units of dots (x
L
+
x
H
× 256).
• y
L
and y
H
specify the vertical size of NV graphics in units of dots (y
L
+ y
H
×
256).
• Switch c is used to specify the color of the defined data.
c Color specifications
49 Color 1
50 Color 2
• Switch d is used to specify the defined data for NV graphics. This data
is processed in raster format.
• Switch k is used to indicate the defined data value. It is not necessary
to send parameter k because it is a descriptive parameter.
• In cases where the specified key code already exists in memory, it will
be necessary to overwrite the data.
Notes:
• NV graphics indicate image data groups defined in the printer’s internal
non-volatile memory. Data definitions for NV graphics data created
using this command are valid until redefined by this command.
• This function is used to define NV graphics data.