Gs C 1 N1 N2 N3 N4 N5 N6 - Citizen CT-D150 Command Reference Manual

Hide thumbs Also See for CT-D150:
Table of Contents

Advertisement

CT-S280
Support
model
CT-S281
CT-D151/E651

GS C 1 n1 n2 n3 n4 n5 n6

[Function]
Setting the numbering counter mode (A)
[Code]
<1D>H<43>H<31>H<n1><n2><n3><n4><n5><n6>
[Range]
0≤n1, n2, n3, n4, n5, n6≤255
[Outline]
[The specification which is common to the model]
• This command sets the numbering (serial number counter) mode.
n1+n2×256 (n1=remainder, n2=quotient): First value for counter range
n3+n4×256 (n3=remainder, n4=quotient): Last value for counter range
n5: Counter step value
n6: Identical counter print counter
(n1+n2×256) < (n3+n4×256): Count-up system
(n1+n2×256) > (n3+n4×256): Count-down system
(n1+n2×256) = (n3+n4×256) or n5=0 or n6= 0: Counter stop
[Default]
[The specification which is common to the model]
n1+n2×256=1
n3+n4×256=65535
n5=1
n6=1
[See Also]
GS C
0,
[Sample Program]
LPRINT CHR$(&H1D);"C0";
LPRINT CHR$(3); CHR$(0);
LPRINT CHR$(&H1D);"C1";
LPRINT CHR$(50); CHR$(0);
LPRINT CHR$(0); CHR$(0);
LPRINT CHR$(5); CHR$(2);
GOSUB *CNT
LPRINT CHR$(&H1D);"C2"; CHR$(5); CHR$(0);
LPRINT CHR$(10);
GOSUB *CNT
END
[Print Results]
1 1 50 50 45
5 5 0 0 50
CT-S300
CT-S310
GS C
2,
GS
C;,
GS c
When printing the counter value by setting a count-down range = 0 to 50,
step value = 5, and repeat count = 2.
When printing the counter value by setting a count-down range to 0 to 50,
step value = 5, and starting value = 5.
CT-S2000
CT-S4000
CT-S801/851
CT-S601/651
*CNT
FOR I=1 TO 5
LPRINT CHR$(&H1D);"c";
NEXT I
LPRINT CHR$(&HA);
RETURN
- 199 -
CT-S251
CT-D150/E351
CT-P29x series
CT-S310II

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents