Custom Audio Electronics K80 Command Manual

Hide thumbs Also See for K80:

Advertisement

Quick Links

COMMANDS MANUAL
K80

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the K80 and is the answer not in the manual?

Questions and answers

Summary of Contents for Custom Audio Electronics K80

  • Page 1 COMMANDS MANUAL...
  • Page 2 CUSTOM S.p.A. GENERAL SAFETY INFORMATION THE CE MARK AFFIXED TO THE PRODUCT CERTIFY THAT THE Your attention is drawn to the following actions Via Berettine 2/B PRODUCT SATISFIES THE BA- that could compromise the characteristics of the 43010 Fontevivo (PARMA) - Italy SIC SAFETY REQUIREMENTS.
  • Page 3 INTRODUCTION CUSTOM/POS EMULATION ALIGNMENT...
  • Page 5 INTRODUCTION Each command reported in this manual is described as shown in the following picture. In the irst heading ield is reported the hexadecimal command value and the ASCII command value. In the second heading ield reported the command func- tion.
  • Page 6 The ields shown in the scheme of the previous igure have the following meaning: [Format] ASCII, hexadecimal and decimal command value. [Range] Limits of the values the command and its variables can take [Description] Description of command function [Notes] Additional information about command use and settings . [Default] Default value of the command and its variables.
  • Page 7: Paper Specifications

    PAPER SPECIFICATIONS Paper with black mark on the thermal side ATTENTION: Requires the assembly of the black mark sensor kit (optional). NOTE: All the dimensions shown in following igures are in millimetres. 73.5 Position of the black mark sensor: left 40.5 Position of the black mark sensor: central Position of the black mark sensor: right...
  • Page 8 Paper with black mark on the non-thermal side ATTENTION: Requires the assembly of the black mark sensor kit (optional). NOTE: All the dimensions shown in following igures are in millimetres. 73.5 Position of the black mark sensor: right 40.5 Position of the black mark sensor: central Position of the black mark sensor: left min 9 PAPER WIDTH 76, 80 mm...
  • Page 9 CUSTOM/POS EMULATION...
  • Page 10: Commands Listed In Alphanumeric Order

    COMMANDS LISTED IN ALPHANUMERIC ORDER 0x09 ......<HT>........75 0x0A .
  • Page 11 0x1B 0x61......<ESC a> ........80 0x1B 0x63 0x35 .
  • Page 12 0x1D 0x42 ......<GS B>........49 0x1D 0x43 0x30 .
  • Page 13: Commands Listed By Function

    COMMANDS LISTED BY FUNCTION BARCODE COMMANDS 0x1D 0x28 0x6B .....<GS (> ........18 Print two-dimensional barcode 0x1D 0x28 0x6B [fn 065] .
  • Page 14 0x1B 0x2D ......<ESC -> ........35 Turn underline mode on/off 0x1B 0x34.
  • Page 15 PRINT COMMANDS 0x0A ......<LF> ........53 Print and line feed 0x0D .
  • Page 16 PRINT POSITION COMMAND 0x09 ......<HT>........75 Horizontal tab 0x1B 0x24.
  • Page 17 0x1B 0x63 0x35 .....<ESC c 5> ........90 Enable/disable panel key 0x1B 0xFA .
  • Page 18: Bar Code Commands

    BARCODE COMMANDS <GS (> 0x1D 0x28 0x6B Print two-dimensional barcode Valid for [Format] ASCII Decimal [Range] [Description] Processes the data concerning two-dimensional barcode. • Barcode type is speciied by cn • Function is speciied by fn FUNCTION Function 065 QRcode: Specify encoding scheme Function 066 QRcode: Specify dot size of the module Function 067...
  • Page 19 <GS (> 0x1D 0x28 0x6B [fn 065] Specify encoding scheme of QRcode barcode Valid for [Format] ASCII Decimal [Range] (pL+pH × 256) = 3 (pL = 3, pH = 0) cn = 49 fn = 65 0 ≤ n ≤ 1 [Description] Speciies encoding type of QRcode barcode.
  • Page 20 <GS (> 0x1D 0x28 0x6B [fn 066] Specify dot size of the module of the QRcode barcode Valid for [Format] ASCII Decimal [Range] (pL+pH × 256) = 3 (pL = 3, pH = 0) cn = 49 fn = 66 2 ≤...
  • Page 21 <GS (> 0x1D 0x28 0x6B [fn 067] Specify QRcode barcode size Valid for [Format] ASCII Decimal [Range] (pL+pH × 256) = 3 (pL = 3, pH = 0) cn = 49 fn = 67 0 ≤ n ≤ 40 [Description] Speciies QRcode barcode eversion, as follows: VERSION VERSION...
  • Page 22 <GS (> 0x1D 0x28 0x6B [fn 069] Specify the error correction level of the QRcode barcode Valid for [Format] ASCII Decimal [Range] (pL+pH × 256) = 3 (pL = 3, pH = 0) cn = 49 fn = 69 0 ≤ n ≤ 4 [Description] Speciies the ECC level (Error Correction Capacity) of QRcode barcode.
  • Page 23 <GS (> 0x1D 0x28 0x6B [fn 080] Store the QRcode barcode data in the barcode save area Valid for [Format] ASCII d1...dk d1...dk Decimal d1...dk [Range] cn = 49 fn = 80 m = 49 0 ≤ d ≤ 255 k = (pL + pH ×...
  • Page 24 <GS (> 0x1D 0x28 0x6B [fn 081] Prints the QRcode barcode data Valid for [Format] ASCII Decimal [Range] (pL+pH × 256) = 3 (pL = 3, pH = 0) cn = 49 fn = 81 m = 49 [Description] Prints the QRcode barcode in the current position. [Notes] pL and pH specify the number of successive bytes to be sent [Default]...
  • Page 25 <GS H> 0x1D 0x48 Select printing position of Human Readable Interpretation (HRI) characters Valid for [Format] ASCII Decimal [Range] 0 ≤ n ≤ 3 48 ≤ n ≤ 51 [Description] Selects the printing position of HRI characters when printing barcodes. n selects the printing positions as follows: FUNCTION 0, 48...
  • Page 26 <GS f> 0x1D 0x66 Select font for HRI characters Valid for [Format] ASCII Decimal [Range] n = 0, 1, 48, 49 [Description] Selects a font for the HRI characters used when printing a barcode. n selects a font from the following table: FONT 0, 48...
  • Page 27 <GS h> 0x1D 0x68 Set barcode height Valid for [Format] ASCII Decimal [Range] 1 ≤ n ≤ 255 [Description] Sets the height of the barcode. n speciies the number of vertical dots. [Notes] [Default] n = 162 ( 20.25 mm ) [Reference] 0x1D 0x6B [Example]...
  • Page 28 <GS k> 0x1D 0x6B Print barcode Valid for [Format 1] ASCII [d1..dk] [d1..dk] Decimal [d1..dk] [Format 2] ASCII [d1..dn] [d1..dn] Decimal [d1..dn] [Range] Format 1: 0 ≤ m ≤ 8 m = 20 Format 2: 65 ≤ m ≤73 m = 90 [Description] Select a barcode system and prints the barcode.
  • Page 29: Number Of Characters

    Format 2: BARCODE NUMBER OF REMARKS SYSTEM CHARACTERS 11≤ n ≤12 48≤ d ≤ 57 UPC-A 11≤ n ≤12 48≤ d ≤ 57 UPC-E 12≤ n ≤13 48≤ d ≤ 57 EAN13 ( JAN) 7≤ n ≤8 48≤ d ≤ 57 EAN8 ( JAN) 48 ≤...
  • Page 30 When CODE128 is used: • When using CODE128 in this printer, please note the following regarding data transmission: • The top part of the barcode data string must be a code set selection character (CODE A, CODE B or CODE C) which selects the irst code set. •...
  • Page 31 <GS w> 0x1D 0x77 Set barcode width Valid for [Format] ASCII Decimal [Range] 0x1 ≤ n ≤ 0x6 0x81 ≤ n ≤ 0x86 [Description] Sets the horizontal size of the barcode. n speciies the barcode width (referred to the narrow bar) as follows: MODULE WIDTH (mm) 0x1, 0x81...
  • Page 32: Character Commands

    CHARACTER COMMANDS <ESC SP> 0x1B 0x20 Set right-side character spacing Valid for [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Sets the character spacing for the right side of the character to [n x horizontal or vertical motion units]. [Notes] •...
  • Page 33: Set Printing Mode

    <ESC !> 0x1B 0x21 Set printing mode Valid for [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Selects printing mode using n (see tables below): 13/17 17/22 OFF/ON DECIMAL FUNCTION Character font A selected 16 x 24 12 x 24 Character font B selected 12 x 24 9 x 24...
  • Page 34 <ESC &> 0x1B 0x26 Deines user-deined characters Valid for [Format] ASCII & [x1 d1 ... d(y × x1)] ... [xk d1... d(y × x1)] [x1 d1 ... d(y × x1)] ... [xk d1... d(y × x1)] Decimal [x1 d1 ... d(y × x1)] ... [xk d1... d(y × x1)] [Range] y = 3 32 ≤...
  • Page 35: Turn Underline Mode On/Off

    <ESC -> 0x1B 0x2D Turn underline mode on/off Valid for [Format] ASCII Decimal [Range] 0 ≤ n ≤ 2 48 ≤ n ≤ 50 [Description] Turns underline mode on or off, based on the following values of n: n = 0, 48 Turns off underline mode n = 1, 49 Turns on underline mode (1-dot thick)
  • Page 36 <ESC 4> 0x1B 0x34 Set/reset italic mode Valid for [Format] ASCII Decimal [Range] 0 ≤ n ≤ 1 48 ≤ n ≤ 49 [Description] Turns italic mode on or off, based on the following values of n: FUNCTON 0, 48 Turns off italic mode 1, 49 Turns on italic mode...
  • Page 37 <ESC ?> 0x1B 0x3F Cancel user-deined characters Valid for [Format] ASCII Decimal [Range] 32 ≤ n ≤ 126 [Description] Cancels user-deined characters. [Notes] • This command cancels the pattern deined for the character code speciied by n. • This command deletes the pattern deined for the speciied character code in the font selected by 0x1B 0x21.
  • Page 38: Turn Emphasized Mode On/Off

    <ESC E> 0x1B 0x45 Turn emphasized mode on/off Valid for [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Turns expanded mode on/off. • When the LSB of n is 0, the expanded mode is off. • When the LSB of n is 1, the expanded mode is on. [Notes] •...
  • Page 39: Turn Double-Strike Mode On/Off

    <ESC G> 0x1B 0x47 Turn double-strike mode on/off Valid for [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Turns double-strike mode on or off. • When the LSB of n is 0, the double-strike mode is off. • When the LSB of n is 1, the double-strike mode is on. [Notes] •...
  • Page 40: Select Character Font

    <ESC M> 0x1B 0x4D Select character font Valid for [Format] ASCII Decimal [Range] n = 0, 1, 48, 49 [Description] Selects characters font depending of cpi value set (Char/Inch) as follows: CHAR /INCH FUNCTION 0, 48 Font 13 cpi (16x24) A = 13 cpi B = 17 cpi 1, 49...
  • Page 41: Select International Character Set

    <ESC R> 0x1B 0x52 Select international character set Valid for [Format] ASCII Decimal [Range] 0 ≤ n ≤ 10 [Description] Select the international character set n according to the table below: CHARACTER SET U.S.A. “ France à ° ç § é...
  • Page 42 <ESC V> 0x1B 0x56 Set 90° rotated print mode Valid for [Format] ASCII Decimal [Range] 0 ≤ n ≤ 1 48 ≤ n ≤ 49 [Description] Turns 90° rotation mode on/off. n is used as follows: FUNCTION 0, 48 Disable 90° rotation mode 1, 49 Enable 90°...
  • Page 43 <ESC t> 0x1B 0x74 Select characters code table Valid for [Format] ASCII Decimal [Range] 1 ≤ n ≤ 53, n = 255 [Description] Select a page n from the character code table, as follows: PAGE PC437 - U.S.A., Standard Europe Katakana PC850 - Multilingual PC860 - Portuguese...
  • Page 44 PAGE PC869 - Greek on request ISO8859-2 - Latin 2 on request ISO8859-15 - Latin 9 on request PC1098 - Farci on request PC1118 - Lithuanian on request PC1119 - Lithuanian on request PC1125 - Ukranian on request WPC1250 - Latin 2 WPC1251 - Cyrillic WPC1253 - Greek WPC1254 - Turkish...
  • Page 45 <ESC {> 0x1B 0x7B Set / cancel upside-down character printing Valid for [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Turns upside-down printing mode on or off. • When the LSB of n is 0, the upside-down printing mode is off. •...
  • Page 46 0x1B 0xC1 Set / cancel cpi mode Valid for [Format] ASCII 0xC1 Decimal [Range] 0 ≤ n ≤ 1 48 ≤ n ≤ 49 [Description] Sets cpi mode based on the following values of n: FUNCTION 0, 48 Font A = 13 cpi Font B = 17cpi 1, 49 Font A = 17 cpi...
  • Page 47 <FS %> 0x1C 0x25 Select the font type Valid for [Format] ASCII Decimal [Range] n= 0, 1, 2 [Description] Select the font type. FONT TYPE International Chinese GB18030 Korean PC949 [Notes] • This command can be used only for the models with Extended Chinese (GB18030-2000) or Korean (PC949).
  • Page 48: Select Character Size

    <GS !> 0x1D 0x21 Select character size Valid for [Format] ASCII Decimal [Range] 0 ≤ n ≤ 7 16 ≤ n ≤ 23 32 ≤ n ≤ 39 48 ≤ n ≤ 55 64 ≤ n ≤ 71 80 ≤ n ≤ 87 96 ≤...
  • Page 49: Turn White/Black Reverse Printing Mode On/Off

    <GS B> 0x1D 0x42 Turn white/black reverse printing mode on/off Valid for [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Turns white/black reverse printing mode on or off. • When the LSB of n is 0, white/black reverse printing is turned off. •...
  • Page 50: Line Spacing Commands

    LINE SPACING COMMANDS <ESC 0> 0x1B 0x30 Select 1/8-inch line spacing Valid for [Format] ASCII Decimal [Range] [Description] Selects 1/8-inch line spacing. [Notes] [Default] [Reference] 0x1B 0x32, 0x1B 0x33 [Example] 50 │ CUSTOM/POS emulation...
  • Page 51: Select 1/6-Inch Line Spacing

    <ESC 2> 0x1B 0x32 Select 1/6-inch line spacing Valid for [Format] ASCII Decimal [Range] [Description] Selects 1/6-inch line spacing. [Notes] [Default] [Reference] 0x1B 0x30, 0x1B 0x33 [Example] │ 51 CUSTOM/POS emulation...
  • Page 52: Set Line Spacing Using Minimum Units

    <ESC 3> 0x1B 0x33 Set line spacing using minimum units Valid for [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Sets line spacing to [ n * (vertical or horizontal motion unit)] inches. [Notes] • The horizontal and vertical motion unit are speciied by 0x1D 0x50. Changing the horizontal or vertical motion unit does not affect the current line spacing.
  • Page 53: Print Commands

    PRINT COMMANDS <LF> 0x0A Print and line feed Valid for [Format] ASCII Decimal [Range] [Description] Prints the data in the buffer and feeds one line based on the current line spacing. [Notes] • Sets the print position to the beginning of the line. •...
  • Page 54: Print And Carriage Return

    <CR> 0x0D Print and carriage return Valid for [Format] ASCII Decimal [Range] [Description] When autofeed is “CR enabled”, this command functions in the same way as 0x0A, otherwise it is disregarded. [Notes] Sets the print position to the beginning of the line. [Default] See “Autofeed in setup”...
  • Page 55: Print And Paper Feed

    <ESC J> 0x1B 0x4A Print and paper feed Valid for [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Prints the data in the print buffer and feeds the paper [ n * (vertical or horizontal motion unit)] inches. [Notes] •...
  • Page 56: Print And Feed Paper N Lines

    <ESC d> 0x1B 0x64 Print and feed paper n lines Valid for [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Prints the data in the print buffer and feeds the paper n rows. [Notes] • n rows paper feed is equivalent to (n x char height + line spacing set). •...
  • Page 57 0x1B 0xFF Receive the graphic page from the communication port Valid for [Format] ASCII 0xFF Decimal [Range] n = 1 0 ≤ nL nH ≤ 255 [Description] Receive [nL + (nH × 256)] word from the communication port and save them in the lash bank speci- ied by n as shown in the following table: FUNCTION Save logo in the lash bank 1...
  • Page 58: Status Command

    STATUS COMMAND <DLE EOT> 0x10 0x04 Real-time status transmission Valid for [Format] ASCII Decimal [Range] 1 ≤ n ≤ 4 ; n = 20 [Description] Transmits the selected printer status speciied by n in real time according to the following parameters: n = 1 transmit printer status n = 2...
  • Page 59 n=2: Off-line status OFF/ON DECIMAL FUNCTION Not used. Fixed to Off Not used. Fixed to On Not used. Fixed to Off Paper is not being fed by FEED key Paper is being fed by FEED key Not used. Fixed to On No paper end stop Printing stops due to paper end No error...
  • Page 60 n=20: FULL status (6 bytes) 1° Byte = 0x10 (DLE), 2° Byte = 0x0F, 3° Byte = paper status OFF/ON DECIMAL FUNCTION Paper present Paper not present RESERVED Paper present Near paper end RESERVED RESERVED Ticket not present in output Ticket present in output RESERVED The black mark is placed over the sensor...
  • Page 61: Bit Off/On Hex Decimal

    5° Byte = Error status recoverable OFF/ON DECIMAL FUNCTION Head temperature ok Head temperature error No COM error RS232 COM error RESERVED Power supply voltage ok Power supply voltage error RESERVED Acknowledge command Not acknowledge command error RESERVED Undeined 6°Byte = Error status unrecoverable OFF/ON DECIMAL FUNCTION...
  • Page 62: Transmit Paper Sensor Status

    <ESC v> 0x1B 0x76 Transmit paper sensor status Valid for [Format] ASCII Decimal [Range] [Description] When this command is received, transmit the current status of the paper sensor. The status to be transmitted is shown in the table below: OFF/ON DECIMAL FUNCTION Near paper end sensor: paper present...
  • Page 63: Transmit Status

    <GS r> 0x1D 0x72 Transmit status Valid for [Format] ASCII Decimal [Range] n = 1, 49 [Description] Transmit the status speciied by n as follows: FUNCTION 1, 49 Transmit paper sensor status (as for 0x1B 0x76) Paper sensor status (n = 1, 49) OFF/ON DECIMAL FUNCTION...
  • Page 64 0x1D 0xE0 Enable / Disable automatic FULL STATUS BACK Valid for [Format] ASCII 0xE0 Decimal [Range] 0 ≤ n ≤ 255 [Description] Enable / disable automatic full status back. n speciies the composition of FULL STATUS as follows: OFF/ON Decimal FUNCTION Disable Paper status Enable Paper status...
  • Page 65: Bit Image Commands

    BIT IMAGE COMMANDS <ESC *> 0x1B 0x2A Select image print mode Valid for [Format] ASCII d1...dk d1...dk Decimal d1...dk [Range] m = 0, 1, 32, 33 0 ≤ nL ≤ 255 0 ≤ nH ≤ 3 0 ≤ d ≤ 255 [Description] Selects a bit image mode using m for the number of dots speciied by nL and nH, as follows: VERTICAL DIRECTION...
  • Page 66 • The relationship between the image data and the dots to be printed is as follows: 8-dot bit image 24-dot bit image Bit- Bit- image image data data Print data Print data [Default] [Reference] [Example] 66 │ CUSTOM/POS emulation...
  • Page 67: Print Nv Bit Image

    <FS p> 0x1C 0x70 Print NV bit image Valid for [Format] ASCII Decimal [Range] 1 ≤ n ≤ 255 0 ≤ m ≤ 3 48 ≤ m ≤ 51 [Description] Print a NV bit image n using the mode speciied by m: MODE 0,48 Normal...
  • Page 68 [Default] [Reference] 0x1C 0x71 [Example] 68 │ CUSTOM/POS emulation...
  • Page 69 <FS q> 0x1C 0x71 Deine NV bit image Valid for [Format] ASCII n [xL xH yL yH d1...dk] 1...[xL xH yL yH d1...dk] n n [xL xH yL yH d1...dk] 1...[xL xH yL yH d1...dk] n Decimal n [xL xH yL yH d1...dk] 1...[xL xH yL yH d1...dk] n [Range] 1 ≤...
  • Page 70 • In groups of NV bit images other than the irst one, when the printer processes xL, xH, yL, yH out of the deined range, it stops processing this command and starts writing into the non-volatile images. At this time, NV bit images that haven’t been deined are disabled (undeined), but any NV bit images before that are enabled.
  • Page 71 <GS *> 0x1D 0x2A Deine downloaded bit image Valid for [Format] ASCII d1...d(x × y × 8) d1...d(x × y × 8) Decimal d1...d(x × y × 8) [Range] 1 ≤ x ≤ 255 1 ≤ y ≤ 48 x × y ≤ 1536 0 ≤...
  • Page 72: Print Downloaded Bit Image

    <GS /> 0x1D 0x2F Print downloaded bit image Valid for [Format] ASCII Decimal [Range] [Description] Prints a downloaded bit image using the mode speciied by m. m selects a mode from the table below: MODE 0,48 Normal 1, 49 Double width 2, 50 Double height 3, 51...
  • Page 73 <GS v 0> 0x1D 0x76 0x30 Print raster image Valid for [Format] ASCII d1...dk d1...dk Decimal d1...dk [Range] 0 ≤ m ≤ 3, 48 ≤ m ≤ 51 0 ≤ xL ≤ 255 0 ≤ xH ≤ 255 (1 ≤ xL + xH × 256 ≤ 65535) 0 ≤...
  • Page 74 • The following table shows the report between the image data and the printing result: . . . dX+1 dX+2 dX x 2 ..dk-2 dk-1 . . . [Default] [Reference] [Example] 74 │ CUSTOM/POS emulation...
  • Page 75: Print Position Command

    PRINT POSITION COMMAND <HT> 0x09 Horizontal tab Valid for [Format] ASCII Decimal [Range] [Description] Moves the print position to the next horizontal tab position. [Notes] • Ignored unless the next horizontal tab position has been set. • If the command is received when the printing position is at the right margin, the printer executes print buffer full printing and horizontal tab processing from the beginning of the next line.
  • Page 76 <ESC $> 0x1B 0x24 Set absolute printing position Valid for [Format] ASCII Decimal [Range] 0 ≤ nL ≤ 255 0 ≤ nH ≤ 255 [Description] Sets the distance from the beginning of the line to the position at which subsequent characters are to be printed.
  • Page 77: Set Relative Vertical Print Position

    <ESC ( v> 0x1B 0x28 0x76 Set relative vertical print position Valid for [Format] ASCII Decimal [Range] 0 ≤ nL ≤ 255 0 ≤ nH ≤ 255 [Description] Sets the print vertical position based on the current position by using the horizontal or vertical motion unit.
  • Page 78 <ESC D> 0x1B 0x44 Set horizontal tab position Valid for [Format] ASCII n1...nk n1...nk Decimal n1...nk [Range] 1 ≤ n ≤ 255 0 ≤ k ≤ 32 [Description] Sets horizontal tab positions • n speciies the column number for setting a horizontal tab position calculated from the beginning of the line.
  • Page 79 <ESC \> 0x1B 0x5C Set relative printing position Valid for [Format] ASCII Decimal [Range] 0 ≤ nL ≤ 255 0 ≤ nH ≤ 255 [Description] Sets the print starting position based on the current position by using the horizontal or vertical motion unit.
  • Page 80 <ESC a> 0x1B 0x61 Select justiication Valid for [Format] ASCII Decimal [Range] 0 ≤ n ≤ 2 48 ≤ n ≤ 50 [Description] Aligns all data in one line to the speciied position. n selects the type of justiication as follows: JUSTIFICATION 0, 48 Flush left...
  • Page 81: Set Left Margin

    <GS L> 0x1D 0x4C Set left margin Valid for [Format] ASCII Decimal [Range] 0 ≤ nL, nH ≤ 255 [Description] Sets the left margin. The left margin is set to [(nL + nH × 256) × (horizontal motion unit)] inches. Printable area Left margin Printing area width...
  • Page 82: Set Printing Area Width

    <GS W> 0x1D 0x57 Set printing area width Valid for [Format] ASCII Decimal [Range] 0 ≤ nL, nH ≤ 255 0 ≤ nL + nH × 256) ≤ 384 [Description] Sets the printing area width to the area speciied by nL and nH. The left margin is set to [(nL + nH ×...
  • Page 83: Macro Functions

    MACRO FUNCTIONS <GS :> 0x1D 0x3A Set start/end of macro deinition Valid for [Format] ASCII Decimal [Range] [Description] Starts or ends macro deinition. [Notes] • Macro deinition starts when this command is received during normal operation. • When 0x1D 0x5E is received during macro deinition, the printer ends macro deinition and clears all deinitions.
  • Page 84: Execute Macro

    <GS ^> 0x1D 0x5E Execute macro Valid for [Format] ASCII Decimal [Range] 0 ≤ r, t ≤ 255 0 ≤ m ≤ 1 [Description] Executes a macro. • r speciies the number of times to execute the macro. • t speciies the waiting time for executing the macro. The waiting time is t ×...
  • Page 85: Mechanism Control

    MECHANISM CONTROL <ESC i> 0x1B 0x69 Total cut Valid for [Format] ASCII Decimal [Range] [Description] This command enables cutter operation. If there is no cutter, a disabling lag is set and any subse- quent cut commands will be ignored. [Notes] The printer waits to complete all paper movement commands before it executes a total cut.
  • Page 86: Partial Cut

    <ESC m> 0x1B 0x6D Partial cut Valid for [Format ] ASCII Decimal [Range] [Description] This command enables partial cutter operation. [Notes] The printer waits to complete all paper movement commands before it executes a partial cut. [Default] [Reference] [Example] 86 │ CUSTOM/POS emulation...
  • Page 87: Select Cut Mode

    <GS V> 0x1D 0x56 Select cut mode Valid for [Format 1] ASCII Decimal [Format 2] ASCII Decimal [Range] Format 1: m = 0x30, 0x31 Format 2: m = 0x42 0 ≤ n ≤ 255 [Description] Selects cut mode and executes the cut command. m selects cut mode as follows: FUNCTION 0x30...
  • Page 88: Miscellaneous Command

    MISCELLANEOUS COMMAND <ESC => 0x1B 0x3D Select peripherals device Valid for [Format] ASCII Decimal [Range] 1 ≤ n ≤ 3 [Description] Select the device to which the host computer sends data, using n as follows: n = 1, n = 3 Printer Enable n = 2 Printer Disabled...
  • Page 89: Initialize Printer

    <ESC @> 0x1B 0x40 Initialize printer Valid for [Format] ASCII Decimal [Range] [Description] Clears the data in the print buffer and resets the printer mode to that in effect when power was turned [Notes] • The data in the receiver buffer is not cleared. •...
  • Page 90 <ESC c 5> 0x1B 0x63 0x35 Enable/disable panel key Valid for [Format] ASCII Decimal [Range] n = 0, 1 [Description] Enables/disables the keys of the front panel: FUNCTION Disables front panel keys Enables front panel keys [Notes] When the panel button is disabled, the button may only be used after the printer has been reset. [Default] n = 1 [Reference]...
  • Page 91 0x1B 0xFA Print graphic (640x409) Valid for [Format] ASCII 0xFA Decimal [Range] 0 ≤ n ≤ 1 0 ≤ xH, xL, yH, yL ≤ 255 [Description] Prints graphic logo from lash or current graphic page located in ram. n selects the graphic source as follows: FUNCTION Print graphic page from ram (used at the moment)
  • Page 92 0x1B 0xFD Receive graphic page from communication port Valid for [Format] ASCII 0xFD nL Decimal [Range] 0 ≤ nL, nH ≤ 255 [Description] Receives [nL + (nH × 256)] words from the port and puts them into the ram bank. [Notes] •...
  • Page 93 <GS C 0> 0x1D 0x43 0x30 Select counter print mode Valid for [Format] ASCII Decimal [Range] 0 ≤ n ≤ 5 m = 0, 1, 2, 48, 49, 50 [Description] Selects a print mode for the serial number counter. • n speciies the number of digits to be printed as follows: when n = 0, the printer prints the actual digits indicated by the numeric value.
  • Page 94 <GS C 1> 0x1D 0x43 0x31 Select count mode (A) Valid for [Format] ASCII Decimal [Range] 0 ≤ aL, aH ≤ 255 0 ≤ bL, bH ≤ 255 0 ≤ n, r ≤ 255 [Description] Selects a count mode for the serial number counter. •...
  • Page 95: Set Counter

    <GS C 2> 0x1D 0x43 0x32 Set counter Valid for [Format] ASCII Decimal [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 x 256)]. [Notes] •...
  • Page 96 <GS C ;> 0x1D 0x43 0x3B Select count mode (B) Valid for [Format] ASCII Decimal [Range] 0 ≤ sa, sb, sc ≤ 65535 0 ≤ sn, sr ≤ 255 [Description] Selects a count mode for the serial number counter and speciies the value of the counter. •...
  • Page 97: Transmit Printer Id

    <GS I> 0x1D 0x49 Transmit printer ID Valid for [Format] ASCII Decimal [Range] 1 ≤ n ≤ 3 49 ≤ n ≤ 51 n = 255 [Description] Transmits the printer ID speciied by n follows: PRINTER ID SPECIFICATION 1, 49 Printer model ID 0xFF (resend the command with n=255) 2, 50...
  • Page 98: Set Horizontal And Vertical Motion Units

    <GS P> 0x1D 0x50 Set horizontal and vertical motion units Valid for [Format] ASCII Decimal [Range] 0 ≤ x, y ≤ 255 [Description] Sets the horizontal and vertical motion units to 1/x inch and 1/y inch respectively. When x is set to 0, the default setting value is used. When y is set to 0, the default setting value is used.
  • Page 99: Print Counter

    <GS c> 0x1D 0x63 Print counter Valid for [Format] ASCII Decimal [Range] [Description] Sets the serial counter value in the print buffer and increments or decrements the counter value. [Notes] • After setting the current counter value in the print buffer as print data (a character string),the printer counts up or down based on the count mode set.
  • Page 100 0x1D 0x7C Set printing density Valid for [Format] ASCII 0x7C Decimal [Range] 2 ≤ n ≤ 6 50 ≤ n ≤ 54 [Description] Sets printing density. n speciies printing density as follows: PRINTING DENSITY 2, 50 - 25% 3, 51 - 12.5% 4, 52 5, 53...
  • Page 101 0x1D 0xE8 Setting minimum ticket length Valid for [Format] ASCII 0xE8 Decimal [Range] 0 ≤ nL, nH ≤ 255 [Description] This command set the minimum ticket length as (nH * 256) + nL. [Notes] Set values between 60mm and 199mm. Values lower or higher than those speciied are ignored. [Default] 60 mm [Reference]...
  • Page 102 0x1D 0xF0 Set printing speed Valid for [Format] ASCII 0xF0 Decimal [Range] 0 ≤ n ≤ 1 [Description] Sets printing speed. n speciies the printing speed as follows: PRINTING SPEED High quality Normal [Notes] Printing speed reverts to the default value when the printer is reset or turned off. [Default] n = 1 [Reference]...
  • Page 103 ALIGNMENT COMMANDS 0x1D 0xE7 Set blackmark distance Valid for [Format] ASCII 0xE7 Decimal [Range] 0 ≤ nH ≤ 255 0 ≤ nL ≤ 255 [Description] Sets the distance in tenths of a mm of alignment point from the edge of the black mark. [Notes] •...
  • Page 104: Printing Direction

    The following image shows a ticket with “Alignment Point” positioned at 8 mm from the black mark. PRINTING DIRECTION Point of alignment Edge of the black mark Black mark distance 104 │ CUSTOM/POS emulation...
  • Page 105 0x1D 0xF6 Align the ticket Valid for [Format] ASCII 0xF6 Decimal [Descrizione] This command aligns the edge of the black mark at the point of alignment (see chapter Alignment for further explanation). [Notes] • Use the command 0x1D 0xE7 to set an offset between the black mark and the point of alignment •...
  • Page 106 0x1D 0xF8 Align at cut Valid for [Format] ASCII 0xF8 Decimal [Range] [Description] This command aligns the edge of the black mark at the point of alignment (see chapter Alignment for further explanation). [Notes] • Use the command 0x1D 0xE7 to set an offset between the black mark and the point of alignment •...
  • Page 107 ALIGNMENT...
  • Page 108 ALIGNMENT COMMANDS The devices are equipped with a sensor that allows the use of alignment black mark to handle rolls of tickets with pre- printed and ixed length ields; For further information, refer to the User Manual of each device. The commands available for managing the alignment of the ticket are the following: •...
  • Page 109 EXAMPLE 1 Commands sequence to print tickets with “alignment point” over the edge of the black mark (Black Mark Distance = 0mm set from SETUP). Cutting Line Cutting Line Printing Line Printing Line Sensor Sensor Command for text printing ‘TICKET 1’, 0x0A,’FIRST LINE’, 0x0A, ’SECOND LINE’, 0x0A Start Paper with black mark not aligned...
  • Page 110 Cutting Line Printing Line Sensor Cut command 0x1B 0x69 The paper is cut. The portion of the paper between the cutting line and the printing line can not be recovered, the paper is ready for printing. 110 │ ALIGNMENT...
  • Page 111 EXAMPLE 2 Commands sequence to print tickets with “alignment point” moved 5mm compared to the edge of the black mark (Black Mark Distance = 5mm set from SETUP). Cutting Line Cutting Line Printing Line Printing Line Sensor Sensor Command for text printing ‘TICKET 1’, 0x0A,’FIRST LINE’, 0x0A, ’SECOND LINE’, 0x0A Start...
  • Page 112 Cutting Line Printing Line Sensor Cut command 0x1B 0x69 The paper is cut. The portion of the paper between the cutting line and the printing line can not be recovered, the paper is ready for printing. 112 │ ALIGNMENT...
  • Page 116 CUSTOM S.p.A. World Headquarters Via Berettine, 2/B - 43010 Fontevivo, Parma ITALY Tel. +39 0521 680111 - Fax +39 0521 610701 info@custom.biz - www.custom.biz All rights reserved www.custom.biz...

Table of Contents