background image

    

 

Ref: "ProgGuide1_7.docx"  

 

Page 17 of 26 

Document Revision: “1.7”  
Document Date: “11 Sep. 2013”

 

Barcode Commands 

 

GS,"H",n

 

1DH,48H,n

 

Select automatic text in barcode

 

 

n is encoded so: 
 

bit 0 cleared 

(0)  

No barcode text above barcode symbol (default) 

 

bit 0 set  

(1)  

Print barcode text above barcode symbol 

 

bit 1 cleared 

(0)  

No barcode text below barcode symbol (default) 

 

bit 1 set  

(1)  

Print barcode text below barcode symbol 

This setting is retained and used for all subsequent barcodes, but is cleared to the default when the 
printer enters sleep mode 

 

GS,"h",n 

1DH,68H,n 

Select height of barcode 

Height of barcode = (n x 0.125mm)  n is valid in the range 1 <= n <= 150.   
Default value 100; a zero value is ignored; a value of 150 is used in place of values greater than 
150.  This setting is retained and used for all subsequent barcodes, but is cleared to the default 
when the printer is powered off. 

 

GS,"k",..

 

1DH,6BH,m,d1..dk,t

 

Print barcode using data provided

 

 

N.B. This command must always be terminated with value “t” shown below. 
The number and type of bytes of data varies with barcode type "m". 
Valid m values:   

 

 

 

 

 

 

 

      Terminator (t) 

 0: UPC-A 

Numeric only ASCII data: supply 11 digits 

 

 

 

00H 

 1: UPC-E 

Numeric only ASCII data: supply  6 digits 

 

 

 

00H 

 2: EAN-13 

Numeric only ASCII data: supply 12 digits 

 

 

 

00H 

 3: EAN-8 

Numeric only ASCII data: supply  7 digits 

 

 

 

00H 

 4: Code 39 

Alphanumeric ASCII data: variable length (Max 22)  

 

 

00H 

 5: Int2 of 5 

Numeric only ASCII data:  variable length (Max 23)  

 

 

00H 

 6: Code 128A  Alphanumeric ASCII data 0x00 to 0x5F: variable length (Max 14)  

FFH 

 7: Code 128B  Alphanumeric ASCII data 0x20 to 0x7F: variable length (Max 14)  

FFH 

 

 8: Code 128C  Numeric only ASCII data 30H to 39H: variable length (Max 14 bytes)  

FFH 

 9: Code 93 

Alphanumeric ASCII data 0x00 to 0x7F: variable length (Max 16)  

FFH 

Note that the user should verify that a given barcode will fit on the paper, especially when using the 
variable length barcodes. Barcodes may not be mixed with normal text. 

 

GS,"w",n

 

1DH,77H,n

 

Select width of barcode

 

 

Width of barcode element (narrow bar) = (n x 0.125mm) 
n is valid in the range 2 <= n <= 4.  Other values are ignored; Default value is 3. 
This setting is retained and used for all subsequent barcodes, but is cleared to the default when the 
printer enters sleep mode.  Note that the user should verify that a given barcode will fit on the paper, 
especially when using the variable length barcodes. 

 
 

Cutter Control Commands (ATB102 driving M-T102A Only) 

 
The ATB102 has two additional commands for control of the cutter (when driving the M-T102A only): 
 

ESC,"i" 

1BH,69H

 

Execute a Full Cut

 

 

Perform a full cut. 

 

ESC,"m" 

1BH,6DH

 

Execute a Partial Cut

 

 

Perform a partial cut. 

 
 

Mark Sense Operation 

 
Please refer to the factory for more detailed information before using the Mark Sense feature. 
 
 

Summary of Contents for AP1200

Page 1: ...r Solutions Programmer Guide Also covers the ATB102 ATB1200 and Ap863 Ap1200 Thermal Printer Able Systems Limited Denton Drive Northwich Cheshire CW9 7TU England Tel 44 0 1606 48621 Fax 44 0 1606 4490...

Page 2: ...IR Ap1300 BT and Ap1300 BTi only 8 Paper Out Paper Low and Head Up Sensors 9 3 CONTROL CODE TABLES 10 Command Description Format 10 Command Codes Received 11 Formatting Commands Continued 14 Barcode...

Page 3: ...f operation e g support for rechargeable battery packs and sleep options Serial Comms settings Paper Out Paper Low and Head Up indications and actions etc Many of the software commands are emulations...

Page 4: ...ntroller firmware embedded software and circuit diagrams pin connection lists and application data No warranty in respect of patent rights of Able Systems Limited or of third parties is given Unauthor...

Page 5: ...r set and sample bar codes in spooling mode prints any stored data and enters idle mode Double clicking means pressing and releasing twice in quick succession in a similar manner to a PC mouse Some fu...

Page 6: ...1300 BTi See the section on SETTING CONFIGURATION INFORMATION for details The Font Mode is normally stored in non volatile memory FLASH This means that the printer can be pre configured to operate in...

Page 7: ...be vertically contiguous only if Font Mode 3 is selected Single dot high graphics are also aligned with the top of text characters Successive horizontal dot lines can be vertically contiguous if no o...

Page 8: ...full and also after a controller reset The hardware busy line is set when 256 bytes of space remains and incoming data are no longer passed to the buffer but may be processed when 128 bytes remain Th...

Page 9: ...sor within the mechanism detects an out of paper condition and or senses black marks to register with pre printed forms In the Ap863 F only a mechanical switch with optical sensing Paper Low indicatio...

Page 10: ...alues for the Baud rate parity data and stop bit parameters are not implemented until the printer has been cycled into sleep mode and back to waking mode Command Description Format In the explanations...

Page 11: ...ck demo mode default condition Other bits are ignored the double click demo mode only functions if the paper feed button is enabled ESC X 1BH 58H m eXtended Commands special to Able N See the section...

Page 12: ...pled in both axes to 0 5 mm square Successive rows of 8 dot graphics can be printed contiguously in the vertical direction only in Font Modes 0 1 or 2 or a User Font which is 32 dots high When the thi...

Page 13: ...il cleared or the printer enters sleep mode ESC J 1BH 4AH n Print and feed extra paper n is the count of notional 1 20th print lines to be fed This command terminates the current line n is divided by...

Page 14: ...rks in an either or way with CR CR LF pairs are treated as a single line terminator Line terminators immediately following full lines are ignored FF 0CH Real time Form Feed Exit spooling mode and prin...

Page 15: ...ode confirmation of the number of bytes sent whilst in spool mode will be returned The sequence on exiting spool mode is i Transmit initial confirmation string with data packet information ii Exit Spo...

Page 16: ...ODES TRANSMITTED for format A value of n 00H disables automatic reporting and is the default condition ESC u 1BH 75H n Transmit peripheral device status Transmit STATUS byte when decoded n is discarde...

Page 17: ...Numeric only ASCII data supply 7 digits 00H 4 Code 39 Alphanumeric ASCII data variable length Max 22 00H 5 Int2 of 5 Numeric only ASCII data variable length Max 23 00H 6 Code 128A Alphanumeric ASCII d...

Page 18: ...implemented and described above should not be sent to the printer as the outcome may not be as expected However some additional EPSON ESCPOS commands are recognised and an attempt is made to decode t...

Page 19: ...The STATUS byte is encoded bitwise bit 0 Head Up Sensor Active 0 head OK 1 head up bit 1 Mechanism running 0 stopped 1 running bit 2 Data buffer completely empty 0 not empty 1 empty bit 3 Paper Out S...

Page 20: ...n2 Report Spool Sleep Period 52 n1 n2 Set Auto Save Period 52 n1 n2 Report Auto Save Period 66 n1 Set print darkness 66 n1 Report print darkness 110 Produce test print Setting Configuration Informatio...

Page 21: ...stored setting intact but enters sleep mode immediately The printer will never enter the sleep mode while a charger is connected When in spooling mode a different sleep period setting is used See Spo...

Page 22: ...Defaults m 9 is clear m 42 Set EjectOffset value The command ESC X 2AH n sets the value of EjectOffset This parameter is used in Mark Sense operation See MARK SENSE OPERATION section for details m 48...

Page 23: ...Revision 1 7 Document Date 11 Sep 2013 Note that during the saving procedure the printer effectively performs a full system reset Therefore it is advised that the save command be issued in isolation i...

Page 24: ...rt Internal Defaults In response to the command GS I 09H the printer transmits 3 bytes The first byte contains the current values of the flags set using the ESC X 09H n command The following 2 bytes a...

Page 25: ...able Bit Graphics ESC Entering and exiting Spooling Mode ESC L FF Extra inter character and inter line spacing ESC n ESC 2 ESC 3 n Set HTAB positions ESC D Request Printer STATUS BYTE ESC u n ESC v GS...

Page 26: ...ESC c5 Coded In Self Test Swap 23H 9CH chars ESC X 23 n GS I 23 Use 9BH 9DH ESC X 23 n GS I 23 Use 80H ESC X 23 n GS I 23 Use Code Page 1252 ESC X 23 n GS I 23 Also Coded In Self Test Enable Black Ma...

Reviews: