Text2 Barcode Docs

Special commands

Introduction

Text2 Barcode includes a special series of commands for certain actions

PRINTERNAME

This command sends the job to a specific printer.

Format

PRINTERNAME: p

Parameter Description
p ip or driver or mac address

Example

PRINTERNAME: 192.168.1.10

^XA
^CI0
^FO20,20
^ADN,18,10^FDProduct Description No. 1^FS
^FO40,85
^ADN,36,20^FD$ 12.00^FS
^FO290,65
^ABN,11,7^FD2023-12-01^FS
^FO20,130
^BY2^BCN,39,Y,N^FDCOD1002^FS
^XZ

Zpl Resize

This command will resize the elements of a zpl tag.

Format

RESIZE f

Parameter Description
f Resizing factor. Values less than 1.0 are used to reduce the size of the elements and values greater than 1.0 are used to increase the size of the elements. Example: RESIZE 1.5 to convert from 200 to 300 dpi

Example

RESIZE 0.75

^XA
^CI0
^FO20,20^ADN,18,10^FDProduct Description No. 1^FS
^FO40,85^ADN,36,20^FD$ 12.00^FS
^FO290,65^ABN,11,7^FD2023-12-01^FS
^FO20,130^BY2^BCN,39,Y,N^FDCOD1002^FS
^XZ

RESULT

^XA
^CI0
^FO15.0,15.0^ADN,18,10^FDProduct Description No. 1^FS
^FO30.0,63.8^ADN,36,20^FD$ 12.00^FS
^FO217.5,48.8^ABN,11,7^FD2023-12-01^FS
^FO15.0,97.5^BY1.5^BCN,29.3,Y,N^FDCOD1002^FS
^XZ

DIVIDER

Split the code of a tag to execute individually.

Format

xDivider

Example

PRINTERNAME: 192.168.1.10

SIZE 51 mm, 25 mm
CODEPAGE UTF-8
TEXT 23,18,"D.FNT",0,1,1,MID$(DESCRIPTION$,1,30)
TEXT 23,43,"D.FNT",0,1,1,MID$(DESCRIPTION$,31,LEN(DESCRIPTION$))
BARCODE 22,135,"128M",36,2,0,2,4,CODE$
TEXT 40,82,"4",0,1,0,PRICE$
TEXT 290,85,"B.FNT",0,1,1,4, DAY$ + "/" + MONTH$ + "/" + YEAR$
PRINT 1,1

xDivider

PRINTERNAME: 192.168.1.11

SIZE 51 mm, 25 mm
CODEPAGE UTF-8
TEXT 23,18,"D.FNT",0,1,1,MID$(DESCRIPTION$,1,30)
TEXT 23,43,"D.FNT",0,1,1,MID$(DESCRIPTION$,31,LEN(DESCRIPTION$))
BARCODE 22,135,"128M",36,2,0,2,4,CODE$
TEXT 40,82,"4",0,1,0,PRICE$
TEXT 290,85,"B.FNT",0,1,1,4, DAY$ + "/" + MONTH$ + "/" + YEAR$
PRINT 1,1

INPUT

This command receives data through a text box.

Format

@INPUT('phone', 'Contact')

Parameter Value Description
Type text multiline phone number date time Input Type
Name String Input Name

Example

^XA 

^CFA,30 
^FO20,20^FDCel: @INPUT('phone','Contacto')^FS 

^XZ