- 185 -
GS C 1 n1 n2 n3 n4 n5 n6
CT-S280 CT-S300 CT-S2000 CT-S4000 BD2-2220 PMUseries
Supportmodel
CT-S281
CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310II
[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 commontothemodel]
•Thiscommandsets thenumbering(serial number counter)mode.
n1+n2×256 (n1=remainder,n2=quotient): Counter default
n3+n4×256 (n3=remainder,n4=quotient): Counter final value
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)orn5=0 orn6= 0: Counter stop
[Default] [The specification which is commontothemodel]
n1+n2×256=1
n3+n4×256=65535
n5=1
n6=1
[See Also] GS C0,GSC 2, GSC;, GS c
[Sample Program]
LPRINTCHR$(&H1D);"C0"; *CNT
LPRINTCHR$(3); CHR$(0); FOR I=1 TO5
LPRINTCHR$(&H1D);"C1"; LPRINT CHR$(&H1D);"c";
LPRINTCHR$(50);CHR$(0); \ NEXT I
LPRINTCHR$(0); CHR$(0); \ LPRINTCHR$(&HA);
LPRINTCHR$(5); CHR$(2); RETURN
GOUSAB *CNT
LPRINTCHR$(&H1D);"C2";
LPRINTCHR$(5); CHR$(0);CHR$(10);
GOUSAB *CNT
END
[PrintResults]
50 45 400
50 50 45 45 40
5
When printing thecounter value by settinga count-down range =0to 50,
step value =5,repeat count= 2, andstarting value =50.
When printing the counter value by setting a count-down range to 0 to 50,
step value =5,repeat count= 1, andstarting value =5,step cleared.