Specifications

• When this command is executed, the internal count that indicates the repetition number
speci ed by r is cleared.
[Default] aL = 1, aH = 0, bL = 255, bH = 255, n = 1, r = 1
[Reference] $1D $43 $30, $1D $43 $32, $1D $43 $3B, $1D $63
[Example]
$1D $43 $32
Printers: KPM150
[Name] Set counter
[Format] ASCII GS C 2 nL nH
Hex 1D 43 32 nL nH
Decimal 29 67 50 nL nH
[Range] 0 nL, nH 255
[Description] Sets the serial number counter value.
• nL and nH determine the value of the serial number counter set by [nL + (nH × 256)].
[Notes] • In count-up mode, if the counter value speci ed by this command goes out of the counter
operation range speci ed by $1D $43 $31 or $1D $43 $3B it is forced to convert to the
minimum value through $1D $63.
• In count-down mode, if the counter value speci ed by this command goes out of the
counter operation range speci ed by $1D $43 $31 or $1D $43 $3B it is forced to convert
to the maximum value through $1D $63.
[Default] nL = 1, nH = 0
[Reference] $1D $43 $30, $1D $43 $31, $1D $43 $3B, $1D $63
[Example]
$1D $43 $3B
Printers: KPM150
[Name] Select count mode (B)
[Format] ASCII GS C ; sa ; sb ; sn ; sr ; sc ;
Hex 1D 43 3B sa 3B sb 3B sn 3B sr 3B sc 3B
Decimal 29 67 59 sa 59 sb 59 sn 59 sr 59 sc 59
[Range] 0 sa, sb, sc 65535
0 sn, sr 255
These values are all character strings.
[Description] Selects a count mode for the serial number counter and speci es the value of the coun-
ter.
• sa, sb, sn, sr and sc are all displayed as ASCII characters using codes from ‘0’ to ‘9’.
• sa and sb specify the counter range.
• sn indicates the unit amount for counting up or down.
• sr indicates the repetition number when the counter value is xed.
• sc indicates the counter value.
[Notes] • Count-up mode is speci ed when:
sa < sb and sn 0 and sr 0
• Count-down mode is speci ed when:
sa > sb and sn 0 and sr 0
• Counting stops when:
sa = sb or sn = 0 or sr = 0
• In setting count-up mode, the minimum value of the counter is sa and the maximum value
is sb. If counting up reaches a value exceeding the maximum, it resets to the minimum
value. If the counter value set by sc is outside the counter operation range, the counter
value is forced to convert to the minimum value by executing $1D $63.
KPM54 Emulation
Command Reference 85