TSC AUTO ID Technology Co., Ltd. 173 Copyright 2013 All Rights Reserved.
Device Reconfiguration Commands
SET COUNTER
Description
Counters can be a real counter or a variable. This setting sets the counter number in the program and
its increments. There are three different types of counters: digit (0~9~0), lower case letter (a~z~a) or
upper case letter (A~Z~A).
Syntax
SET COUNTER @n step
@n="Expression"
n: counter number. There are 61 counters available (@0 ~ @60) in the
printer. @0 to @50 will be cleared while restarting the printer. @51 to @60
will be stored in printer until the printer is restored to factory default.
@51~@55 were supported since V6.37 EZ.
@56~@60 were supported since V6.74 EZ.
The increment of the counter, can be positive or negative.
-999999999 <= step <= 999999999
If the counter is used as a fixed variable, please set the increment to 0.
Initial string. String length is 101 bytes
Example
Sample Code
SET COUNTER @0+1
SET COUNTER @1+0
SET COUNTER @2-1
SET COUNTER @3 1
@0="0001"
@1="0101"
@2="000A"
@3="1"
SIZE 4,0.5
GAP 0,0
DIRECTION 1
CLS
TEXT 600,10,"3",0,1,1,3,"@0 @1 @2"
TEXT 600,30,"3",0,1,1,3,"Label "+@3+" --------------------------"
TEXT 600,50,"3",0,1,1,3,@0+" "+@1+" "+@2
PRINT 5
See Also
PRINT, TEXT, BARCODE