background image

 

 

 

 

 

 

 

 

 

 

 
 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

EC-80XXX Programming Manual

V6_1

Summary of Contents for EC-80 Series

Page 1: ...EC 80XXX Programming Manual V6_1 ...

Page 2: ...is a buffer that stores the image data to be printed 3 Print buffer full This is the state where the print buffer is full If new print data is input while the print buffer is full the data in the print buffer is printed out and a line feed is executed This is the same operation as the LF operation 4 Start of line The start of line state satisfies the following condition There is no print data incl...

Page 3: ...meters are read in and discarded and nothing happens 8 Inch A unit of length One inch is 25 4 mm 9 MSB Most Significant Bit 10 LSB Least Significant Bit 11 Base line Standard position when character data is stored in the print buffer Normal character in standard mode and page mode ...

Page 4: ...t line spacing ESC 3 n Set line spacing ESC n Set peripheral device ESC n Cancel user defined characters ESC Initialize printer ESC D n1 nk NUL Set horizontal tab positions ESC E n Turn emphasized mode on off ESC G n Turn on off double strike mode ESC J n Print and feed paper ESC L Select page mode ESC M n Select character font ESC R n Select an international character set ESC S Select standard mo...

Page 5: ...ng area width GS nL nH Set relative vertical print position in page mode GS r t m Execute macro GS a n Enable Disable Automatic Status Back ASB GS f n Select font for Human Readable Interpretation HRI characters GS h n Select bar code height GS k m d1 dk NUL GS k m n d1 dn Print bar code GS r n Transmit status GS v 0 m xL xH yL yH d1 dk Print raster bit image GS w n Set bar code width FS n Set pri...

Page 6: ...setting of the horizontal tab position for the paper roll is font A 12 24 every 8th character 9th 17th 25th column Reference ESC D LF Name Print and line feed Format ASCII LF Hex 0A Decimal 10 Description Prints the data in the print buffer and feeds one line based on the current line spacing Note This command sets the print position to the beginning of the line Reference ESC 2 ESC 3 FF Name Print...

Page 7: ...of 10 H 04 H n 1 n 4 is received Example In ESC m nL nH d1 dk d1 10 H d2 04 H d3 01 H This command should not be used within the data sequence of another command that consists of 2 or more bytes Example If you attempt to transmit ESC 3 n to the printer but DTR DSR for the host computer goes to MARK before n is transmitted and then DLE EOT 3 interrupts before n is received the code 10 H for DLE EOT...

Page 8: ...04 4 Drawer open close signal is LOW connector pin3 0 00 0 On line 3 1 08 8 Off line 4 1 10 16 Not used Fixed to On 5 6 Undefined 7 0 00 00 Not used Fixed to Off n 2 Off line status Bit Off On Hex Decimal Function 0 0 00 0 Not used Fixed to Off 1 1 02 2 Not used Fixed to On 0 00 0 Cover is closed 2 1 04 4 Cover is open 0 00 0 Paper is not being fed by using the FEED button 3 1 08 8 Paper is beging...

Page 9: ...me request to printer Format ASCII DLE ENQ n Hex 10 05 n Decimal 16 5 n Range 1 n 2 Description Responds to a request from the host computer n specifies the requests as follows n Request 1 Recover from an error and restart printing from the line where the error occurred 2 Recover from an error aft clearing the receive and print buffers Details This command is effective only when an auto cutter err...

Page 10: ...e disabled Reference DLE EOT DLE DC4 n m t Name Generate pulse at real time Format ASCII DLE DC4 n m t Hex 10 14 n m t Decimal 16 20 n m t Range n 1 m 0 1 1 t 8 Description Outputs the pulse specified by t to connector pin m as follows m Connector pin 0 Drawer kick out connector pin 2 1 Drawer kick out connector pin 5 The pulse ON time is t 100 ms and the OFF time is t 100ms Details When the print...

Page 11: ... the right side character spacing is n times normal value This command does not affect the setting of kanji characters This command sets values independently in each mode standard and page modes The horizontal and vertical motion unit are specified by GS P Changing the horizontal or vertical motion unit does not affect the current right side spacing The GS P command can change the horizontal and v...

Page 12: ... printed The printer can underline all characters but can not underline the space set by HT or 90 clockwise rotated characters The thickness of the underline is that selected by ESC regardless of the character size When some characters in a line are double or more height all the characters on the line are aligned at the baseline ESC E can also turn on or off emphasized mode However the setting of ...

Page 13: ... is used 2 When the starting position is set to the upper right or lower left of the printable area using ESC T the vertical motion unit y is used Reference ESC GS GS GS P ESC n Name Select cancel user defined character set Format ASCII ESC n Hex 1B 25 n Decimal 27 37 n Range 0 nL 255 Description Selects or cancels the user defined character set When the LSB of n is 0 the user defined character se...

Page 14: ...ponding bit to 1 to print a dot or 0 to not print a dot This command can define different user defined character patterns by each fonts To select a font use ESC A user defined character and a downloaded bit image cannot be defined simultaneously When this command is executed the downloaded bit image is cleared The user defined character definition is cleared when ESC is executed ESC is executed FS...

Page 15: ... THERMAL RECEIPT PRINTER 15 When font B 9 17 is selected ESC m nL nH d1 dk Name Select bit image mode Format ASCII ESC m nL nH d1 dk Hex 1B 2A m nL nH d1 dk Decimal 27 42 m nL nH d1 dk ...

Page 16: ...eds the number of dots to be printed on a line the excess data is ignored d indicates the bit image data Set a corresponding bit to 1 to print a dot or to 0 to not print a dot If the width of the printing area set by GS L and GS W less than the width required by the data sent with the ESC command the following will be performed on the line in question but the printing cannot exceed the maximum pri...

Page 17: ... THERMAL RECEIPT PRINTER 17 When 24 dot bit image is selected ...

Page 18: ...Underline mode can also be turned on or off by using ESC Note however that the last received command is effective This command does not affect the setting of Kanji characters Default n 0 Reference ESC ESC 2 Name Select default line spacing Format ASCII ESC 2 Hex 1B 32 Decimal 27 50 Description Selects 1 6 inch line approximately 4 23mm spacing Details The line spacing can be set independently in s...

Page 19: ...I ESC n Hex 1B 3D n Decimal 27 61 n Range 1 n 255 Description Selects device to which host computer sends data using n as follows Bit Off On Hex Decimal Function Off 00 0 Printer disabled 0 On 01 1 Printer enabled 1 7 Undefined Details When the printer is disabled it ignores all data except for error recovery commands DLE EOT DLE ENQ DLE DC4 until it is enabled by this command Default n 1 ESC n Na...

Page 20: ... of character width n measured from the beginning of the line The character width includes the right side character spacing and double width characters are set with twice the width of normal characters This command cancels the previous horizontal tab settings When setting n 8 the print position is moved to column 9 by sending HT Up to 32 tab positions k 32 can be set Data exceeding 32 tab position...

Page 21: ... and feeds the paper n vertical or horizontal motion unit inches Details After printing is completed this command sets the print starting position to the beginning of the line The paper feed amount set by this command does not affect the values set by ESC 2 or ESC 3 The horizontal and vertical motion unit are specified by GS P The GS P command can change the vertical and horizontal motion unit How...

Page 22: ... Set right side character spacing ESC SP FS S Select default line spacing ESC 2 ESC 3 Only valve settings is possible for the following commands in page mode these commands are not executed Turn 90 clockwise rotation mode on off ESC V Select justification ESC a Turn upside down printing mode on off ESC Set left margin GS L Set printable area width GS W The following command is ignored in page mode...

Page 23: ...Korea 14 Slovenia Croatia 15 Chinese The character sets for Slovenia Croatia and China are supported only in the Simplified Chinese model Default Simplified Chinese model n 15 Models other than the Simplified Chinese model n 0 ESC S Name Select standard mode Format ASCII ESC S Hex 1B 53 Decimal 27 83 Description Switches from page mode to standard mode Details This command is effective only in pag...

Page 24: ... when power is turned on the printer is reset or command ESC is used Reference FF ESC FF ESC L ESC T n Name Select print direction in page mode Format ASCII ESC T n Hex 1B 54 n Decimal 27 84 n Range 0 n 3 48 n 51 Description Selects the print direction and starting position in page mode n specifies the print direction and starting position as follows n Print Direction Starting Position 0 48 Left t...

Page 25: ... 49 Description Turns 90 clockwise rotation mode on off n is used as follows n Function 0 48 Turns off 90 clockwise rotation mode 1 49 Turns on 90 clockwise rotation mode Details This command affects printing in standard mode However the setting is always effective When underline mode is turned on the printer does not underline 90 clockwise rotated Double width and double height commands in 90 rot...

Page 26: ...table area the printing area width is automatically set to horizontal printable area horizontal starting position If vertical starting position printing area height exceeds the printable area the printing area height is automatically set to vertical printable area vertical starting position The horizontal and vertical motion unit are specified by GS P Changing the horizontal or vertical motion uni...

Page 27: ...ontal or vertical motion unit Details Any setting that exceeds the printable area is ignored When pitch N is specified to the right nL nH 256 N When pitch N is specified to the left the negative direction use the complement of 65536 When pitch N is specified to the left nL nH 256 65536 N The print starting position moves from the current position to N horizontal or vertical motion unit The horizon...

Page 28: ...ification 1 49 Centering 2 50 Right justification Details The command is enabled only when processed at the beginning of the line in standard mode If this command is input in page mode the printer performs only internal flag operations This command has no effect in page mode This command executes justification in the printing area This command justifies the space area according to HT ESC or ESC De...

Page 29: ...oll end sensor is selected as the paper sensor outputting paper end signals When all the sensors are disabled the paper end signal always outputs a paper present status ESC c 4 n Name Select paper sensor s to stop printing Format ASCII ESC c 4 n Hex 1B 63 34 n Decimal 27 99 52 n Range 0 n 255 Description Selects the paper sensor s used to stop printing when a paper end is detected using n as follo...

Page 30: ...SC d n Hex 1B 64 n Decimal 27 100 n Range 0 n 255 Description Prints the data in the print buffer and feeds n lines Details This command sets the print starting position to the beginning of the line This command does not affect the line spacing set by ESC 2 or ESC 3 The maximum paper feed amount is 1016 mm 40 inches If the paper feed amount nx line spacing of more than 1016 mm 40 inches is specifi...

Page 31: ...vian Default n 0 ESC n Name Turns on off upside down printing mode Format ASCII ESC n Hex 1B 7B n Decimal 27 123 n Range 0 n 255 Description Turns upside down printing mode on or off When the LSB of n is 0 upside down printing mode is turned off When the LSB of n is 1 upside down printing mode is turned on Details Only the lowest bit of n is valid This command is enabled only when processed at the...

Page 32: ... NV bit image means a bit image which is defined in a non volatile memory by FS q and printed by FS p This command is not effective when the specified NV bit image has not been defined In standard mode this command is effective only when there is no data in the print buffer In page mode this command is not effective This command is not affected by print modes emphasized double strike underline cha...

Page 33: ...yH d1 dk 1 xL xH yL yH d1 dk n Decimal 28 113 n xL xH yL yH d1 dk 1 xL xH yL yH d1 dk n Range 0 n 255 0 xL 255 0 xH 3 when 1 xL xH 256 1023 0 yL 255 0 yL 1 when 1 yL yH 256 288 0 d 255 k xL xH 256 yL yH 256 8 Total defined data area 0 5M bits 64K bytes Description Define the NV bit image specified by n n specifies the number of the defined NV bit image xL xH specifies xL xH 256 8 dots in the horiz...

Page 34: ...A definition data of a NV bit image consists of xL xH yL yH d1 dk Therefore when only one NV bit image is defined n 1 the printer processes a data group xL xH yL yH d1 dk once The printer uses data xL xH 256 yL yH 256 8 header 4 bytes of NV memory The definition area in this printer is a maximum of 0 5M bits 64K bytes This command can define several NV bit images but cannot define a bit image data...

Page 35: ... n Decimal 29 33 n Range 0 n 255 1 vertical number of times 8 1 horizontal number of times 8 Description Selects the character height using bits 0 to 2 and selects the character width using bits 4 to 7 as follows Bit Off On Hex Decimal Function 0 1 2 Character height selection See Table 2 ...

Page 36: ...e this command is ignored In standard mode the vertical direction is the paper feed direction and the horizontal direction is perpendicular to the paper feed direction However when character orientation changes in 90 clockwise rotation mode the relationship between vertical and horizontal directions is reversed In page mode vertical and horizontal directions are based on the character orientation ...

Page 37: ...direction When the starting position is set to the upper right or lower left this command sets the absolute position in the horizontal direction The horizontal and vertical motion unit are specified by GS P The GS P command can change the horizontal and vertical motion unit However the value cannot be less than the minimum horizontal movement amount and it must be in even units of the minimum hori...

Page 38: ...48 Normal 200 200 1 49 Double width 200 100 2 50 Double height 100 200 3 51 Quadruple 100 100 Details This command is ignored if a downloaded bit image has not been defined In standard mode this command is effective only when there is no data in the print buffer This command has no effect in the print modes emphasized double strike underline character size or white black reverse printing except fo...

Page 39: ...immediately after previously receiving GS the printer remains in the macro undefined state The contents of the macro can be defined up to 2048 bytes If the macro definition exceed 2048 bytes excess data is not stored Reference GS GS B n Name Turn white black reverse printing mode Format ASCII GS B n Hex 1D 42 n Decimal 29 66 n Range 0 n 255 Description Turns on or off white black reverse printing ...

Page 40: ...e 0 nL 255 0 nH 255 Description Sets the left margin using nL and nH The left margin is set to nL nH 256 horizontal motion unit inches Printable area Left margin Printing area width Details This command is effective only processed at the beginning of the line in standard mode If this command is input in page mode the printer performs only internal flag operations This command does not affect print...

Page 41: ... character orientation When the print starting position is set to the upper left or lower right of the printing area using ESC T data is buffered in the direction perpendicular to the paper feed direction Commands using x ESC SP ESC ESC W ESC FS S Commands using y ESC 3 ESC J ESC W GS GS GS V When the print starting position is set to the upper right or lower left of the printing area using ESC T ...

Page 42: ... nH Hex 1D 57 nL nH Decimal 29 87 nL nH Range 0 nL 255 0 nH 255 Description Sets the printing area width to the area specified by nL and nH The printing area width is set to nL nH 256 horizontal motion unit inches Details This command is effective only processed at the beginning of the line In page mode the printer performs only internal flag operations This command does not affect printing in pag...

Page 43: ... bit image GS r 0 Double width mode or Quadruple mode 2 dots Normal mode or Double height mode 1 dot Default nL 0 nH 2 For 58mm paper width model nL 104 nH 1 Reference GS L GS P GS nL nH Name Set relative vertical print position in page mode Format ASCII GS nL nH Hex 1D 5C nL nH Decimal 29 92 nL nH Range 0 nL 255 0 nH 255 Description Sets the relative vertical print starting position from the curr...

Page 44: ...e macro executes r times continuously at the interval specified by t When the LSB of m 1 After waiting for the period specified by t the PAPER OUT LED indicators blink and the printer waits for the FEED button to be pressed After the button is pressed the printer executes the macro once The printer repeats the operation r times Details The waiting time is t 100 ms for every macro execution If this...

Page 45: ... printer is turned on The following four status bytes are transmitted without confirming whether the host is ready to receive data The four status bytes must be consecutive except for the XOFF code Since this command is executed after the data is processed in the receive buffer there may be a time lag between data reception and status transmission When the printer is disabled by ESC Select periphe...

Page 46: ...l 29 107 m n d1 dn Range 0 m 6 k and d depends on the bar code system used 65 m 73 n and d depends on the bar code system used Description Selects a bar code system and prints the bar code m selects a bar code system as follows m Bar Code System Number of Characters Remarks 0 UPC A 11 k 12 48 d 57 1 UPC E 11 k 12 48 d 57 2 JAN13 EAN13 12 k 13 48 d 57 3 JAN8 EAN8 7 k 8 48 d 57 4 CODE39 1 k 255 45 d...

Page 47: ... as bar code data If n is outside of the specified range the printer stops command processing and processes the following data as normal data Details in standard mode If d is outside of the specified range the printer only feeds paper and processes the following data as normal data If the horizontal size exceeds printing area the printer only feeds the paper This command feeds as much paper as is ...

Page 48: ...e data DSR signal is SPACE If the host computer is not ready to receive data DSR signal is MARK the printer waits until the host is ready When XON XOFF control is selected the printer transmits only 1 byte without confirming the condition of the DSR signal This command is executed when the data in the receive buffer is developed Therefore there may be a time lag between receiving this command and ...

Page 49: ... the bit image yL yH select the number of data bits yL yH 256 in the vertical direction for the bit image Details In standard mode this command is effective only when there is no data in the print buffer This command has no effect in all print modes character size emphasized double strike upside down underline white black reverse printing etc for raster bit image If the printing area width set by ...

Page 50: ...dth as follows Binary level bar codes n Module Width mm for Multi level Bar Code Thin element width mm Thick element width mm 2 0 25 0 25 0 625 3 0 375 0 375 1 0 4 0 5 0 5 1 25 5 0 625 0 625 1 625 6 0 75 0 75 1 875 Multi level bar codes are as follows UPC A UPC E JAN13 EAN13 JAN8 EAN8 CODE93 CODE128 Binary level bar codes are as follows CODE39 ITF CODABAR Default n 3 Reference GS k FS n Name Set p...

Page 51: ...and the setting of the last received command is effective Default n 0 Reference FS FS W GS FS Name Select Kanji character mode Format ASCII FS Hex 1C 26 Decimal 28 38 Description Selects Kanji character mode Reference FS FS C FS n Name Turn underline mode on off for Kanji characters Format ASCII FS n Hex 1C 2D n Decimal 28 45 n Range 0 n 2 48 n 50 Description Turns underline mode for Kanji charact...

Page 52: ...s for the defined characters The range of values for c1 and c2 differ depending on the character code system used Model type c1 c2 Japanese Kanji supporting model JIS code system c1 77H 21H c2 7EH Japanese Kanji supporting model SHIFT JIS code system c1 ECH 40H c2 7EH 80H c2 9EH Chinese Kanji supporting model c1 FEH A1H c2 FEH Taiwanese Kanji supporting model c1 FEH A1H c2 FEH 0 d 255 k 72 Descrip...

Page 53: ... 0 n 2 255 Description Sets left and right side Kanji character spacing n1 and n2 respectively When the printer model used supports GS P the left side character spacing is n1 horizontal or vertical motion units and the right side character spacing is n2 horizontal or vertical motion units Details When double width mode is set the left and right side character spacing is ...

Page 54: ... Default n1 0 n2 0 Reference GS P FS W n Name Turn quadruple size mode on off for Kanji characters Format ASCII FS W n Hex 1C 57 n Decimal 28 87 n Range 0 n 255 Description Turns quadruple size mode on or off for Kanji characters When the LSB of n is 0 quadruple size mode for Kanji characters is turned off When the LSB of n is 1 quadruple size mode for Kanji characters is turned on Details Only th...

Page 55: ...ecimal 27 67 m t n Range 1 m 20 1 t 20 0 n 3 Description Beeper and alarm functions when receipt comes m 1 m 20 the functions times of beeper and alarm t 1 t 20 the beeper and alarm lasting time which is tx50 ms When n 0 beeper and alarm are disabled When n 1 beeper is enabled When n 2 alarm is enabled When n 3 beeper and alarm are enabled ...

Reviews: