1. PRINT CONTROL FUNCTIONS 1.1 Command List No. Command Function Mode Code Page Horizontal tab S.P. <09>H Printing and paper feed S.P. <0A>H Back to printing S.P. <0D>H Printing in PAGE MODE and returning to <0C>H STANDARD MODE Canceling print data in PAGE MODE <18>H DLE EOT Sending status in real-time S.P.
No. Command Function Mode Code Page Specifying/Canceling 90°-right-turned 30 ESC V <1B>H<56>H<n> characters <1B>H<57>H<xL><xH> 31 ESC W Defining the print area in PAGE MODE <yL><yH><dxL><dxH> <dyL><dyH> 32 ESC \ Specifying the relative position S.P. <1B>H<5C>H<nL><nH> 43 33 ESC a Aligning the characters S.P.
No. Command Function Mode Code Page <1D>H<5E>H<n1> 54 GS ^ Executing the macro S.P. <n2><n3> Enabling/Disabling ASB (Automatic Status 55 GS a S.P. <1D>H<61>H<n> Back) 56 GS f Selecting the font of HRI characters S.P. <1D>H<66>H<n> 57 GS h Specifying the height of the bar code S.P.
1.2 Command Details 1.2.1 Descriptions of Each Item XXXX [Function] The name of a command. [Code] The string of codes comprising the command is represented by < >H for hexadecimal numbers, < >B for binary numbers, and < > for decimal numbers, [ ] k denotes the number of repetition of “k”...
1.2.2 Command Details [Function] Horizontal tab [Code] <09>H [Outline] Shifts the printing position to the next horizontal tab position. • Ignored when the next horizontal tab position has not been set. [Caution] • The horizontal tab position is set by ESC D. •...
[Function] Printing and paper feed [Code] <0A>H [Outline] Prints data inside the print buffer and feeds paper 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] LPRINT “AAA”...
[Function] Back to printing [Code] <0D>H [Outline] 1) When DSW-2 is OFF: This command is ignored. 2) When DSW-2 is ON: With data held inside the internal print buffer, printing and line feed are performed. Without data inside the internal print buffer, however, only line feed is performed.
Page 10
[Function] Printing in PAGE MODE and returning to STANDARD MODE [Code] <0C>H [Outline] Executes a batch printout of the data mapped in the entire print area, and then returns to STANDARD MODE. [Caution] • All mapped data is erased after printout. •...
[Function] Canceling print data in PAGE MODE [Code] <18>H [Outline] Erases all data contained in 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, the overlapped data in the previously established area will be erased.
DLE EOT n [Function] Sending status in real-time [Code] <10>H<04>H<n> [Range] [Outline] Sends in real-time the status specified by “n”. n = 1: Printer status n = 2: Status caused by an offline condition n = 3: Status caused by an error n = 4: Continuous paper detector status [Caution] •...
Page 13
(1) Printer status (When n = 1 is specified) Status Hex. Decimal Unused Unused Unused Online status Offline status Unused Undefined — — Undefined — — Unused (2) Status caused by an offline condition (When n = 2 is specified) Status Hex.
Page 14
(3) Status caused by an error (when n = 3 is specified) Status Hex. Decimal Unused Unused Undefined — — Auto cutter error not occurred Auto cutter error occurred Unused Unrecoverable error not occurred Unrecoverable error occurred Auto recovery error not occurred Auto recovery error occurred Undefined Bit 3: If this error occurred because of a paper jam, for example,...
DLE ENQ n [Function] Real-time request to printer [Code] <10>H<05>H<n> [Range] [Outline] The printer responds in real-time to the request that the host specifies with number “n”. n = 1: After recovering from an error, the printer resumes printing from the beginning of the line where the error occurred.
ESC FF [Function] Printing data in PAGE MODE [Code] <1B>H<0C>H [Outline] Executes a batch printout of the data mapped in the entire print area in PAGE MODE. [Caution] • This command is only effective when PAGE MODE is selected. • Mapped data, as well as the ESC T and ESC W settings, and the character mapping position are held even after printing.
ESC SP n [Function] Setting the right spacing of the character [Code] <1B>H<20>H<n> [Range] [Outline] Sets the right spacing of character to [n basic calculation pitch] inches. [Caution] • If the horizontal magnification of character is 2 or more, the right spacing increases with the magnification.
ESC ! n [Function] Collectively specifying the printing mode [Code] <1B>H<21>H<n> [Range] [Outline] Printing mode is assigned. Value Function Character Font Font A Font B Undefined Undefined Emphasis Canceled Specified Double height Canceled Specified Double width Canceled Specified Undefined Underline Canceled Specified [Caution]...
ESC $ n1 n2 [Function] Specifying the absolute positions [Code] <1B>H<24>H<n1><n2> [Range] [Outline] The printing start position is specified with the number of dots (1/203 inch unit) from the beginning of a line. • The number of dots is divided by 256, whose quotient is taken as “n2”...
ESC % n [Function] Specifying/Canceling download character set [Code] <1B>H<25>H<n> [Range] [Outline] Specifying/canceling download characters. • Only the lowest bit (n0) is valid for n. Function Canceling download character set Specifying download character set [Caution] Download characters and download bit images cannot be defined simultaneously.
ESC & s n m [a [p] s a] m–n+1 [Function] Defining the download characters [Code] <1B>H<26>H<s>H<n><m>[<a><p1><p2> <ps a>]m-n+1 [Range] s = 3 12 (Font A) 9 (Font B) [Outline] Defines the font of download characters of alphanumeric characters. • “s” indicates the number of bytes in vertical direction. •...
Page 25
[Example] 12dot 9dot p1 p4 p1 p4 24dot 24dot Font A Font B Create each data bit by setting “1” for a printed dot and “0” for an unprinted dot. [Sample Program] Refer to Sample Program and Print Results for ESC %. —...
m n1 n2 [ d ] k [Function] Specifying the bit image mode [Code] <1B>H<2A>H<m><n1><n2> [<d>] k [Range] m= 0, 1, 32, 33 k = n1 + 256 (m = 0, 1) k = (n1+ 256 3 (m = 32, 33) [Outline] According to the number of dots specified in “n1”, “n2”, specify the bit image of mode “m”.
ESC – n [Function] Specifying/Canceling underline [Code] <1B>H<2D>H<n> [Range] [Outline] Specifying/canceling an underline. n=0, 48 Canceling an underline n=1, 49 Specifying an underline for 1-dot width n=2, 50 Specifying an underline for 2-dots width [Caution] • An underline is attached to the full character width. It is, however, not attached to the part having been skipped by horizontal tab command.
ESC 2 [Function] Specifying 1/6-inch line feed rate [Code] <1B>H<32>H [Outline] The line feed rate per line is specified by 1/6 inch. [Caution] Line feed rate can be specified respectively for both STANDARD MODE and PAGE MODE. [Sample Program] LPRINT “AAAAA” + CHR$(&HA); LPRINT CHR$(&H1B) + “3”...
ESC 3 n [Function] Setting line feed rate of minimum pitch [Code] <1B>H<33>H<n> [Range] [Outline] Sets the line feed width per line to [n basic calculation pitch] inches. [Caution] The line feed width can be set separately for the STANDARD and PAGE MODES.
ESC = n [Function] Data input control [Code] <1B>H<3D>H<n> [Range] [Outline] Selecting equipment for which data input from the host is valid. • Each bit of “n” indicates as follows: Value Equipment Printer Invalid Valid Not defined Not defined Not defined Not defined Not defined Not defined...
ESC ? n [Function] Deleting download characters [Code] <1B>H<3F>H<n> [Range] [Outline] Deletes the downloaded characters of specified code. [Caution] • 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. •...
ESC @ [Function] Initializing the printer [Code] <1B>H<40>H [Outline] Clears data stored in the print buffer and brings various settings to the initial state (Default state). [Caution] • The settings of DIP switches are not read again. • Data inside the internal input buffer is not cleared. •...
ESC D { n } k NUL [Function] Setting horizontal tab position [Code] <1B>H<44>H [<n>] k<00> [Range] [Outline] Specifying a horizontal tab position. • “n” indicates the number of columns from the beginning to the horizontal tab position. Note, however, that “n= set position –...
ESC E n [Function] Specifying/Canceling Emphasis Printing [Code] <1B>H<45>H<n> [Range] [Outline] Specifying/canceling the emphasized characters. • “n” is valid only for the lowest bit (n0). • Control by the lowest bit (n0) is shown as follows: Type Canceling emphasis printing Specifying emphasis printing •...
ESC G n [Function] Specifying/Canceling Double strike printing [Code] <1B>H<47>H<n> [Range] [Outline] Specifying/canceling the double strike printing. • “n” is valid only for the lowest bit (n0). • Control by “n” is shown as follows. Type Canceling double strike printing Specifying double strike printing This is effective to all characters.
ESC J n [Function] Printing and feeding paper in minimum pitch [Code] <1B>H<4A>H<n> [Range] [Outline] Prints the data held in the print buffer and feeds paper by [n basic calculation pitch] inches. The beginning of the line is taken as the next print start position. [Caution] The line feed width can be set separately for the STANDARD and PAGE MODES.
ESC L [Function] Selecting PAGE MODE [Code] <1B>H<4C>H [Outline] Switches from STANDARD MODE to PAGE MODE. [Caution] • This command is only effective if it entered at the beginning of a line. • This command is not effective if it is entered when in PAGE MODE.
ESC M n [Function] Selection of character fonts [Code] <1B>H<4D>H<n> [Definition value] n=0, 1, 48, 49 [Outline] Selects character fonts. Function 0, 48 Selection of font A (12 1, 49 Selection of font B (9 [Details] ESC ! can also select fonts, but the setting made by the command that has last been processed becomes valid.
ESC R n [Function] Selecting the international character set [Code] <1B>H<52>H<n> [Range] [Outline] Depending on the value of “n”, one of the following character sets is specified; Character Set U.S.A. France Germany U.K. Denmark I Sweden Italy Spain I Japan Norway Denmark II Spain II...
ESC S [Function] Selecting STANDARD MODE [Code] <1B>H<53>H [Outline] Switches from PAGE MODE to STANDARD MODE. [Caution] • This command is only effective if it is entered when in PAGE MODE. • Any data mapped in PAGE MODE is erased. •...
ESC T n [Function] Selecting the character printing direction in PAGE MODE [Code] <1B>H<54>H<n> [Range] [Outline] Selects the direction and start point of character printing in PAGE MODE. Printing direction Start point 0, 48 Left to right Top left (“A” in the figure) 1, 49 Bottom to top Bottom left (“B”...
Page 43
ESC V n [Function] Specifying/Canceling 90°-right-turned characters [Code] <1B>H<56>H<n> [Range] n = 0, 1, 48, 49 [Outline] Specifying/canceling 90°-right- turned characters. Function 0, 48 Canceling 90°-right- turned Characters 1, 49 Specifying 90°-right- turned Characters [Caution] No underlines are attached to 90°-right- turned characters . [Default] n = 0 [Sample Program]...
Page 44
ESC W xL xH yL yH dxL dxH dyL dyH [Function] Defining the print area in PAGE MODE [Code] <1B>H<57>H<xL><xH><yL><yH><dxL><dxH><dyL><dyH> [Range] xL, xH, yL, yH, dxL, dxH, dyL, dyH 255, except for dxL = dxH = 0 or dyL = dyH = 0 [Outline] Defines the location and size of the print area.
Page 45
• The figure below illustrates the print area, where X = horizontal start point, Y=vertical start point, Dx=horizontal length, and Dy=vertical length. Paper Paper Feed Direction Print Area The printable area for this printer is approximately 72.070 mm (576/203 inches) horizontally and 117 mm (1662/360 inches) vertically.
Page 46
ESC \ nL nH [Function] Specifying the relative position [Code] <1B>H<5C>H<nL><nH> [Range] [Outline] This command specifies the next print start position in a relative position with respect to the current position. The next print start position will be at a point of [(nL + nH 256) basic calculation pitch] inches away from the current position.
Page 47
ESC a n [Function] Aligning the characters [Code] <1B>H<61>H<n> [Range] [Outline] All the printed data within one line are aligned in the specified position. • Depending on the value “n”, positional alignment is carried out as shown in the table below: Position 0,48 Left end alignment...
Page 48
ESC c 3 n [Function] Selecting the Paper Sensor valid for a paper end signal output [Code] <1B>H<63>H<33>H<n> [Range] [Outline] This command selects by which Paper Sensor a paper end signal should be output. Each bit for “n” has the following meaning: Value Position Paper Near-end...
Page 49
ESC c 4 n [Function] Selecting the Paper Near-end Sensor valid for print stop [Code] <1B>H<63>H<34>H<n> [Range] [Outline] This command selects the Paper Near-end Sensor which helps to stop printing when the paper supply almost runs out. Each bit for “n” has the following meaning: Value Position Paper Near-end...
Page 50
ESC c 5 n [Function] Enabling/Disabling the panel switches [Code] <1B>H<63>H<35>H<n> [Range] [Outline] Enabling/disabling the FEED switch. • “n” is valid only in the lowest bit. Condition FEED switch valid FEED switch invalid [Caution] When the panel switch is disabled with this command, the FEED switch is also disabled.
Page 51
ESC d n [Function] Printing and feeding the paper by “n” lines [Code] <1B>H<64>H<n> [Range] [Outline] Prints data in the print buffer and feeds paper by “n” lines. • Specified lines do not remain. • The beginning of the line is specified as the next print start position.
Page 52
ESC t n [Function] Selecting the character code table [Code] <1B>H<74>H<n> [Range] 9, n = 255 [Outline] Selecting the character code table: The character code table is selected based on the value of “n”. Character Code Table Codepage PC437 (USA, European Standard) Codepage Katakana (Japanese) Codepage PC850 (Multilingual) Codepage PC860 (Portuguese)
Page 53
ESC { n [Function] Specifying/Canceling the inverted characters [Code] <1B>H<7B>H<n> [Range] [Outline] Specifying/canceling inverted characters. • “n” is valid only for the lowest bit. Condition Canceling inverted characters. Specifying inverted characters. [Caution] • Inverted printing means printing the line turned 180°. •...
Page 54
GS ! n [Function] Specifying the character size [Code] <1D>H<21>H<n> [Range] 255, where: vertical magnification horizontal magnification [Outline] Specifies the character size (Vertical and horizontal magnification). Value Function Hex. Number Decimal Number Vertical magnification Refer to Table 2, “Vertical specification Magnification”.
Page 55
• If characters of different vertical magnification are contained in a line, the baseline of each character is lined up. • Horizontal and vertical magnification can also be specified/ canceled by ESC !. The ESC ! or GS ! command, whichever is handled last, becomes effective.
Page 56
GS $ nL nH [Function] Specifying the absolute vertical position of characters in PAGE MODE [Code] <1D>H<24>H<nL><nH> [Range] [Outline] This command is used in PAGE MODE to specify the vertical position of characters at the data mapping start position as an absolute value measured from the start point.
Page 57
n1 n2 [ d ] n1 n2 8 [Function] Defining the download bit image [Code] <1D>H<2A>H<n1><n2> [< d >] n1 [Range] 1536 [Outline] Defines download bit images of the number of dots specified by n1 and n2. • The numbers of dots are n1 8 in horizontal direction and n2 8 in vertical direction.
Page 59
GS ( A pL pH n m [Function] Execution of test printing [Code] <1D>H<28>H<41>H<pL><pH><n><m> [Definition] (pL+(pH 256))=2 (pL=2, pH=0) 2, 48 3, 49 [Outline] Specified test printing will be executed. • pL, pH will specify the number of subsequent parameters by (pL+(pH 256))bytes.
Page 60
GS / m [Function] Printing the downloaded bit image [Code] <1D>H<2F>H<m> [Range] [Outline] Prints downloaded bit image in a mode specified by “m”. Modes that can be selected by “m” are shown below. Dot Density in Dot Density in Mode Name Vertical Direction Horizontal Direction 0,48...
Page 61
GS : [Function] Starting/Ending macro definition [Code] <1D>H<3A>H [Outline] Specifying starting/ending macro definition. Reception of this command during macro definition signifies ending the macro definition. [Caution] Maximum content available for macro definition is 2048 bytes. A portion exceeding 2048 bytes is not defined. •...
Page 62
GS B n [Function] Specifying/Canceling the black/white inverted printing [Code] <1D>H<42>H<n> [Range] [Outline] This command specifies or cancels the black/white inverted printing. Function The black/white inverted printing is canceled. The black/white inverted printing is specified. [Caution] • Number “n” is only valid in the lowest bit. •...
Page 63
GS H n [Function] Selecting of printing position of HRI characters [Code] <1D>H<48>H<n> [Range] [Outline] Selecting printing position of HRI characters in printing bar codes. • “n” means the followings. Printing Position 0,48 No printing 1,49 Above the bar code 2,50 Below the bar code 3,51...
Page 64
[Print Results] No HRI characters Printed above Printed below Printed above and below — 62 —...
Page 65
GS I n [Function] Sending the printer ID [Code] <1D>H<49>H<n> [Range] [Outline] Sends the specified printer ID. Type of printer ID Specification Value (Hex.) 1,49 Model ID BD2-1220 2,50 Type ID Refer to table “Type ID” below 3,51 ROM version ID As per ROM version Type ID Meaning...
Page 66
GS L nL nH [Function] Setting the left margin [Code] <1D>H<4C>H<nL><nH> [Range] [Outline] This command sets the left margin specified by nL and nH. The value of the left margin is [(nL + nH 256) basic calculation pitch] inches. Printable Area Left Margin Print Area Width [Caution]...
Page 67
• When mapping non-character data (Bit image, downloaded bit image, or bar code), if the print area specified is narrower than 9-bits, only the line for that data is handled as follows: (1) The print area is extended toward the left (So, the left margin is decreased) until it is 9-dot wide, but not wider than the printable area.
Page 68
GS P x y [Function] Specifying the basic calculation pitch [Code] <1D>H<50>H<x><y> [Range] [Outline] This command sets the horizontal basic calculation pitch to approx. 25.4/x mm (1/x inches), and the vertical basic calculation pitch to approx. 25.4/y mm (1/y inches). •...
Page 69
GS V m ..(1) GS V m n ..(2) [Function] Cutting the paper [Code] (1) <1D>H<56>H<m> (2) <1D>H<56>H<m><n> [Range] (1) 0 1, 48 (2) 65 66, 0 [Outline] Performs the specified paper cutting. Function 0,48 Full cut 1,49 Partial cut (Leaving a bridge area uncut) Paper feed by “cut position + {n basic calculation...
Page 70
GS W nL nH [Function] Setting the print area width [Code] <1D>H<57>H<nL><nH> [Range] [Outline] Sets the print area width specified by nL and nH. • The print area width will be [(nL + nH 256) basic calculation pitch] inches. Printable Area Left Margin Print Area Width [Caution]...
Page 71
(2) If a sufficient area cannot be provided as a result of step (1), the print area is extended toward the left (So, the left margin is decreased). Printable Area Extended toward the right (2) The left margin Left Margin is trimmed Print Area Width (3) If a sufficient area cannot be provided as a result of step...
Page 72
GS \ nL nH [Function] Specifying the relative vertical position of a character in PAGE MODE [Code] <1D>H<5C>H<nL><nH> [Range] [Outline] This command is used in PAGE MODE to specify the vertical position of a character in the data mapping start position, in a relative position with respect to the current position.
Page 73
GS ^ n1 n2 n3 [Function] Executing the macro [Code] <1D>H<5E>H<n1><n2><n3> [Range] [Outline] Executing contents defined in macro. n1 : The number of times of macro execution n2 : Waiting time on macro execution Waiting time of n2 100 msec is given for every execution. n3 : Macro execution mode n3=0 Continuous execution: The Macro is executed “n1”...
Page 74
GS a n [Function] Enabling/Disabling ASB (Automatic Status Back) [Code] <1D>H<61>H<n> [Range] [Outline] This command selects the status item to be addressed by ASB (Automatic Status Back.) Status item addressed by ASB Hex. Decimal Undefined — — Online/offline status = disabled Online/offline status = enabled Error status = disabled Error status = enabled...
Page 75
(1) 1st byte (Printer information) Status Hex. Decimal Unused Unused Unused Online status Offline status Unused Cover closed Cover open Not in paper feed state triggered by FEED switch In paper feed state triggered by FEED switch Unused (2) 2nd byte (Error occurrence information) Status Hex.
Page 76
(4) 4th byte (Paper Sensor information) Status Decimal Undefined — — Undefined — — Undefined — — Undefined — — Unused Undefined — — Undefined — — Unused [Default] J6 short: n = 0 J6 open: n = 2 [See Also] DLE EOT, GS r —...
Page 77
GS f n [Function] Selecting the font of HRI characters [Code] <1D>H<66>H<n> [Range] n = 0, 1 [Outline] Selecting the font of HRI characters in printing bar code. The type of font can be selected with “n” as follows: Font 0, 48 Font A (12 1, 49...
Page 78
GS h n [Function] Specifying the height of the bar code [Code] <1D>H<68>H<n> [Range] [Outline] Selecting bar code height. “n” denotes the number of dots in the vertical direction. [Default] n = 162 [Sample Program] Refer to Sample Program and Print Results for GS w. —...
Page 79
GS k m [d1 ..dk] NUL GS k m n [d1 ..dn] [Function] Printing the bar code [Code] (1) <1D>H<6B>H<m> [d1..dk] NUL (2) <1D>H<6B>H<m><n> [d1..dn] [Range] (1) 0 The definitions of “k” and “d” vary with the bar code system. (2) 65 73 The definitions of “n”...
Page 80
[Caution] For (1): • This command ends with a NUL code. • For UPC-A or UPC-E, the bar code is printed when 12 bytes of bar code data have been entered, and the subsequent data is handled as normal data. •...
Page 81
For PAGE MODE: • This command only maps the bar code, without performing a printout. After the bar code is mapped, the dot next to the last data item of the bar code is taken as the start position for the next data mapping.
[Description of Bar Codes] <For print examples, refer to page 123.> UPC-A This bar code, consisting of numerals only, has a fixed length of 12 columns; a 11-column number entered from the host or application software plus a check digit (12th column) automatically calculated inside the printer.
CODABAR (NW-7) This bar code, consisting of alphanumerics, has a variable length of columns. Available characters include “0 1 2 3 4 5 6 7 8 9 A B C D $ + – . / :”. A start/stop code is required; any one of A, B, C, and D is used.
CODE128 This bar code consists of 103 bar code characters and three code sets, enabling 128 ASCII code characters to be printed. It has a variable length of columns. • Code set A ASCII characters 00H - 5FH can be represented.
Page 85
Special characters Hex. ASCII Code set A Code set B Code set C 7B53 SHIFT SHIFT –N/A 7B41 –N/A CODE A CODE A 7B42 CODE B –N/A CODE B 7B43 CODE C CODE C –N/A 7B31 FNC1 FNC1 FNC1 7B32 FNC2 FNC2 –N/A...
Page 86
[Description of Bar Codes] UPC-A, UPC-E, JAN-13 (EAN), JAN-8 (EAN), CODE39, ITF, CODABAR, CODE93, CODE128 Type Print Sample Outline of Symbol UPC-A 12-column fixed-length bar code consisting of numerals only. UPC-E 8-column fixed-length bar code consisting of numerals only. Abbreviated version of UPC-A. JAN-13 13-column fixed-length bar code consisting of numerals only.
Page 87
GS r n [Function] Sending status [Code] <1D>H<72>H<n> [Range] n = 1, 49 [Outline] Sends the Paper Sensor status to the host. [Caution] • When the serial interface is used: For DTR/DSR control: The printer sends the status after verifying that the host is ready to receive.
Page 88
GS v 0 m xL xH yL yH d1...dk [Function] Printing of raster bit image [Code] <1D>H<76>H<30>H<m><xL><xH><yL><yH> [<d>] k [Range] 3, 48 51, 0 255, 0 255, 255, 0 8, 0 255, k=(xL+xH 256) (yL+yH 256), however, k 0 [Outline] Prints raster bit images in mode “m”.
Page 89
• If this command is executed during macro definition, the macro definition is suspended, and the processing of the command starts. The macro is left undefined. • “d” denotes defined data. Dots to be printed are specified as “1”, and those not to be printed as “0”. [Example] When xL+xH 256= 64...
Page 90
GS w n [Function] Specifying the horizontal size (Magnification) of bar code [Code] <1D>H<77>H<n> [Range] [Outline] Selecting bar code width. “n” denotes the number of dots in fine element width. [Default] n = 3 [Sample Program] LPRINT CHR$(&H1D) + “h” + CHR$(30); LPRINT CHR$(&H1D) + “w”...
Page 91
FS g3 m a1 a2 a3 a4 nL nH d1…dk [Function] Writing data into the download user NV memory [Code] <1C>H<67>H<33><m>H<a1>H<a2>H<a3>H<a4>H <nL>H<nH>H[<d>]nL+(nH 256) [Range] 6000H (a1+(a2 256)+(a3 65536)+(a4 16777216)) 7FFFH Sto rage start address (nL+(nH 256)) 1024 k=(nL+(nH 256)) [Outline] This command loads data into the download user NV memory.
Page 92
[Caution] • Because frequent writing in the non-volatile memory can destroy the memory, the writing command (FS g3) should be used less than 10 times a day. • It may happen that the printer becomes BUSY during the process of writing data into the non-volatile memory while this command is executed.
Page 93
FS g4 m a1 a2 a3 a4 nL nH [Function] Reading data from the download user NV memory [Code] <1C>H<67>H<34>H<m>H<a1>H<a2>H<a3>H<a4>H <nL>H<nH>H [Range] 6000H (a1+(a2 256)+(a3 65536)+(a4 16777216)) 7FFFH Write start address +n1+nH 8000H K=(nL+(nH 256)) [Outline] • This command reads data from the download user NV memory.
Page 94
• When the XON/XOFF control is selected, all the codes are sent continuously without verifying that the host can receive the data. Data that has been sent is always continuous except for the XOFF code. • When parallel interface is used, the size of the buffer for sending data (The buffer that stores all data to be sent except for ASB status) is 99 bytes.
Page 95
F S p n m [Function] Printing the download NV bit images [Code] <1C>H<70>H<n><m> [Range] [Outline] This command prints the download NV bit images (n) using a specified mode (m). Dot Density in Dot Density in Mode Name Vertical Direction Horizontal Direction 0,48 NORMAL MODE...
Page 96
• When the size of a bit image exceeds the limits of the printing area, the data within the limits of the printing area will be printed but the parts exceeding the limit will not be printed. • Regardless of the amount of line feed set with ESC 2 and ESC 3, NORMAL MODE and DOUBLE WIDTH MODE execute a paper feed of (Height n of NV bit image) dots while DOUBLE HEIGHT MODE and QUADRUPLE SIZE MODE execute a paper...
Page 97
F S q n [xL xH yL yH d1…dk] 1… [xL xH yL yH d1…dk] n [Function] Defining the download NV bit image [Code] <1C>H<71>H<n>H{<xL><xH><yL><yH><d1...dk>}1... {<xL><xH><yL><yH><d1...dk>}n [Range] 255, 0 255, 3 but, 1 (xL + xH 256) 1023 1 but, 1 (yL + yH 256) k = ( xL + xH...
Page 98
• If outside-defined-area arguments are processed for the second or subsequent NV bit image data groups, the processing of this command is suspended, and a writing process into the non-volatile memory starts. At this time, the NV bit image being defined becomes invalid (Undefined), but the preceding NV bit images are valid.
Page 99
[Caution] • Because frequent writing in the non-volatile memory can destroy the memory, the writing command should be used less than 10 times a day. • Just after the completion of the writing operation into the non- volatile memory, the printer hardware will be reset. Therefore, download characters, download bit images, and macro definition will be made undefined.