C O N F I D E N T I A L
Paper roll
Miscellaneous commands GS C 2
Ver. 4.0
p. 1330
GS C 2
[Name]
Select counter print mode
[Format]
ASCII
GS
C
2
n
L
n
H
Hex
1D
43
32
n
L
n
H
Decimal
29
67
50
n
L
n
H
[Range]
0
≤
n
L
≤
255
0
≤
n
H
≤
255
[Default]
n
L
= 1,
n
H
= 0
[Printers not featuring this command]
TM-T88II,
TM-U200B/D,
TM-U300A/B
[Description]
Sets the serial number counter value.
•
Specifies the counter value as (
n
L
+
n
H
×
256).
[Notes]
■
In count-up mode, if the counter value specified by this command goes out of the counter
operation range , it is forced to convert to the minimum value by
GS c
.
■
In count-down mode, if the counter value specified by this command goes out of the
counter operation range, it is forced to convert to the maximum value by
GS c
.
■
The setting of the counter value set by
GS C ;
is disabled by processing this command.
■
The range of the counter value is set by
GS C 1
or
GS C ;
.
Program Example
Print Sample
PRINT #1, CHR$(&H1D);"C1";CHR$(1);CHR$(0);
PRINT #1, CHR$(44);CHR$(1);CHR$(1);CHR$(1);
Line 010
PRINT #1, CHR$(&H1D);"C2";CHR$(10);CHR$(0);
Line 011
PRINT #1, CHR$(&H1D);"C0";CHR$(3);CHR$(1);
PRINT #1, "Line";CHR$(&H1D);"c";CHR$(&HA);
PRINT #1, "Line";CHR$(&H1D);"c";CHR$(&HA);