Citizen CBM1000II Command Reference Manual page 111

Line thermal printer
Hide thumbs Also See for CBM1000II:
Table of Contents

Advertisement

GS C ; n1 ; n2 ; n3 ; n4 ; n5 ;
[Function]
[Code]
[Range]
[Outline]
[Caution]
[Default]
[See Also]
[Sample Program]
[Print Result]
Setting the numbering counter mode (B)
<1D>H<43>H<3B>H<n1><3B>H<n2><3B>H<n2>
<3B>H<n3><3B>H<n4><3B>H<n5><3B>H
<n1>,<n2>,<n3>,<n4>,<n5> are character codes.
0
n1 , n2 , n5
0
n3 , n4
255
This command sets the numbering (serial number counter)
mode and a counter value.
n1
n2
n3
n4
n5
n1 < n2
n1 > n2
n1 = n 2 or n3 = 0 or n4 = 0 : Counter stop
If the n5 counter start value is beyond the counter range specified
with n1 and n2, it is assumed to be n1 = n5.
If each value of n1 through n5 contains the character code other
than "0" through "9", the printer will invalidate the data up to
that parameter and handle the subsequent data as normal data.
n1 = 1
n2 = 65535
n3 = 1
n4 = 1
n5 = 1
GS C0 , GS C1 , GS C2 , GS c
LPRINT CHR$(&H1D) ;"C0";
LPRINT CHR$(3);CHR$(0);
LPRINT CHR$(&H1D);"C;";
LPRINT "50;0;5;2;50;
GOUSAB *CNT
LPRINT CHR$(&H1D);"C;";
LPRINT "50;0;5;2;5";
GOUSAB *CNT
END
50 50 45 45 40 40 <
5 0 50 45 40 35 <
— 109 —
65535
: Counter default
: Counter final value
: Counter step value
: Idential counter print count
: Counter start value
: Count-up system
: Count-down system
*CNT
FORI = 1 TO 5
LPRINT CHR$(&H1D);"c";
NEXT I
LPRINT CHR$(&HA);
RETURN
When setting a count-down range = 0 to 50, step
value = 5, repeat count = 2, and start value = 50 to
print a counte value.
When setting a count-down range = 0 to 50, step
value = 5, repeat count = 1, and start value = 5
to print a counter value.

Advertisement

Table of Contents
loading

Table of Contents