Select your printer model

Parameters are refined by the selected printer.
  • EU-m30
  • TM-J2000
  • TM-J2100
  • TM-L90
  • TM-L90 LFC
  • TM-L100
  • TM-m10
  • TM-m30
  • TM-m30II
  • TM-m30II-H
  • TM-m30III
  • TM-m30III-H
  • TM-m30II-NT
  • TM-m30II-S
  • TM-m30II-SL
  • TM-m50
  • TM-m50II
  • TM-m50II-H
  • TM-P20
  • TM-P20II
  • TM-P60
  • TM-P60II
  • TM-P80
  • TM-P80II
  • TM-T20
  • TM-T20II
  • TM-T20III
  • TM-T20IIIL
  • TM-T20IV-L
  • TM-T20X
  • TM-T20X-II
  • TM-T70
  • TM-T70II
  • TM-T81III
  • TM-T82II
  • TM-T82III
  • TM-T82IIIL
  • TM-T82IV-L
  • TM-T82X
  • TM-T82X-II
  • TM-T83III
  • TM-T83IV
  • TM-T88IV
  • TM-T88V
  • TM-T88VI
  • TM-T88VII
  • TM-T90
  • TM-T100
  • TM-U220
  • TM-U220II
  • TM-U230

GS C ;   [obsolete command]


[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]

sa = 0 – 65535
sb = 0 – 65535
sn = 0 – 255
sr = 0 – 255
sc = 0 – 65535

[Default]

sa = 1, sb = 65535, sn = 1, sr = 1, sc = 1

[Description]

Sets the serial number counter range, the serial number counter value, the stepping amount, and the repetition number by using character strings.
Count mode
condition
Counter range
Minimum value
Maximum value
Count-up
(sa < sb) and (sn ≠ "0") and (sr ≠ "0")
sa
sb
Count-down
(sa > sb) and (sn ≠ "0") and (sr ≠ "0")
sb
sa
Count-stop
(sa = sb) or (sn = "0") or (sr = "0")
  • sa and sb specify the serial number counter ranges (maximum and minimum values).
  • sn specifies the stepping amount for counting up or down.
  • sr specifies the repetition number with the counter value fixed.
  • sc specifies the serial number counter value.

[Recommended Functions]

This command is supported by some printer models and will not be supported by future models.
ESC/POS does not have a substitute command.

[Notes]

  • sa, sb, sn, sr, and sc specify a value using a decimal character string, respectively.
  • sa, sb, sn, sr, and sc can be omitted (";" which separates an argument, cannot be omitted). Setting value for the omitted argument is not changed.
  • Example:
  • When changing only a stepping amount for a count-up or count-down and a counter value, the setting value is [GS C ; ; ; 5 ; ; 100 ;].
  • The value of the counter is updated when executing GS c   [obsolete command] by the count mode set by this command.
    • In count-up mode, the counter value exceeds the maximum counter value (sb), the printer restart counting from the minimum counter value (sa).
    • In count-down mode, the counter value is below the minimum counter value (sb), the printer restart counting from the maximum counter value (sa).
    • In count-stop mode, the counter value is not changed.
  • The settings of a count mode set by GS C 1   [obsolete command] and the counter value set by GS C 2   [obsolete command] are disabled by processing this command.
  • The counter value range (maximum value and minimum value), stepping amount of incrementing or decrementing of a counter value, and repetition number of printing are effective until GS C 1   [obsolete command] is executed, ESC @ is executed, the printer is reset, or the power is turned off.
  • The value of the serial number counter set by this command is effective until GS C 2   [obsolete command] is executed, ESC @ is executed, the printer is reset, or the power is turned off.
 

Quick Access

  • [Name]
  • [Format]
  • [Range]
  • [Description]
  • [Notes]

ESC/POS® includes patented or patent pending commands. The contents must not be disclosed to third parties.


ESC/POS® Command Reference for TM Printers

Jump to the top