background image

 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Command Reference 

LINE THERMAL PRINTER 

MODEL 

BD2-2220 

 

Rev. 0.00 Issued on 2006/8/4 

 
 
 
 
 
 
 
 
 
 
 
 

 

Summary of Contents for BD2-2220

Page 1: ...Command Reference LINE THERMAL PRINTER MODEL BD2 2220 Rev 0 00 Issued on 2006 8 4...

Page 2: ...REVISION Rev No Date Comment 0 00 2006 08 04 Newly issued...

Page 3: ...PAGE MODE 15 ESC SP n Setting the right spacing of the character 16 ESC n Collectively specifying the printing mode 17 ESC n Specifying canceling download character set 19 ESC s n m a p s x a m n 1 De...

Page 4: ...etting line feed rate of minimum pitch 45 2 2 5 Bit Image Commands 46 ESC m n1 n2 d k Specifying the bit image mode 46 GS n1 n2 d n1 x n2 x 8 Defining the download bit image 48 GS m Printing the downl...

Page 5: ...ion 9 Defining Data in the Raster Format to the Character Code Page of Work Area 94 fn 10 Function 10 Erasing Data of Character Code Page Data in Work Area 95 fn 11 Function 11 Setting Communication C...

Page 6: ...Codepage 00H to 7FH PC864 Arabic 124 3 1 11 Codepage 00H to 7FH WPC1252 125 3 1 12 Codepage 00H to 7FH Thai Code 18 126 3 2 International Character Code Table 127 4 APPENDIX 128 4 1 Explanation on PAG...

Page 7: ...ethods are available for sending Control Commands from the host computer to the printer Here a method of sending by BASIC programming is explained Example 1 Let s print a character string CITIZEN in e...

Page 8: ...acter S P O ESC Collectively specifying the printing mode S P ESC Specifying canceling download character set S P ESC Defining the download characters S P ESC Specifying canceling underline S P ESC De...

Page 9: ...1 6 inch line feed rate S P ESC 3 Setting line feed rate of minimum pitch S P O Bit Image Commands Commands Function Mode GS P ESC Specifying the bit image mode S P GS Defining the download bit image...

Page 10: ...ng the download NV bit images S FS q Defining the download NV bit image S Printer Function Setting Commands Commands Function Mode GS P GS E Printer function setting command S GS M Customizing the pri...

Page 11: ...to use the values within the defined domain Outline Describes the functions of the command Caution Describes important points and cautionary notes as required Default Initial values for the command i...

Page 12: ...based on the line feed amount having been set Caution After this command is executed the beginning of the line is taken as the start position for the next point See Also ESC 2 ESC 3 Sample Program LPR...

Page 13: ...and is ignored 2 When memory switch 1 5 is ON The same operation as LF is executed See Also LF Sample Program LPRINT AAA CHR HD LPRINT BBB CHR HD LPRINT CHR HD LPRINT CCC CHR HD Print Results In case...

Page 14: ...rint area and then returns to STANDARD MODE Caution All mapped data is erased after printout The print area set up by ESC W is initialized After this command is executed the beginning of the line is t...

Page 15: ...RD and PAGE MODES This command does not affect the line feed width defined by ESC 2 or ESC 3 The basic calculation pitch is set by GS P Fractions resulting from calculation are corrected with the mini...

Page 16: ...in Caution After this command is executed the beginning of the line is taken as the start position for the next print If n x line feed width exceeds approximately 1016 mm this command feeds paper by a...

Page 17: ...the currently effective print area in PAGE MODE Caution This command is only effective when PAGE MODE is selected If the previously established print area overlaps the currently effective print area...

Page 18: ...the remainder is omitted In STANDARD MODE this command uses the horizontal basic calculation pitch x In PAGE MODE the basic calculation pitch used by this command depends on the start point 1 If the s...

Page 19: ...ab HT Neither is it attached to 90 right turned characters The underline width is as specified by the ESC command The default setting is 1 dot width Setting by this command is invalid for Kanji except...

Page 20: ...H1B CHR H08 H LPRINT CHR H1B CHR H10 H LPRINT CHR H1B CHR H20 H LPRINT CHR H1B CHR H80 H LPRINT CHR H1B CHR HB9 H LPRINT CHR HA Print Results H H H H H H H Font B Emphasis Quadruple Underline Font A U...

Page 21: ...T CHR H1B CHR 0 DATA HFF H80 H00 LPRINT A CHR HA DATA H80 H80 H00 LPRINT CHR H1B CHR 1 DATA H80 H80 H00 LPRINT A CHR HA DATA H80 H80 H00 END DATA HFF HFF HFF SETCHR DATA HFF HFF HFF LPRINT CHR H1B DAT...

Page 22: ...ntal direction p is the data to be defined which indicate a pattern equal to a dots in horizontal direction from the left end The rest of the pattern on the right side is filled with space The number...

Page 23: ...y horizontal tab HT command An underline is not attached to 90 right turned characters and white on black character Underline can also be specified canceled by ESC but the setting of command last proc...

Page 24: ...tion The character n indicates the character code used to delete the defined pattern After the deletion characters are printed in the same pattern as the internal characters This command deletes the c...

Page 25: ...n0 Function 0 Canceling emphasis printing 1 Specifying emphasis printing Caution Emphasis printing can also be specified canceled by ESC but the setting of command last processed is valid Valid for al...

Page 26: ...Canceling double strike printing 1 Specifying double strike printing Caution With this printer double strike printing and emphasis printing provide completely the same results Valid for all character...

Page 27: ...R is other than n 8 katakana codepage PC437 is printed In case ESC R is n 8 katakana codepage katakana is printed Default n 0 See Also ESC ESC R n Function Selecting the international character set C...

Page 28: ...ng 90 right turned characters 1 49 Specifying 90 right turned characters Caution No underlines are attached to 90 right turned characters This command does not affect PAGE MODE but setting is maintain...

Page 29: ...page PC860 4 Codepage PC863 5 Codepage PC865 6 18 Codepage PC852 7 17 Codepage PC866 8 Codepage PC857 9 16 WPC1252 19 Codepage PC858 26 Thai code 18 40 Codepage PC864 255 Space Page For user setting D...

Page 30: ...ine by 180 and print the data n0 Condition 0 Canceling inverted characters 1 Specifying inverted characters Caution This command is valid only when it is specified at the beginning of a line This comm...

Page 31: ...gnification is out of the defined range In STANDARD MODE the vertical direction is defined as the paper feed direction and the horizontal direction is defined as the direction perpendicular to the pap...

Page 32: ...tion The black white inversion works on internal and downloaded characters The black white inversion works also on the right spacing of characters defined by ESC SP This command does not affect the bi...

Page 33: ...t bit n0 Control by the lowest bit n0 is shown as follows n0 Function 0 The smoothing is canceled 1 The smoothing is specified Caution Smoothing is effective to printer s internal characters download...

Page 34: ...bs are set every 8 characters at 9th 17th 25th with right space amount of a character set at 0 and horizontal enlargement rate of a character set at 1 See Also ESC D Sample Program LPRINT 012345678901...

Page 35: ...command uses the horizontal Paper feed direction basic calculation pitch x In PAGE MODE this command acts differently depending on the start point 1 If the start point specified by ESC T is top right...

Page 36: ...is limit is ignored n k which denotes a setting position is input in the increasing order and ends at 00 H ESC D NULL clears all the set tab positions Following clearing the horizontal tab command is...

Page 37: ...ging of the printer without affecting the printing in STANDARD MODE The character mapping position will be the start point of the print area specified by ESC W The basic calculation pitch x or y used...

Page 38: ...zontal start point horizontal length is greater than the horizontal printable area the horizontal printable area horizontal start point is taken as the horizontal length If the vertical start point ve...

Page 39: ...the left specify it as nL nH x 256 65536 N The basic calculation pitch is set by GS P Fractions resulting from calculation are corrected with the minimum pitch of the mechanism and the remainder is o...

Page 40: ...d alignment 1 49 Centering 2 50 Right end alignment Caution This command is valid only when it is inputted at the beginning of a line This command does not affect the PAGE MODE Executes justification...

Page 41: ...tal direction of character at the start position of data development is not shifted Start point used as the reference is set by ESC T The following operation occurs at the start point of ESC T 1 When...

Page 42: ...ted with the horizontal basic calculation pitch x set by GS P A fraction resulting from the calculation is corrected with the minimum pitch of the mechanism and the remainder is omitted When mapping c...

Page 43: ...except the left margin is set as the print area width The basic calculation pitches are defined by GS P Once defined the print area width is not changed if the basic calculation pitch is changed by GS...

Page 44: ...as a result of step 2 the right spacing is trimmed When mapping a bit image or downloaded bit image if the print area is narrower than the minimum width of the bit image two dots for single density or...

Page 45: ...e A negative value is the complement of 65536 For example to move the position by N pitches up specify it as nL nH x 256 65536 N The specification of a relative position outside the specified print ar...

Page 46: ...DE Sample Program LPRINT AAAAA CHR HA LPRINT CHR H1B 3 CHR 0 LPRINT AAAAA CHR HA LPRINT CHR H1B 3 CHR 50 LPRINT AAAAA CHR HA LPRINT CHR H1B 2 LPRINT AAAAA CHR HA LPRINT AAAAA LPRINT CHR H1B J CHR 100...

Page 47: ...hanism and the remainder is omitted In STANDARD MODE this command uses the vertical paper feed direction basic calculation pitch y In PAGE MODE this command acts differently depending on the start poi...

Page 48: ...xcess of dot positions that can be printed on one line the excess data are discarded d is bit image data Bits to be printed are specified as 1 and those not as 0 The bit image modes specified by m are...

Page 49: ...HA RETURN LPRINT CHR H1B IMG2 LPRINT CHR 32 CHR 20 CHR 0 LPRINT CHR HFF GOSUB IMG2 LPRINT CHR HFF LPRINT CHR HA LPRINT CHR HFF LPRINT CHR H1B FOR I 1 TO 18 LPRINT CHR 33 CHR 20 CHR 0 LPRINT CHR H80 GO...

Page 50: ...tion and n2 x8 in vertical direction d indicates bit image data Once defined the download bit image remains effective until it is redefined ESC ESC GS A or FS q is executed or power is turned OFF Caut...

Page 51: ...B IMG LPRINT CHR H1D CHR 0 LPRINT CHR H1D CHR 1 LPRINT CHR H1D CHR 2 LPRINT CHR H1D CHR 3 END IMG n1 10 n2 5 LPRINT CHR H1D LPRINT CHR n1 CHR n2 FOR J 1 TO n1 8 FOR I 1 TO n2 LPRINT CHR J NEXT I NEXT...

Page 52: ...Direction Dot Density in Horizontal Direction 0 48 NORMAL MODE 203 DPI 203 DPI 1 49 DOUBLE WIDTH MODE 203 DPI 101 DPI 2 50 DOUBLE HEIGHT MODE 101 DPI 203 DPI 3 51 QUADRUPLE SIZE MODE 101 DPI 101 DPI...

Page 53: ...ning back to white reversing etc does not affect the raster bit image If the print area specified by GS L and GS W is narrower than a minimum width the print area for that line only is extended to the...

Page 54: ...52 Example When xL xH x 256 64 xL xH x 256 8 dots 512 dots yL yH x 256 dots 7 6 5 4 3 2 1 0 MSB LSB 1 2 3 62 63 64 65 66 67 126 127 128 K 2 K 1 K...

Page 55: ...face specifications this command cannot be executed while the printer is in Busy state When memory SW1 3 is ON the printer does not enter Busy state in the offline state and error state If ASB Automat...

Page 56: ...d Bit Status Hex Decimal 0 Unused 00 0 1 Unused 02 2 Head down 00 0 2 Head up 04 4 Not in paper feed state triggered by LF SW signal 00 0 3 In paper feed state triggered by LF SW signal 08 8 4 Unused...

Page 57: ...le to recover from any error due to a circuit problem e g broken wire Bit 6 If a head overheat error is detected the printing is stopped until the head temperature falls At this time bit 6 1 4 Continu...

Page 58: ...tion status items disabled for ASB may also have changed The ASB function is disabled if all status items are disabled If the ASB function is enabled by default the host receives the status the first...

Page 59: ...0 Undefined 1 Undefined 2 Unused 00 0 Auto cutter error not occurred 00 0 3 Auto cutter error occurred 08 8 4 Unused 00 0 Unrecoverable error not occurred 00 0 5 Unrecoverable error occurred 20 32 Au...

Page 60: ...information Bit Status Hex Decimal 0 Reserved 01 1 1 Reserved 02 2 2 Reserved 04 4 3 Reserved 08 8 4 Fixed 00 0 5 Reserved 00 0 6 Reserved 00 0 7 Fixed 00 0 Default When MSW 1 3 OFF n 0 When MSW 1 3 O...

Page 61: ...a delay between receiving the command and sending the status depending on the condition of the receive buffer If ASB Automatic Status Back is enabled by GS a the host must discriminate between the st...

Page 62: ...lects by which Paper Sensor a Paper end signal should be output Each bit for n has the following meaning Value Bit Position 0 1 0 Paper Near end Disabled Enabled 1 Paper Near end Disabled Enabled 2 Pa...

Page 63: ...which helps to stop printing when the paper supply almost runs out Each bit for n has the following meaning Value Bit Position 0 1 0 Paper Near end Disabled Enabled 1 Paper Near end Disabled Enabled...

Page 64: ...signal valid 1 LF SW signal invalid Caution When the LF SW signal is disabled with this command the paper cannot be fed by operating the LF SW signal While switch operation is waited at the execution...

Page 65: ...n the macro definition is stopped and the content of definition is cleared Even with ESC Initialization of the printer having been executed defined content is not cleared Therefore it is possible to i...

Page 66: ...fied by n2 n3 1 Execution by FEED Switch After waiting for the time specified by n2 the ARARM LED flickers and the FEED switch is waiting to be pressed When it is pressed the macro is executed once Th...

Page 67: ...d at the beginning of a line Before cutting paper feed the paper more than the cutting position of paper from the print position Without this paper feeding the character just after printing remains be...

Page 68: ...beginning of a line Before cutting paper feed the paper more than the cutting position of paper from the print position Without this paper feeding the character just after printing remains before the...

Page 69: ...STANDARD MODE this command only works when it is entered at the beginning of a line Control to make the length of cut paper less than 10 mm is not executed For 1 Executes cutting of paper For 2 If n...

Page 70: ...1 Both above and below the bar code The HRI characters refer to the bar code turned characters so that you can read them Caution The HRI characters are printed in the font selected with GS f Specify b...

Page 71: ...69 Print Results No HRI characters Printed above Printed below Printed above and below 1 2 1 2 1 2 1 2...

Page 72: ...9 x 24 2 50 Font C 8 x 16 The HRI characters refer to 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 S...

Page 73: ...ght of the bar code Code 1D H 68 H n Range 1 n 255 Outline Selecting bar code height n denotes the number of dots in the vertical direction Default n 162 See Also GS k GS w Sample Program Refer to Sam...

Page 74: ...11 k 12 48 d 57 1 UPC E 11 k 12 48 d 57 2 JAN13 EAN 12 k 13 48 d 57 3 JAN8 EAN 7 k 8 48 d 57 4 CODE39 1 k 48 d 57 65 d 90 32 36 37 43 45 46 47 5 ITF 1 k An even number 48 d 57 6 CODABAR 1 k 48 d 57 65...

Page 75: ...r code is not printed but only a paper feed is executed The amount of paper feed corresponds to the height of the bar code including the HRI characters if HRI character printing is specified irrespect...

Page 76: ...ll be printed as it is JAN 8 EAN This bar code consisting of numerals only has a fixed length of 8 columns a 7 column number entered from the host or application software plus a check digit 8th column...

Page 77: ...can be represented Code set B ASCII characters 20H 7FH can be represented Code set C Two digit numbers 00 99 can each be represented by one character In addition to the above characters special charac...

Page 78: ...y 123456 in code set C send the following data string GS k 73 10 7B H 42 H No 7B H 43 H 12 34 56 If the printer finds a string of bar code data that does not begin with a code set select character it...

Page 79: ...riable length bar code consisting of alphabetic characters and numerals The start stop code is automatically added ITF Even column variable length bar code consisting of numerals only CODABAR NW 7 Var...

Page 80: ...ult n 3 Sample Program LPRINT CHR H1D h CHR 30 LPRINT CHR H1D w CHR 2 GOSUB BC LPRINT CHR H1D h CHR 50 LPRINT CHR H1D w CHR 3 GOSUB BC LPRINT CHR H1D h CHR 80 LPRINT CHR H1D w CHR 4 GOSUB BC END BC LP...

Page 81: ...ffected When the printing area set by the functions GS L and GS W is not enough for one vertical line of the download NV bit image the line alone is dealt with as follows One vertical line of the bit...

Page 82: ...when PAGE MODE is selected This command becomes valid after the 7 bytes of FS q n xL xH yL yH are processed as normal values When data which exceeds the remaining capacity of the defined area is spec...

Page 83: ...efinition process will be stopped and the execution of this command will start NV bit images that are defined already are not initialized by using ESC command or by resetting the printer or turning th...

Page 84: ...ommunication condition of serial interface Note 12 Sends the communication condition of serial interface set 255 Sets all contents set in printer function setting mode to the state at the time of ship...

Page 85: ...ting Mode GS E pL pH fn d1 d2 fn 1 Code 1d H 28 H 45 H pL pH fn d1 d2 Range pL pH x256 3 pL 3 pH 0 fn 1 d1 73 I d2 78 N Outline Transfers to printer function setting mode and sends the report of mode...

Page 86: ...45 H pL pH fn d1 d2 d3 Range pL pH x256 4 pL 4 pH 0 fn 2 d1 79 O d2 85 U d3 84 T Outline Terminates printer function setting mode and executes resetting Clears input buffer and print buffer and restor...

Page 87: ...h 1 a 1 n b Set Value Function 48 Default Reports the power on 1 49 Does not report power on 48 Default Sets input buffer capacity to 4K bytes 2 49 Sets input buffer capacity to 45 bytes 48 Default Se...

Page 88: ...le height printing etc as a unit 6 49 Default Reserved 7 48 Default Reserved 8 48 Default Reserved Setting memory switch 3 a 3 n b Set Value Function 48 Default After clearing cutter error can be rest...

Page 89: ...n 4 Code 1d H 28 H 45 H pL pH fn a Range pL pH x256 2 fn 4 a 1 2 3 Outline Sends the content of memory switch set in a Hex No of Data Header 37H 1 ID 21H 1 Data 30H or 31H 8 NULL 00H 1 Sends the set v...

Page 90: ...a Outline Sets the customized value set in a to nL nH x256 a Function 5 Selects printing density 6 Selects printing speed 201 Sets ACK output position only parallel I F 202 Selects input buffer full B...

Page 91: ...ntrols input buffer full Busy with the value selected by nL nH x256 and controls Busy with output cancel timing remaining capacity When Input Buffer Capacity Small is Set When Input Buffer Capacity 4K...

Page 92: ...ustomized value No Sending Data a 1st Byte 2nd Byte 3rd Byte 5 53 5 6 54 6 201 50 2 48 0 49 1 202 50 2 48 0 50 2 a 5 When print density is specified Setting Status Sending Data Stored Value Print Dens...

Page 93: ...Data Stored Value ACK Output Position 1st Byte 2nd Byte 3rd Byte 4th Byte 5th Byte 1 ACK in Busy 49 1 2 ACK while Busy 50 2 3 ACK after Busy 51 3 a 202 Input buffer full Busy output cancel timing At...

Page 94: ...ration of customized value No d1 d2 Function 31 30 Loads the character code page data specified by a in storage area to work area 30 31 Saves the character code page data in work area to the storage a...

Page 95: ...font C y 3 At selection of other than font C 128 c1 c2 255 0 x 12 At selection of font A 0 x 9 At selection of font B 0 x 8 At selection of font C 0 d 255 k c2 c1 1 Outline Defines the data in column...

Page 96: ...font C 128 c1 c2 255 0 x 24 At selection of font A 0 x 24 At selection of font B 0 x 16 At selection of font C 0 d 255 k c2 c1 1 Outline Defines the data in raster format in units of character on the...

Page 97: ...ata in Work Area GS E pL pH fn c1 c2 fn 10 Code 1d H 28 H 45 H pL pH fn c1 c2 Range pL pH x256 3 fn 10 128 c1 c2 255 Outline Erases set to space data in units of character on the character code page i...

Page 98: ...d3 d4 d5 d6 2400 50 2 52 4 48 0 48 0 4800 52 4 56 8 48 0 48 0 9600 Default 57 9 54 6 48 0 48 0 19200 49 1 57 9 50 2 48 0 48 0 38400 51 3 56 8 52 4 48 0 48 0 a 2 Setting to specified parity d1 Parity S...

Page 99: ...ditions a 31H 1 34H 4 1 Separation number 1FH 1 Set value 3 0H 39H 1 6 NULL 00H 1 Set value a 1 At specification of baud rate Baud Rate d1 d2 d3 d4 d5 d6 2400 50 2 52 4 48 0 48 0 4800 52 4 56 8 48 0 4...

Page 100: ...55 a 3 5 7 11 255 Outline Restores various kinds of function set by printer function setting mode to the setting at the time of shipment initial value described in User s Manual a Function 3 Memory sw...

Page 101: ...pL pH fn m Function Selecting print control method Outline Executes the setting related to the print control specified by the value of fn Function No fn Function 49 Sets printing density 50 Sets print...

Page 102: ...lects density level 6 70 251 Selects density level 5 75 252 Selects density level 4 80 253 Selects density level 3 85 254 Selects density level 2 90 255 Selects density level 1 95 0 Selects standard d...

Page 103: ...rinting speed m Printing Speed 0 48 Selects print control mode at power on 1 49 Selects printing speed level 1 2 50 Selects printing speed level 2 3 51 Selects printing speed level 3 4 52 Selects prin...

Page 104: ...tialization to be valid or invalid Work area Area where data is initialized by power OFF of resetting initialize Operation is made in accordance with the data set in this area Storage area Area where...

Page 105: ...tion of this command the printer is in Busy state and stops receiving operation Therefore data transmission from the host is prohibited fn 2 50 Function 2 Copies the set value stored in storage area t...

Page 106: ...3 51 Code 1d H 28 H 4D H pL pH fn m Range pL pH x256 2 pL 2 pH 0 fn 3 51 m 0 1 48 49 Outline Determines the setting of storage area at initialization to the work area by the value of m m Function 0 4...

Page 107: ...ginning of the line where the error occurred 2 The printer clears the receive buffer and the print buffer and then recovers from the error Caution n 1 or n 2 shall be used after removing the error Whe...

Page 108: ...5H 37 1 byte NULL 00H 0 1 byte Enters the state of selecting STANDARD MODE Caution When receiving a code row coinciding with the code configuring this command the same operation as this command takes...

Page 109: ...eived data until it is selected by this command Value Bit Equipment 0 1 0 Printer Invalid Valid 1 Not defined 2 Not defined 3 Not defined 4 Not defined 5 Not defined 6 Not defined 7 Not defined Cautio...

Page 110: ...f DIP switches are not read again Data inside the internal input buffer is not cleared Macro definitions are not cleared NV bit image definitions are not cleared Data in the user NV memory is not clea...

Page 111: ...s for PAGE MODE and STANDARD MODE are changed to the settings for PAGE MODE use 1 Spacing setting ESC SP FS S 2 Line feed width setting ESC 2 ESC 3 The following commands are valid only in PAGE MODE 1...

Page 112: ...listed below which have separate settings for STANDARD MODE and PAGE MODE are changed to the settings for STANDARD MODE use 1 Spacing setting ESC SP FS S 2 Line feed width setting ESC 2 ESC 3 The foll...

Page 113: ...dump 2 50 Printer s status printing 3 51 Memory SW settings Caution This command is only valid when processed at the head of a line during the STANDARD MODE The command will be ignored in PAGE MODE D...

Page 114: ...equipped for 2 byte code support 00 0 0 Equipped for 2 byte code support 01 1 1 Fixed 00 0 2 Reserved 00 0 3 Reserved 00 0 4 Fixed 00 0 5 Reserved 00 0 6 Reserved 00 0 7 Fixed 00 0 Sends the specified...

Page 115: ...r DTR DSR control the printer sends the printer ID after verifying that the host is ready to receive Under XON XOFF control the printer sends the printer ID without checking whether or not the host is...

Page 116: ...P ESC ESC FS S GS L GS W 2 Commands using y ESC 3 ESC J In PAGE MODE the parameters used depend on the character orientation as follows 1 If the start point specified by ESC T is the top left or botto...

Page 117: ...USA Europe Standard 0 1 2 3 4 5 6 7 8 9 A B C D E F 0 NUL DLE 0 P p 1 XON 1 A Q a q 2 2 B R b r 3 XOF F 3 C S c s 4 EOT DC4 4 D T d t 5 ENQ 5 E U e u 6 6 F V f v a 7 7 G W g w o 8 CAN 8 H X h x 9 HT 9...

Page 118: ...3 4 5 6 7 8 9 A B C D E F 0 NUL DLE 0 P p SP 1 XON 1 A Q a q 2 2 B R b r 3 XOF F 3 C S c s 4 EOT DC4 4 D T d t 5 ENQ 5 E U e u 6 6 F V f v 7 7 G W g w 8 CAN 8 H X h x 9 HT 9 I Y i y A LF J Z j z B ESC...

Page 119: ...0 1 2 3 4 5 6 7 8 9 A B C D E F 0 NUL DLE 0 P p 1 XON 1 A Q a q 2 2 B R b r 3 XOF F 3 C S c s 4 EOT DC4 4 D T d t 5 ENQ 5 E U e u 6 6 F V f v a 7 7 G W g w o 8 CAN 8 H X h x 9 HT 9 I Y i y A LF J Z j...

Page 120: ...2 3 4 5 6 7 8 9 A B C D E F 0 NUL DLE 0 P p 1 XON 1 A Q a q 2 2 B R b r 3 XOF F 3 C S c s 4 EOT DC4 4 D T d t 5 ENQ 5 E U e u 6 6 F V f v a 7 7 G W g w o 8 CAN 8 H X h x 9 HT 9 I Y i y A LF J Z j z B...

Page 121: ...ch 0 1 2 3 4 5 6 7 8 9 A B C D E F 0 NUL DLE 0 P p 1 XON 1 A Q a q 2 2 B R b r 3 XOF F 3 C S c s 4 EOT DC4 4 D T d t 5 ENQ 5 E U e u 6 6 F V f v 7 7 G W g w 8 CAN 8 H X h x 9 HT 9 I Y i y A LF J Z j z...

Page 122: ...3 4 5 6 7 8 9 A B C D E F 0 NUL DLE 0 P p 1 XON 1 A Q a q 2 2 B R b r 3 XOF F 3 C S c s 4 EOT DC4 4 D T d t 5 ENQ 5 E U e u 6 6 F V f v a 7 7 G W g w o 8 CAN 8 H X h x 9 HT 9 I Y i y A LF J Z j z B E...

Page 123: ...0 1 2 3 4 5 6 7 8 9 A B C D E F 0 NUL DLE 0 P p 1 XON 1 A Q a q 2 2 B R b r 3 XOF F 3 C S c s 4 EOT DC4 4 D T d t 5 ENQ 5 E U e u 6 6 F V f v 7 7 G W g w 8 CAN 8 H X h x 9 HT 9 I Y i y A LF J Z j z B...

Page 124: ...1 2 3 4 5 6 7 8 9 A B C D E F 0 NUL DLE 0 P p 1 XON 1 A Q a q 2 2 B R b r 3 XOF F 3 C S c s 4 EOT DC4 4 D T d t 5 ENQ 5 E U e u 6 6 F V f v 7 7 G W g w 8 CAN 8 H X h x 9 HT 9 I Y i y A LF J Z j z B ES...

Page 125: ...3 4 5 6 7 8 9 A B C D E F 0 NUL DLE 0 P p o 1 XON 1 A Q a q a 2 2 B R b r 3 XOF F 3 C S c s 4 EOT DC4 4 D T d t 5 ENQ 5 E U e u 6 6 F V f v 7 7 G W g w 8 CAN 8 H X h x 9 HT 9 I Y i y A LF J Z j z B E...

Page 126: ...124 3 1 10 Codepage 00H to 7FH PC864 Arabic...

Page 127: ...2 3 4 5 6 7 8 9 A B C D E F 0 NUL DLE 0 P p 1 XON 1 A Q a q 2 2 B R b r 3 XOF F 3 C S c s 4 EOT DC4 4 D T d t 5 ENQ 5 E U e u 6 6 F V f v 7 7 G W g w 8 CAN 8 H X h x 9 HT 9 I Y i y A LF J Z j z B ESC...

Page 128: ...126 3 1 12 Codepage 00H to 7FH Thai Code 18...

Page 129: ...tional Character Code Table Country 23 24 40 5B 5C 5D 5E 60 7B 7C 7D 7E 0 U S A 1 France 2 Germany 3 U K 4 Denmark I 5 Sweden 6 Italy 7 Spain I Pt 8 Japan 9 Norway 10 Denmark II 11 Spain II 12 Latin A...

Page 130: ...en an ESC FF is executed the data received until then is printed in a batch When an FF is executed the data received until then is printed in a batch after which the printer returns to STANDARD MODE A...

Page 131: ...r Print Data When attempting to map the HRI characters of a bar code however the section above the standard character height will not be printed 3 If print data or the space to the right of a characte...

Page 132: ...6 After printing the printer returns to STANDARD MODE Example 1 100 PRINT 1 CHR H1B L 110 PRINT 1 CHR H1B W CHR 0 CHR 0 CHR 0 CHR 0 120 PRINT 1 CHR 200 CHR 0 CHR 144 CHR 1 130 PRINT 1 CHR H1B T CHR 0...

Page 133: ...be erased Example 2 100 PRINT 1 CHR H1B L 110 PRINT 1 CHR H1B W CHR 0 CHR 0 CHR 0 CHR 0 120 PRINT 1 CHR 200 CHR 0 CHR 144 CHR 1 130 PRINT 1 CHR H1B T CHR 0 140 PRINT 1 Page mode lesson2CAN command 15...

Page 134: ...is executed as shown in Figure 4 5 Print Result of Adding a Program of Example 3 to Example 2 where the string GHI is removed When strings are removed with CAN the area where the string would have be...

Page 135: ...yte Mode Data is transmitted from the printer to the host in units of one byte Data transmission from the printer uses an 8 bit data signal line For Byte mode the host must be capable of toggling the...

Page 136: ...ow Event 1 4 The printer responds by setting PtrClk nAck to Low nDataAvail nFault to High Xflag Select to High and AckDatReq PError to High Event 2 5 The host sets HostClk nStrobe to Low In response t...

Page 137: ...ommunication mode that is not supported by the printer it must move into the Termination phase and return to the Compatibility mode Table 2 4 1 Definitions of Request Bits in IEEE 1284 Communication M...

Page 138: ...printer sets PtrClk nAck to High Event 11 8 After Event 11 the host checks the signals set by the printer in Event 13 With this check the host determines 1 Whether there is more data to be sent from...

Page 139: ...kDataReq PError Set to Low if there is data to be sent Xflag Select Set to the status given during the last negotiation i e set to Low 6 The printer sets PtrClk nAck to High Event 10 and ends the Byte...

Page 140: ...on and tries to receive data the printer sends the printer status Termination Termination is the process of returning to Compatibility mode from the Nibble or Byte modes When performing Termination th...

Page 141: ...phase indicated by Events 8 and 9 In this case if 1284 Active nSelectIn was set to Low before HostBusy nAutoFd changed from High to Low the printer interprets that the host has switched to the Termin...

Page 142: ...45 bytes MSW1 3 Busy Condition Full Err Full MSW1 4 Receive Error Print Invalid MSW1 5 CR Mode Ignored LF MSW1 6 Reserved Fixed MSW1 7 DSR Signal Invalid Valid MSW1 8 Reserved Fixed MSW2 1 Reserved F...

Page 143: ...ON 1 Power ON Info Send Not send Operation at ON 1 Power ON Info function is disabled and no status is sent to the computer Operation at OFF 0 Power ON Info function is valid and status is sent to th...

Page 144: ...ON at the use of Reset through I F and at self printing Printer Status MSW1 3 OFF MSW1 3 ON At Power ON at the use of Reset through I F During self printing At cover open During paper feed by FEED SW...

Page 145: ...ordance with the amount of preset line feed Operation at OFF 0 Even when the printer receives a CR code it ignores CR code and causes no operation Default OFF 0 Ignored MSW1 6 Reserved OFF 0 Fixed MSW...

Page 146: ...ng used when print data is at the end of a line or at the right end of print width OFF 0 ON 1 Full col printing Line Feed Wait Data Operation at ON 1 When the printer receives data command exceeding f...

Page 147: ...g print data Operation at OFF 0 Prints from the succeeding data When the printer cover is opened or PE is detected during printing and after recovery the printer resumes printing from the next positio...

Page 148: ...id MSW 3 4 Reserved OFF 0 Fixed MSW 3 5 Reserved OFF 0 Fixed MSW 3 6 Reserved OFF 0 Fixed MSW 3 7 Reserved OFF 0 Fixed MSW 3 8 Clearing Head Up Error Outline Selects the method of clearing Head Up err...

Reviews: