background image

— 72 —

6.  SERIAL INTERFACE

6.1 Specifications

(1)

Data transfer system

Asynchronous, half duplex

(2)

Baud rates
1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200 bps (Selectable by command)

(3)

Serial data configuration
Start bit: 1 bit
Data bit: 8 bits Fixed
Parity bit: No parity
Stop bit: 1 bit

(4)

Signal polarity
RS-232C
•  Mark = logic “1” (–3V ~ –12V)
•  Space = logic “0” (+3V ~ +12V)

(5)

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 reception is available
DC3 code (13H) X-OFF: Data reception is not available

6.2. Connector Pin Configuration

Pin No.

Signal

Direction

Function

Pin No. of Cable

3

TXD

Output

Transferred data

No. 2 pin of D-Sub 9 pins

6

+5V

No connection

7

RXD

Input

Received data

No. 3 pin of D-Sub 9 pin

11

RTS

Input

Auto Turn On

No. 7 pin of D-Sub 9 pin

14

No. 5 pin of D-Sub 9 pin

15

GND

No. 5 pin of D-Sub 9 pin

Connector

Printer side:

Connector used on StarTac (Motorola)

PC side

9 pin D-SUB

Cable

Communication mode setting
(InfraRed or Serial)

Summary of Contents for CMP-10

Page 1: ...Command Reference MOBILE LINE THERMAL PRINTER MODEL CMP 10 Rev 3 10 Revised on Dec 13 2006 ...

Page 2: ...Character Codes Table and Chapter 4 Rev 2 00 2003 06 30 Added ESC ESC l FF Firmware Ver 1 95 Revised GS Added Chapter 5 to Chapter 10 Rev 3 00 2006 07 13 Added baud rate 38400 at page of ESC S n and 5 1 2 Added GS z Rev 3 01 2006 08 31 Revised range of CODE128 on Page56 Rev 3 10 2006 12 13 Added new Chapter 4 Deleted Remarks on page 63 REVISION ...

Page 3: ... ESC E Specifying canceling highlighting 25 23 ESC G Specifying canceling Double Printing 26 24 ESC J Printing and feeding paper n 203 inch 27 25 ESC R Selecting Code table 27 26 ESC S Setting serial interface communication speed 28 27 ESC T Printing Diagnostic information 28 28 ESC V Specifying Canceling 90 right turned Characters 29 29 ESC Y Specifying print density 30 30 ESC Z Returning diagnos...

Page 4: ...ck 51 49 GS f Selecting the font of HRI characters 54 50 GS h Selecting the height of the Bar Code 55 51 GS k Printing the bar code 56 52 GS w Selecting the horizontal size Scale factor of the Bar Code 61 53 GS z Saving AT command sequences to send to Bluetooth module 62 54 ESC l Specify canceling black mark function 64 55 FF Printing and paper feeding to the black mark position 64 indicates a uni...

Page 5: ...number When used for application other than defined in each control an error may occur Always use in the defined range Outline Describes a command outline Caution Describes a caution as required Default Describes an initial value in hexadecimal number for the command when accompanied by an argument See Also Describes the associated commands for use Sample Program Describes a coding example in the ...

Page 6: ... 4 BEL 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 ...

Page 7: ... the horizontal tab position is each 8 characters in 9th 17th 25th columns from FONT A See Also ESC D Sample Program PRINT 1 0123456789012345678901 PRINT 1 CHR HA PRINT 1 CHR H9 AAA PRINT 1 CHR H9 BBB PRINT 1 CHR HA PRINT 1 CHR H1B D PRINT 1 CHR 3 CHR 7 CHR 14 CHR 0 PRINT 1 CHR H9 AAA PRINT 1 CHR H9 BBB PRINT 1 CHR H9 CCC CHR HA Print Results 123456789012345678901 AAA BBB AAA BBB CCC Initially set...

Page 8: ... 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 HA PRINT 1 BBB CHR HA PRINT 1 CHR HA PRINT 1 CCC CHR HA Print Results AAA Print and line feed BBB Print and line feed Line feed only CCC Print and line feed ...

Page 9: ...COMMAND If Flag 2 is 0 carriage return CR command is ignored If Flag 2 is 1 CR comamnd will act as LF command Default CR command is ignored If you want that it acts like LF command set flag 2 to 1 by GS command See Also GS ESC RS Function Sounds the Buzzer Code 1B H 1E H Outline By executing this command the buzzer will beep This command functions in the same manner as BEL ...

Page 10: ... 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 PRINT 1 CHR H1B CHR 0 PRINT 1 AAAAA CHR HA PRINT 1 CHR H1B CHR 1 PRINT 1 AAAAA CHR HA PRINT 1 CHR H1B CHR 12 PRINT 1 AAAAA CHR HA Print Results AAAAA 0 dot space AAAAA 1 dot space A A A A A 12 dot space ...

Page 11: ...Caution With 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 ESC The default setting is 1 do...

Page 12: ... H01 H PRINT 1 CHR H1B CHR H08 H PRINT 1 CHR H1B CHR H10 H PRINT 1 CHR H1B CHR H20 H PRINT 1 CHR H1B CHR HB9 H PRINT 1 CHR HA END Print Results Font A Font B Font A Emphasis Font B Emphasis Quadruple Underline Font Underline Font A Double Width Font A Double Height ...

Page 13: ...d the residual as n1 Therefore the printing start position is equal to n1 n2 256 from the beginning of line Caution Specifying beyond the line end is ignored Default The initial value is not specified See Also ESC Sample Program PRINT 1 CHR H1B PRINT 1 CHR 0 CHR 0 A PRINT 1 CHR H1B PRINT 1 CHR 50 CHR 0 B PRINT 1 CHR H1B PRINT 1 CHR 0 CHR 1 C PRINT 1 CHR HA PRINT 1 CHR H1B PRINT 1 CHR 100 CHR 0 A P...

Page 14: ...her only the lowest bit n0 is valid for n Caution This setting cannot be restored to initial value even with Initialize command or by turning power OFF It can be restored to the initial value by ESC _ a command for returning to initial state Default n 0 See Also ESC n Hex Function 0 Selecting download character set 1 Canceling download character set ...

Page 15: ...aracter set B 9 16 Every character is 16 bytes Caution 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 to...

Page 16: ...f 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 n1 Bit image data is sent starting from the top to bootom and 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 t...

Page 17: ...HA RETURN PRINT 1 CHR H1B IMG2 PRINT 1 CHR 32 CHR 20 CHR 0 PRINT 1 CHR HFF GOSUB IMG2 PRINT 1 CHR HFF PRINT 1 CHR HA PRINT 1 CHR HFF PRINT 1 CHR H1B FOR I 1 TO 18 PRINT 1 CHR 33 CHR 20 CHR 0 PRINT 1 CHR H80 GOSUB IMG2 PRINT 1 CHR H00 PRINT 1 CHR HA PRINT 1 CHR H05 END NEXT I PRINT 1 CHR HFF PRINT 1 CHR HFF PRINT 1 CHR HFF RETURN Print Results 8 dot single density 8 dot double density 24 dot single...

Page 18: ...em 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 AIf either of upper two bit of input byte is 0 the byte is treated as 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...

Page 19: ...A ESC Function Switch OFF the printer 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 Range 0 n 02 Hex Outline Specifying canceling an underline Types of underlines by n value are shown below n He...

Page 20: ...ying 1 6 inch line feed rate Code 1B H 32 H Outline The line feed rate per line is specified by 1 6 inch Sample Program PRINT 1 AAAAA CHR HA PRINT 1 CHR H1B 3 CHR 0 PRINT 1 AAAAA CHR HA PRINT 1 CHR H1B 3 CHR 50 PRINT 1 AAAAA CHR HA PRINT 1 CHR H1B 2 PRINT 1 AAAAA CHR HA PRINT 1 AAAAA PRINT 1 CHR H1B J CHR 100 PRINT 1 AAAAA CHR HA PRINT 1 AAAAA CHR HA Print Results AAAAA AAAAA AAAAA AAAAA AAAAA AAA...

Page 21: ...etting 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 ...

Page 22: ...nd 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 Sample Program PRINT 1 AAAAA PRINT 1 CHR H1B CHR 0 PRINT 1 aaaaa CHR HA PRINT 1 CHR H1B CHR 1 PRINT 1 AAAAA CHR HA Print Results Value 0 1 0 Printer Inva...

Page 23: ...utomatically when power on after setting data on RAM memory is gone by like battery is disconnected 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 n 0 See Also ESC R ESC S ESC Y ESC x n Hex Type 0 Max speed at Infrared com...

Page 24: ...the data of the track in the following table by the value of n n Hex Track 0 Invalid 1 Track 1 2 Track 2 3 Track 1 and 2 4 Track 3 5 Invalid 6 Track 2 and 3 7 Invalid The format of the data 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 Track 2 Track 3 or Card data ASCII data Footer If reading track is more than one n 3 o...

Page 25: ...lear 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 Caution At power off the following settings are cleared in addition to the items cleared by this command Clears input buffer Clear...

Page 26: ...pecified 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 H ESC D NUL clears all the set tab positions Following clearing horizontal tab command is ignored Caution 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 ...

Page 27: ... of a highlighted character includes one extra dot added at its side Caution The double printing and highlighted character printing commands provide exactly the same operation Default n 0 See Also ESC Sample Program PRINT 1 CHR H1B E CHR 0 PRINT 1 AAABBB CHR HA PRINT 1 CHR H1B E CHR 1 PRINT 1 AAABBB CHR HA Print Results AAA B B B Highlighting canceled AAA B B B Highlighting canceled n Hex Type 0 C...

Page 28: ...This is effective to font A 12 24 dots Caution The print result of Double printing and highlight character printing is completely same Default n 0 See Also ESC E Sample Program PRINT 1 CHR H1B G CHR 0 PRINT 1 AAABBB CHR HA PRINT 1 CHR H1B G CHR 1 PRINT 1 AAABBB CHR HA Print Results AAA B B B Highlighting canceled AAA B B B Highlighting canceled n Hex Type 0 Canceling double printing 1 Specifying d...

Page 29: ...d 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 n Function Selecting Code table Code 1B H 52 H n Range 0 n D Hex n Hex Character Set 0 U S A 1 France 2 Germany 3 U K 4 Denmark I 5 Sweden 6 Italy 7 Spain I 8 Japan 9 Norway A Denmark II B Spain II C Latin America D Korea Outline Selects the nece...

Page 30: ...s valid even after the printer is switched OFF Default The default value is 3 9600 BPS ESC T Function Printing Diagnostic information Code 1B H 54 H Outline Prints current printer attributes and diagnostics See Also ESC Print Results CITIZEN Mobile Printer Model CMP 10 Ver x xxXX Intensity 100 Timeout 10 min Temperature 27 C Battery 7 5V Mode RS232 Speed 9600 bps Switches 0 0 0 0 0 0 0 0 n Hex Spe...

Page 31: ...e followings 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 CHR 0 PRINT 1 AAAAA PRINT 1 CHR H1B V CHR 1 PRINT 1 AAAAA CHR HA Print Results AAAAA n Hex Condition 0 Canceling 90 right turned Characters 1 Specifying 90 right turned Characters A A A A A 90 Rotation Canceled 90 Rotation Specified ...

Page 32: ...owings 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 H1B Y CHR 0 PRINT 1 AAAAA PRINT 1 CHR H1B Y CHR 5 PRINT 1 AAAAA CHR HA n Hex Condition 0 70 density 1 80 density 2 90 density 3 100 density 4 120 density 5 150 density ...

Page 33: ...arachters 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 BIT4 BIT3 BIT2 BIT1 BIT0 IrDA support Mag stripe reader Reserved Katakana support Characters after 80 Hex JIS and SHIFT JIS Support Not in use Not in use Reserved always 1 ...

Page 34: ...a firmware interface Not in use Not in use Not in use Not in use Not in use Not in use Reserved always 1 BYTE 29 BIT7 BIT6 BIT5 BIT4 BIT3 BIT2 BIT1 BIT0 Not in use Not in use Not in use Not in use Not in use Not in use Not in use Reserved always 1 BYTE 30 ...

Page 35: ...Not in use Not in use Not in use Not in use Not in use Not in use Not in use Reserved always 1 BYTE 31 BIT7 BIT6 BIT5 BIT4 BIT3 BIT2 BIT1 BIT0 Not in use Not in use Not in use Not in use Not in use Not in use Not in use Reserved always 1 BYTE 32 ...

Page 36: ...Specifying exceeding the top of line or the end of line is ignored See Also ESC Sample Program See Sample Program and Print Results for ESC ESC _ Function Setting the printer in default state 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 i...

Page 37: ...er thermal head Battery voltage is returned in the format battery voltage 10 20H and head temperature is returned in the format head temperature 20H Sample Program PRINT 1 CHR H1B Print Results Suppose the battery voltage is 7 8 volts and head temperature is 40 C Then CMP 10 will return 6C H 48 H to the host This values are calculated as follows Volatge 7 8 10 78 32 110 which is 6CH Temperaure 40 ...

Page 38: ...the table below 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 H1B a CHR 0 PRINT 1 AAAAA CHR HA PRINT 1 CHR H1B a CHR 1 PRINT 1 AAAAA CHR HA PRINT 1 CHR H1B a CHR 2 PRINT 1 AAAAA CHR HA Print Results n Hex Position 0 Left end alignment 1 Centering 2 Right end alignment AAAAA AAAAA AAAAA Paper Feed Direction Left justifi...

Page 39: ...th 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 but is cleared by turning power off Default The initial value of n is 0 Sample Program PRINT 1 CHR H1B c5 CHR 0 When enabling the LF switch PRINT 1 CHR H1B c5 CHR 1 When disabling the LF switch n Hex Condition 0 L...

Page 40: ... 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 Sample Program PRINT 1 AAAAA PRINT 1 CHR H1B d CHR 2 PRINT 1 AAAAA CHR HA Print Results AAAAA AAAAA 2 6 inch line feed ...

Page 41: ...ined 7 Not defined ESC v Function 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 Sample Program OPEN COM1 N81NN AS 1 PRINT 1 CHR H1B v A INPUT 1 1 CLOSE 1 END Bit Function ...

Page 42: ... 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 Default n 05 Hex 5 minutes Sample Program PRINT 1 CHR 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 pres...

Page 43: ...urned 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 H1B CHR 0 PRINT 1 AAAAA CHR HA PRINT 1 BBBBB CHR HA PRINT 1 CHR H1B CHR 1 PRINT 1 AAAAA CHR HA PRINT 1 BBBBB CHR HA Print Results n Hex Condition 0 Canceling inverted characters 1 Specifying inverted characters AAAAA B B B B B A A A A A B B B B B Inversion Speci...

Page 44: ... Function Setting of printer flags Code 1D H 29 H n m Range 0 n 8 Hex m 0 or 1 Hex Outline 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 The contents of individual memory switches are as shown...

Page 45: ...it image thus defined is valid till it is redefined or ESC _ is 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 KB Relations between the bit image data and the dot defined are shown below See Also GS Sample Progra...

Page 46: ...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 Dot Density in Dot Density in Vertical Direction Horizontal Direction 0 Normal mode 203 DPI 203 DPI 1 Double wide mode 203 DPI 101 DPI 2 Double high mode 101 DPI 203 DPI 3 Doub...

Page 47: ...alization 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 Default Initially Macro is not specified See Also GS Sample Program PRINT 1 CHR H1D PRINT 1 CHR HA PRINT 1 CHR HA PRINT 1 CHR HA PRINT 1 CHR H1D PRINT 1 CHR H1D PRINT 1 CHR 2...

Page 48: ...fore the GS k command Default The initial value of n is 0 See Also GS f Sample Program PRINT 1 CHR H1B 3 CHR 5 PRINT 1 CHR H1D h CHR 50 PRINT 1 CHR H1D H CHR 0 GOSUB BC PRINT 1 CHR H1D H CHR 1 GOSUB BC PRINT 1 CHR H1D H CHR 2 GOSUB BC PRINT 1 CHR H1D H CHR 3 GOSUB BC END BC PRINT 1 CHR H1D k PRINT 1 CHR 4 PRINT 1 12 CHR 0 PRINT 1 CHR HA RETURN Print Results n Hex Printing Position 0 No printing 1 ...

Page 49: ...modate 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 n...

Page 50: ... margin is set as the print area width For calculation 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 Left Margin Printable Area With Printable Area Left Margin Extended toward the right A Printable Area Width 2 When sufficient area ...

Page 51: ...th 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 lateral width of bit image within the range of printable area Default nL 40 Hex nH 2 Hex See Also GS L ...

Page 52: ...ecution 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 Caution 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 ...

Page 53: ... in use 0 Not in use 0 Not in use 0 Not in use 1 Not in use 0 The paper is fed manually by LF switch Not in use 0 When this command is executed the printer will return 4 bytes with status information with the follwoing meaning BYTE 1 Bit 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 de...

Page 54: ...t in use 0 Not in use 1 Not in use 0 Not in use 0 Thermal head is overheated 1 Not in use 0 BYTE 2 BIT7 BIT6 BIT5 BIT4 BIT3 BIT2 BIT1 BIT0 Not in use 0 Not in use 1 No paper or cover open 1 No paper or cover open 1 Not in use 0 Not in use 0 Not in use 0 Not in use 0 BYTE 3 ...

Page 55: ...or 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 receivi...

Page 56: ...o the bar code turned characters so that you can read them Caution The HRI characters are printed at the position specified with GS H Default n 0 See Also GS H Sample Program PRINT 1 CHR H1D h CHR 50 PRINT 1 CHR H1D H CHR 2 PRINT 1 CHR H1D f CHR 0 GOSUB BC PRINT 1 CHR H1D f CHR 1 GOSUB BC END BC PRINT 1 CHR H1D k PRINT 1 CHR 4 PRINT 1 12 CHR 0 PRINT 1 CHR HA RETURN Print Results n Hex Font 0 Font ...

Page 57: ...e 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 ...

Page 58: ...0 UPC A k 11 48 d 57 1 UPC E k 11 48 d 57 2 JAN13 EAN k 12 48 d 57 3 JAN8 EAN k 7 48 d 57 4 CODE39 1 k 48 d 57 65 d 90 32 36 37 43 45 46 47 5 ITF 1 k Must be an 48 d 57 even number 6 CODABAR NW 7 1 k 48 d 57 65 d 68 36 43 45 46 47 58 For 2 m 2 Bar code system Range of n Range of d 65 UPC A n 11 48 d 57 66 UPC E n 11 48 d 57 67 EAN13 JAN n 12 48 d 57 68 EAN8 JAN n 7 48 d 57 69 CODE39 1 n 48 d 57 65...

Page 59: ...f 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 For...

Page 60: ... of alphanumeric 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 CODE128 This bar code consists of 103 bar code characters and three code sets enabling 128 ASCII code characters to be printed ...

Page 61: ...ocessing and handles the subsequent data as normal data 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 cont...

Page 62: ...sisting of alphabets and numerals The start stop code is automatically added Even column variable length bar code consisting of numerals only Variable length bar code consisting of alpha numerals Any one of A B C and D is required as the start stop code Variable length bar code consisting of all 128 ASCII code characters Max Column 11 22 15 14 Descriptionof Bar Codes UPC A UPC E JAN 13 EAN JAN 8 E...

Page 63: ... 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 CHR 30 PRINT 1 CHR H1D w CHR 2 GOSUB BC PRINT 1 CHR H1D h CHR 50 PRINT 1 CHR H1D w CHR 3 GOSUB BC PRINT 1 CHR H1D h CHR 80 PRINT 1 CHR H1D w CHR 4 GOSUB BC END BC PRINT 1 CHR H1D k PRINT 1 CHR 4 PRINT 1 12 CHR 0 RETURN Print Results ...

Page 64: ...er clears the sequence from NV memory and the printer power is turned off If there is no AT command is specified 1D h 5A h 03 h no data is transferred to Bluetooth module at power on It is possible to send more than one AT command once CR 0D h is the separator between the commands By the CR 500 ms delay is inserted between the commands Available AT commands for Bluetooth module Only for the Blueto...

Page 65: ...d sequences need to be sent to the printer 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 BLUETOOTH INIT COMMANDS AT PAIRINFO 1 OK ...

Page 66: ...d detecting open cover is changed in this mode Default n 0 See also FF Note on Next page FF Function 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 See also ESC l n Note...

Page 67: ...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 disconnected 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 A...

Page 68: ... 66 3 CHARACTER CODES TABLE WPC1252 ...

Page 69: ... change the setting of enable disable pairing information saving choose YES here If not choose NO and go to next item If you choose YES another question PAIRING INFO SAVING ON shows up then Choose YES for Enable pairing information saving or choose NO for disabling pairing information saving and go to next item Default setting is YES enable pairing information saving The setting change does not af...

Page 70: ...is 70 80 90 100 120 and 150 Default density setting is 100 G CHANGE IrDA MAX SPEED If you want to change Max speed of IrDA to 57600 bps choose YES here and if not choose No and go to next item If you choose YES another question LIMIT SPEED TO 57600 bps shows up Then choose YES or NO When you choose either one printer prints next menu items Default setting is NO If the communication via IrDA is not...

Page 71: ... bps 9600 bps Baud rate 9600 bps Not choose this baud rate 19200 bps Baud rate 19200 bps 38400 bps Baud rate 38400 bps 57600 bps Baud rate 57600 bps 115200 bps Baud rate 115200 bps CHANGE AUTO POWER OFF TIME 5 min Auto power off 5 min 10 min Auto power off 10 min 15 min Auto power off 15 min 20 min Auto power off 20 min Not choose this time length 25 min Auto power off 25 min 30 min Auto power off...

Page 72: ...ING ON YES YES or NO SET SWITCH 1 SET SWITCH 8 YES YES or NO 1200 bps 115200 bps YES YES or NO 5 min 60 min YES YES or NO 70 150 YES LIMIT SPEED TO 57600 bps HARDWARE SETTING SAVED New settings are printed Power off automatically YES YES or NO NO NO CHANGE MEMORY SWITCHES NO CHANGE BAUD RATE NO CHANGE AUTO POWER OFF TIME NO CHANGE PRINT DENSITY NO CHANGE IrDA MAX SPEED NO SAVE SETTINGS NO HARDWARE...

Page 73: ...ery before lowing of battery voltage is recommended while keeping checking the information on the battery by the use of relevant command 5 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 on...

Page 74: ...2V Space logic 0 3V 12V 6 Transmission control TD signal DC1 code 11H X ON Data reception is available DC3 code 13H X OFF Data reception is not available 6 2 Connector Pin Configuration Pin No Signal Direction Function Pin No of Cable 3 TXD Output Transferred data No 2 pin of D Sub 9 pins 6 5V No connection 7 RXD Input Received data No 3 pin of D Sub 9 pin 11 RTS Input Auto Turn On No 7 pin of D S...

Page 75: ... 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 communicatio...

Page 76: ... 74 6 6 Electrical Characteristics RS 232C Circuit Input RXD Output TXD Printer side Host side Equivalent MAX232 Printer side Host side Equivalent MAX232 ...

Page 77: ... 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º 7 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 5 Applicable protocol Class IrDA IrCOMM or IrDA IrLPT Attribute IrDA IrLMP LsapSel via IrLMP...

Page 78: ... 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 5 8 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 Track ISO 1 ISO 2 ISO 3 Record density 210 BPI 75 BPI 210 BPI R...

Page 79: ...discharge 2000 mA till cut off 299 times and leave one day then measure in same condition as initial capacity 10 Discharge by temperature 10ºC 50 0ºC 80 23ºC 100 45ºC 100 After standard charge and discharge 1000 mA till cut off 11 Storage 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 9 2 Power Management 1 Printable lines 40 000 lines...

Page 80: ...chassis 7 Leakage current 0 25 mA or less AC 240V 50 Hz 8 Temperature rise 45K or less on case surface 100 VAC 50 Hz full load 25 C 9 Over voltage protection 120 150 10 Overload protection current 1 8 3 5A AC 100 240 25 C 11 No load power consumption 3W or less AC 240V 25 C 12 Safety standard UL C UL PSE 10AD JU VDE GS CE 10AD E 13 Size 10AD JU 75 mm L 50 mm W 30 mm H 14 Case material 94V 1 15 Cab...

Reviews: