48
MANUAL INSTRUCCIONES CÓDIGO 80408 REV 0 10/2020 J.P. SELECTA s.a.u. Autovía A-2 Km 585.1 Abrera 08630 (Barcelona) España Tel 34 937 700 877 Fax 34 937 702 362 e-mail: [email protected] - website: http://www.jpselecta.es IMPRESORA TÉRMICA PARA AUTESTER ST DRY PV 12 THERMAL PRINTER FOR AUTESTER ST DRY PV 12 4120123

4120123 - grupo-selecta.com

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: 4120123 - grupo-selecta.com

MANUAL INSTRUCCIONES CÓDIGO 80408 REV 0 10/2020

J.P. SELECTA s.a.u. Autovía A-2 Km 585.1 Abrera 08630 (Barcelona) España Tel 34 937 700 877 Fax 34 937 702 362 e-mail: [email protected] - website: http://www.jpselecta.es

IMPRESORA TÉRMICA PARA AUTESTER ST DRY PV 12

THERMAL PRINTERFOR AUTESTER ST DRY PV 12

4120123

Page 2: 4120123 - grupo-selecta.com

Contenido 

1 Especificaciones .......................................................................................................................... 3 

2 Interfaz de potencia y comunicación ......................................................................................... 5 

3 Detalles de los comandos de control  ........................................................................................ 7 

4 Apéndice .................................................................................................................................... 22 

 

Contents 

1 Specifications ............................................................................................................................ 26 

2 Power and communication interface  ...................................................................................... 28 

3 Details of control commands  ................................................................................................... 30 

4 Appendix ................................................................................................................................... 45 

 

 

 

                   

Page 3: 4120123 - grupo-selecta.com

3

 

 

  

1 Especificaciones   

Item  Especificaciones 

  Método impresión  Método de impresión térmica 

Velocidad impresión  60mm/s 

Resolución  203 puntos/línea (384 puntos por línea) 

Carga de papel  Carga de papel sencilla 

 

 

 

 

 

Idioma  Inglés, Chino

Código de barras  Una dimensión 

Sensor  Sensor de papel 

Cúter papel  Ninguno 

Tipo  Papel térmico 

Papel  Ancho  58mm 

Grosor  0.06~0.08mm 

Comunicación  Interface  Serie 232/TTL/485, caja 

Fuente de alimentación  Corriente continua  DC 5~8.4V, 3A/ DC 9~24V, 30W 

Uso  Temperatura  5~50ºC (29~122ºC F)

Humidad  10~80% RH  (sin condensación)

 

1.1Teclasylucesindicadoras 

 

1.1.1TeclasLFySETLa tecla LF se encuentra lejos de la luz indicadora. La tecla SET está cerca de la luz indicadora. 

1.1.2Lucesindicadoras:rojayverdeLa luz roja es el indicador de encendido. La luz verde es el indicador de estado.  

  Estado Descripción

Verde Fija Impresoralistaparaimprimir

Parpadeando Faltapapel

Roja Fija Impresoraencendida

  Parpadeando Impresoraapagada  

 

Page 4: 4120123 - grupo-selecta.com

4

 

 

1.1.3Teclafunción 

Alimentación papel:   Después de encender la impresora, pulse la tecla LF y la impresora alimentará 

el papel. 

Autotest: Pulse  la  tecla LF y, sin dejar de pulsar, vuelva a encender  la  impresora otra vez. La 

impresora imprimirá el script de autocomprobación.

Ajustes:  A. En estado apagada, pulse  la tecla SET y vuelva a encender  la  impresora;  luego,  la impresora imprimirá una secuencia de comandos de estado de la configuración. B. En  estado  de  configuración,  pulse  la  tecla  SET  para  seleccionar  los  diferentes elementos de configuración.C. En el estado del elemento de configuración, presione el botón LF para seleccionar un elemento de configuración, y presione el botón LF para elegir el valor del elemento de configuración actual. Luego presione el botón SET para  finalizar el elemento de configuración  actual  y  puede  seleccionar  otros  elementos  de  configuración. D. La impresora debe volver a encenderse después de la configuración. 

 Número Item     Valorpredeterminado      

 

1 Ajustebps1.14800

1.29600

1.319200

1.438400

1.557600

1.6 115200

2

Ajustedirección

2.1 2.2dirección          

3 Ajustefuente

3.18*16puntos

3.212*24puntos

         

4 Ajustegris

4.11

4.22

4.33

4.44 

 

……4.12 12

5 Ajuste

velocidad

5.1Velocidad 

baja

5.2Velocidad 

media

5.3Velocidad 

alta

       

 

 

Page 5: 4120123 - grupo-selecta.com

5

 

 

  

2Interfazdepotenciaycomunicacion

 

2.1Fuentedealimentación La  fuente de alimentación es  DC  5.0~8.4V,  3A  /  DC  9~24V,  30W. Se muestra de  la siguiente 

manera: 

   

 Estilo de plataforma: el extremo de la columna es polo positivo (+), y el extremo de la placa es 

negativo (‐). 

2.2Lainterfazenserie La interfaz en serie de la impresora tiene tres tipos de nivel de señal lógica: TTL, 232 y 485. Por 

defecto, la velocidad en baudios es de 9600bps. El formato de trama asíncrona es 1 bit de inicio, 

8 bits de datos y 1 bit de parada. 

La interfaz en serie es la siguiente: 

      La definición de pin de 232 / TTL: 

Pin  Señal  Descripción 

2  TXD  La impresora transmite datos al PC 

3  RXD  Recepción de datos desde el PC 

5  GND  Señal de toma de tierra 

6  BUSY  Nivel alto que indica que la impresora está ocupada y no puede recibir datos. El contrario es el nivel bajo  

8  DSR  Nivel alto que indica que la impresora está ocupada y no puede recibir datos. El contrario es el nivel bajo 

  

 La definición de pin de 485:

 

Pin  Señal 

2  B 3  A 

     

Page 6: 4120123 - grupo-selecta.com

6

 

 

2.3Caja        

6 1  Definición de pin de la caja:

 

Pin  Dirección  Descripción 

1, 6  ‐  GND 

2  In  Driver de la caja 

3, 5  ‐  NC 

4  ‐  +24V

Page 7: 4120123 - grupo-selecta.com

7

 

 

  

3Detallesdeloscomandosdecontrol3.1【Impresiónyavancedelínea】 

[Formato]  ASCII  LF 

  Hex  0A 

  Decimal  10 

[Descripción]    Imprime  los  datos  en  el  búfer  de  impresión  y  alimenta  una  línea,  según  el espaciado de línea actual. 

 

[Nota]  Este comando establece la posición de impresión al principio de la línea.  

3.2【Impresiónyretornodecarro】  

[Formato] ASCII CR

  Hex 0D

  Decimal 13

[Descripción] Las funciones de este comando son las mismas que LF.[Detalles] Establezca la posición de inicio de impresión al comienzo de la línea.

 

3.3【Inicializarimpresora】  [Formato] ASCII ESC @  Hex 1B 40  Decimal 27 64

[Descripción] Borra  los datos del búfer de  impresión y restablece el modo de  impresora al 

modo que estaba por defecto cuando se encendió la alimentación.[Notas] Los ajustes del interruptor DIP no se vuelven a comprobar. 

  Los datos del búfer de recepción no se borran. 

3.4【Imprimiryalimentarpapel】  [Formato] ASCII ESC J n  Hex 1B 4A n  Decimal 27 74 n[Rango] 0 n 255      

[Descripción] Imprime los datos en el búfer de impresión y alimenta el papel [n * 0,125 mm].[Notas] Una vez finalizada la impresión, este comando establece la posición de inicio de 

la impresión al principio de la línea. 

La cantidad de alimentación de papel establecida por este comando no afecta 

Page 8: 4120123 - grupo-selecta.com

8

 

 

los valores establecidos por ESC 2 o ESC 3. 

3.5【Imprimiryalimentarnlíneas】  [Formato] ASCII ESC d n

Hex 1B 64 nDecimal 27 100 n

[Rango] 0 n 255      

[Descripción] Imprime los datos en el búfer de impresión y alimenta n líneas.

[Notas] Este comando establece la posición inicial de impresión al comienzo de la línea. 

Este comando no afecta el espaciado de línea establecido por ESC 2 o ESC 3. 

3.6【Seleccionarmodo(s)deimpresión】  [Formato] ASCII ESC ! n  Hex 1B 21 n 

 

[Rango]Decimal0 n 255

27 33 n

[Descripción] Selecciona el (los) modo(s) de impresión usando n de la siguiente manera: 

Bit  Función  Decimal  Hex  

0 Fuente A(12*24)  0  00 

Fuente B(8*16)  1  01 

1  indefinido  ‐  ‐ 

2  indefinido  ‐  ‐ 

3  indefinido  ‐  ‐  

4 Modo de doble altura no seleccionado.  0  00 

Modo de doble altura seleccionado.  16  10  

5 Modo de doble altura no seleccionado.  0  00 

Modo de doble altura seleccionado.  32  20 

6  indefinido  ‐  ‐  

7 El modo subrayado no está seleccionado.  00  00 

Modo subrayado seleccionado.  128  80  

[Detalles]Cuando se seleccionan  los modos de doble altura y doble ancho, se  imprimen  los 

caracteres de tamaño cuádruple. 

  Cuando se activa el modo de impresión inversa en blanco / negro, el subrayado no 

es efectivo. 

  El grosor del subrayado cambia con el tamaño del carácter. 

  ESC ‐ n también puede seleccionar o cancelar el modo subrayado. Sin embargo,  la 

configuración del último comando recibido es efectiva.[Default]n=0   

Page 9: 4120123 - grupo-selecta.com

9

 

 

3.7【Seleccionarfuentedecaracteres】  

[Formato] ASCII ESC M n  Hex 1B 4D n  

[Rango]

Decimal

n=0,1.

27 77 n

[Descripción] Seleccione la fuente de los caracteres. 

n  Función 

0  Seleccionar la fuente A de caracteres (12*24) 

1  Seleccionar la fuente B de caracteres (8*16) 

[Detalles] ESC ! también puede seleccionar tipos de fuentes de caracteres. Sin embargo, la 

configuración del último comando recibido es efectiva.

3.8【Seleccionalafuentedecaractereschinos】  

[Formato] ASCII FS &  Hex 1C 26  Decimal 28 38

[Descripción] Seleccione la fuente de caracteres chinos. 

3.9【Cancelarlafuentedecaractereschinos】  

[Formato] ASCII FS .  Hex 1C 2E  Decimal 28 46

[Descripción] Seleccione la fuente de caracteres chinos. 

3.10【Seleccionarjustificación】  [Formato] ASCII ESC a n  Hex 1B 61 n

Decimal 27 97 n

[Rango] n=0,1,2

[Descripción] Alinee todos los datos en una línea a la posición especificada. 

n selecciona la justificación de la siguiente manera: 

n Justificación0 Justificaciónizquierda1 Centrado

2 Justificaciónderecha 

 

Page 10: 4120123 - grupo-selecta.com

10

 

 

[Notas] El comando está habilitado solo cuando se procesa al principio de la línea en modo 

estándar.

[Predet.] n=0

[Ejemplo]Justificaciónizquierda Centrado Justificaciónderecha

 

        

3.11【Seleccionarespaciadodelíneapredeterminado】  [Formato] ASCII ESC 2  Hex 1B 32  Decimal 27 50

[Descripción] Seleccione un espaciado de línea de 3,75 mm (3 * 0,125 mm). 

[Notas] El espaciado de línea se puede configurar de forma independiente en modo el 

estándar y en el modo de página.

[Referencia] ESC3  

3.12【Establecerelespaciadodelínea】  

[Formato] ASCII ESC 3 n

  Hex 1B 33 n

  [Rango]

Decimal

0 n 255

27 51 n

[Descripción] Establezca el espacio entre líneas en [n * 0,125 mm].[Predet.] n=3 

 

3.13【Establecerespaciadoentrecaracteresdelladoderecho】  [Formato] ASCII ESC SP n  Hex 1B 20 n 

 

[Rango]Decimal0 n 255

27 32 n

[Descripción] Establezca el espacio entre caracteres situados en el  lado derecho [n * 0,125 mm].

[Predet.] n=0 

Page 11: 4120123 - grupo-selecta.com

11

 

 

3.14【Establecermargenizquierdo】  [Formato] ASCII GS L nL nH

Hex 1D 4C nL nH

Decimal[Rango] 0 nL 255

29 76 nL nH

0 nH 255       

[Descripción] Establezca el margen izquierdo usando nL y nH. El margen izquierdo se ajusta en 

[(nL + nH  256)  0,125 mm].        

 [Notas] Este comando es efectivo solo cuando se procesa al principio de  la  línea en 

modo estándar. 

    La configuración no puede exceder el área imprimible.[Predet.] nL=0,nH=0

 

3.15【Establecerelanchodeláreadeimpresión】  

[Formato] ASCII GS W nL nH  Hex 1D 57 nL nH

Decimal29 87 nL nH[Rango] 0 nL 255

 

0 nH 255 

[Descripción] Establece el ancho del área de impresión en el área especificada por nL y nH.El ancho del área de impresión se establece en [(nL + nH  256)  0,125 mm]

 

         

[Notas] Este comando es efectivo solo cuando se procesa al principio de la línea.

La configuración de GS L tiene prioridad sobre la configuración de GS W. Si el 

[margen izquierdo + ancho del área de impresión] excede el área imprimible, 

la impresora utiliza [Ancho del área imprimible ‐ margen izquierdo].

[Predet.] nL=128,nH=1;    

Page 12: 4120123 - grupo-selecta.com

12

 

 

3.16【Seleccionareltamañodeloscaracteres】  

[Formato] ASCII GS ! n

  Hex 1D 21 n  

[Rango]Decimal0 n 255

29 33 n

(1 número vertical de veces 8, 1 número horizontal de veces  8)

[Descripción] Selecciona la altura del carácter usando los bits 0 a 2 y selecciona el ancho del carácter usando los bits 4 a 7, de la siguiente manera:

 

 

Bit On/off Hex Decimal Función0  

 Selección de altura de carácter. Ver tabla 2.

1

23

4  

 

Selección de ancho de carácter. Ver tabla 1.5

67

 

  

Tabla1 Tabla2Selección anchura del carácter Selección altura del carácter  

Hex Decimal Ancho Hex Decimal Alto00 0 1 (normal) 00 0 1 (normal) 10 16 2 (doble‐ancho) 01 1 2 (doble‐altura) 20 32 3 02 2 3

30 48 4 03 3 440 64 5 04 4 5

50 80 6 05 5 660 96 7 06 6 7

70 112 8 07 7 8 

[Notas] Si n está fuera del rango definido, este comando se ignora. 

En el modo estándar,  la dirección vertical es  la dirección de alimentación del papel. Cuando  los caracteres se amplían con diferentes tamaños en una  línea, todos los caracteres de la línea se alinean en la línea de base. 

El comando ESC! también puede activar o desactivar los modos de doble ancho y doble altura. Sin embargo,  la configuración del último comando recibido es efectiva.

[Predet.] n=0

 

Page 13: 4120123 - grupo-selecta.com

13

 

 

3.17【Establecerelgradodegrises】  

[Formato]:ASCII: ESC M nDec: 27 109 n

Hex: 1B 6D nN varía de 0 a 12, cuanto mayor es el valor de n, más oscuro es el punto. El n 

inicial = 7. Se utiliza para modificar  la expresión  final de diferentes  rollos de 

papel térmico. 

3.18【Activar/desactivarelmodosubrayado】  [Formato] ASCII ESC ‐ n  Hex

Decimal1B27

2D45

nn

[Descripción] Activa  o  desactiva  el  modo  subrayado,  según  los  siguientes 

valores de n. 

  0: desactiva el modo subrayado, 1: activa el modo subrayado.[Notas] Cuando se activa el modo de impresión inversa en blanco / negro, el subrayado 

no es efectivo. Cambiar  el  tamaño  de  los  caracteres  puede  afectar  al  grosor  del  subrayado 

actual. El modo subrayado también se puede activar o desactivar utilizando ESC!. Sin 

embargo, tenga en cuenta que el último comando recibido es efectivo.[Predet.] n=0

 

3.19【Activarelmododeimpresióninversablanco/negro】  [Formato] ASCII GS B n  Hex 1D 42 n  Decimal 29 66 n[Rango] 0 n 255

 

[Descripción] Activa o desactiva el modo de impresión inversa en blanco / negro. Cuando el LSB de n es 0, el modo inverso de blanco / negro se desactiva. Cuando el LSB de n es 1, se activa el modo inverso blanco / negro.

[Notas] Solo el bit más bajo de n es válido.   Cuando el modo de impresión inversa en blanco / negro está activado, también 

se aplica al espaciado de caracteres establecido por ESC SP.Este comando no afecta a imágenes de bits definidas por el usuario, ESC $ y 

ESC \. 

Este comando no afecta el espacio entre líneas. 

El modo inverso blanco / negro tiene mayor prioridad que el modo subrayado. 

Incluso si el modo subrayado está activado, se desactiva (pero no se cancela) 

cuando se selecciona el modo inverso blanco / negro.

[Predet.] n=0

Page 14: 4120123 - grupo-selecta.com

14

 

 

 

3.20【Activa/desactivaelmododeimpresiónalrevés】  [Formato] ASCII ESC { n  Hex

 Decimal

1B 27

7B 123

n

n

[Rango] 0 n 255 

[Descripción] Activa o desactiva el modo de impresión al revés.Cuando el LSB de n es 0, se desactiva el modo de impresión al revés. Cuando el LSB de n es 1, se activa el modo de impresión al revés.

[Notas] Solo el bit más bajo de n es válido. 

Este comando está habilitado solo cuando se procesa al principio de una línea 

en modo estándar. 

  En modo de impresión al revés, la impresora gira la línea que se va a imprimir 

180 y luego la imprime.[Predet] n=0

 

[Ejemplo]Cuando el modo de impresión Cuando el modo de impresión 

al revés está desactivado. al revés está activado.              

3.21【Estadodetransmisión】  [Formato] ASCII FS n n  Hex 1c 76 n  Decimal 28 118 n

 

[Descripción]Cuando n = 0, transmite el estado del papel a la CPU. Después de este comando, 

la impresora enviará un byte a través de TXD. Cuando el byte es 0x04, indica que 

el papel es suficiente; cuando el byte es 0x55, indica que falta papel. 

  

Page 15: 4120123 - grupo-selecta.com

15

 

 

3.22【Establecerelanchodelcódigodebarras】  [Formato] ASCII GS w n  Hex 1D 77 n  Decimal 29 119 n

[Descripción]Configure el tamaño horizontal del código de barras. 

n especifica el ancho del código de barras de la siguiente manera: 

n El ancho del código de barras (mm)

2 0.250

3(Predet) 0.375

4 0.5

El código de barras no se puede  identificar cuando el ancho del código de barras excede el 

área imprimible. 

3.23【Seleccionelaalturadelcódigodebarras】  [Formato] ASCII GS h n  Hex 1D 68 n 

 

[Rango]

Decimal0 n 255

29 104 n

 

[Descripción] Seleccione la altura del código de barras. 

n especifica el número de puntos en dirección vertical.

[Predet.] n=162 

3.24【SeleccioneposicióndeimpresiónparacaracteresHRI】  [Formato] ASCII GS H n  Hex 1D 48 n  Decimal 29 72 n

[Descripción] Seleccione la posición de impresión de los caracteres HRI al imprimir un código 

de barras.

n selecciona la posición de impresión de la siguiente manera: 

n Posicióndeimpresión0 No impreso2 Debajo del código de barras

HRI indica una interpretación legible por humanos.

[Notas] Los caracteres HRI están impresos en el centro.

[Default] n=0 

Page 16: 4120123 - grupo-selecta.com

16

 

 

ASCII HEX Función{A 7B,41 SeleccionarcodeA

{B 7B,42 SeleccionarcodeB

{C 7B,43 SeleccionarcodeC

{S 7B,53 SHIFT

{1 7B,31 FNC1{2 7B,32 FNC2

{3 7B,33 FNC3

{4 7B,34 FNC4

3.25【Imprimircódigodebarras】  [Formato] ASCII GS k m n d1...dn  Hex 1D 6B m n d1...dn  Decimal 29 107 m n d1...dn

 

[Descripción] Selecciona un sistema de código de barras y lo imprime.

m  selecciona  un  sistema  de  código  de  barras  y  los  parámetros  n  y  d  se 

seleccionan mediante el sistema de código de barras de la siguiente manera:  

n Sistemacódigobarras n D(datoscódigodedatos) 67 EAN13 12≤n≤13 48≤d≤5768 EAN8 7≤n≤8 48≤d≤5769 CODE39 1≤n≤255 48≤d≤57, 65≤d≤90,

32,36,37,45,46,47

73 CODE128 1≤n≤255 0≤d≤127 

Observe  los  números  de  cada  código  de  barras.  Los  códigos  de  barras  EAN‐13,  EAN_128, 

CODE_39 y EAN‐8 pueden generar bits de paridad automáticamente, el usuario no necesita 

transmitir esos datos. 

Los datos recibidos deben estar en el conjunto de códigos de barras estándar, si exceden este 

conjunto, el  comando no  sirve. El  conjunto de  códigos  se  refiere al estándar del  código de 

barras. 

El CODE39 no incluye el código de extensión (EXTERN CODE 39). 

El encabezado del enlace de datos del código de barras CODE128 debe ser CODE A, CODE B o 

CODE C, dentro del código de barras. También el usuario puede cambiar a otra combinación de 

codificación: „{‟ y un carácter para definir una nueva función. Y transferir dos‟{” para definir ASCII ‟{” como sigue: 

 

   

           

La información para los CODE A, CODE B y CODE C se refiere en el apéndice. 

El código de barras está centrado de forma predeterminada. 

La impresora simplemente alimenta papel cuando el ancho del código de barras excede el área 

imprimible. 

 

Page 17: 4120123 - grupo-selecta.com

17

 

 

3.26【Seleccioneelmododeimagendebits】  

[Formato] ASCII ESC * m nL nH d1...dk  Hex 1B 2A m nL nH d1...dk  Decimal 27 42 m nL nH d1...dk

 

[Rango] m=0,1,32,33;0 nL 255;0 nH 255;0 d 255

[Descripción] Selecciona un modo de imagen de bits usando m, para el número de puntos 

especificado por nL y nH.ppp: puntos por 25,4 mm {1"}

 

  m

  

ModoDirecciónvertical Direcciónhorizontal

Nºdepuntos

Densidadpuntos

Densidadpuntos

Nºdedatos(K)

 0

8‐puntosDensidadúnica

 8 67.7dpi 101.6dpi nL+_nH*256

 1

8‐puntosDensidaddoble

 8 67.7dpi 203.2dpi nL+_nH*256

 32

24‐puntosDensidadúnica

 24 203dpi 101.6dpi (nL+_nH*256)*3

 33

24‐puntosDensidaddoble

 24 203dpi 203.2dpi (nL+_nH*256)*3

[Notas] Si el valor de m está fuera del rango especificado, nL y  los datos siguientes se 

procesan como datos normales.Si la entrada de datos de imagen de bits excede el número de puntos a imprimir en una línea, se 

ignoran  los  datos  en  exceso.  D  indica  los  datos  de  imagen  de  bits.  Establezca  el  bit 

correspondiente en 1 para imprimir un punto o en 0 para no imprimirlo.Si el ancho del área de impresión establecido por GS L y GS W es menor que el ancho requerido 

por los datos enviados con el comando GS*, se realizará lo siguiente en la línea en cuestión (pero 

la impresión no puede exceder el área máxima imprimible):  

1. El  ancho  del  área  de  impresión  se  extiende  hacia  la  derecha  para  acomodar 

la cantidad de datos.  

2. Si el paso no proporciona suficiente ancho para  los datos, el margen  izquierdo se reduce 

para  acomodar  los  datos.  Por  cada  bit  de  datos  en  densidad  única 

modo (m = 0,), la impresora imprime dos puntos; y por cada bit de datos en modo de doble 

densidad (m = 1), la impresora imprime un punto. Esto debe tenerse en cuenta al calcular 

la cantidad de datos.Después de imprimir una imagen de bits, la impresora vuelve al modo de procesamiento de datos 

normal.  

Este  comando  no  se  ve  afectado  por  los modos  de  impresión  (subrayado,  tamaño  de  los 

caracteres o impresión inversa en blanco/negro), excepto el modo de impresión al revés. 

La relación entre los datos de la imagen y los puntos a imprimir se describe en la siguiente figura:     

Page 18: 4120123 - grupo-selecta.com

18

 

 

      

 Imagendebitsde8puntos

 

            

Imagen de bits de 24 puntos  

3.27【DefinirimagendebitsNV】  

[Formato] ASCII FS qn[xLxHyLyHd1...dk]1...[xLxHyLyHd1...dk]n Hex 1C71n[xLxHyLyHd1...dk]1...[xLxHyLyHd1...dk]n Decimal28113n[xLxHyLyHd1...dk]1...[xLxHyLyHd1...dk]n

[Descripción] Defina  la  imagen de bits NV especificada por n. n especifica el número de  la 

imagen de bits NV definida, n = 1.xL, xH especifica (xL  xH  256) 8≤384 puntos en la dirección horizontal para la imagen de bits 

NV que está definiendo 0≤xL≤255, 0≤xH≤1.

yL, yH especifica (yL  yH  256)  8≤24 puntos en la dirección vertical para la imagen de bits NV 

que está definiendo 0≤yL≤24, yH = 0. 

0≤d≤255,  K  =  (xL  +  xH  *  256)  *  (yL  +  yH  *  256)  *  8,  el  área  de  definición  es  1,66k  bytes. 

Este comando cancela todas las imágenes de bits NV que ya han sido definidas por este comando. 

La impresora no puede redefinir solo una de varias definiciones de datos definidas previamente. 

En este caso, todos los datos deben enviarse nuevamente. 

Desde el comienzo de la tramitación de este comando hasta el final del reinicio, no se pueden 

realizar operaciones mecánicas (incluida la alimentación de papel, etc.). 

Durante el procesamiento de este comando, la impresora está OCUPADA cuando escribe datos 

en la memoria NV del usuario y deja de recibir datos. Por lo tanto, está prohibido transmitir los 

datos,  incluidos  los  comandos  en  tiempo  real,  durante  la  ejecución  de  este  comando. 

La imagen de bits NV es una imagen de bits definida en la memoria no volátil por FS q e impresa 

por FS p.Este comando es efectivo cuando 7 bytes <FS yH> del comando se procesan normalmente. 

Cuando la cantidad de datos excede la capacidad que queda en el rango definido por xL, xH, yL, 

yH, la impresora procesa xL, xH, yL, yH fuera del rango definido. 

La d indica los datos de definición. En los datos (d), un bit 1 especifica un punto que se imprimirá 

y un bit 0 especifica un punto que no se imprimirá. Los datos de definición para una imagen de 

bits NV constan de [xL xH yL yH d1 ... dk]. Por lo tanto, cuando solo se define una imagen de bits 

Page 19: 4120123 - grupo-selecta.com

19

 

 

NV n = 1,  la  impresora procesa un grupo de datos [xL xH yL yH d1 ... dk] una vez. La  impresora 

utiliza ([datos: (xL  xH  256)  (yL  yH  256)  8]  [encabezado: 4]) bytes de memoria NV. 

Una  vez  que  se  define  una  imagen  de  bits NV,  no  se  borra  realizando  ESC @,  reiniciando  y apagando. Este comando solo realiza  la definición de una  imagen de bits NV y no realiza  la  impresión. La impresión de la imagen de bits NV se realiza mediante el comando FS p. 

[Notas]   Las ejecuciones  frecuentes de comandos de escritura mediante un comando de 

escritura en memoria NV puede dañar la memoria NV. Por lo tanto, se recomienda escribir en la memoria NV 10 veces o menos al día.

                          

3.28【ImprimirimagendebitsNV】  

[Formato] ASCII FS p n m  Hex 1C 70 n m  Decimal 28 112 n m

[Rango] 0 n 255  

[Descripción] Imprime la imagen n de bits NV utilizando el modo especificado por m.ppp: puntos por 25,4 mm {1"}

 

m Modo Densidad de puntos verticales

Densidad de puntos horizontales

0 Normal 203.2dpi 203.2dpi

3 Cuádruple 101.6dpi 101.6dpi

n es el número de la imagen de bits NV (definida mediante el comando FS q). 

m especifica el modo de imagen de bits. 

[Detalles]   La  imagen de bits NV es una  imagen de bits definida en  la memoria no volátil 

por FS q e impreso por FS p. 

Este comando no es efectivo cuando no se ha definido  la  imagen de bits NV 

especificada. 

Page 20: 4120123 - grupo-selecta.com

20

 

 

[Formato] ASCII GS v 0 m xL xH yL yH d1.  Hex 1D 76 30 m xL xH yL yH d1.  Decimal29 118 48 m xL xH yL yH d1.

En modo estándar, este comando es efectivo solo cuando no hay datos en el búfer de impresión. 

Este comando no se ve afectado por los modos de impresión, excepto el modo de impresión al 

revés y el modo de justificación. 

Este comando alimenta puntos (para la altura n de la imagen de bits NV) en los modos normal y 

de doble ancho, y (para la altura n  2 de la imagen de bits NV) en los modos de doble altura y 

cuádruple,  independientemente  del  espaciado  de  línea  especificado  por 

ESC 2 o ESC 3. 

Después de  imprimir  la  imagen de bits, este  comando establece  la posición de  impresión  al 

comienzo de la línea y procesa los datos que siguen como datos normales.

3.29【Imprimirimagendebitsdetrama】     

 

[Descripción] Seleccione el modo de imagen de bits ráster.

m = 0, densidad de puntos verticales: 203,2 dpi;  

Densidad de puntos horizontales: 203,2 dpi  

(ppp: puntos por 25,4 mm {1 "}) 

xl, xH seleccione el número de bytes de datos (xL + xH * 256) en la dirección horizontal, 0≤xL≤48, 

xH = 0 ; yL, yH  seleccione el número de bits de datos  (yL + yH * 256) en dirección vertical, 

0≤yL≤255, 0≤yH≤8, 1≤ (yL + yH * 256) ≤2303 0≤d≤255, k = (xL + xH * 256) * (yL + yH * 256) (k ≠ 0)

La d indica los datos de definición. En los datos (d), un bit 1 especifica un punto que se imprimirá 

y un bit 0 especifica un punto que no se imprimirá. 

La imagen de bits de trama comienza a imprimirse desde la izquierda (si excede el área imprimible 

máxima), la posición no se verá afectada por el comando de impresión.[Ejemplo] xL+xH*256=64

3.30【Seleccionarfuentedecaracteres1】  

[Formato]ASCII: ESC 6Dec: 27 54Hex: 1B 36

[Descripción] Todos  los  caracteres  que  siguen  a  este  comando  están  impresos 

según la dirección del conjunto 1 que contiene 224 caracteres. La dirección va 

desde 20H a FFH e incluye caracteres ASCII y muchos símbolos gráficos. 

3.31【Seleccionarfuentedecaracteres2】  

[Formato]ASCII: ESC 7Dec: 27 55Hex: 1B 37

[Descripción] Todos  los  caracteres  que  siguen  a  este  comando  están  impresos según la dirección del conjunto 2 que contiene 224 caracteres. La dirección va desde 20H a FFH e incluye alemán, francés, ruso, japonés, Katakana, etc.

Page 21: 4120123 - grupo-selecta.com

21

 

 

 

3.32【SeleccioneImpresióndesuperíndiceysubíndice】  

[Formato]ASCII: FS r nDec: 28 114 nHex: 1c 72 n

[Descripción] Este  comando  sirve  para  seleccionar  la  posición  del  superíndice  y subíndice, n = 0 es superíndice y n = 1 es subíndice. Este comando es efectivo solo cuando se utiliza la fuente de caracteres 1 o la fuente 2.

3.33【Accionarlacaja】  

[Formato]ASCII: ESC p m n1 n2Dec: 27 112 m n1 n2Hex: 1B 70 m n1 n2

[Descripción] Este comando se utiliza para generar la señal de pulso, que hace que la caja se abra.

m=0;El  tiempo  de  apertura  de  la  caja  es  n1*2ms.  El  tiempo  de  desconexión  es 

n2*2ms Si n2<n1, el tiempo de desconexión es n1 * 2ms. 

Si n2 <50, n2 = 50. 

 

 

Page 22: 4120123 - grupo-selecta.com

22

 

 

4Apendice4.1CODEACarácter Datostransmisión Carácter Datostransmisión Carácter Datostransmisión

Hex Decimal Hex Decimal Hex Decimal

NUL 00 0 ( 28 40 P 50 80

SOH 01 1 ) 29 41 Q 51 81

STX 02 2 * 2A 42 R 52 83

ETX 03 3  

+ 2B 43 S 53 84

EOT 04 4 , 2C 44 T 54 85

ENQ 05 5 ‐ 2D 45 U 55 86

ACK 06 6 . 2E 46 V 56 86

BEL 07 7 / 2F 47 W 57 87

BS 08 8 0 30 48 X 58 88

T 09 9 1 31 49 Y 59 89

LF 0A 10 2 32 50 Z 5A 90

VT 0B 11 3 33 51 [ 5B 91

FF 0C 12 4 34 52 \ 5C 92

CR 0D 13 5 35 53 ] 5D 93

SO 0E 14 6 36 54 ^ 5E 94

SI 0F 15 7 37 55 _ 5F 95

DLE 10 16 8 38 56 FNC1 7B,31 123,49

DC1 11 17 9 39 57 FNC2 7B,32 123,50

DC2 12 18 : 3A 58 FNC3 7B,33 123,51

DC3 13 19 ; 3B 59 FNC4 7B,34 123,52

DC4 14 20 < 3C 60 SHIFT 7B,53 123,83

NAK 15 21 = 3D 61 CODEB 7B,42 123,66

SYN 16 22 > 3E 62 CODEC 7B,43 123,67

ETB 17 23 ? 3F 63      

CAN 18 24 @ 40 64      

EM 19 25 A 41 65      

SUB 1A 26 B 42 66      

ESC 1B 27 C 43 67      

FS 1C 28 D 44 68      

GS 1D 29 E 45 69      

RS 1E 30 F 46 70      

US 1F 31 G 47 71      

SP 20 32 H 48 72      

! 21 33 I 49 73      

" 22 34 J 4A 74      

# 23 35 K 4B 75      

$ 24 36 L 4C 76      

% 25 37 M 4D 77      

Page 23: 4120123 - grupo-selecta.com

23

 

 

& 26 38 N 4E 78      

' 27 38 O 4F 79       

4.2CODEBCarácter Transmisión Carácter Transmisión Carácter Transmisión

Hex Decimal Hex Decimal Hex Decimal

SP 20 32 H 48 72 p 70 112

! 21 33 I 49 73 q 71 113

" 22 34 J 4A 74 r 72 114

# 23 35 K 4B 75 s 73 115

$ 24 36 L 4C 76 t 74 116

% 25 37 M 4D 77 u 75 117

& 26 38 N 4E 78 v 76 118' 27 39 O 4F 79 w 77 119

( 28 40 P 50 80 x 78 120

) 29 41 Q 51 81 y 79 121

* 2A 42 R 52 82 z 7A 122

+ 2B 43 S 53 83 { 7B,7B 123,123

, 2C 44 T 54 84 | 7C 124

_ 2D 45 U 55 85 } 7D 125

. 2E 46 V 56 86 — 7E 126

/ 2F 47 W 57 87 DEL 7F 127

0 30 48 X 58 88 FNC1 7B,31 123,49

1 31 49 Y 59 89 FNC2 7B,32 123,50

2 32 50 Z 5A 90 FNC3 7B,33 123,51

3 33 51 [ 5B 91 FNC4 7B,34 123,52

4 34 52 \ 5C 92 SHIFT 7B,53 123,83

5 35 53 ] 5D 93 CODEA 7B,41 123,65

6 36 54 ^ 5E 94 CODEC 7B,43 123,67

7 37 55 _ 5F 95      

8 38 56 ` 60 96      

9 39 57 a 61 97      

: 3A 58 b 62 98      

; 3B 59 c 63 99      

< 3C 60 d 64 100      

= 3D 61 e 65 101      

> 3E 62 f 66 102      

? 3F 63 g 67 103      

@ 40 64 h 68 104      

A 41 65 i 69 105      

B 42 66 j 6A 106      

C 43 67 k 6B 107      

D 44 68 l 6C 108      

Page 24: 4120123 - grupo-selecta.com

24

 

 

E 45 69 m 6D 109      

F 46 70 n 6E 110      

G 47 71 o 6F 111       

4.3CODECCarácter Datostransmisión Carácter Datostransmisión Carácter Datostransmisión

Hex Decimal Hex Decimal Hex Decimal

00 00 0 40 28 40 80 50 80

01 01 1 41 29 41 81 51 81

02 02 2 42 2A 42 82 52 82

03 03 3 43 2B 43 83 53 83

04 04 4 44 2C 44 84 54 84

05 05 5 45 2D 45 85 55 85

06 06 6 46 2E 46 86 56 86

07 07 7 47 2F 47 87 57 87

08 08 8 48 30 48 88 58 88

09 09 9 49 31 49 89 59 89

10 0A 10 50 32 50 90 5A 90

11 0B 11 51 33 51 91 5B 91

12 0C 12 52 34 52 92 5C 92

13 0D 13 53 35 53 93 5D 93

14 0E 14 54 36 54 94 5E 94

15 0F 15 55 37 55 95 5F 95

16 10 16 56 38 56 96 60 96

17 11 17 57 39 57 97 61 97

18 12 18 58 3A 58 98 62 98

19 13 19 59 3B 59 99 63 99

20 14 20 60 3C 60 FCN1 7B,31 123,49

21 15 21 61 3D 61 CODEA 7B,41 123,65

22 16 22 62 3E 62 CODEB 7B,42 123,66

23 17 23 63 3F 63      

24 18 24 64 40 64      

25 19 25 65 41 65      

26 1A 26 66 42 66      

27 1B 27 67 43 67      

28 1C 28 68 44 68      

29 1D 29 69 45 69      

30 1E 30 70 46 70      

31 1F 31 71 47 71      

32 20 32 72 48 72      

33 21 33 73 49 73      

34 22 34 74 4A 74      

35 23 35 75 4B 75      

Page 25: 4120123 - grupo-selecta.com

25

 

 

36 24 36 76 4C 76      

37 25 37 77 4D 77      

38 26 38 78 4E 78      

39 27 39 79 4F 79      

 

4.4Fuentedecaracteres1y2                                

Page 26: 4120123 - grupo-selecta.com

26

 

 

1 Specifications   

Item Specification  Printingmethod Thermalprintingmethod

Printingspeed 60mm/s

Resolutionration 203dots/line(384dotsperline)

Paperloadingway Easypaperloading 

    

Printing

Charactersets Chinese、English

Barcode Onedimension

Sensor Papersensor

Papercutter None

Type Thermalpaper 

PaperWidth 58mm

Thickness 0.06~0.08mm

Communication Interface Serial232/TTL/485,cashbox

Powersupply Directcurrent DC5~8.4V,3A/DC9~24V,30W 

UsingTemperature 5~50℃(29~122℉)

Humidity 10~80%RH( non‐condensing)

 

1.1ThebuttonsandIndicatedLight 

 

1.1.1Thebuttons: theLFbuttonandtheSETbutton.

TheLFbutton is far fromtheindicatorlight.TheSETbuttonisneartheindicatorlight. 

1.1.2IndicatorLights:theredlightandthegreenlight

Theredlightisthepowerindicator.Thegreenlightisthestatusindicator.

Page 27: 4120123 - grupo-selecta.com

27

 

 

 

 

  State Explanation

Green Keeping Printerisreadytoprint.

flashing Paperislacking

Red Keeping Thepowerison.

  flashing Thepowerisoff.  

1.1.3Thebuttonfunction Feed paper: After turning on the printer, press the LF button, the printer will feedpaper.

SelfTest: PresstheLFbutton,donotreleaseandrepowertheprinteratthesametime,andthentheprinterwillprintouttheself‐checkscrip.

Setting: A. In the power‐off state, press the SET button, and repower the printer, then the

printerwillprintoutastatescripofsetting.

B. In thesettingstate,presstheSETbutton toselectthedifferentsettingitems. 

C. Inthesettingitemstate,presstheLFbuttontoselectonesettingitem,andpress

theLFbutton to choose the value of the current setting item. Thenpress theSET

buttontofinishthecurrentsettingitemandcanselectothersettingitems.

D. Theprinterhastoberepoweredaftersetting. 

  

number 

Item    Itemvalue      

Default 

setbps1.1

4800

1.2

9600

1.3

19200

1.4

38400

1.5

57600

1.6

115200

 2

 setdirection

2.1 2.2

direction

         

 

setFont3.1

8*16dot

3.2

12*24dot

         

 

setgrey4.1

1

4.2

2

4.3

3

  4.4

4

 

……4.12

12  

 5

 

 setspeed

5.1

Speed

Low

5.2

Speed

Medium

5.3

Speed

High

       

Page 28: 4120123 - grupo-selecta.com

28

 

 

  

2Powerandcommunicationinterface

 

2.1Thepowersupply  

ThepowersupplyisDC5.0~8.4V,3A/DC9~24V,30W.(Refertotheprintermodel).Itisshownasfollows:

     

 Platformstyle:thecolumnendispositivepole(+),theboardendisnegativepole(‐).

    

 

2.2Theserialinterface  Theserialinterfaceoftheprinterhasthreekindsoflogicsignallevel:TTL,232,and485

(refertotheprintermodel).Bydefault,thebaudrateis9600bps.Asynchronousframe

formatisonestartbit,8databits,andonestopbit.

Theserialinterfaceisasfollows:            

 Thepindefinitionof232/TTL:

 

Pin Signal Explanation

2 TXD PrintertransmitsdatatoPC

3 RXD ReceivingdatafromPC

5 GND Groundingsignal 

BUSYHigh level indicates the printer is busy and can’t receive data. Lowlevelistheopposite.

 8

 DSR

 

High level indicates the printer is busy and can’t receive data. Lowlevelistheopposite.

Page 29: 4120123 - grupo-selecta.com

29

 

 

  

 Thepindefinitionof485:

 

Pin Signal2 B3 A

     

2.3Thecashbox        

6 1  Thepindefinitionofcashbox:

 

Pin Direction Explanation

1、6 ‐ GND

2 In Cashboxdriver

3、5 ‐ NC

4 ‐ +24V

Page 30: 4120123 - grupo-selecta.com

30

 

 

  

3Detailsofcontrolcommands3.1【Printandlinefeed】 

[Format] ASCII LF  Hex 0A  Decimal 10

[Description]Prints thedata in theprintbufferand feedsone line,basedon thecurrentlinespacing.

 

[Note] Thiscommandsetstheprintpositiontothebeginningoftheline. 

3.2【Printandcarriagereturn】  

[Format] ASCII CR  Hex 0D  Decimal 13

[Description] ThiscommandfunctionsisthesameasLF.[Details] Settheprintstartingpositiontothebeginningoftheline.

 

3.3【Initializeprinter】  [Format] ASCII ESC @  Hex 1B 40  Decimal 27 64[Description] Clearsthedata in theprintbufferandresets theprintermodeto

themodethatwasineffectwhenthepowerwasturnedon.[Notes] TheDIPswitchsettingsarenotcheckedagain.

Thedatainthereceivebufferisnotcleared. 

3.4【Printandfeedpaper】  [Format] ASCII ESC J n  Hex 1B 4A n  Decimal 27 74 n[Range] 0 n 255      

[Description] Prints the data in the print buffer and feeds the paper [n *0.125 mm].

[Notes] After printing is completed, this command sets the print startingpositiontothebeginningoftheline.

Page 31: 4120123 - grupo-selecta.com

31

 

 

The paper feed amountset bythis command does notaffect thevaluessetbyESC2orESC3.

 

3.5【Printandfeednlines】  

[Format]ASCII ESC d nHex 1B 64 nDecimal 27 100 n

[Range] 0 n 255      

[Description] Printsthedataintheprintbufferandfeedsnlines.[Notes] Thiscommandsetstheprintstartingpositiontothebeginningoftheline.

ThiscommanddoesnotaffectthelinespacingsetbyESC2orESC3. 

3.6【Selectprintmode(s) 】  [Format] ASCII ESC ! n  Hex 1B 21 n 

 

[Range]Decimal0 n 255

27 33 n

[Description] Selectsprintmode(s)usingnasfollows: 

Bit Function Decimal Hex 

0FontA(12*24) 0 00FontB(8*16) 1 01

1 undefined ‐ ‐2 undefined ‐ ‐3 undefined ‐ ‐

 

4Double‐heightmodenotselected. 0 00Double‐heightmodeselected 16 10

 

5Double‐widthmodenotselected. 0 00Double‐widthmodeselected. 32 20

6 undefined ‐ ‐ 

7Underlinemodenotselected. 00 00Underlinemodeselected. 128 80

 

[Details] When both double‐height and double‐width modes are selected,quadruple‐sizecharactersareprinted.When turn white/black reverse printing mode, the underline is noteffective.Thethicknessoftheunderlineischangedwiththecharactersize.ESC ‐ ncanalsoselectorcanceltheunderlinemode.However,thesettingofthelastreceivedcommandiseffective.

[Default] n=0  

Page 32: 4120123 - grupo-selecta.com

32

 

 

 

3.7【Selectcharacterfont】  

[Format] ASCII ESC M n  Hex 1B 4D n  

[Range]

Decimal

n=0,1.

27 77 n

[Description] Selectthecharacterfont. 

n Function0 SelectcharacterfontA(12*24)

1 SelectcharacterfontB(8*16)

[Details] ESC!canalsoselectcharacterfonttypes.Howeverthesettingofthelastreceivedcommandiseffective.

3.8【SelectstheChinesecharacterfont.】  

[Format] ASCII FS &  Hex 1C 26  Decimal 28 38

[Description] SelecttheChinesecharacterfont. 

3.9【CanceltheChinesecharacterfont】  

[Format] ASCII FS .  Hex 1C 2E  Decimal 28 46

[Description] SelecttheChinesecharacterfont. 

3.10【Selectjustification】  [Format] ASCII ESC a n  Hex 1B 61 n

Decimal 27 97 n[Range] n=0,1,2[Description] Alignallthedatainonelinetothespecifiedposition.

 

nselectsthejustificationasfollows: 

n Justification0 Leftjustification1 Centering2 Rightjustification

 

Page 33: 4120123 - grupo-selecta.com

33

 

 

 

[Notes] Thecommandisenabledonlywhenprocessedatthebeginningofthelineinstandardmode.

[Default] n=

0[Example]Leftjustification Centering Rightjustification

 

        

3.11【Selectdefaultlinespacing】  [Format] ASCII ESC 2  Hex 1B 32  Decimal 27 50

[Description] Select3.75mm(3*0.125mm)linespacing. 

[Notes] Thelinespacingcanbesetindependentlyinstandardmodeandinpagemode.

[Reference] ESC3  

3.12【Setlinespacing】  

[Format] ASCII ESC 3 n

  Hex 1B 33 n  [Range]

Decimal

0 n 255

27 51 n

[Description] Setthelinespacingto[n*0.125mm].[Default] n=3 

 

3.13【Setright‐sidecharacterspacing】  [Format] ASCII ESC SP n  Hex 1B 20 n 

 

[Range]Decimal0 n 255

27 32 n

[Description] Setthecharacterspacingfortherightsideofthecharacterto[n*0.125mm].

[Default] n=0

Page 34: 4120123 - grupo-selecta.com

34

 

 

 

3.14【Setleftmargin】  [Format] ASCII GS L nL nH

Hex 1D 4C nL nHDecimal

[Range] 0 nL 25529 76 nL nH

0 nH 255       

[Description] Set the leftmargin using nL and nH. The leftmargin is set to[(nL+ nH 256) 0.125mm].

       

 [Notes] Thiscommandiseffectiveonlywhenprocessedatthebeginningofthe

lineinstandardmode.

Thesettingcouldnotexceedtheprintablearea.

[Default] nL=0,nH=0 

3.15【Setprintingareawidth】  

[Format] ASCII GS W nL nH  Hex 1D 57 nL nH

Decimal29 87 nL nH[Range]0 nL 255

 

0 nH 255 

[Description] SetstheprintingareawidthtotheareaspecifiedbynLandnH.Theprintingareawidthissetto[(nL+ nH 256) 0.125mm]

 

         

[Notes] Thiscommandiseffectiveonlywhenprocessedatthebeginningoftheline.

The setting byGS L takes precedenceover the setting byGSW. Ifthe[leftmargin+printingareawidth]exceedstheprintablearea,theprinteruses[Printableareawidth‐leftmargin].

Page 35: 4120123 - grupo-selecta.com

35

 

 

[Default] nL=128,nH=1;    

3.16【Selectcharactersize】  

[Format] ASCII GS ! n

  Hex 1D 21 n  

[Range]Decimal0 n 255

29 33 n

(1 verticalnumberoftimes 8, 1 horizontalnumberoftimes 8)

[Description] Selectsthecharacterheightusingbits0 to2andselectsthecharacterwidthusingbits4to7,asfollows:

 

 

Bit On/off Hex Decimal Function0  

 Characterheightselection.SeeTable2.

1234  

 

Characterwidthselection.SeeTable1.567

 

Table1 Table2CharacterWidthSelection CharacterHeightSelection

 

Hex Decimal Width Hex Decimal Height00 0 1(normal) 00 0 1(normal)

10 16 2(double‐width) 01 1 2(double‐height)20 32 3 02 2 330 48 4 03 3 440 64 5 04 4 550 80 6 05 5 660 96 7 06 6 770 112 8 07 7 8

 

[Notes] Ifnisoutsidethedefinedrange,thiscommandisignored.Instandardmode,theverticaldirectionisthepaperfeeddirection.When charactersare enlargedwith different sizes on one line,all thecharactersonthelinearealignedatthebaseline.The ESC ! command can also turn double‐width and double‐heightmodes on or off.However, the setting of thelastreceivedcommandiseffective.

[Default] n=0

Page 36: 4120123 - grupo-selecta.com

36

 

 

3.17【Setthegraydegree】  

Format:ASCII: ESC M nDec: 27 109 nHex: 1B 6D n

N ranges from0 to 12, the largerof then value, thedarker thedot it is. Theinitialn=7. It is used tomodify the finalexpressionof different thermalpaperroll.

 

3.18【Turnunderlinemodeon/off】  [Format] ASCII ESC ‐ n  Hex

Decimal1B27

2D45

nn

[Description] Turnsunderlinemodeonoroff,basedonthefollowingvaluesofn.0: Turnsoffunderlinemode,1:Turnsonunderlinemode.

[Notes] When turn white/black reverse printing mode, the underline isnoteffective.Changingthecharactersizecanaffectthecurrentunderlinethickness.Underline mode can also be turned on or off by using ESC !.Note,however,thatthelastreceivedcommandiseffective.

[Default] n=0 

3.19【Turnwhite/blackreverseprintingmode】  [Format] ASCII GS B n  Hex 1D 42 n  Decimal 29 66 n[Range] 0 n 255

 

[Description] Turn on or off white/black reverse printing mode.

When the LSB of n is 0,white/black reversemode is turned off.WhentheLSBofnis1,white/blackreversemodeisturnedon.

[Notes] Onlythelowestbitofnisvalid.

When white/black reverse printing mode is on, it also applies tocharacterspacingsetbyESCSP.Thiscommanddoesnotaffectbit images,user‐definedbit images,ESC$,andESC\.Thiscommanddoesnotaffectthespacebetweenlines.White/blackreversemodehasahigherprioritythanunderlinemode.Even if underlinemode is on, it is disabled (but notcanceled)whenwhite/blackreversemodeisselected.

Page 37: 4120123 - grupo-selecta.com

37

 

 

[Default] n=0 

3.20【Turnson/offupside‐downprintingmode】  [Format] ASCII ESC { n  Hex

 

Decimal

1B 

27

7B 

123

n

n[Range] 0 n 255

 

[Description] Turnupside‐downprintingmodeonoroff.

WhentheLSBofnis0,upside‐downprintingmodeisturnedoff.WhentheLSBofnis1,upside‐downprintingmodeisturnedon.

[Notes] Onlythelowestbitofnisvalid. 

This command is enabled only when processedat the beginning of alineinstandardmode.

In upside‐down printing mode, the printer rotates the line to beprintedby180andthenprintsit.

[Default] n=0 

[Example]Whenupside‐downprinting When upside‐down printingmodeisoff. modeison.

               

3.21【Transmitstatus】  [Format] ASCII FS n n  Hex 1c 76 n  Decimal 28 118 n

 

[Description] Whenn=0, transmits the paper status to cpu. After thiscommandprinterwillsendonebytethroughTXD.Whenthebyteis0x04,showthatthepaperisenough;whenthebyteis0x55,showthatthepaperislacking

 

 

Page 38: 4120123 - grupo-selecta.com

38

 

 

 

3.22【Setbarcodewidth】  [Format] ASCII GS w n  Hex 1D 77 n  Decimal 29 119 n

[Description] Setthehorizontalsizeofthebarcode. 

nspecifiesthebarcodewidthasfollows: 

n Thewidthofbarcode (mm)

2 0.2503(Default) 0.3754 0.5Thebarcodecannotbeidentified,whenthewidthofbarcodeexceedtheprintablearea.

 

3.23【Selectbarcodeheight】  [Format] ASCII GS h n  Hex 1D 68 n 

 

[Range]Decimal0 n 255

29 104 n

 

[Description] Selecttheheightofthebarcode. 

nspecifiesthenumberofdotsintheverticaldirection.

[Default] n=162 

3.24【SelectprintingpositionforHRIcharacters】  [Format] ASCII GS H n  Hex 1D 48 n  Decimal 29 72 n

[Description] SelecttheprintingpositionofHRIcharacterswhenprintingabarcode.

nselectstheprintingpositionasfollows: 

n Printingposition0 Notprinted2 Belowthebarcode

HRIindicatesHumanReadableInterpretation.

[Notes] HRIcharactersareprintedincentering.

Page 39: 4120123 - grupo-selecta.com

39

 

 

ASCII HEX Function{A 7B,41 SelectcodeA{B 7B,42 SelectcodeB{C 7B,43 SelectcodeC{S 7B,53 SHIFT{1 7B,31 FNC1{2 7B,32 FNC2{3 7B,33 FNC3{4 7B,34 FNC4

[Default] n=0 

3.25【Printbarcode】  [Format] ASCII GS k m n d1...dn  Hex 1D 6B m n d1...dn  Decimal 29 107 m n d1...dn

 

[Description] Selectsabarcodesystemandprintsthebarcode.

mselectsabarcodesystemandparameternanddisselectedbybarcodesystemasfollows:

 

n Barcodesystem n D(barcodedata)

67 EAN13 12≤n≤13 48≤d≤5768 EAN8 7≤n≤8 48≤d≤5769 CODE39 1≤n≤255 48≤d≤57, 65≤d≤90,

32,36,37,45,46,4773 CODE128 1≤n≤255 0≤d≤127

 Noticethenumbersofeachbarcode.EAN‐13、EAN_128、

CODE_39andEAN‐8barcodecangenerateparitybitautomatically,userdoesnotneedtotransmitthatdata.Thereceiveddatamustbe in thestandardbar codeset, ifexceedingtheset,thecommandisinvain.Thecodesetrefertothestandardofthebarcode.CODE39donotincludeextendcode(EXTERNCODE39).TheheadofCODE128barcodedatalinkmustbeCODEA,CODEB,orCODEC,insideof barcode, also user can switch to another coding. combination„{‟and onecharactertodefineanewfunction.Andtransfertwo‟{”todefineASCII‟{”.asfollowing:

               

TheinformationforCODEA、CODEBandCODECrefertotheappendix;

Thebarcodeisincenteringindefault.The printer just feed paper, when the width of bar code exceedthe

printablearea. 

 

Page 40: 4120123 - grupo-selecta.com

40

 

 

3.26【Selectbit‐imagemode】  

[Format] ASCII ESC * m nL nH d1...dk  Hex 1B 2A m nL nH d1...dk  Decimal 27 42 m nL nH d1...dk

 

[Range] m=0,1,32,33;0 nL 255;0 nH 255;0 d 255[Description] Selects a bit‐imagemodeusingm, for thenumberof dots

specifiedbynLandnHdpi:dotsper25.4mm{1"}

 

 

 

m

 

 

modeVerticalDirection HorizontalDirection

NumberofDots DotDensity DotDensity NumberofData

(K)  

08‐dot

single‐density

 

8 67.7dpi 101.6dpi nL+_nH*256

 

18‐dot

double‐density

 

8 67.7dpi 203.2dpi nL+_nH*256

 

3224‐dot

single‐density

 

24 203dpi 101.6dpi (nL+_nH*256)*3

 

3324‐dot

double‐density

 

24 203dpi 203.2dpi (nL+_nH*256)*3

[Notes] If the value of m is out of the specified range, nLand the datafollowingareprocessedasnormaldata.

If the bit‐image data input exceeds the number of dots to be printed on aline,theexcessdataisignored.

Dindicatesthebit‐imagedata.Setacorrespondingbitto1toprintadotorto0nottoprintadot.

If thewidth of the printing area set byGSL andGSW less than thewidthrequiredbythedatasentwiththeGS * command,thefollowingwillbeperformedon the line in question (but the printing cannot exceed themaximum printablearea):①Thewidthof theprintingarea is extendedto the right toaccommodatetheamountofdata.②Ifstepdoesnotprovidesufficientwidthforthedata,theleftmarginisreducedtoaccommodatethedata.Foreachbitofdatainsingle‐densitymode (m=0,), theprinterprints twodots; foreachbit ofdata indouble‐densitymode(m=1),theprinterprintsonedot. Thismustbeconsideredincalculatingtheamountofdatathatcan.

Afterprintingabitimage,theprinterreturnstonormaldataprocessingmode.This command is not affected by printmodes (underline, character size, or

white/blackreverseprinting),exceptupside‐downprintingmode.The relationshipbetween the imagedata and thedots to be printed is

describedinFigurebelow:       

Page 41: 4120123 - grupo-selecta.com

41

 

 

    

 8dotbitimage

 

            

24dotbitimage 

3.27【DefineNVbitimage】  

[Format] ASCII FS qn[xLxHyLyHd1...dk]1...[xLxHyLyHd1...dk]nHex 1C71n[xLxHyLyHd1...dk]1...[xLxHyLyHd1...dk]nDecimal28113n[xLxHyLyHd1...dk]1...[xLxHyLyHd1...dk]n

[Description] Define the NV bit image specified by n. nspecifiesthenumberofthedefinedNVbitimage,n=1.

xL,xHspecifies(xL xH 256) 8≤384 dotsinthehorizontaldirectionfortheNVbitimageyouaredefining0≤xL≤255,0≤xH≤1;

 

 

yL,yHspecifies(yL yH 256) 8≤24,dotsintheverticaldirectionfortheNVbitimageyouaredefining0≤yL≤24,yH=0;

 

 

0≤d≤255,K=(xL+xH*256)*(yL+yH*256)*8,thedefinitionareais1.66kbytes.

ThiscommandcancelsallNVbit images thathavealreadybeendefinedbythiscommand. The printer cannot redefine only one of several data definitionspreviouslydefined.Inthiscase,alldataneedstobesentagain.

From the beginning of the processing of this command till the finish of reset,mechanicaloperations(includingpaperfeedingetc.)cannotbeperformed.

Duringprocessingofthiscommand,theprinterisBUSYwhenwritingdatatotheuserNVmemoryandstopsreceivingdata.Thereforeitisprohibitedtotransmitthedata,includingreal‐timecommands,duringtheexecutionofthiscommand.

NV bitimageisabitimagedefined innon‐volatile memory byFSqandprintedbyFSp.

This command is effectivewhen7 bytes <FSyH>of the commandareprocessednormally.

WhentheamountofdataexceedsthecapacityleftintherangedefinedbyxL,xH,

Page 42: 4120123 - grupo-selecta.com

42

 

 

yL,yH,theprinterprocessesxL,xH,yL,yHoutofthedefinedrange.Thedindicatesthedefinitiondata.Indata(d)a1bitspecifiesadottobeprinted

anda0bitspecifiesadotnottobeprinted.The definition data for an NV bit image consists of [xL xH yL yH d1...dk].

Therefore,whenonlyoneNVbit imageisdefinedn=1,theprinterprocessesadatagroup[xLxHyLyHd1...dk]once.Theprinteruses([data:(xL xH 256) (yL yH

256) 8] [header:4])bytesofNVmemory.OnceanNVbitimageisdefined,itisnoterasedbyperformingESC@,reset,and

poweroff.ThiscommandperformsonlydefinitionofanNVbitimageanddoesnotperform

printing.PrintingoftheNVbitimageisperformedbytheFSpcommand.[Notes] FrequentwritecommandexecutionsbyaNVmemorywritecommandmaydamagetheNVmemory.Therefore, itisrecommended towritetheNVmemory10timesorlessaday.

                          

3.28【PrintNVbitimage】  

[Format] ASCII FS p n m  Hex 1C 70 n m  Decimal 28 112 n m

[Range] 0 n 255;  

[Description] PrintsNVbitimagenusingthemodespecifiedbym.dpi:dotsper25.4mm{1"}

 

m Mode VerticalDotDensity Horizontal DotDensity0 Normal 203.2dpi 203.2dpi3 Quadruple 101.6dpi 101.6dpi

n is the number of the NV bit image (defined using the FS q command).mspecifiesthebitimagemode.

Page 43: 4120123 - grupo-selecta.com

43

 

 

[Format] ASCII GS v 0 m xL xH yL yH d1...dk  Hex 1D 76 30 m xL xH yL yH d1...dk  Decim l29 118 48 m xL xH yL yH d1...dk

[Details] NVbitimageisabitimagedefinedinnon‐volatilememorybyFSqandprintedbyFSp.

 

This command is not effectivewhen the specified NV bit image has notbeendefined.

Instandardmode,thiscommandiseffectiveonlywhenthereisnodataintheprintbuffer.

This command is not affected by print modes, except upside‐downprintingmodeandjustificationmode.

Thiscommandfeedsdots(fortheheightnoftheNVbitimage)innormalanddouble‐width modes, and (for the height n 2 of the NV bit image) indouble‐heightandquadruplemodes,regardlessof the linespacingspecifiedbyESC2orESC3.

Afterprintingthebitimage,thiscommandsetstheprintpositiontothebeginningofthelineandprocessesthedatathatfollowsasnormaldata.

3.29【Printrasterbitimage】     

[Description] Selectrasterbit‐imagemode.m=0,VerticalDotDensity:203.2dpi;HorizontalDotDensity:203.2dpi(dpi:

dotsper25.4mm{1"})

xl, xH select the number of data bytes (xL+xH*256) in the horizontaldirection,0≤xL≤48,xH=0;yL,yHselectthenumberofdatabits(yL+yH*256)

intheverticaldirection,0≤yL≤255, 0≤yH≤8,1≤(yL+yH*256)≤2303;

 0≤d≤255,k =(xL+xH*256)*(yL+yH*256)(k≠0);

  

Thedindicatesthedefinitiondata.Indata(d)a1bitspecifiesadottobeprintedanda0bitspecifiesadotnottobeprinted.

The rasterbit‐imagebeginprintfromleft (exceedthemaximumprintablearea),thepositionisnotaffectedbytheprintcommand.

 

 

[Example] xL+xH*256=64  

 

Page 44: 4120123 - grupo-selecta.com

44

 

 

3.30【Selectcharacterfont1】  

[Format]ASCII: ESC 6Dec: 27 54Hex: 1B 36

[Description] All character following this command is printer outaccordingtheaddressinset1.Itcontains224characters.Addressrangfrom20HtoFFHandincludeASCIIcharacterandmanygraphicsymbols.

 

3.31【Selectcharacterfont2】  

[Format]ASCII: ESC 7Dec: 27 55Hex: 1B 37

[Description] Allcharacterfollowingthiscommandisprinteroutaccordingtheaddressinset2.Itcontains224characters.Addressrangfrom20HtoFFHandincludeGerman,French,Russian,Japanese,Katakanaandsoon.

 

3.32【SelectSuperscriptandSubscriptPrint】  

[Format]ASCⅡ: FS r nDec: 28 114 nHex: 1c 72 n

[Description] This command is to select the position for superscript andsubscript,n=0 is superscriptandn=1 is subscript. This command is effectiveonlyinusecharacterfont1orfont2.

3.33【Drivethecashbox】  

[Format]ASCII: ESC p m n1 n2Dec: 27 112 m n1 n2Hex: 1B 70 m n1 n2

[Description] Thiscommandisusedtogeneratethepulsesignal,whichdrivesthecashboxtoopen.m=0;Thecashboxopeningtimeisn1*2ms.Thecutofftimeisn2*2ms.;Ifn2<n1,thecutofftimeisn1*2ms.Ifn2<50,n2=50.

  

 

Page 45: 4120123 - grupo-selecta.com

45

 

 

4Appendix4.1CODEACharacter Transmit data character Transmit data Character Transmit data

Hex Decimal Hex Decimal Hex Decimal

NUL 00 0 ( 28 40 P 50 80

SOH 01 1 ) 29 41 Q 51 81

STX 02 2 * 2A 42 R 52 83

ETX 03 3  

+ 2B 43 S 53 84

EOT 04 4 , 2C 44 T 54 85

ENQ 05 5 ‐ 2D 45 U 55 86

ACK 06 6 . 2E 46 V 56 86

BEL 07 7 / 2F 47 W 57 87

BS 08 8 0 30 48 X 58 88

T 09 9 1 31 49 Y 59 89

LF 0A 10 2 32 50 Z 5A 90

VT 0B 11 3 33 51 [ 5B 91

FF 0C 12 4 34 52 \ 5C 92

CR 0D 13 5 35 53 ] 5D 93

SO 0E 14 6 36 54 ^ 5E 94

SI 0F 15 7 37 55 _ 5F 95

DLE 10 16 8 38 56 FNC1 7B,31 123,49

DC1 11 17 9 39 57 FNC2 7B,32 123,50

DC2 12 18 : 3A 58 FNC3 7B,33 123,51

DC3 13 19 ; 3B 59 FNC4 7B,34 123,52

DC4 14 20 < 3C 60 SHIFT 7B,53 123,83

NAK 15 21 = 3D 61 CODEB 7B,42 123,66

SYN 16 22 > 3E 62 CODEC 7B,43 123,67

ETB 17 23 ? 3F 63      

CAN 18 24 @ 40 64      

EM 19 25 A 41 65      

SUB 1A 26 B 42 66      

ESC 1B 27 C 43 67      

FS 1C 28 D 44 68      

GS 1D 29 E 45 69      

RS 1E 30 F 46 70      

US 1F 31 G 47 71      

SP 20 32 H 48 72      

! 21 33 I 49 73      

" 22 34 J 4A 74      

# 23 35 K 4B 75      

$ 24 36 L 4C 76      

% 25 37 M 4D 77      

Page 46: 4120123 - grupo-selecta.com

46

 

 

& 26 38 N 4E 78      

' 27 38 O 4F 79       

4.2CODEBCharacter Transmit Character Transmit Character Transmit

Hex Decimal Hex Decimal Hex Decimal

SP 20 32 H 48 72 p 70 112

! 21 33 I 49 73 q 71 113

" 22 34 J 4A 74 r 72 114

# 23 35 K 4B 75 s 73 115

$ 24 36 L 4C 76 t 74 116

% 25 37 M 4D 77 u 75 117

& 26 38 N 4E 78 v 76 118' 27 39 O 4F 79 w 77 119

( 28 40 P 50 80 x 78 120

) 29 41 Q 51 81 y 79 121

* 2A 42 R 52 82 z 7A 122

+ 2B 43 S 53 83 { 7B,7B 123,123

, 2C 44 T 54 84 | 7C 124

_ 2D 45 U 55 85 } 7D 125

. 2E 46 V 56 86 — 7E 126

/ 2F 47 W 57 87 DEL 7F 127

0 30 48 X 58 88 FNC1 7B,31 123,49

1 31 49 Y 59 89 FNC2 7B,32 123,50

2 32 50 Z 5A 90 FNC3 7B,33 123,51

3 33 51 [ 5B 91 FNC4 7B,34 123,52

4 34 52 \ 5C 92 SHIFT 7B,53 123,83

5 35 53 ] 5D 93 CODEA 7B,41 123,65

6 36 54 ^ 5E 94 CODEC 7B,43 123,67

7 37 55 _ 5F 95      

8 38 56 ` 60 96      

9 39 57 a 61 97      

: 3A 58 b 62 98      

; 3B 59 c 63 99      

< 3C 60 d 64 100      

= 3D 61 e 65 101      

> 3E 62 f 66 102      

? 3F 63 g 67 103      

@ 40 64 h 68 104      

A 41 65 i 69 105      

B 42 66 j 6A 106      

C 43 67 k 6B 107      

D 44 68 l 6C 108      

Page 47: 4120123 - grupo-selecta.com

47

 

 

E 45 69 m 6D 109      

F 46 70 n 6E 110      

G 47 71 o 6F 111       

4.3CODECCharacter Transmit data Character Transmit data Character Transmit data

Hex Decimal Hex Decimal Hex Decimal

00 00 0 40 28 40 80 50 80

01 01 1 41 29 41 81 51 81

02 02 2 42 2A 42 82 52 82

03 03 3 43 2B 43 83 53 83

04 04 4 44 2C 44 84 54 84

05 05 5 45 2D 45 85 55 85

06 06 6 46 2E 46 86 56 86

07 07 7 47 2F 47 87 57 87

08 08 8 48 30 48 88 58 88

09 09 9 49 31 49 89 59 89

10 0A 10 50 32 50 90 5A 90

11 0B 11 51 33 51 91 5B 91

12 0C 12 52 34 52 92 5C 92

13 0D 13 53 35 53 93 5D 93

14 0E 14 54 36 54 94 5E 94

15 0F 15 55 37 55 95 5F 95

16 10 16 56 38 56 96 60 96

17 11 17 57 39 57 97 61 97

18 12 18 58 3A 58 98 62 98

19 13 19 59 3B 59 99 63 99

20 14 20 60 3C 60 FCN1 7B,31 123,49

21 15 21 61 3D 61 CODEA 7B,41 123,65

22 16 22 62 3E 62 CODEB 7B,42 123,66

23 17 23 63 3F 63      

24 18 24 64 40 64      

25 19 25 65 41 65      

26 1A 26 66 42 66      

27 1B 27 67 43 67      

28 1C 28 68 44 68      

29 1D 29 69 45 69      

30 1E 30 70 46 70      

31 1F 31 71 47 71      

32 20 32 72 48 72      

33 21 33 73 49 73      

34 22 34 74 4A 74      

35 23 35 75 4B 75      

Page 48: 4120123 - grupo-selecta.com

48

 

 

36 24 36 76 4C 76      

37 25 37 77 4D 77      

38 26 38 78 4E 78      

39 27 39 79 4F 79      

 

4.4Character font1&2