background image

 

   

 

33

 

Enabling/disabling the black mark function/ ESC~E 

 
[ASCII]  

ESC 

[Decimal] 

27 126 69 n 

[Hexadecimal] 1B  7E  45  n 
 
[Parameter] 

n = 0: Mark function disabled (the setting saved) 

 

 

 

 

1: Mark function enabled (the setting saved) 

 

 

 

3: Mark function disabled (temporary setting) 

 

 

 

4: Mark function enabled (temporary setting) 

 
[Description] 

 Selects the enabling/disabling of the black mark function. 

 By the setting memory with parameter ‘n’ = 1 or 0, the enabled/disabled state of the mark function setting is saved in the 

flash memory storage area in the printer. After data are written into the flash memory, the printer power is automatically 
turned OFF. The set values are reflected at the next power ON. 

 By the temporary setting with parameter ‘n’ = 4 or 3, the mark function setting is enabled/disabled when 

ESC~E command is received. This content remains effective until it is newly switched to enabled/disabled 
by setting the parameter ‘n’ to 4 or 3, or the printer is powered OFF.   

 
 

Summary of Contents for PD 22 PD-22 PD-22

Page 1: ...Command Reference MODEL PD 22 Revison 1 00 2007 12 5 CitizenSystemsJapanCo Ltd 1...

Page 2: ...2 Revision list REV Date Details 1 0 10 12 2004 Original version tentative version 1 1 5 24 2005 ESC SI Low baud rate support for serial interface ESC SI Added the Image generation speed setting...

Page 3: ...g the character ESC 32 Enabling disabling the black mark function ESC E 33 Setting the marker detection level ESC e 34 Printer operating status report command 2 ESC Y 36 Starting registering the print...

Page 4: ...ESC SO 72 Cancelling double width expansion with automatic cancel DC4 72 Specifying cancelling double width large characters ESC W 73 Specifying cancelling double height large characters ESC w 73 Spec...

Page 5: ...5 Deleting one character DEL 95 Appendix b Black Mark Specification 96...

Page 6: ...6 Citizen original command...

Page 7: ...the mark width ESC e After data are stored in the flash memory the printer power is automatically turned OFF The set values become effective when the power is turned ON again Default value for form fe...

Page 8: ...t setting is the time set as low power time in the internal setting of the printer The set values are stored and kept in the flash memory Do not use this command together with other print commands bec...

Page 9: ...Sends the BMP file data after sending n1 n2 Several BMPfile data can be written at a time into the flash memory by repeating the parameter sequence 1 BMPfile data are assigned with a number according...

Page 10: ...binary only Description Prints out BMP file data registered in the flash memory Specify the number of the BMPdata to be printed in the parameter n When an unregistered number is specified the command...

Page 11: ...nted vertically with the paper feed direction pointing upwards A Feed command does not actually feed a paper but moves the printing position horizontally Actual printing starts when page feed FF ESC F...

Page 12: ...led and the printer is switched to line printing mode Printing density cannot be set by line in page printing mode Sets the printing density for the entire page In page mode decoded data and the page...

Page 13: ...etting the Line Printing Mode Default is line printing mode The following shows an example of program BASIC for switching from page printing mode to line printing mode LPRINT CHR H1B L CHR 1 CHR 0 CHR...

Page 14: ...on Executes page feed while in page printing mode The difference with FF page feed in ESC P Emulation command is that in ESC FF form feed will not be executed when print data is unavailable in the pri...

Page 15: ...s of carbon paper Printing paper can be set by line unit Setting besides the parameter range will be ignored The initial value regular paper 2 sheets of carbon paper at power on default represents the...

Page 16: ...31h 1 n 32h 0 Normal n 33h 1 n 34h 2 dark Settings other than the above will be ignored Can be set by line unit except in page printing mode The initial value at power on default is the value that is...

Page 17: ...ation halt In such case the printer may not be able to receive this command from the host and the return function may not work properly When using this command do not send the command and print data a...

Page 18: ...ge data prints the desired bit map data Format c d1 d2 d3 d4 dn c indicates data length and that the data in the following format is string data Specify an image data with subsequent dn Data length ca...

Page 19: ...mage The number of repetition can be specified from 1 to 127 d is 1 byte bitmap data and specifies a bitmap image in the raster direction dn 7 6 5 4 3 2 1 0 Left Right An example is shown below Data 8...

Page 20: ...PRINT CHR 27 G LPRINT CHR H80 W CHR HFF CHR 0 FOR L 1 TO 100 LPRINT CHR 1 CHR H80 LPRINT CHR W 2 H80 CHR 0 LPRINT CHR 1 CHR H1 LPRINT CHR 0 EOL NEXT L LPRINT CHR H80 W CHR HFF CHR 0 LPRINT CHR H80 EOD...

Page 21: ...vided by 256 Specifies the x1 x2X coordinates Specifies in x1 the remainder of X coordinate value divided by 256 Specifies in x2 the quotient of X coordinate value divided by 256 Description Specifies...

Page 22: ...area of barcode The initial value is n 0 Changing the font size will not change the size of barcode character Returns to default value with initializing command Setting Cancelling the turning of barc...

Page 23: ...direction The initial value is n A2h 162 dots Returns to default value with initializing command Setting the width of barcode GS w ASCII GS w n Decimal 29 119 n Hexadecimal 1D 77 n Parameter n 2 3 4...

Page 24: ...8h 30h D 39h 4 CODE39 1 s 30h D 39h 41h D 5Ah 20h 24h 25h 2Bh 2Dh 2Eh 2Fh 5 ITF 1 s even number 30h D 39h 6 CODEBAR 1 s 30h D 39h 41h D 44h 24h 2Bh 2Dh 2Eh 2Fh 3Ah This command is terminated by a NUL...

Page 25: ...ignored when data exist in the printer buffer If the width of a barcode is beyond the printing area of the line the barcode will not be printed and only paper feed will be executed Regardless of the...

Page 26: ...ODE B and CODE C As an example a case for printing 10 digit data in CODE 128 is shown When CODE A is specified and the barcode data is 1234567890 to send data to the printer 1D 6B 49 GS k n 0C s 7B 41...

Page 27: ...2 Phase lock mode In 1 and 2 step feed modes data are printed while the motor is in motion The printing speed increases in order of phase lock 1 step feed 2 step feed In phase lock mode data are prin...

Page 28: ...eter None Description Turns OFF the power of the printer When already edited but not printed image data exist the data are printed and then the power is turned OFF Caution After turning the power OFF...

Page 29: ...4 PC865 NORWAY 5 SCANDINAVIA 6 YUASCII 7 PC852 LATIN 2 8 PC855 CYRILLIC 9 PC866 RUSSIAN 10 HUNGARIAN 11 KAMENICKY 12 TURKEY 13 PC861 ICELANDIC 14 WELSH 15 MAZOVIA 16 UKRAINIAN 40 NEW HEBREW 41 OLD HE...

Page 30: ...ecting Windows character ESC s ASCII ESC s n Decimal 27 7E 115 n Hexadecimal 1B 7E 73 n Parameter 0 n 255 Description Selects the Windows 3 1 character set n 0 US ANSI 1 CYRILLIC ANSI 2 EASTERN EUROPE...

Page 31: ...r of data specified in n1 n2 will be processed as character code and not as control code n1 n2 Indicates the number of data specified as character Assign the remainder of the number of data divided by...

Page 32: ...32 Printing the character ESC ASCII ESC Decimal 27 7E 94 Hexadecimal 1B 7E 5E Description 1 byte data following this command is processed as character data...

Page 33: ...e setting memory with parameter n 1 or 0 the enabled disabled state of the mark function setting is saved in the flash memory storage area in the printer After data are written into the flash memory t...

Page 34: ...ut Upward sensor detection level Marker center position Marker width Paper out reference value Downward sensor detection level m Setting value 1 to 255 m V 255 4 75 V Sensor detection level V Default...

Page 35: ...he setting becomes effective when the power is turned ON again Setting check Settings can be checked by specifying n 255 ESC e 255 0 Prints out the setting 1 Returns the setting Return result Hexadeci...

Page 36: ...lly printed on a paper Completion of printing indicates that any unprinted data does not exist and data are not being printed on a paper When using this command do not send the command and printing da...

Page 37: ...roup 1 n1 n2 d1 d2 dn Command group 2 00 Number of data 0 command group Command groups are assigned with a number in sending order from 0 before registered Up to No 255 can be registered total number...

Page 38: ...ecimal 27 126 67 76 n Hexadecimal 1B 7E 43 4C n Parameter 0 n 255 Description Calls out a printer command group registered in the flash memory n specifies the number of the command group to be called...

Page 39: ...46 Description Reads the factory setting of the printer s internal setting The command is used in conjunction with Flash memory writing command ESC SS ESC SF Reads the factory setting ESC SS Writes t...

Page 40: ...default setting values are set when the user changes the internal setting of the printer and settings are stored in the internal setting user area of the flash memory This command is used in conjunct...

Page 41: ...this command together with other print commands because it writes data into the flash memory After data are stored in the flash memory the printer power is automatically turned OFF The set values beco...

Page 42: ...erial interface data length 2 Sets the serial interface stop bit length 3 Sets the serial interface parity bit 4 Sets the serial interface flow control 5 Sets the printing density 6 Sets the type of p...

Page 43: ...he printing density n 5 Sets the default value of printing density m 0 Density 0 m 1 Density 1 m 2 Density 2 m 3 Density 1 m 4 Density 2 Sets the type of printing paper n 6 Sets the default setting fo...

Page 44: ...r pitch m 0 10 cpi or equivalent 1 12 CPI equivalent 2 15 CPI equivalent 3 Proportional Setting the auto power OFF time n 13 Sets the auto power OFF time Command content identical to ESC O m 0 auto po...

Page 45: ...e 4 Script Selecting the Code page n 17 Selects the default setting of code page m 0 PC437 U S A 1 PC850 MULTILINGUAL 2 PC860 PORTUGAL 3 PC863 FRENCH CANADA 4 PC865 NORWAY 5 SCANDINAVIA 6 YUASCII 7 PC...

Page 46: ...ut the printer is automatically turned OFF However this internal setting value print is printed only when the emulation is set to ESC P so use this print after setting the emulation to ESC Pmode by ES...

Page 47: ...47 ESC P Emulation Command...

Page 48: ...diately after this code to the head of the same line left margin Caution With the use of CR print data in the same line can be overlapped Since printing is executed by LF code in PD Series CR operatio...

Page 49: ...CR code and LF code are entered in this order data are printed by CR code and then line feed is executed by LF code Cancels the double width expansion with automatic cancel SO ESC SO CautionWhen data...

Page 50: ...the next page according to the page length set in advance The beginning of page is set to the print head position when the ESC code is input or the page length is set at the power activation The head...

Page 51: ...this command It does not affect the line feed rate setting After the execution of the command printing end position becomes the next printing start position It does not return to the left margin As a...

Page 52: ...length by inch unit ESC C NUL ASCII ESC C NUL n Decimal 27 67 0 n Hexadecimal 1B 43 00 n Parameter 1 n 15 Description Paper position at the time of execution of the command becomes the head of line P...

Page 53: ...range Once this command is set even when the line feed rate is changed the skip rate does not change Perforated line skip is canceled when page length is newly set Cancelling perforated line skip ESC...

Page 54: ...I 15CPI reduced printing or double wide enlarged printing is specified data are processed in units of the character width specified Even when the pitch between the command position and the left margin...

Page 55: ...es the value of character to character space rate When 10CPI 12CPI 15CPI reduced printing or double wide enlarged printing is specified data are processed in units of the character width specified For...

Page 56: ...cription Sets the line feed rate to EPSON 1 8 inch Approx 0 32cm 22 203inch Approx 0 27cm Setting the 1 6 inch line feed rate ESC 2 ASCII ESC 2 Decimal 27 50 Hexadecimal 1B 32 Description Initial powe...

Page 57: ...dot unit Setting the n 180 inch line feed rate ESC 3 ASCII ESC 3 n Decimal 27 51 n Hexadecimal 18 33 n Parameter 0 n 255 Description Sets the line feed rate to n 203 Sets the line feed rate to 1 dot...

Page 58: ...character to character space rate When 10CPI 12CPI 15CPI reduced printing or double wide enlarged printing is specified data are processed in units of the character width specified NULcode indicates...

Page 59: ...code is set in an unspecified area when it is set beyond the last tab position in a line the input will be ignored Immediately after power ON horizontal tab positions of a size of 10CPI are set every...

Page 60: ...he tab position within the roulette skip bottom margin area are not available The disabled tab position is enabled when the tab position is set within the print area by resetting the page length and r...

Page 61: ...s from the left margin n1 and n2 indicate the number of dots from the left margin Number of dots n1 256 n2 The number of dots is calculated on a 2 203 inch basis And the maximum value of dot number th...

Page 62: ...ving with two s complement Number of dots n1 256 n2 1440 n1 256 n2 1440 The number of dots and the values of n1 and n2 correspond as follows The values of n1 and n2 in the table are in hexadecimal n1...

Page 63: ...y after power ON no vertical tab is set in any channel Specify tab positions in ascending order of the line When a value smaller than previous m is specified the setting is completed at that point The...

Page 64: ...sition leftward for a character in the current character width When no print data exists before BS code in the same line or when previous data is a bitmap image HT code or absolute relative position s...

Page 65: ...de When n 0 Italic code is selected default When n 1 specified code page is selected When n 2 the user definition download code is selected When n 3 specified code page is selected With the use of ESC...

Page 66: ...he international character set ESC R ASCII ESC R n Decimal 27 82 n Hexadecimal 1B 52 n Parameter 0 n 13 64 Description Selects the character set suitable for each country Default is n 0 U S A Factory...

Page 67: ...n 0 1 or 0 1 Description Specifies Cancels the proportional font Selects the proportional font when n 1 or 1 Cancels the proportional font when n 0 or 0 The command has priority over other specified c...

Page 68: ...equivalent to 12CPI ESC M ASCII ESC M Decimal 27 77 Hexadecimal 1B 4D Description Specifies 12CPI equivalent characters 15 203 dots for printing after this code To cancel this code specify another ch...

Page 69: ...ng on upper half of normal characters when n 0 or 0 Specifies subscript printing on the lower half of normal characters when n 1 or 1 Character codes can be set within the following range 32 to 126 20...

Page 70: ...onal character cannot be italicized For some characters the left or right edge of characters may be missed at either or both ends of the paper Extended graphic codes B0h to DFh F4h and F5h cannot be p...

Page 71: ...th is reduced to approximately 60 when printed This code cannot be combined with 15CPI specification Specifying reduced printing ESC SI ASCII ESC SI Decimal 27 15 Hexadecimal 1B 0F Description It exec...

Page 72: ...t can also be cancelled with ESC W ESC codes Specifying double width expansion with automatic cancel ESC SO ASCII ESC SO Decimal 27 14 Hexadecimal 1B 0E Description It executes the same command as SO...

Page 73: ...r 0 The double width large characters specified by this code cannot be cancelled with DC4 code or line feed The double width large characters specified by SO ESC SO can be cancelled with ESC W 0 Speci...

Page 74: ...imal 27 69 Hexadecimal 1B 45 Description Prints out print data in emphasized characters Prints out data in slightly wider characters Cancelling emphasis printing ESC F ASCII ESC F Decimal 27 70 Hexade...

Page 75: ...SC G ASCII ESC G Decimal 27 71 Hexadecimal 1B 47 Description Specifies the double strike printing of a data Cancelling double strike printing ESC H ASCII ESC H Decimal 27 72 Hexadecimal 1B 48 Descript...

Page 76: ...tion Specify cancels an underline Specifies underline at time of n 1 1 Cancels underline at time of n 0 0 Underlines are not drawn on the following areas Moving area by HorizontalTab HT orAbsolute Pos...

Page 77: ...ancel Cancel 10CPI Combination of printing mode With ESC code a combination of several printing modes can be specified at one time A combination with other codes such as SO and SI is also available bu...

Page 78: ...cting the font style ESC k ASCII ESC k n Decimal 27 107 n Hexadecimal 1B 6B n Parameter n 0 1 2 3 4 or 0 1 2 3 4 Description Selects the font style n 0 Roman n 1 Sanserif n 2 Courier n 3 Prestige n 4...

Page 79: ...1 2 3 Description Selects the character style When n 1 outline characters are selected When n 2 shadowed characters are selected When n 3 shadowed outline characters are selected When n 0 it cancels...

Page 80: ...acing of characters to n basic calculation unit inches Spacing of characters will be indicated as follows Number of dots of each character Space secured by ESC SP Left space of each character Right sp...

Page 81: ...ght end alignment Even alignment Default is n 0 Position alignment is executed between right and left margins when CR LF or FF code is entered or buffer full printing is executed Specifies position al...

Page 82: ...d characters set When n 1 31h it specifies the download characters set However if no character is defined for download character set the specification will be ignored When n 0 or 30h the download char...

Page 83: ...character set Specify a character attribute high quality character proportional character 15CPI super subscript character to be copied before entering this code Defined characters are printed in this...

Page 84: ...er specify n m a0 a1 and a2 specify character width MSB p1 LSB MSB p4 LSB MSB pk 2 LSB MSB p2 LSB MSB p5 LSB MSB pk 1 LSB MSB p1 LSB MSB p3 LSB MSB pk 1 LSB MSB p3 LSB MSB p6 LSB MSB pk LSB MSB p2 LSB...

Page 85: ...85 To define several download characters send a0 pk the number of times equal to the number of characters to be defined m n 1...

Page 86: ...ided by 256 The bit image of 48 bit is not supported The maximum number of dots in horizontal direction is as follows Dot density in horizontal direction m decimal EPSON PD22 Maximum value for n1 256...

Page 87: ...Correspondence between data and dots 8 dot bit image 23 27 26 25 24 22 21 20 24 dot bit image 23 22 21 20 27 26 25 24 23 22 21 20 27 26 25 24 23 22 21 20 26 25 24 2 7 87...

Page 88: ...image is to be printed r1 Remainder of the number of times divided by 256 r2 Quotient of the number of times divided by 256 n1 and n2 indicate the number of dots in horizontal direction of the bit im...

Page 89: ...C K is specified the printer prints out data in the following resolution Vertical dot 3 203 in Horizontal dot 2 203 in The maximum number of dot positions is 192 8 dot double density bit image ESC L A...

Page 90: ...h The maximum number of dot positions is 384 However horizontally adjacent dots are omitted in printing 8 dot quadruple density bit image ESC Z ASCII ESC Z n1 n2 data Decimal 27 90 n1 n2 data Hexadeci...

Page 91: ...ESC K ESC L ESCY and ESC Z into the mode of ESC Specifies the value of m in the same manner as parameter m to be specified in ESC modes c indicates the type of bit image ESC K ESC L ESCY ESC Z to be...

Page 92: ...inter to the same one as power ON setting Data in the print buffer will be cleared Even if this command is received the mode is not shifted to emulation mode It is also possible to fix the mode to EPS...

Page 93: ...al 27 54 Hexadecimal 1B 36 Description Eliminates a function that works as a control code from upper 32 codes in the character code table so that it can be used as a character code Relevant character...

Page 94: ...scription Adds a function as a control code to upper 32 codes in the character code table so that it cannot be used as a character code Relevant character codes are from 128 to 159 80h to 9Fh The cont...

Page 95: ...red before CAN code in a line Deleting one character DEL ASCII DEL Decimal 127 Hexadecimal 7F Description Deletes one character data having been last entered in a line In the following cases this code...

Page 96: ...ings Detects the marker position and feeds paper to the head of a page under the following conditions During auto feed After receiving ESC FF command during printing When FEED key is pressed at a dete...

Page 97: ...herefore in such a case if the marker is right below the sensor the printer will identify that no paper is set except detection by pressing of FEED switch at a marker detection error When a mark paper...

Page 98: ...93 ESC 94 ESC 59 ESC 78 ESC 0 58 ESC 2 58 ESC 3 59 ESC 4 72 ESC 5 72 ESC 6 95 ESC 7 96 ESC a 83 ESC A 59 ESC b 65 ESC B 62 ESC C 54 ESC C NUL 54 ESC D 60 ESC E 76 ESC F 76 ESC FF 15 ESC g 70 ESC G 77...

Page 99: ...ESC Z 92 ESC 79 ESC 85 ESC 32 ESC 33 ESC b 10 11 ESC B 7 ESC CL 39 ESC CS 38 ESC e 35 ESC E 34 ESC G 19 ESC L 12 ESC O 9 ESC p 29 ESC P 30 ESC s 31 ESC SF 40 ESC SI 43 ESC SL 41 ESC SS 42 ESC U 28 ESC...

Page 100: ...100...

Reviews: