Home

Citizen CMP-10 Printer User Manual

image

Contents

1. Function Enabling Disabling ASB Automatic Status Back Code lt 1D gt H lt 61 gt H lt n gt Range 10 lt lt FF Hex Outline This command selects the status item to be addressed ASB Automatic Status Back Status Item Addressed by ABS 0 Not defined 1 Defining LF button function 2 Thermal head temperature status 3 Paper end sensor and paper cover open status 4 Not defined 5 Not defined 6 Not defined 7 Not defined When this command is executed the printer will return 4 bytes with status information with the follwoing meaning BYTE 1 BIT7 BIT6 BIT5 BIT4 BIT3 BIT2 BIT1 BITO in use 0 L Not in use 0 Not in use 0 Not in use 0 Not in use 1 L Not in use 0 L The paper is fed manually by LF switch Not in use 0 BYTE 2 BIT7 BIT6 BIT5 BIT4 BIT3 BIT2 BIT1 BITO 9697 56 0 L Not in use 0 L Not in use 0 Not in use 1 L Not in use 0 L Not in use 0 L Thermal head is overheated 1 Not in use 0 BYTE 3 BIT7 BIT6 BIT5 BIT4 BIT3 BIT2 BIT1 BITO s in use 0 Not in use 1 L No paper or cover open 1 No paper or cover open 1 L Not in use 0 L___ Not in use 0 L Not in use 0 in use
2. 60 GS w nL Function Code Range Outline Default Sample Program Print Results Selecting the horizontal size Scale factor of the Bar Code lt 1D gt H lt 77 gt H lt n gt 2 lt n lt 4 Hex Selecting bar code width n denotes the number of dots in fine element width The initial value of this width is 3 PRINT 1 CHR amp H1D CHR 30 PRINT 1 CHR amp H1D w CHR 2 GOSUB BC PRINT 1 CHR amp H1D CHR 50 PRINT 1 CHR amp H1D w CHR 3 GOSUB BC PRINT 1 CHR amp H1D CHR 80 PRINT 1 CHR amp H1D w CHR 4 GOSUB BC END BC PRINT 1 CHR amp HID PRINT 1 CHR 4 PRINT 1 12 CHR 0 RETURN lt Height 30 Magnification 2 Height 50 Magnification 3 Height 80 Magnification 4 6 1 BLACK MARK FUNCTION ESC Function Code Range Outline Caution Default See also FF Function Code Outline Caution See also Specify canceling black mark function lt 1B gt H lt 6C gt H lt n gt n Oor1 Specifying canceling the black mark function 0 Canceling black mark function 1 Specifying black mark function Black mark function uses PE sensor of CMP 10 for black mark sensor Therefore t
3. 452 GSHn Function Code Range Outline Caution Default See Also Sample Program Print Results Selecting of Printing Position of HRI Code lt 1D gt H lt 48 gt H lt n gt 0 lt n lt 3 Hex Selecting printing position of HRI code in printing bar codes n means the followings No printing Above the bar code Below the bar code Both above and below the bar code The HRI code refers to the bar code turned characters so that you can read them The HRI code is printed in the font selected with GS f Specify before the GS k command The initial value of n is 0 GSf PRINT 1 CHR amp H1B 3 CHR 5 PRINT 1 CHR amp H1D CHR 50 PRINT 1 CHR amp H1D CHR 0 GOSUB BC PRINT 1 CHR amp H1D CHR 1 GOSUB BC PRINT 1 CHR amp H1D CHR 2 GOSUB BC PRINT 1 CHR amp H1D CHR 3 GOSUB BC END BC PRINT 1 CHR amp HID PRINT 1 CHR 4 PRINT 1 12 CHR 0 PRINT 1 CHR amp HA RETURN No visible code 11 8 Printed above Printed below Printed above and below 46 GS L nL nH Function Code Range Outline Caution Default Setting the left margin lt 1D gt H lt 4C gt H lt nL gt lt nH gt 0 lt nL lt FF Hex
4. lt MOTOROLA gt lt 5 8 gt 66 5 3 Explanation of Input Output Signals 1 RXD This is signal receiving data from the host On occurrence of framing error overrun error or parity error the data is printed as 7 2 TXD This signal is for data flow control by X ON X OFF If data remains in the printer s input buffer is 2048 bytes or less the printer transfers a DC3 13H Data Receive Not Ready signal to the host If data in the input buffer exceeds 4096 bytes the printer transfers a DC1 11H Data Receive Ready signal to the host 3 Vcc This is a power supply 5 The signal is not use in the standard serial cable 4 GND This is a GND on the circuit 5 Auto turn on The printer can be turned on by using RTS signal from the host CAUTION Ensure that the RTS signal is deactivated when your application software not using the printer as auto turn off function is disabled when RTS is active 14 15 pin Communicate mode setting Using dedicated cable makes these pin short circuited If these pins are short circuited printer sets the communicate mode to serial communication If these pins are not short circuited printer set the communication mode to infrared 5 4 Error Detection Framing and overrun are detected On detection of any error the data are stored in the buffer as 1 Framing Error With space state having been detected on detection of a stop bit error takes place The d
5. 0 lt nH lt FF Hex This command sets the left margin specified by nL and nH The value of the left margin is nL nH x 256 x 1 203 inches This command only works when it is entered at the beginning of a line The maximum settable left margin is equal to the horizontal printable area A setting greater than this maximum is trimmed to the maximum When mapping character data if the print area specified is not wide enough to accommodate one character of the current font only the line for that character data is handled as follows 1 The print area is extended toward the right to be equivalent to one character of the current font but not wider than the printable area 2 If an area for one character cannot be provided as a result of step 1 the print area is extended toward the left So the left margin is decreased When mapping non character data Bit image downloaded bit image or bar code if the print area specified is narrower than 9 bits only the line for that data is handled as follows 1 The print area is extended toward the left So the left margin is decreased until it is 9 dot wide but not wider than the printable area nL 0 0 Il47 GS Wn Function Setting the print area width Code lt 1D gt H lt 57 gt H lt nL gt lt nH gt Range 0 lt nL lt FF Hex 0 lt nH lt FF Hex Outline Sets the print area width specified by nL and nH The print area width wil
6. BIT6 BIT5 BIT4 BIT3 2 1 BITO in use Not in use Not in use L Not in use L Not in use 1 Not in use L Not in use Reserved always 1 ESC 1 2 Function Code Range Outline Caution See Also Sample Program ESC _ Function Code Outline See Also Specifying the relative positions lt 1B gt H lt 5C gt H lt n1 gt lt n2 gt 0 lt n1 lt 255 0 lt n2 lt 255 The printing start position is specified in the number of dots 1 203 inch unit from the current position Rightward direction is taken as plus and leftward direction as minus To specify N dot in minus left direction use a complement of N for assignment N dots 65536 The number of dots is divided by 256 whose quotient is taken as n2 and the residual as 1 Specifying exceeding the top of line or the end of line is ignored ESC See Sample Program and Print Results for ESC Setting the printer in default state lt 1B gt H lt 5F gt H Sets the printer in default state The default state is as follows printing attributes like underline rotating etc are cleared Internal font A 12 x 24 is selected Pitch between lines is 1 6 inch Pitch between characters is 0 Barcode height is 162 dots and barcode width is 3 All downloaded fonts and bit images are cleared Print density is 10096 Communi
7. PRINT 1 CHR amp H05 NEXTI PRINT 1 CHRS amp HFF PRINT 1 CHRS amp HFF PRINT 1 CHRS amp HFF RETURN This command has one more version Function Code Range Outline Specifying the Bit Image Mode PCX format lt 1B gt H lt 2A gt H lt m gt lt n gt lt a gt lt 00 gt H d k mz 10 11 or 12 Hex 0 2 n 2 30 Hex 0 2 a lt 18 Hex 0 lt d lt FF Hex 0 lt k lt n x 18 Hex Designates a bit image of n 8 dots horizontal by 24 or a dots vertical Dot density is fixed at 203 dpi both horizontally and vertically Bit image mode selected by the value of m is shown in the following table Non compressed data of 24 dots vertical Argument a and 00 Hex are not used Compressed data of 24 dots vertical Argument a and 00 Hex are not used Compressed data of a dots vertical n denotes the number of bytes for horizontal size of a bit image d denotes a graphic data In 10 Hex mode data is in n x 24 bytes For data in 11 Hex mode the size in non compressed format shall be n x 24 bytes For data in 12 Hex mode the size in non compressed format shall be n x a bytes Compression system in 11 Hex and 12 Hex is the same as that for PCX file format monochrome The printer receives the compressed data reproduces it in the following format and prints as bit image data Alf either of upper two bit of input byte is 0 the byte is treated as
8. 0 BYTE 4 BIT7 BIT6 BIT5 BIT3 BIT2 BIT1 BITO in use 0 Not in use 0 1L Not in use 0 L Not in use 0 L Not in use 1 1 Not in use 0 Not in use 0 Not in use 0 Caution f any status item is enabled the status is sent to the host when this command is executed After that time on the status is sent each time an enabled status item changes Because each status item represents the current condition status items disabled for ASB may also have changed The ASB function is disabled if all status items are disabled The printer sends 4 bytes of status shown in the tables below without checking whether the host is ready to receive or busy The 4 bytes of status is a continuous string except for XOFF code Because this command is executed when data is mapped in the receive buffer there may be a delay between command receiving and status sending depending on the condition of the receive buffer Even if the printer is excluded from the selection of peripheral equipment ESC the 4 bytes of status is sent to the host whenever status changes GS fn Function Code Range Outline Caution Default See Also Sample Program Print Results Selecting the font of HRI characters lt 1D gt H lt 66 gt H lt n gt n 0 1 Selecting the font of HRI characters in pri
9. AAABBB CHR amp HA AAABBB Highlighting canceled AAABBB Highlighting canceled 2 55 ESC Function Code Range Outline Caution Default See Also Sample Program Print Results Specifying canceling Double Printing lt 1B gt H lt 47 gt H lt n gt 10 lt n lt FF Hex Specifying canceling the double printing n is valid only for the lowest bit nO Control by n is shown as follows nea 0 Canceling double printing 1 Specifying double printing This is effective to font A 12 x 24 dots The print result of Double printing and highlight character printing is completely same PRINT 1 CHR amp H1B CHR 0 PRINT 1 AAABBB CHR amp HA PRINT 1 CHR amp H1B CHR 1 PRINT 1 AAABBB CHR amp HA AAABBB Highlighting canceled AAABBB Highlighting canceled ESC Jn Function Printing and feeding paper n 203 inch Code lt 1B gt H lt 4A gt H lt n gt Range 0 lt n lt FF Hex Outline Prints data in the print buffer and feeds paper by n 203 inch This function is temporary and does not affect the feed operation thereafter The beginning of the line is to be considered as the next printing start position Default Initial value is not defined Sample Program See Sample Program and Print Results for ESC 2 on Page 18 ESC R
10. Initialize command Download character Font A 12 x 24 Font B 9 x 16 Last 4 bits are not used and fixed as zero 9th dot is fixed as space d1 d2 d1 d3 d4 d2 d5 d6 d3 d7 d8 d4 d9 d10 d5 24 d14 d15 d16 87654321 d43 d44 d45 d46 d47 d48 i 1 1 mss 87 6 54 32 1 4355 ESC m n1 2 Function Code Range Outline Caution Specifying the Bit Image Mode lt 1B gt H lt 2A gt H lt m gt lt n1 gt lt n2 gt d k 0 1 20 21 Hex 0 lt n1 lt FF Hex 0 lt n2 lt 1 Hex 0 lt d lt FF Hex k n1 FF Hex x 2 m 0 1 Hex Number of bytes containing image data k n1 FF Hex x 2 x 3 m 20 21 Hex Number of bytes containing image data According to the number of dots specified in n1 n2 specify the bit image of mode m The No of dots printed is divided by 256 whose quotient is taken as n2 and residual as 1 Bit image data is sent starting from the top to bootom from the left to right vertical columns scanning In modes m 0 and 1 only one byteper column is sent and in mode m 20h 21h 3 bytes for each column are sent d is bit image data the bits subject to printing are taken as 1 and those not as 0 The bit image modes specified by
11. This bar code consisting of numerals only has a fixed length of 12 columns a 11 column number entered from the host or application software plus a check digit 12th column automatically calculated inside the printer If the 12th column numeral is sent from the host the entire bar code will be printed as it is This bar code consisting of numerals only has a fixed length of 8 columns the first number system character is 0 stationary A 12 column numeral entered from the host or application software is compressed to 8 columns with a check digit attached and then is printed The 12thcolumn check digit is automatically calculated inside the printer If it is and sent from the host the entire bar code will be printed compressed to 8 columns This bar code consisting of numerals only has a fixed length of 13 columns a 12 column number entered from the host or application software plus a check digit 13th column automatically calculated inside the printer If the 13th column numeral is sent from the host the entire bar code will be printed as it is JAN 8 EAN CODE39 ITF CODABAR NW 7 CODE93 CODE128 This bar code consisting of numerals only has a fixed length of 8 columns a 7 column number entered from the host or application software plus a check digit 8th column automatically calculated inside the printer If the 8th column numeral is sent from the host the entire bar code will be printed as it is This ba
12. a CHR 0 PRINT 1 AAAAA CHR amp HA PRINT 1 CHR amp a CHR 1 PRINT 1 AAAAA CHR amp HA PRINT 1 CHR amp a CHR 2 PRINT 1 AAAAA CHR amp HA Print Results AAAAA DOMUS Paper Feed AAAAA Direction Left justified Centered Righ justified 436 ESC c5 n Function Code Range Outline Caution Default Sample Program Enabling Disabling Panel Switches lt 1B gt H lt 63 gt H lt 35 gt H lt n gt 10 lt n lt FF Hex Selecting the LF switch valid invalid Hr n is valid only in the lowest bit nO niHexi Condtion 0 LFSW valid 1 LFSW invalid When the panel switch is disabled with this command the LF switch is disabled Therefore the paper cannot be fed by operating the LF switch When LF switch is set to Invalid it cannot be cleared by the Initialize command ESC Q9 but is cleared by turning power off The initial value of n is 0 PRINT 1 CHR amp 5 CHR 0 When enabling the LF switch PRINT 1 CHR amp c5 CHR 1 When disabling the LF switch ESC dn Function Code Range Outline Default Sample Program Print Results Printing and Feeding the paper by n lines lt 1 gt lt 64 gt lt gt 0 lt n lt FF Hex Prints data inside the
13. are shown as follows Vertical Direction Horizontal Direction Dot Density Dot Density 8 dot single density 67 DPI 101 DPI 8 dot double density 67 DPI 203 DPI 24 dot single density 203 DPI 101 DPI 24 dot double density 203 DPI 203 DPI When the values set in m bit image mode are out of the above range the data following after 1 is processed as normal printing data After completion of bit image printing printer returns to normal data processing mode Line space is automatically set to 0 i Sample Program Print Results PRINT 1 CHR amp HIB PRINT 1 CHR 0 CHR 20 CHR 0 GOSUB PRINT 1 CHR amp HA PRINT 1 CHR amp HIB PRINT 1 CHR 1 CHR 20 CHR 0 GOSUB IMGI PRINT 1 CHR amp HA PRINT 1 CHR amp HIB PRINT 1 CHR 32 CHR 20 CHR 0 GOSUB IMG2 PRINT 1 CHR amp HA PRINT 1 CHR amp HIB PRINT 1 CHR 33 CHR 20 CHR 0 GOSUB IMG2 PRINT 1 CHR amp HA END 8 dot single density 8 dot double density 24 dot single density 1711 24 dot double density 15 IMG2 IMGI PRINT 1 CHRS amp HFF FOR I 1 TO 18 PRINT 1 CHR amp H85 NEXTI PRINT 1 CHRS amp HFF RETURN PRINT 1 CHRS amp HFF PRINT 1 CHRS amp HFF PRINT 1 CHRS amp HFF FOR I 1 TO 18 PRINT 1 CHR amp H80 PRINT 1 CHR amp H00
14. initial value by ESC _ a command for returning to initial state 212 ESC amp m 1 2 d k Function Code Range Outline Caution Define user characters lt 1B gt H lt 26 gt H lt m gt lt n1 gt lt n2 gt lt d gt k m 0 1 2 3 Hex 20 lt n1 lt FF Hex n1 lt n2 lt FF Hex k n2 n1 1 48 m 2 k n2 n1 1 16 m 3 Defines a group of user characters m 0 Copy internal character set A to user character set Parameters n1 n2 and d are omitted m 1 Copy internal character set B to user character set B Parameters n1 n2 and d are omitted m 2 For Font 12 x 24 n1 denotes Start character code and n2 End character code Every character is 48 bytes two bytes for each line Only the first nibble of the second byte is used m 3 Define character group with ASCII codes between gt n1 and lt n2 for character set B 9 x 16 Every character is 16 bytes The data for character set A is composed from left to right and from top to bottom with two bytes for each horizontal line The first byte contains the first 8 bits with the left most bit is MSB From the second byte only the first nibble the most significant 4 bits is valid The data for character set B is composed from left to right and from top to bottom with only one byte for each horizontal line The nineth bith is alawys 0 Downloaded characters are valid even after switching off the printer or after issuing
15. it acts like LF command set flag 2 to 1 by GS command GS Sounds the Buzzer lt 1B gt H lt 1E gt H By executing this command the buzzer will beep This command functions in the same manner as BEL ESC SP n Function Codel Range Outline Caution Default Sample Program Print Results Setting the right space amount of the character lt 1B gt H lt 20 gt H lt n gt 10 lt n lt 20 Hex The rightward space amount is set in dot unit 1 203 inch unit The rightward space amount in doublewide mode is made double of the set volume 0 PRINT 1 CHR amp H1B CHR 0 PRINT 1 AAAAA CHR PRINT 1 CHR amp CHR 1 PRINT 1 AAAAA CHR PRINT 1 CHR amp CHR 12 PRINT 1 AAAAA CHR amp HA AAAAA 0 dot space AAAAA 1 space A A A lt 12 dot space ESC Function Code Range Outline Caution Default See Also Collective Specifying Printing Mode lt 1 gt lt 21 gt lt gt 10 lt lt Printing mode is assigned Function Character Font Undefined Undefined High lighting Canceled Specified Double height Canceled Specified Double width Canceled Specified Undefined Underline Canceled Specified 0 1 2 3 4 5 6 7 Each n bit indicates the following W
16. then measure the capacity 100m ohm or less 1400 mAh or more Repeat the routine Standard charge discharge 2000 mA till cut off 299 times and leave one day then measure in same condition as initial capacity 10 C 50 0 C 80 23 C 100 45 C 100 After standard charge and discharge 1000 mA till cut off 1600 mAh or more After standard charge keep it at 23 C in 30 days then discharge 1000 mA at 23 C till cut off 8 2 Power Management 1 Printable lines 2 Auto power off time 3 Low battery detection voltage 4 Battery release voltage 40 000 lines or more Room temperature full charge ASCII slide pattern printing 5 minutes can be changed between 1 and 60 minutes 6 7V 5 5V 3 3 Power Consumption Average Peak Stand by 1 45A ASCII slide pattern printing 2A 80 mA 9 AC ADAPTOR 1 Input voltage 2 Input current 3 Rated output 4 Efficiency b Ripple and noise voltage 6 Insulation test 7 Leakage current 8 Temperature rise 9 Over voltage protection 10 Overload protection current 11 No load power consumption 12 Safety standard 13 Size 14 Case material 15 Cable 16 Plug 17 Polarity 18 Weight 100V 240V AC 50 60 Hz 250 mA 9V 5 6596 or more AC 100V 50 Hz full load 7096 or more AC 240V 50 Hz full load Less than 150 mVp p 9 VDC More than 100M ohm DC 500V 1 minute between primary and secondary c
17. 2 lt 1 Hex The printing start position is specified in the number of dots 1 203 inch unit from the beginning of line The number of dots is divided by 256 whose quotient is taken as 2 and the residual as 1 Therefore the printing start position is equal to 1 2 x 256 from the beginning line Specifying beyond the line end is ignored The initial value is not specified ESC PRINT 1 CHR amp H1B PRINT 41 CHR 0 CHR 0 A PRINT 1 CHR amp H1B PRINT 41 CHR 50 CHR 0 B PRINT 1 CHR amp PRINT 1 CHR 0 CHR 1 PRINT 1 CHR amp HA PRINT 1 CHR amp H1B PRINT 1 CHR 100 CHR 0 A PRINT 1 CHR amp H1B PRINT 1 CHR amp HC2 CHR amp HFF B PRINT 1 CHR amp HA 0 50 100 256 ESC Function Code Range Outline Caution Default See Also Specifying Canceling Download Character Set lt 1B gt H lt 25 gt H lt n gt 10 lt n lt FF Hex Specifying canceling download characters Further only the lowest bit is valid for n 0 Selecting download character set 1 Canceling download character set This setting cannot be restored to initial value even with Initialize command or by turning power OFF It can be restored to the
18. 90 right turned Characters Code lt 1 gt lt 56 gt lt gt Range 0 lt n lt 1 Hex Outline Specifying canceling characters 90 right turned character n means the followings niHexi Condition 0 Canceling 90 right turned Characters 1 Specifying 90 right turned Characters Caution No underlines are attached to 90 right turned characters Default The initial value of n is 0 Sample Program PRINT 1 CHR amp HIB CHR 0 PRINT 1 AAAAA PRINT 1 CHR amp HIB CHR 1 PRINT 1 AAAAA CHR amp HA Print Results 90 Rotation Canceled sm gt gt gt gt gt gt 90 Rotation Specified ESC Y n Function Specifying print density Code lt 1B gt H lt 59 gt H lt n gt Range 0 lt n lt 5 Hex Outline Specifies the print density n means the followings n Hex Condition 70 density 80 density 90 density 100 density 120 density 150 density Caution Higher density may lead to slower printing Increasing the density allows Low battery to be detected easily Default n 3 100 Sample Program PRINT 1 CHR amp H1B CHR 0 PRINT 1 AAAAA PRINT 1 CHR amp CHR 5 PRINT 1 AAAAA CHR amp ESC Z Function Returning diagnostic information Code lt 1B gt H lt 5A
19. AAA PRINT 1 CHR 6 18 CHR 1 PRINT 1 AAAAA CHR amp HA Underline Canceled gt AAAAAAAAAA gt Underline Specified a ESC Function Code Range Outline See Also ESC 2 Function Code Outline Sample Program Print Results Printer self test lt 1B gt H lt 2E gt H None Prints test page downloaded bit image and self diagnostic information The self diagnostic information includes print density print head temperature battery voltage Serial or IrDA interface baud rate and memory switch setting ESC Specifying 1 6 inch line feed rate lt 1B gt H lt 32 gt H The line feed rate per line is specified by 1 6 inch PRINT 1 AAAAA CHR amp HA PRINT 1 CHR amp H1B 3 CHR 0 PRINT 1 AAAAA CHR amp HA PRINT 1 CHR amp 3 CHR 50 PRINT 1 AAAAA CHR amp HA PRINT 1 CHR amp 2 PRINT 1 AAAAA CHR amp HA PRINT 1 AAAAA PRINT 1 CHR amp H1B J CHR 100 PRINT 1 AAAAA CHR amp HA PRINT 1 AAAAA CHR amp HA AAAAA 1 6 inch line feed AAAAA 0 203 inch line feed AAAAA 50 203 inch line feed We AAAAA 1 6 inch line feed j AAAAA 100 203 inch line feed AAAAA 1 inch line feed AAAAA 18 ESC 3 Function Codel Range
20. CITIZEN Command Reference MOBILE LINE THERMAL PRINTER MODEL 10 Rev 2 00 Revised on June 30 2003 Japan CBM Corporation REVISION 2002 11 15 Comment Newly issued 2002 12 18 Revised P 1 P 2 P 47 P 54 P 56 P 59 2003 01 17 Added Chapter 3 Character Codes Table and Chapter 4 2003 06 30 Added ESC gt ESC 1 FF Firmware Ver 1 95 Revised GS Added Chapter 5 to Chapter 10 1 CMP 10 COMMAND SET Command Function Sounds the Buzzer Horizontal Tab Command Printing and Paper Feed Command Print one line Command Sounds the Buzzer Setting the right space amount of the character Collective Specifying Printing Mode Specifying the Absolute Positions Specifying Canceling Download Character Set Define user characters Specifying the Bit Image Mode Switch OFF the printer Specifying Canceling Underline Printer self test Specifying 1 6 inch line feed rate Setting line feed rate of minimum pitch Data Input Control Saving current setting Reading magnetic stripe reader Initializing the Printer Setting Horizontal Tab Position Specifying canceling highlighting Specifying canceling Double Printing Printing and feeding paper n 203 inch Selecting Code table Setting serial interface communication speed Printing Diagnostic information Specifying Canceling 90 right turned Characters Specifying print
21. If the printer received a character that is not available in the currently selected code set it immediately aborts the command processing and handles the subsequent data as normal data An HRI character corresponding to either a Shift character or a code select character is not printed An HRI character for either a function character or a control character is treated as a space character PRINT 1 CHRS amp HID CHR 2 PRINT 1 CHR amp HID PRINT 1 CHR 4 PRINT 1 123 CHR 0 END 1 2 3 When the data 123 is printed with the code 39 Descriptionof Bar Codes UPC A UPC E JAN 13 EAN JAN 8 EAN CODE39 ITF CODABAR CODE 128 Print Sample Outline of Symbol Max Column 12 column fixed length bar code consisting of numerals only 8 column fixed length bar code consisting of numerals only Abbreviated version of UPC A 13 column fixed length bar code consisting of numerals only 8 column fixed length bar code consisting of numerals only Variable length bar code consisting alphabets numerals The start stop code is automatically added LUI M E TEE MIINE Printing is done depending on bar code specification type number of print column bar code height width Magnification visible code presence and bar code data specification
22. Outline Default Sample Program Setting line feed rate of minimum pitch lt 1B gt H lt 33 gt H lt n gt 10 lt n lt FF Hex The line feed rate per line is specified by n 203 inch n 22 Hex 1 6 inch See Sample Program and Print Results for ESC 2 19 ESC n Function Code Range Outline Caution Default Sample Program Print Results Data Input Control lt 1B gt H lt 3D gt H lt n gt 0 lt n lt FF Hex Selecting equipment in which data input from the host is effective Each bit of n indicates as follows Equipment Printer Invalid Not defined Not defined Not defined Not defined Not defined Not defined Not defined 0 1 2 3 4 5 6 7 When the printer has not been selected this printer abandons all the received data until it is selected by this command Even when the printer has not been selected it can become BUSY state through printer operation When the printer is deselected this printer discards all the data until it is selected with this command The initial value of 15 1 PRINT 1 AAAAA PRINT 1 CHR amp H1B CHR 0 PRINT 1 aaaaa CHR amp HA PRINT 1 CHR CHR 1 PRINT 1 AAAAA CHR amp HA AAAAAAAAAA 20 ESC gt Function Code Rangel Outline Caution Defau
23. PI double high mode Caution When data exist inside the print buffer this command is ignored When a download bit image has not been defined this command is ignored A portion of a download bit image exceeding one line length is not printed See Also GS Sample Program Refer to the programming example and print result of GS 44 GS Function Code Outline Caution Default See Also Sample Program Print Results Starting Ending Macro Definition lt 1D gt H lt 3A gt H Specifying starting ending macro definition Means termination when received while defining a macro Maximum content available for macro definition is 3328 bytes A portion exceeding 3328 bytes is not defined Even with ESC initialization of the printer having been executed defined content is not cleared Therefore it is possible to include ESC into the content of macro definition Normal printing operation is carried out even while in macro definition Initially Macro is not specified GS PRINT 1 CHR amp HID 44 PRINT 1 CHR amp HA PRINT 1 CHR amp HA PRINT 1 CHR amp HA PRINT 1 CHR amp H1D PRINT 1 CHR amp H1D PRINT 1 CHR 2 CHR 10 PRINT 1 CHR 0 Normal Printing during Macro Definition Printing during Macro Execution
24. T 1 CHR amp H9 AAA PRINT 1 CHR amp H9 BBB PRINT 1 CHR amp HA PRINT 1 CHR amp H1B PRINT 1 CHR 3 CHR 7 CHR 14 CHR 0 PRINT 41 CHR amp H9 AAA PRINT 1 CHR amp H9 BBB PRINT 1 CHR amp H9 CHR amp HA 123456789012345678901 AAA BBB Initially set horizontal tab AAA BBB CCC When set to the 4th 8th and 15th digits LF Function Printing and Paper Feed Command Code 0A H Outline Prints data inside the input buffer and feeds lines based on the line feed amount having been set The head of the line becomes the next print starting position See Also ESC 2 ESC 3 Sample Program PRINT 1 AAA CHR amp HA PRINT 1 BBB CHR amp HA PRINT 1 CHR amp HA PRINT 1 CCC CHR amp HA Print Results AAA lt Print and line feed 888 Print and line feed Line feed only CCC Print and line feed CR Function Code 1 Outline Default See Also ESC RS Function Code Outline Print one line Command lt 0D gt H This command is ignored or its action is the same as LF depending on the last execution of GS 2 command FLAG SETTING COMMAND If Flag 2 is 0 carriage return CR command is ignored If Flag 2 is 1 CR comamnd will act as LF command CR command is ignored If you want that
25. acro Return ASB mode according to the memory switch setting Clears valid invalid setting for panel switch PRINT 1 CHR amp H1B CHR amp H30 PRINT 1 CHR amp HIB V CHR 1 PRINT 1 AAA CHR amp HA PRINT 1 CHR amp H1B PRINT 1 AAA CHR amp HA gt gt gt AAA Ig ESC D k NUL Function Code Range Outline Caution Default See Also Sample Program Print Results Setting Horizontal Tab Position lt 1B gt H lt 44 gt H n k lt 00 gt H 0 lt n lt FF Hex 0 lt k lt 20 Hex Specifying a horizontal tab position n indicates the columns from the beginning to the horizontal tab position At this time n set position 1 is to be specified For example to set the position at 9th column n 8 is to be specified k denotes the number of horizontal tab positions you want to set The tab position is set at position where it is character width x n from the line beginning The character width atthis time includes the rightward space amount In double wide characters it is made double of the ordinary case Tab positions can be specified are maximum 32 Specifying exceeding this is ignored n k which denotes a setting position is input in the increasing order and ends at 00 ESC D NUL clears all the set tab positions Following clearing horizonta
26. ata are stored in the buffer as S Overrun Error On detection of an overrun error the data are stored in the buffer as 5 5 Buffering This printer incorporates 64K byte buffer This allows most print jobs to by fully buffered so that the host can continue quickly 67 5 6 Electrical Characteristics RS 232C Circuit Input RXD lt Printer side gt lt Host side gt Equivalent MAX232 Output TXD lt Printer side gt lt Host side gt Equivalent MAX232 6 INFRARED COMMUNICATION SPECIFICATIONS 6 1 Basic Specification 1 Interface Infrared transceiver mode 2 Data transfer system Half duplex Asynchronous 3 Baud rate 9600 19200 38400 57600 115200 bps Max baud rate can be set at 57600 bps by command 4 Data configuration Data length 8 bit Stop bit 1 bit Parity None 5 Logic level Low Level 0 High Level 1 6 Transport wave Wave length 850 900 nm 8 Distance Less than 80 cm 9 Receiving angle Left 15 Right 15 Top 15 Bottom 15 6 2 Supported Protocol 1 IrDA version 1 0 2 Flow control IrDA standard 3 Supported Protocol IrComm 3 wire raw IrLPT IrLMP IrLAP 4 Protocol Layer IrComm 3 Wire raw IrLPT Ir Link Management MUX Ir Link Access Protocol IrLAP Async Serial IR 9600 115 2 kb s 5 Applicable protocol Class IrDA IrCOMM or IrDA IrLPT Attribute IrDA IrLMP LsapSel via IrLMP 7 MECHANICAL SPECIFICATION 7 1 Printer Mechan
27. bar code system and prints the bar code For 1 Bar code system Range of k Range of d UPC A 48 lt lt 57 UPC E 48 lt lt 57 JAN13 EAN 48 lt lt 57 JANE EAN 48 lt d lt 57 CODE39 48 lt d lt 57 65 lt d lt 90 32 36 37 43 45 46 47 ITF 1 lt k Must be an even number 48 lt lt 57 2 CODABAR 7 Bar code system UPC A 1 lt Range of n 48 lt d lt 57 65 lt d lt 68 36 43 45 46 47 58 Range of d 48 lt d lt 57 UPC E 48 lt lt 57 EAN13 JAN 48 lt lt 57 8 JAN 48 lt lt 57 CODE39 48 lt d lt 57 65 lt d lt 90 32 36 37 43 45 46 47 ITF 1 lt n Must be an even number 48 lt d lt 57 CODABAR 1 lt 48 lt d lt 57 65 lt d lt 68 36 43 45 46 47 58 CODE93 0 lt d lt 127 CODE128 0 lt d lt 127 Caution For 1 This command ends with a NUL code For UPC A or UPC E the bar code is printed when 12 bytes of bar code data have been entered and the subsequent data is handled as normal data For JAN13 the bar code is printed when 13 bytes of bar code data have been entered and the subsequent data is handled as normal data For JAN8 the bar code is printed when 8 bytes
28. buffer and feeds paper by n lines Specified line does not remain The beginning of the line is to be considered as the next printing start position The initial value is not defined PRINT 1 AAAAA PRINT 1 CHR amp H1B d CHR 2 PRINT 1 AAAAA CHR amp HA AAAA A line feed AAAAA 38 ESC v Function Transmitting the printer status Code lt 1B gt H lt 76 gt H Outline Current printer status is transmitted Status sent out consists of 1 byte whose content is as in the table below Function Not defined Not defined Paper or paper cover With paper and No paper or cover closed cover open Not defined Not used Fixed to 0 Not defined Not defined Not defined Caution In paper end status this command may be unreceptible state due to BUSY state Sample Program OPEN COMI N8INN AS 1 PRINT 1 CHR amp HIB v A INPUTS 1 1 CLOSE 1 END 2 39 ESC xn Function Code Range Outline Default Sample Program Selecting the time interval for automatically switching Off the printer lt 1B gt H lt 78 gt H lt n gt 1 lt lt 3C Hex Sets the time interval after which the printer will switched Off automatically if there is no incoming data through the Serial interface there is no IrDA communication and LF button is not pressed The maximum value for the inter
29. cation speed is set to 9600 bps Auto power off time is set at 5 min Memory switch is set to all 0 ESC 34 ESC Function Code Outline Sample Program Print Results Returning the battery voltage and Printer Head temperature lt 1B gt H lt 60 gt H When this command is send to CMP 10 the printer will return the current value of battery voltage and the current temperature of the printer thermal head e Battery voltage is returned in the format battery voltage x 10 20H and head temperature is returned in the format head temperature 20H PRINT 1 CHR amp H1B Suppose the battery voltage is 7 8 volts and head temperature is 40 C Then CMP 10 will return lt 6C gt H lt 48 gt H to the host This values are calculated as follows Volatge 7 8 x 10 78 32 110 which is 6CH Temperaure 40 32 72 which is 48H 32 is equal to 20H 295 ESC an Function Aligning the characters Code lt 1B gt H lt 61 gt H lt n gt Range 0 lt n lt 2 Hex Outline All the printed data within one line are aligned in the specified position Depending on n value positional alignment is carried out as in the table below n Hex Position Left end alignment Centering Right end alignment Caution This is valid only when n is inputted at the beginning of line The initial value of n is 0 Sample Program PRINT 1 CHR amp HIB
30. cted By sending command ESC which saves setting condition to NV memory black mark mode can be kept enabled even if battery connector is disconnected 4 Remarks for programming As it is possible to print on black mark if user does not want to print on the black mark it have to be taken care by user side program 5 Remarks on handling If the paper cover is open in black mark mode there is a possibility to recognize it as detecting black mark 6 Designing black mark paper Black mark should be on recording side of the thermal paper Darkness of black mask should be 0 9 or more PCS value The black mark size and position should be as follows Printing direction A 4 6mm 15 or more C 20 360 mm The distance from PE sensor and print head is approx 7 5 mm 63 3 CHARACTER CODES TABLE WPC1252 EEE EEE SE a s aes Ea E E Es CERO E Ea e 64 4 PROGRAMMING CONSIDERATIONS 4 1 Notes at Lowered Battery Voltage When battery is low highly loaded printing such as printing of graphics with much black area may cause power off during printing When executing high loaded printing charging the battery before lowing of battery voltage is recommended while keeping checking the information on the battery by the use of r
31. density Returning diagnostic information Specifying the relative positions Setting the printer in default state Returning the battery voltage and Printer Head temperature Aligning the characters Enabling Disabling Panel Switches Printing and Feeding the paper by n lines Transmitting the printer status Selecting the time interval for automatically switching Off the printer Specifying Canceling the Inverted Characters Setting of printer flags Defining the Download Bit Image LOGO Printing the Download Bit Image Starting Ending Macro Definition Command Function Selecting of Printing Position of HRI Code Setting the left margin Setting the print area width Executing the Macro Enabling Disabling ASB Automatic Status Back Selecting the font of HRI characters Selecting the height of the Bar Code Printing the bar code Selecting the horizontal size Scale factor of the Bar Code Specify canceling black mark function Printing and paper feeding to the black mark position indicates a unique command or non compatible command 2 COMMAND DETAILS 2 1 Description Items XXXX Function Code Range Outline Caution Default See Also Sample Program ALL Command Function A sequence of code constituting a command is represented in hexadecimal number for
32. elevant command 4 2 Notes on Printing After Paper Cutting When the paper is cut by manual cutter paper is likely to be caught by the cutter Therefore in printing the first line just after cutting the printing may be compressed in vertical direction When starting printing feed one line without printing to prevent compressed printing 5 SERIAL INTERFACE 5 1 Specifications Data transfer system Asynchronous half duplex Baud rates 1200 2400 4800 9600 19200 57600 115200 bps Selectable by command Serial data configuration Start bit 1 bit Data bit 8 bits Fixed Parity bit No parity Stop bit 1 bit Signal polarity RS 232C Mark logic 1 3V 12V Space logic 0 3V 12V Receiving data RD signal RS 232C Mark logic 1 3V 12V Space logic 0 3V 12V 6 Transmission control TD signal DC1 code 11H X ON Data is available DC3 code 13H X OFF Data reception is not available 5 2 Connector Pin Configuration Direction Function Pin No of Cable Transferred data No 2 pin of D Sub 9 pins No connection Received data No 3 pin of D Sub 9 pin Auto Turn On No 7 pin of D Sub 9 pin Communication mode setting No 5 pin of D Sub 9 pin InfraRed or Serial No 5 pin of D Sub 9 pin Connector Printer side Connector used on StarTac Motorola PC side 9 pin D SUB Cable 1800150 B5 10 P15 1
33. graphic data If both of upper two bit of graphic data to be printed are 0 it is necessary to send the data to printer in B format described below B If both of upper two bit of input byte are 0 the remaining 6 bit specifies the times the data is repeated The number of times to be repeated is specified in 0 3F Hex The byte follows this byte is treated as graphic data to be repeated Graphics data should line up from left to right and from top to bottom ESC Function Code Range Outline ESC n Function Code Range Outline Caution Default See Also Sample Program Print Results Switch OFF the printer lt 1B gt H lt 2B gt H None This command is used for switching off the printer from the host Sending this command causes the same operation as that by setting the power switch to off Specifying Canceling Underline lt 1B gt H lt 2D gt H lt n gt 0 lt n lt 02 Hex Specifying canceling an underline Types of underlines by value are shown below Canceling an underline Specifying an underline for 1 dot width Specifying an underline for 2 dots width An underline is attached to the full character width It is however not attached to the part having been skipped by horizontal tab command An underline is not attached to a 90 right turned characters PRINT 1 CHR amp HIB CHR 0 PRINT 1 AA
34. gt H Outline The printer will return 32 bytes of information with the following structure 1 22 Printer name up to 22 charachters 23 25 Firmware version 26 27 Language version described by two characters 28 32 When the corresponding bit is 1 the function is supported and when 0 the function is not supported BYTE 28 BIT7 BIT6 BIT5 BIT3 BIT2 BIT1 BITO x support L Mag stripe reader L Reserved L Katakana support Characters after 80 Hex L _JIS and SHIFT JIS Support L Not in use Not in use Reserved always 1 BYTE 29 BIT7 BIT6 BIT5 BIT3 BIT2 BIT1 BITO via firmware interface Not in use L Not in use L Not in use Not in use L Not in use Not in use Reserved always 1 BYTE 30 BIT7 BIT6 BIT5 BIT3 BIT2 BIT1 BITO in use L Not in use Not in use L Not in use Not in use L Not in use Not in use Reserved always 1 2230 BYTE 31 BIT7 BIT6 BIT5 BIT3 BIT2 BIT1 BITO use Not in use 1 Not in use L Not in use Not in use Not in use Not in use Reserved always 1 BYTE 32 BIT7
35. gt H binary number for gt B and decimal number for gt respectively k represents a repeat count of k times Indicates an argument value setting range for the command in hexadecimal number partly in decimal number When used for application other than defined in each control an error may occur Always use in the defined range Describes a command outline Describes a caution as required Describes an initial value in hexadecimal number for the command when accompanied by an argument Describes the associated commands for use Describes a coding example in the O BASIC sample program This example is only for your reference and differs depending on the language used version and so on For details see the manual for the language used BEL Function Sounds the Buzzer Code lt 07 gt H Outline By executing this command the buzzer will beep This command functions in the same manner as ESC RS HT Function Code Outline Caution See Also Sample Program Print Results Horizontal Tab Command lt 09 gt H Shifts the printing position to the next horizontal tab position gnored when the next horizontal tab position has not been set The horizontal tab position is set by ESC D Initial setting of the horizontal tab position is each 8 characters in 9th 17th 25th columns from FONT A ESCD PRINT 1 0123456789012345678901 PRINT 1 CHR amp HA PRIN
36. he condition of detecting paper end and detecting open cover is changed in this mode 0 FF Note on Next page Printing and paper feeding to the black mark position lt 0 gt This command prints the data in the printer buffer and searches for black mark It is ignored if black mark function is not specified This command is valid only when black mark function is specified ESC 1 Note on next page 62 Note for Black Mark Function 1 Error detection at black mark mode Paper end is checked during printing but black mark is not checked After receiving FF command printer checks black mark and paper end Once black is detected and white is detected again within 6 mm paper feed it is determined as black mark If the white is not detected within 6 mm paper feed it is determined as paper end After receiving FF command if printer cannot detect back mark by feeding paper for 360 mm printer recognizes it as black mark detecting error And the result is same as detecting paper end To release the error it is necessary to put correct paper and press LF switch long 2 LFswitch operation in black mark mode Press short Feed one line Press longer than 1 sec Feed paper to find next black mark Same as sending FF command 3 Switching Black mark mode Black mark mode is set for disabled at factory Once black mark mode is enabled it is effective till receiving disabling command or the battery connector is disconne
37. ion is available with this command Memory switch setting is retained even after printer power off n specifies the number of memory switch to be operated m specifies a selection The contents of individual memory switches are as shown below Memory Switch OFF 0 Slach 0 ON 1 Normal O CR is ignored CR has the same action as LF Default font A Default font B Prints Low Battery Does not print Low Battery ASB Invalid for default ASB Valid for default Not in use IrDA protocol enabled IrDA protocol disabled Shift JIS for default JIS for default The setting of the changed memory switch is enabled by resetting the power switch No 8 is only for Japanese model GS n1n2 d n1n2D1 Dn Function Defining the Download Bit Image LOGO Code lt 1D gt H lt 2A gt H lt n1 gt lt n2 gt lt d gt Range 1 lt n1 lt 7F Defines horizontal size of downloaded image 1 lt n2 lt F8 Defines the vertical size of downloaded image Outline Defines downloading bit images of the number of dots specified by n1 and n2 The numbers of dots are n1 x 8 in horizontal direction and n2 x 8 in vertical direction The number of horizontal bytes can be up to 7F but only the first 48 30H bytes will be printed The rest will be rejected d indicates bit image data The downloaded bit image thus defined is valid till it is redefined or ESC _ i
38. ircuit and chassis 0 25 mA or less AC 240V 50 Hz 45K or less on case surface 100 VAC 50 Hz full load 25 C 120 150 1 8 3 5 AC 100 240 25 C or less 240 25 C UL C UL PSE 10AD JU VDE GS CE 10AD E 10AD JU 75 mm L x 50 mm W x 30 mm H 94V 1 1828 8 mm 2468 22 x 2C 3 5 x 1 3 9 55 Center 104 g 59 10 EMI STANDARD VCCI Class B FCC Class B EN55022
39. ism 1 Print method Line thermal printing 2 Number of dot 384 dot line 3 Head density 8 dot mm 4 Print width 48 mm 5 Sensors Head temperature Thermistor Paper end Photo Interrupter Head up Mechanical switch 6 Paper Paper width 58 mm 0 1 Paper thickness 65 um Recommended paper TF50KS E2D Nippon Paper Outside diameter Max 40 mm or 50 mm by model 7 Paper feed force 0 49N or more 8 Paper keep force 0 78N or more 9 Reliability Head life 6 million lines Room temperature normal humidity 100 million pulses 50 km MCBF 15 million lines Duty 12 596 7 2 Card Reader 1 Supported track ISO JIS 1 2 3 2 Card thickness 0 76 mm 0 08 mm 3 Specifications of each track Tak 071 102 1503 Record density 210 BPI 75 BPI 210 BPI Record capacity 79 characters 7 bits 40 characters b bits 107 characters 5 bits 7 3 Lifetime of Mechanical Parts Power switch 45 000 times 30 times day x 300 days x 5 years 8 POWER RELATED SPECIFICATIONS 8 1 Battery 1 Battery type 2 Maximum capacity 3 Number of sells 4 Maximum output voltage 5 Cut off voltage 6 Standard charge 7 Initial capacity 8 Initial impedance 9 Cycle life capacity 10 Discharge by temperature 11 Storage Lithium ion battery pack 2000 mAh 2 4 2V Cell 2 75V Cell 1000 mA 23 C 4 2V Cell 3 hours charge 1950 mAh or more After standard charge and discharge 400 mA till cut off at 23 C
40. ith double height and double width being specified simultaneously double wide and double high characters are consisted An underline is attached to the full character width which however is not attached to the part having been skipped by the horizontal tab Neither is it attached to 90 right turned characters The underline width is as having been specified by lt ESC gt The default setting is 1 dot width n case that double wide character and normal character exist in same one line the layout of underline is consistent one 0 5 5 Sample Program PRINT 1 CHR amp HIB CHR amp H00 H PRINT 1 CHRS amp HIB 1 CHR amp H01 H PRINT 1 CHRS amp HIB CHR amp H08 H PRINT 1 CHRS amp HIB CHR amp H10 H PRINT 1 CHRS amp HIB CHR amp H20 H PRINT 1 CHRS amp HIB CHR amp HB9 H PRINT 1 CHR amp HA END Print Results Font A Font B Font A Emphasis H HHHHH Font 8 Emphasis Quadruple Underline Font Underline Font A Double Width Font A Double Height 10 ESC 5 1 2 Function Code Range Outline Caution Default See Also Sample Program Print Results Specifying the Absolute Positions lt 1 gt lt 24 gt lt 1 gt lt 2 gt 0 lt n1 lt FF Hex 0 lt n
41. l be nL nH x 256 x 1 203 inches Printable Area E E Printable Area With i Caution This command only works when it is entered at the beginning of a line If the value entered with this command exceeds the printable area for one line the entire area except the left margin is set as the print area width Forcalculation of print area width the basic pitch 1 203 inch for horizontal direction is used 1 The print area is extended toward the right to accommodate the first character but not wider than the printable area Printable Area A E Margin Printable Area Width Extended toward the right 2 When sufficient area cannot be secured even by executing the processing 1 the print area is extended to the left decreasing left margin Printable Area Left Margin 1 Extended 2 toward the right Printable Area Width 48 3 When sufficient area cannot be secured even by executing the processing 2 the right space is decreased When bit image or downloaded bit image is developed if the print area width is less than the minimum lateral width of the bit image 2 dots for single density 1 dot for double density the following processing is carried out only in the same line 1 Extend the print area to the left decreases left margin till it reaches the width equivalent to the minimum late
42. l tab command is ignored When the data n k is equal to or smaller than its preceding data n k 1 it is assumed that tab setting is finished If this is the case the next data onward will be processed as normal data When the data n k exceeds a 1 line print area set the horizontal tab position assuming Set digit position Maximum print digits 1 The horizontal tab position does not change even if the character width is altered after setting the horizontal tab position Initial value is specified every eight characters 9th 17th 25th and on of Font A HT See Sample Program and Print Results for HT 2 ESC En Function Code Range Outline Caution Default See Also Sample Program Print Results Specifying canceling highlighting lt 1 gt lt 45 gt lt gt 10 lt n lt Specifying canceling the highlighting characters n is valid only for the lowest bit nO 0 Canceling highlighting 1 Specifying highlighting This is effective only for font A 12 x 24 dots Dot configuration of a highlighted character includes one extra dot added at its side The double printing and highlighted character printing commands provide exactly the same operation PRINT 1 CHR amp E CHR 0 PRINT 1 AAABBB CHR amp HA PRINT 1 CHR amp E CHR 1 PRINT 1
43. lt See Also Saving current setting lt 1B gt H lt 3E gt H lt n gt n Oor1 This command saves International character Serial port baud rate Print density Auto power off time and maximum speed at Infrared communication to NV memory so that the setting can be resumed automatically when power on after setting data on RAM memory is gone by like battery is disconnected nea 0 Max speed at Infrared communication is 115200 bps 1 Max speed at Infrared communication is 57600 bps Do NOT use this command frequently NEVER turn the printer off during command is running Otherwise there is a risk to lose the firmware updating function Power is turned off automatically when setting is saved 0 ESC ESC S ESC Y ESC x 522 ESC 7 Function Codel Range Outline Caution Reading magnetic stripe reader lt 1B gt H lt 3F gt H lt n gt 0 lt n lt 7 Hex When the command is received the bicolor LED is shining in RED and the printer is If even after 10 waiting for the magnetic card to be swiped through the reader seconds the card is not swiped the command is aborted automatically Printer returns the information read from the tracks followed by 00 Hex Reads the data of the track in the following table by the value Invalid Track 1 Track 2 Track 1 and 2 Track 3 Invalid Track 2 and 3 Invalid The format of the data
44. n Function Selecting Code table Code lt 1B gt H lt 52 gt H lt n gt Range 0 lt n lt D Hex n Hex Character Set 0 U S A 1 France 2 Germany 3 U K 4 Denmark 5 Sweden 6 Italy 7 Spain 8 Japan 9 Norway A Denmark II B Spain Il Latin America D Korea Outline Selects the necessary code table Default n 0 See Also Character Code Table International Character Set 2227 ESC Sn Function Code Range Outline Default ESCT Function Code Outline See Also Print Results Setting serial interface communication speed lt 1B gt H lt 53 gt H lt n gt 0 lt n lt 6 Hex 30 lt n lt 36 Hex n Hex Speed bps 1200 2400 4800 9600 19200 57600 115200 Sets the communication speed for the serial interface The command is valid only when the printer is connected through a serial cable It is not valid when using IrDA interface The last setting is valid even after the printer is switched OFF The default value is 3 9600 BPS Printing Diagnostic information lt 1 gt lt 54 gt Prints current printer attributes diagnostics ESC CITIZEN Mobile Printer Model 10 Ver Intensity 100 Timeout 10 min Temperature 27 C Battery 7 5V Mode RS232 Speed 9600 bps Switches 00000000 ESC Vn Function Specifying Canceling
45. n used in code set A one character next to a Shift character is treated as a character of code set B When used in code set B one character next to a Shift character is treated as a character of code set A The Shift character cannot be used in code set C Code set select characters CODE A CODE B CODE C The code set following a code set select character is switched to code set A B or C Function characters FNC1 FNC2 FNC3 How the function characters are used depends on each application In code set C only FNC1 is available 88 Sample Program Print Results When sending print data note these points 1 Each string of bar code data must begin with a code set select character CODE A CODE B or CODE C which selects the first code set to use 2 Every special character is specified by a combination of two characters a brace 1 followed by one character A brace 4 itself is sent twice consecutively SPECIAL CHARACTERS Code set A Code set B Code set C Example To print No in code set B followed by 123456 in code set C send the following data string GS k lt 73 gt lt 10 gt lt 7Bh 42h No 7Bh 43h gt lt 12 gt lt 34 gt lt 56 gt If the printer finds a string of bar code data that does not begin with a code set select character it immediately aborts the command processing and handles the subsequent data as normal data
46. nting bar code The type of font can be selected with n as follows 0 Font 12 x 24 Font B 9 x 16 The HRI characters refer to the bar code turned characters so that you can read them The HRI characters are printed at the position specified with GS H 0 PRINT 1 CHR amp HID CHR 50 PRINT 1 CHRS amp HID CHR 2 PRINT 1 CHR amp H1D CHR 0 GOSUB BC PRINT 1 CHR amp H1D CHR 1 GOSUB BC END BC PRINT 1 CHR amp HID PRINT 1 CHR 4 PRINT 1 12 CHR 0 PRINT 1 CHR amp HA RETURN FontA Font B 54 GS hn Function Code Range Outline Default Sample Program Selecting the height of the Bar Code lt 1D gt H lt 68 gt H lt n gt 1 lt n lt FF Hex Selecting bar code height n denotes the number of dots in the vertical direction n A2 Hex 162 dots See Sample Program and Print Results for GS w 55 GS k m d1 GS k m n d1 Function Code Range Outline ME dn dk NUL Printing the bar code 1 lt 1D gt H lt 6B gt H lt m gt d1 dk NUL 2 lt 1D gt H lt 6B gt H lt m gt lt n gt d1 dn 1 0 lt m lt 6 The definitions of k and d vary with the bar code system 2 65 lt m lt 73 The definitions of n and d vary with the bar code system Selects a
47. of bar code data have been entered and the subsequent data is handled as normal data The data of ITF bar code must have an even number of columns Should the data have an odd number of columns the last column is ignored For 2 Numeral n indicates the number of data items and the subsequent n bytes of data are handled as bar code data f n is out of the range the processing of the command is aborted and the subsequent data is handled as normal data For STANDARD MODE If d is out of the range only a paper feed is executed and the subsequent data is handled as normal data If the bar code is wider than the print area for one line the bar code is not printed but only a paper feed is executed The amount of paper feed corresponds to the height of the bar code Including the HRI characters if HRI character printing is specified irrespective of the line feed width set by a command such as ESC 2 or ESC 3 This command only works if no data exists in the print buffer If any data exists in the print buffer the data subsequent to m is handled as normal data After the bar code is printed the beginning of the line is taken as the start position for the next print This command is not affected by any print modes Emphasis double strike underline and character size except for the inverted character mode Description of Bar Codes UPC A UPC E JAN 13 EAN lt For print examples refer to page 56 gt
48. r code consisting of upper case alphabetic characters and numerals has a variable length of columns The start stop code is automatically added by the printer The available characters include space and 96 0 123456789 and upper case alphabetic characters A check digit is added and printed automatically This bar code consisting of only numerals has a variable length of even number columns If a code of odd number columns is sent the bar code will not be printed This bar code consisting of alphanumerics has a variable length of columns Available characters include 0 123456789 A start stop code is required any one of A B C and D is used This bar code consisting of alohanumeric and control characters has a variable length of columns The HRI character string is preceded and followed by a n character HRI characters for control characters 00H 1FH and 7FH are each printed as a combination of a n character and an alphabetic character This bar code consists of 103 bar code characters and three code sets enabling 128 ASCII code characters to be printed It has a variable length of columns Code set A ASCII characters 00H 5FH can be represented Code set B ASCII characters 20H 7FH can be represented Code set C Two digit numbers 00 99 can each be represented by one character In addition to the above characters special characters are available Shift character SHIFT Whe
49. ral width of bit image within the range of printable area Default nL 40 Hex nH 2 Hex See Also GSL 49 GS n1 n2 3 Function Code Range Outline Caution See Also Sample Program Executing the Macro lt 1D gt H lt 5E gt H lt n1 gt lt n2 gt lt n3 gt 0 lt n1 lt FF Hex 0 lt n2 lt FF Hex 0 lt n3 lt 1 Hex Executing contents defined in macro The following items are set for parameters n1 to n3 1 The number of times of macro execution n2 Waiting time on macro execution Waiting time of n2 x 100 msec is given for every execution n3 Macro execution mode Continuous execution Execution by LF switch Continuous execution The Macro is executed n1 times continuously at the time intervals specified by n2 Execution by LF switch After waiting for lapse of time specified by n2 the LF switch is waited to be pressed When it is pressed the macro is executed once This action is repeated n1 times When this command is received while in macro definition suspension of macro definition is indicated At this time the defined content is cleared No execution takes place when macro is held undefined or n1 0 While in macro execution with n3 1 paper feed with the LF switch is not available During execution of a macro the power cannot be turned off GS See Sample Program and Print Results for GS 50 5 GSan
50. read is as follows Track Header Card data Footer Track Track 1 is F1 Hex Track 2 is F2 Hex Track 3 is F3 Hex Header Track 1 96 Track 2 Track 3 or Card data ASCII data Footer If reading track is more than n 3 or footer data of track 1 2 is followed by track data of track 2 or 3 The command for reading multiple tracks at a time may often result in read error If reading is unsuccessful repeat it 22990 ESC 0 Function Code Outline Caution Sample Program Print Results Initializing the Printer lt 1B gt H lt 40 gt H Clears data stored in the print buffer and brings various settings to the initial state Default state Items cleared are as shown below Data inside the internal input buffer are not cleared Does not clear any data in the internal input buffer Does not clear downloaded characters Does not clear defined downloaded characters Does not clear defined downloaded bit image Does not clear defined macro Does not clear setting for print density Does not clear baud rate setting of serial port Does not clear valid invalid setting for panel switch Does not clear ASB mode setting Does not clear setting for auto power off time Does not clear memory switch At power off the following settings are cleared in addition to the items cleared by this command Clears input buffer Clears m
51. s executed After power off the downloaded bit image is maintained even by the execution of Initialize command Caution This downloaded bit image is also printed at the self test printing The maximum size of the Bit image cannot exceed 16 Relations between the bit image data and the dot defined are shown below When n1 30 1E Hex 30 x 8 dot 240 dot 1 2 g eG 28 29 30 4 31 32 33 s 58 59 60 61 62 63 88 89 90 AS 30 n2 25 15 112 3 4 5 6 7 8 MSB See Also GS Sample Program GOSUB IMG PRINT 1 CHR amp H1D CHR 0 PRINT 1 CHR amp HID CHR 1 PRINT 1 CHR amp H1D CHR 2 PRINT 1 CHR amp H1D CHR 3 END IMG nl 10 n2 50 PRINT 1 CHR amp HID PRINT 1 CHR n1 CHR n2 FOR I 1 TO n2 FOR 1 TO n1 PRINT 1 CHR J NEXTI NEXT J RETURN Print Results GS m Function Printing the Download Bit Image 046 lt 1D gt H lt 2F gt H lt m gt Range 0 lt m lt 03 Hex Outline Prints download bit image in a mode specified by m Modes can be selected by m are shown below Dot Density in Dot Density in Vertical Direction Horizontal Direction Normal mode 203 DPI 203 DPI Double wide mode 203 DPI 101 DPI Double high mode 101 DPI 203 DPI Double wide 101 DPI 101 D
52. val is 60 minutes lt 3 gt n 05 Hex 5 minutes PRINT 1 CHR amp H1B x CHR H14 After executing this command the printer will perform auto power off after 20 minutes if there is no IrDA communication and LF button is not pressed 40 ESC in Function Specifying Canceling the Inverted Characters Code lt 1B gt H lt 7B gt H lt n gt Range 0 lt n lt FF Hex Outline Specifying canceling inverted characters n is valid only for the lowest bit nO Condition 0 Canceling inverted characters 1 Specifying inverted characters Caution Inverted printing means printing the line at 180 turned This is valid only when this is specified at the beginning of a line Default The initial value of n is 0 Sample Program PRINT 1 CHR amp CHR 0 PRINT 1 AAAAA CHR amp HA PRINT 1 BBBBB CHR amp PRINT 1 CHR amp H1B CHR 1 PRINT 1 AAAAA CHR amp PRINT 1 BBBBB CHR amp Print Results AAAAA Inversion Canceled BBBBB 44444 Paper Feed VVVVN Direction Inversion Specified Aq GS nm Function Code Range Outline Caution Setting of printer flags 1D5H 29 H n m 0 lt n lt 8 Hex m 0 or 1 Hex This model has 8 memory switches and selecting releasing and changing a funct

Download Pdf Manuals

image

Related Search

Related Contents

Smart Canvus 取扱説明書  Panasonic 26PEF1U6 Data Sheet  UNDER CABINET RANGE HOOD  Garland "REGAL"SERIES RADIANT CHAR-BROILERS, (RBA) RBA Series User's Manual  Quick Guide IT  Targus BEU3064P  Samsung SGH-C520 Инструкция по использованию  1"/1,5"/2"/ 3"/4" bomba agua - water pump  Philips DS1110  Installation Manual TSP200  

Copyright © All rights reserved.
Failed to retrieve file