ESC Y Specifying print density ESC Z Returning diagnostic information ESC \ Specifying the relative positions ESC _ Setting the printer in default state ESC ` Returning the battery voltage and Printer Head temperature ESC a Aligning the characters ESC c5...
Code GS H Selecting of Printing Position of HRI Code GS L Setting the left margin GS W Setting the print area width GS ^ Executing the Macro GS a Enabling/Disabling ASB (Automatic Status Back) GS f Selecting the font of HRI characters GS h Selecting the height of the Bar Code GS k...
2. COMMAND DETAILS 2.1 Description of Items XXXX [Function] Command Function [Code] A sequence of code constituting a command is represented in hexadecimal number for < >H, binary number for < >B, and decimal number for < >, respectively; [ ]k represents a repeat count of k-times.
[Function] Sounds the Buzzer [Code] <07>H [Outline] By executing this command the buzzer will beep. This command functions in the same manner as ESC RS. — 4 —...
[Function] Horizontal Tab Command [Code] <09>H [Outline] Shifts the printing position to the next horizontal tab position. • Ignored when the next horizontal tab position has not been set. [Caution] • The horizontal tab position is set by ESC D. •...
[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”...
[Function] Print one line Command [Code ] <0D>H [Outline] 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.
ESC SP n [Function] Setting the right space amount of the character [Code] <1B>H<20>H<n> [Range] {0 =< n =< 20(Hex)} [Outline] The rightward space amount is set in dot unit (1/203 inch unit). [Caution] The rightward space amount in doublewide mode is made double of the set volume. [Default] n = 0 [Sample Program]...
ESC ! n [Function] Collective Specifying Printing Mode [Code] <1B>H<21>H<n> [Range] {0 =< n =< FF(Hex)} [Outline] Printing mode is assigned. Each n bit indicates the following: [Caution] • With double height and double width being specified simultaneously, double wide and double high characters are consisted.
ESC $ n1 n2 [Function] Specifying the Absolute Positions [Code] <1B>H<24>H<n1><n2> [Range] {0 =< n1 =< FF(Hex)} {0 =< n2 =< 1(Hex)} [Outline] The printing start position is specified in the number of dots (1/203 inch unit) from the beginning of line. •...
ESC % n [Function] Specifying/Canceling Download Character Set [Code] <1B>H<25>H<n> [Range] {0 =< n =< FF(Hex)} [Outline] Specifying/canceling download characters. Further, only the lowest bit (n0) is valid for n. n (Hex) [Caution] This setting cannot be restored to initial value even with Initialize command or by turning power OFF.
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 Initialize command.
• When the values set in m (bit image mode) are out of the above range, the data following after n1 is processed as normal printing data. • After completion of bit image printing, printer returns to normal data processing mode.
Page 18
For data in 12(Hex) mode, the size in non-compressed format shall be n × 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.
[Code] <1B>H<2B>H [Range] None [Outline] 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. ESC – n [Function] Specifying/ Canceling Underline [Code] <1B>H<2D>H<n>...
ESC . [Function] Printer self test [Code] <1B>H<2E>H [Range] None [Outline] 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 3 n [Function] Setting line feed rate of minimum pitch [Code] <1B>H<33>H<n> [Range] {0 =< n =< FF(Hex)} [Outline] The line feed rate per line is specified by n/203 inch. [Default] n = 22(Hex) 1/6-inch [Sample Program] See Sample Program and Print Results for ESC 2. —...
[Caution] • 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. [Default] The initial value of n is “1”.
RAM memory is gone by like battery is disconnected. n (Hex) [Caution] 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. [Default]...
{0 =< n =< 7(Hex)} [Outline] When the command is received the bicolor LED is shining in RED and the printer is waiting for the magnetic card to be swiped through the reader. If even after 10 seconds the card is not swiped the command is aborted automatically.
ESC @ [Function] Initializing the Printer [Code] <1B>H<40>H [Outline] Clears data stored in the print buffer and brings various settings to the initial state (Default state). Items not cleared are as shown below. • Data inside the internal input buffer are not cleared.
ESC D [ n ] k NUL [Function] Setting Horizontal Tab Position [Code] <1B>H<44>H [ <n> ] k<00>H [Range] {0 =< n =< FF(Hex)} {0 =< k =< 20(Hex)} [Outline] Specifying a horizontal tab position. • “n” indicates the no. of columns from the beginning to the horizontal tab position. At this time, n= set position –...
ESC E n [Function] Specifying/canceling highlighting [Code] <1B>H<45>H<n> [Range] {0 =< n =< FF(Hex)} [Outline] Specifying/canceling the highlighting characters. • “n” is valid only for the lowest bit (n0). n (Hex) • This is effective only for font A (12 × 24 dots) •...
ESC G n [Function] Specifying/canceling Double Printing [Code] <1B>H<47>H<n> [Range] {0 =< n =< FF(Hex)} [Outline] Specifying/canceling the double printing. • “n” is valid only for the lowest bit (n0). • Control by n is shown as follows. n (Hex) •...
ESC J n [Function] Printing and feeding paper n/203 inch [Code] <1B>H<4A>H<n> [Range] {0 =< n =< 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. •...
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.
ESC V n [Function] Specifying/Canceling 90°-right- turned Characters [Code] <1B>H<56>H<n> [Range] {0 =< n =< 1(Hex)} [Outline] Specifying/canceling characters 90°-right- turned character. “n” means the followings. n (Hex) [Caution] No underlines are attached to 90°-right- turned characters. [Default] The initial value of n is “0”. [Sample Program] PRINT #1, CHR$ (&H1B) + “V”...
ESC Y n [Function] Specifying print density [Code] <1B>H<59>H<n> [Range] {0 =< n =< 5(Hex)} [Outline] Specifies the print density. “n” means the followings. n (Hex) [Caution] Higher density may lead to slower printing. Increasing the density allows Low battery to be detected easily. [Default] n = 3 (100%) [Sample Program]...
[Function] Returning diagnostic information [Code] <1B>H<5A>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.
Page 34
BYTE 29 BIT6 BIT5 BIT7 Not in use Not in use Reserved, always 1 BYTE 30 BIT6 BIT5 BIT7 Not in use Not in use Reserved, always 1 BIT4 BIT3 BIT2 Not in use Not in use Not in use BIT4 BIT3 BIT2...
Page 35
BYTE 31 BIT6 BIT5 BIT7 Not in use Not in use Reserved, always 1 BYTE 32 BIT6 BIT5 BIT7 Not in use Not in use Reserved, always 1 BIT4 BIT3 BIT2 Not in use Not in use Not in use BIT4 BIT3 BIT2...
[Code] <1B>H<5F>H [Outline] Sets the printer in default state. The default state is as follows: • All printing attributes like underline, rotating etc. are cleared. • Internal font A (12 × 24) is selected. • Pitch between lines is 1/6 inch.
<1B>H<60>H [Outline] 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. • Battery voltage is returned in the format: battery voltage × 10 + 20H and head temperature is returned in the format: head temperature + 20H.
ESC a n [Function] Aligning the characters [Code] <1B>H<61>H<n> [Range] {0 =< n =< 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) [Caution] •...
ESC c5 n [Function] Enabling/Disabling Panel Switches [Code] <1B>H<63>H<35>H<n> [Range] {0 =< n =< FF(Hex)} [Outline] Selecting the LF switch valid/invalid. • “n” is valid only in the lowest bit (n0). n (Hex) [Caution] • 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.
ESC d n [Function] Printing and Feeding the paper by n lines [Code] <1B>H<64>H<n> [Range] {0 =< n =< FF(Hex)} [Outline] Prints data inside the 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. [Default] The initial value is not defined.
Transmitting the printer status [Code] <1B>H<76>H [Outline] Current printer status is transmitted. Status sent out consists of 1 byte whose content is as in the table below. [Caution] In paper end status, this command may be unreceptible state due to BUSY state.
{1 =< n =< 3C(Hex)} [Outline] Sets the time interval after which the printer will be 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 interval is 60 minutes <3C>H .
ESC { n [Function] Specifying/Canceling the Inverted Characters [Code] <1B>H<7B>H<n> [Range] {0 =< n =< FF(Hex)} [Outline] Specifying/canceling inverted characters. • “n” is valid only for the lowest bit (n0). n (Hex) [Caution] • Inverted-printing means printing the line at 180° turned. •...
This model has 8 memory switches and selecting, releasing, and changing a function 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.
GS * n1 n2 [ d ] n1 n2 D1 ... Dn [Function] Defining the Download Bit Image (LOGO) [Code] <1D>H<2A>H<n1><n2> [ < d > ] [Range] {1 =< n1 =< 7F} Defines horizontal size of downloaded image. {1 =< n2 =< F8} Defines the vertical size of downloaded image. [Outline] Defines downloading bit images of the number of dots specified by n1 and n2.
[Print Results] GS / m [Function] Printing the Download, Bit Image [Code] <1D>H<2F>H<m> [Range] {0 =< m =< 03(Hex)} [Outline] Prints download bit image in a mode specified by m. • Modes can be selected by m are shown below. m (Hex) [Caution] •...
• 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.
GS H n [Function] Selecting of Printing Position of HRI Code [Code] <1D>H<48>H<n> [Range] {0 =< n =< 3(Hex)} [Outline] Selecting printing position of HRI code in printing bar codes. • “n” means the followings. n (Hex) The HRI code refers to the bar code-turned characters so that you can read them. [Caution] The HRI code is printed in the font selected with GS f.
GS L nL nH [Function] Setting the left margin [Code] <1D>H<4C>H<nL><nH> [Range] {0 =< nL =< FF(Hex)} {0 =< nH =< FF(Hex)} [Outline] This command sets the left margin specified by nL and nH. The value of the left margin is [(nL + nH × 256) × 1/203] inches. [Caution] •...
GS W n [Function] Setting the print area width [Code] <1D>H<57>H<nL><nH> [Range] {0 =< nL =< FF(Hex)} {0 =< nH =< FF(Hex)} [Outline] Sets the print area width specified by nL and nH. • The print area width will be [(nL + nH × 256) × 1/203] inches. [Caution] •...
Page 51
(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.
GS ^ n1 n2 n3 [Function] Executing the Macro [Code] <1D>H<5E>H<n1><n2><n3> [Range] {0 =< n1 =< FF(Hex)} {0 =< n2 =< FF(Hex)} {0 =< n3 =< 1(Hex)} [Outline] Executing contents defined in macro. The following items are set for parameters n1 to n3. n1: The number of times of macro execution n2: Waiting time on macro execution.
{0 =< n=< FF(Hex)} [Outline] This command selects the status item to be addressed by ASB (Automatic Status Back.) When this command is executed, the printer will return 4 bytes with status information, with the follwoing meaning: BYTE 1 BIT6...
Page 54
BYTE 2 BIT6 BIT5 BIT7 Not in use (0) Thermal head is overheated (1) Not in use (0) BYTE 3 BIT6 BIT5 BIT7 Not in use (0) Not in use (0) Not in use (0) BIT4 BIT3 BIT2 Not in use (0) Not in use (1) Not in use (0) BIT4...
Page 55
• 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.
GS f n [Function] Selecting the font of HRI characters [Code] <1D>H<66>H<n> [Range] {n = 0, 1(Hex)} [Outline] Selecting the font of HRI characters in printing bar code. The type of font can be selected with “n” as follows: n (Hex) The HRI characters refer to the bar code-turned characters so that you can read them.
GS h n [Function] Selecting the height of the Bar Code [Code] <1D>H<68>H<n> [Range] {1 =< n =< FF(Hex)} [Outline] Selecting bar code height. n denotes the number of dots in the vertical direction. [Default] n = A2(Hex) 162 dots [Sample Program] See Sample Program and Print Results for GS w .
GS k m [d1 ... dk] NUL GS k m n [d1 ... dn] [Function] Printing the bar code [Code] (1) <1D>H<6B>H<m> [d1...dk] NUL (2) <1D>H<6B>H<m><n> [d1...dn] [Range] (1) 0 =< m =< 6 The definitions of “k” and “d” vary with the bar code system. (2) 65 =<...
Page 59
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.
Page 60
The start/stop code “*” is automatically added by the printer. The available characters include space and “$ % + – • / 0 1 2 3 4 5 6 7 8 9” and upper-case alphabetic characters.
Page 61
GS k <73><10><7Bh 42h> “No.” <7Bh 43h><12><34><56> • 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.
Page 62
[Descriptionof Bar Codes] UPC-A, UPC-E, JAN-13 (EAN), JAN-8 (EAN), CODE39, ITF, CODABAR, CODE128 Type Print Sample UPC-A UPC-E JAN-13 JAN-8 CODE39 CODABAR (NW-7) CODE93 CODE128 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.
GS w nL nH [Function] Selecting the horizontal size (Scale factor) of the Bar Code [Code] <1D>H<77>H<n> [Range] {2 =< n =< 4(Hex)} [Outline] Selecting bar code width. n denotes the number of dots in fine element width. [Default] The initial value of this width is “3”. [Sample Program] PRINT #1, CHR$ (&H1D) + “h”...
0 =< n =< 60 [Outline] Printer saves the AT command sequences specified by [d1….dn] in the NV memory. At the first time of power-on after saving the sequences, printer transfers the sequences to Bluetooth module. Then the printer clears the sequence from NV memory and the printer power is turned off.
Page 65
GS z AT*PAIRINFO=1 CR ^C <1D 7A 41 54 2A 50 41 49 52 49 4E 46 4F 3D 31 0D 03>h Printer power is turned off by receiving this command. Print result at power on after receiving this command as follows.
Printing and paper feeding to the black mark position [Code] <0C>H [Outline] This command prints the data in the printer buffer and searches for black mark. It is ignored if black mark function is not specified. [Caution] This command is valid only when black mark function is specified.
Page 67
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.
Page 69
4. Setup menu function (After Ver2.20) Make sure the printer power is off. Press ON/OFF switch and keep pressed for about 5 seconds until .LED is changed to red and leave the switch. Then buzzer beeps and printer prints current setting and goes to setup menu as follows.
Page 70
If the communication via IrDA is not stable, please try to set YES. H. SAVE SETTINGS ? During the menu setting, if YES is chosen somewhere, this items is printed. (If only NO is chosen, printer does not print this item and turn the power off.) If you want to save the changed setting, choose YES here and if not, choose NO.
Page 71
The list of choice in the setup menu Top question items CHANGE DISCOVERABILITY ? CHANGE PAIRING INFO SAVING ? CHANGE MEMORY SWITCHES ? (See the table below) CHANGE BAUD RATE ? CHANGE AUTO POWER OFF TIME ? CHANGE PRINT DENSITY ? CHANGE IrDA MAX SPEED ? "CHANGE DISCOVERABILITY ?"...
Page 72
Hold ON/OFF till LED changes to red. Current settings are printed. CHANGE DISCOVERABILITY ? CHANGE PAIRING INFO SAVING ? CHANGE MEMORY SWITCHES ? CHANGE BAUD RATE ? CHANGE AUTO POWER OFF TIME ? CHANGE PRINT DENSITY ? CHANGE IrDA MAX SPEED ? SAVE SETTINGS ? HARDWARE SETTING NOT SAVED ! Power OFF automatically.
5. PROGRAMMING CONSIDERATIONS 5.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 relevant command.
Pin No. Signal Direction Output — Input Input — — — Connector Printer side: PC side Cable Asynchronous, half duplex Function Transferred data Received data Auto Turn On Communication mode setting (InfraRed or Serial) Connector used on StarTac (Motorola) 9 pin D-SUB —...
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.
8. MECHANICAL SPECIFICATION 8.1 Printer Mechanism (1) Print method (2) Number of dot (3) Head density (4) Print width (5) Sensors (6) Paper (7) Paper feed force (8) Paper keep force (9) Reliability 8.2 Card Reader (1) Supported track (2) Card thickness...
9. POWER RELATED SPECIFICATIONS 9.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 9.2 Power Management (1) Printable lines...
Page 80
10. AC ADAPTOR (1) Input voltage (2) Input current (3) Rated output (4) Efficiency (5) 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...