Manuals for ESC-Commands for Bixolon SRP-350.
Transcrição
Manuals for ESC-Commands for Bixolon SRP-350.
SRP-350 ESC-Commands HT [Name] Horizontal Tab [Format] ASCII HT Hex 09 Decimal 9 [Description] Moves the print position to the next horizontal tab position. 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. FF [Name] Print and return to standard mode in page mode [Format] ASCII FF Hex 0C Decimal 12 [Description] Prints the data in the print buffer collectively and returns to standard mode. CR [Name] Print and carriage return [Format] ASCII CR Hex 0D Decimal 13 [Description] When automatic line feed is enabled, this command functions the same as LF; when automatic line feed is disabled, this command is ignored. CAN [Name] Cancel print data in page mode. [Format] ASCII CAN Hex 18 Decimal 24 [Description] In page mode, deletes all the print data in the current printable area. P:\FIRMA\Support\Drucker\SRP-350\DOC's\srp350-esc_commands.doc 8-1 SRP-350 ESC-Commands OLE EOT n [Name] Real-time status transmission. [Format] ASCII OLE Hex 10 Decimal 16 [Range] [Description] 1 <= n <= 4 Transmits the selected printer status specified by n in real time, according to the following parameters: EOT 04 4 n n n n = 1 : Transmit printer status. n = 2 : Transmit off-line status. n = 3 : Transmit error status. n = 4 : Transmit paper roll sensor status. n = 1 : Printer status. Bit Off/ On 0 Off 1 On 2 Off On 3 4 5-6 7 Off On On Off Hex 00 02 00 04 Decimal 0 2 0 4 00 08 10 00 0 8 16 0 Function Not used. Fixed to Off. Not used. Fixed to On. Drawer open/close signal is LOW (connector pin 3). Drawer open/close signal is HIGH (connector pin 3). On-line. Off-line. Not used. Fixed to On. Undefined. Not used. Fixed to Off. n = 2 : Off-line status. Bit 0 1 2 3 4 5 6 7 Off/ On Off On Off On Off On On Off On Off On Off Hex 00 02 00 04 00 08 10 00 20 00 40 00 Decimal 0 2 0 4 0 8 16 0 32 0 64 00 Function Not used. Fixed to off. Not used. Fixed to On. Cover is closed. Cover is open. Paper is not being fed by using the PAPER FEED button. Paper is being fed by the PAPER FEED button. Not used. Fixed to On. No paper-end stop. Printing stops due to paper end. No error. Error occurs. Not used. Fixed to Off. Bit 5 : Becomes on when the paper end sensor detects paper end and printing stops. P:\FIRMA\Support\Drucker\SRP-350\DOC's\srp350-esc_commands.doc 8-2 SRP-350 ESC-Commands n = 3 : Error status Bit 0 1 2 3 4 5 6 7 Off/ On Off On Off On On Off On Off On Off Bit 3: Hex 00 02 00 08 10 00 20 00 40 00 Decimal 0 2 0 8 16 0 32 0 64 0 Function Not used. Fixed to Off. Not used. Fixed to On. Undefined. No auto-cutter error. Auto-cutter error occurs. Not used. Fixed to On. No unrecoverable error. Unrecoverable error occurs. No auto-recoverable error. Auto recoverable error occurs. Not used. Fixed to Off. If these errors occur due to paper jams or the like, it is possible to recover by correcting the cause of the error and executing OLE ENQ n(1 <= n <= 2). If an error due to a circuit failure (e.g. wire break) occurs, it is impossible to recover. When printing is stopped due to high print head temperature until the print head temperature drops sufficiently or when the paper roll cover is open during printing, Bit6 is On. Bit 6: n = 4 : Continuous paper sensor status. Bit 0 1 2 3 4 5 6 7 Off/ On Off On Off On On Off On Off Hex 00 02 00 OC 10 00 60 00 Decimal 0 2 0 12 16 0 96 0 Function Not used. Fixed to off. Not used. Fixed to On. Paper roll near-end sensor. Paper adequate. Paper near-end is detected by the paper roll near-end sensor. Not used. Fixed to On. Not roll end sensor. Paper present. Paper is detected by the paper roll end sensor. Not used. Fixed to Off. DLE ENQ n [Name] Real-time request to printer. [Format] ASCII OLE Hex 10 Decimal 16 [Range] [Description] 1 <= n <= 2 Recover from an error and restart printing from the line where the error occurred ENQ 05 5 n n n ESC FF [Name] Print data in page mode. [Format] ASCII ESC Hex 1B Decimal 27 [Description] In page mode, prints all buffered data in the printing area collectively. FF OC 12 P:\FIRMA\Support\Drucker\SRP-350\DOC's\srp350-esc_commands.doc 8-3 SRP-350 ESC-Commands ESC SP n [Name] Set right-side character spacing. [Format] ASCII ESC Hex 1B Decimal 27 [Range] [Description] 0 <= n <= 255 Sets the character spacing for the right side of the character to [n x horizontal or vertical motion units]. SP 20 32 n n n ESC ! n [Name] Select print modes. [Format] ASCII Hex Decimal [Range] [Description] 0 <= n <= 255 Selects print mode(s) using n as follows: Bit 1 2 6 Off/ On Off On Off On Off On Off On Off On Hex 00 01 00 08 00 10 00 20 00 80 ESC ! n 1B 21 n 27 33 n Decimal 0 1 0 8 0 16 0 32 0 128 Function Character font A (12 x 24) Character font B (9 x 17) Undefined. Undefined. Emphasized mode not selected. Emphasized mode selected. Double-height mode not selected. Double-height mode selected. Double-width mode not selected. Double-width mode selected. Undefined. Underline mode not selected. Underline mode selected. ESC $ nL nH [Name] Set absolute print position. [Format] ASCII ESC $ Hex 1B 24 Decimal 27 36 [Range] 0 <= nL <= 255 0 <= nH <= 255 Set the distance from the beginning of the line to the position at which subsequent characters are to be printed. x The distance from the beginning of the line to the print position is [(nL + nH x 256) x (vertical or horizontal motion unit)] inches. [Description] nL nL nL nH nH nH P:\FIRMA\Support\Drucker\SRP-350\DOC's\srp350-esc_commands.doc 8-4 SRP-350 ESC-Commands ESC % n [Name] Select/Cancel user-defined character set. [Format] ASCII ESC Hex 1B Decimal 27 [Range] [Description] 0 <= n <= 255 Selects or cancels the user-defined character set. x When the LSB of n is 0, the user-defined character set is canceled. x When the LSB of n is 1, the user-defined character set is selected. % 25 37 n n n ESC & y c1 c2 [x1 d1...d(y x x1)]...[xk d1 ...d(y x xk)] [Name] Define user-defined characters. [Format] ASCII ESC Hex 1B Decimal 27 [Range] y=3 32 <= c1 <= c2 <= 126 0 <= x <= 12 Font A (12 x 24) 0 <= x <= 9 Font B ( 9 x 17) 0 <= d1 ... d(y x xk) <= 255 Defines user-defined characters. * y specifies the number of bytes in the vertical direction. * c1 specifies the beginning character code for the definition, and c2 specifies the final code. * x specifies the number of dots in the horizontal direction. [Description] & 26 38 y c1 c2[x1 d1...d(y x x1)]..[xk d1... d(y x xk)] .... .... ESC * m nL nH d1...dk [Name] Select bit-image mode. ASCII ESC Hex 1B Decimal 27 [Range] [Description] * 2A 42 m nL .... .... nH d1...dk m = 0, 1, 32, 33 0 <= nL<= 255 0 <= nH < = 3 0 <= d <=255 Selects a bit-image mode using m for the number of dots specified by nL and nH, as follows: m Mode 0 1 32 33 8-dot single-density 8-dot double-density 24-dot single-density 24-dot double-density Vertical direction Number of Dot Density Dots 8 60 DPI 8 60 DPI 24 180 DPI 24 180 DPI P:\FIRMA\Support\Drucker\SRP-350\DOC's\srp350-esc_commands.doc Horizontal direction Number of Data (k) Dot Density 90 DPI nL + nH x 256 180 DPI nL + nH x 256 90 DPI (nL + nH x 256) x 3 180 DPI (nL + nH x 256) x 3 8-5 SRP-350 ESC-Commands ESC - n [Name] Turn underline mode on/off. [Format] ASCII ESC Hex 1B Decimal 27 [Range] [Description] 0 <= n <= 2; 48 <= n <= 50 Turns underline mode on or off, based on the following values of n: n 0 1 2 (Dec) 48 49 50 2D 45 n n n Function Turns off underline mode. Turns on underline mode (1-dot thick). Turns on underline mode (2-dots thick). ESC 2 [Name] Select default line spacing. [Format] ASCII ESC Hex 1B Decimal 27 [Description] Selects 1/6-inch line (approximately 4.23mm) spacing. 2 32 50 ESC 3 n [Name] Set line spacing. [Format] ASCII Hex Decimal [Range] [Description] 0 <= n <= 255 Sets the line spacing to [n x vertical or horizontal motion unit] inches. ESC 1B 27 3 33 51 n n n ESC = n [Name] Set peripheral device. [Format] ASCII Hex Decimal [Range] [Description] 0<= n<= 3 Selects device to which host computer sends data, using n as follows: Bit 1-7 Off/ On Off On - Hex 00 01 - ESC 1B 27 Decimal 0 1 - = 3D 61 n n n Function Printer disabled. Printer enabled. Undefined. P:\FIRMA\Support\Drucker\SRP-350\DOC's\srp350-esc_commands.doc 8-6 SRP-350 ESC-Commands ESC ? n [Name] Cancel user-defined characters. [Format] ASCII ESC Hex 1B Decimal 27 [Range] [Description] 32 < n < 126 Cancels user-defined characters. ? 3F 63 n n n ESC @ [Name] Initialize printer. [Format] ASCII ESC Hex 1B Decimal 27 [Description] Clears the data in the print buffer and resets the printer mode to the mode that was in effect when the power was turned on. @ 40 64 ESC D n1 ...nk NUL [Name] Set horizontal tab positions. [Format] ASCII ESC Hex 1B Decimal 27 [Range] 1 <= n <= 255 0 <= k <= 32 Sets horizontal tab position. * n specifies the column number for setting a horizontal tab position from the beginning of the line. * k indicates the total number of horizontal tab positions to be set. [Description] D 44 68 n1...nk n1...nk n1...nk NUL 00 0 ESC E n [Name] Turn emphasized mode on/off. [Format] ASCII ESC Hex 1B Decimal 27 [Range] [Description] 0 <= n <= 255 Turns emphasized mode on or off. When the LSB is 0, emphasized mode is turned off. E 45 69 n n n ESC G n [Name] Turn on/off double-strike mode. [Format] ASCII ESC Hex 1B Decimal 27 [Range] [Description] 0 <= n <= 255 Turns double-strike mode on or off. * When the LSB is 0, double-strike mode is turned off. * When the LSB is 1, double-strike mode is turned on. G 47 71 n n n P:\FIRMA\Support\Drucker\SRP-350\DOC's\srp350-esc_commands.doc 8-7 SRP-350 ESC-Commands ESC J n [Name] Print and feed paper. [Format] ASCII ESC J Hex 1B 4A Decimal 27 74 [Range] [Description] 0 <= n <= 255 Prints the data in the print buffer and feeds the paper [n x vertical or horizontal motion unit] inches, unit. n n n ESC L [Name] Select page mode [Format] ASCII Hex Decimal [Description] Switches from standard mode to page mode. ESC 1B 27 L 4C 76 ESC M n [Name] Select character font. [Format] ASCII ESC Hex 1B Decimal 27 [Range] [Description] n = 0, 1; 48,49 Selects character fonts. n 0 1 M 4D 77 n n n (Dec) Function 48 Character font A (12 x 24) selected. 49 Character font B ( 9 x 17) selected. ESC R n [Name] Select an international character set. [Format] ASCII ESC R Hex 1B 52 Decimal 27 82 [Range] [Description] 0 <= n <= 10 Selects an international character set n from the following table. n 0 1 2 3 4 Character set U.S.A. France Germany U.K. Denmark I n 5 6 7 9 10 n n n Character set Sweden Italy Spain Norway Denmark II P:\FIRMA\Support\Drucker\SRP-350\DOC's\srp350-esc_commands.doc 8-8 SRP-350 ESC-Commands ESC S [Name] Select standard mode [Format] ASCII ESC S Hex 1B 53 Decimal 27 83 [Description] Switches from page mode to standard mode. ESC T n [Name] Select print direction in page mode [Format] ASCII ESC T Hex 1B 54 Decimal 27 84 [Range] [Description] 0 <= n <= 3; 48 <= n <= 51 Selects the print direction and starting position in page mode. n specifies the print direction and starting position as follows: (Dec) 48 49 50 51 Print Direction Left to right Bottom to top Right to left Top to bottom D > > > > > > > > > > Print Area > > > > > > > > > B > > > > > > > > > A Starting Position Upper left (A in the figure) Lower left (B in the figure) Lower right (C in the figure) Upper right (D in the figure) Forward n 0 1 2 3 n n n < < < < < < < < < < C ESC V n [Name] Turn 90* clockwise rotation mode on/off. [Format] ASCII ESC Hex 1B Decimal 27 [Range] [Description] 0 <= n <= 1; 48 <= n <= 49 Turns 90* clockwise rotation mode on/off n is used as follows: n 0 1 V 56 86 n n n (Dec.) Function 48 Turn off 90* clockwise rotation mode 49 Turns on 90* clockwise rotation mode P:\FIRMA\Support\Drucker\SRP-350\DOC's\srp350-esc_commands.doc 8-9 SRP-350 ESC-Commands ESC W xL xH yL yH dxL dxH dyL dyH [Name] Set printing area in page mode [Format] ASCII ESC Hex 1B Decimal 27 [Range] 0 <= xL, xH, yL, yH, dxL, dxH, dyL, dyH <=255 (except: dxL=dxH=0 or dyL =dyH=0) * The horizontal starting position, vertical staring position, printing area width, and printing area height are defined as xO, yO, dx (inch), respectively. [Description] W 57 87 x0 = [(xL + xH x 256)] y0 = [(yL + yH x 256)] dx = [(dxL + dxH x 256)] dy = [(dyL + dyH x 256)] xL xH yL yH dxL dxH dyL dyH xL xH yL yH dxL dxH dyL dyH xL xH yL yH dxL dxH dyL dyH x (horizontal motion unit)] x (vertical motion unit)] x (horizontal motion unit)] x (horizontal motion unit)] The printing area is set as shown in the figure below. (X,Y) Paper Dy Forward Dx Print Area ( X+Dx-1, Y+Dy-1) ESC \ nL nH [Name] Set relative print position. [Format] ASCII ESC Hex 1B Decimal 27 [Range] 0 <= nL <= 255 0 <= nH <= 255 Set the print starting position based on the current position by using the horizontal or vertical motion unit. * This command sets the distance from the current position to [(nL + nH x 256) x horizontal or vertical motion unit] [Description] \ 5C 92 nL nL nL nH nH nH P:\FIRMA\Support\Drucker\SRP-350\DOC's\srp350-esc_commands.doc 8-10 SRP-350 ESC-Commands ESC a n [Name] Select justification. [Format] ASCII Hex Decimal [Range] [Description] 0 <= n <= 2; 48 <= n <= 50 Aligns all the data in one line to the specified position, n selects the type of justification as follows: n 0 1 2 (Dec) 48 49 50 ESC IB 27 a 61 97 n n n Justification Left justification Centering Right justification ESC c 3 n [Name] Select paper sensor(s) to output paper end signals. [Format] ASCII ESC Hex 1B Decimal 27 [Range] [Description] 0 <= n <= 255 Selects the paper sensor(s) to output paper end signals. * Each bit of n is used as follows: Bit 0 1 2 3 4-7 Off/ On Off On Off On Off On Off On - Hex 00 01 00 02 00 04 00 08 - (Dec) 0 1 0 2 0 4 0 8 - c 63 99 3 33 51 n n n Function Paper roll near-end sensor disabled. Paper roll near-end sensor enabled. Paper roll near-end sensor disabled. Paper roll near-end sensor enabled. Paper roll end sensor disabled. Paper roll end sensor enabled. Paper roll end sensor disabled. Paper roll end sensor enabled. Undefined. ESC c 4 n [Name] Select paper sensor(s) to stop printing. [Format] ASCII ESC Hex 1B Decimal 27 [Range] [Description] 0 <= n <= 255 Selects the paper sensor(s) used to stop printing when a paper-end is detected, using n as follows: Bit 0 1 2-7 Off/ On Off On Off On - Hex 00 01 00 02 - (Dec) 0 1 0 2 - c 63 99 4 34 52 n n n Function paper roll end sensor disabled. Paper roll end sensor enabled. Paper roll end sensor disabled. Paper roll end sensor enabled. Undefined. P:\FIRMA\Support\Drucker\SRP-350\DOC's\srp350-esc_commands.doc 8-11 SRP-350 ESC-Commands ESC c 5 n [Name] Enable/Disable panel buttons. [Format] ASCII ESC Hex 1B Decimal 27 [Range] [Description] 0 <= n <= 255 Enables or disables the panel buttons. * When the LSB is 0, the panel buttons are enabled. * When the LSB is 1, the panel buttons are disabled. c 63 99 5 35 53 n n n ESC d n [Name] Print and feed n lines. [Format] ASCII ESC d n Hex 1B 64 n Decimal 27 100 n [Range] [Description] 0 <= n <= 255 Prints the data in the print buffer and feeds n lines. ESC p m t1 t2 [Name] Generate pulse. [Format] ASCII ESC P m Hex IB 70 m Decimal 27 112 m [Range] m = 0,1; 48, 49 0 <= t1 <= 255, 0 <= t2 <= 255 Outputs the pulse specified by tl & t2 to connector pin m as follows: Time t1= (t1 x 2msec), t2 = (t2 x 2msec) [Description] m 0 1 (Dec) 48 49 t1 t1 t1 t2 t2 t2 Connector pin Drawer kick-out connector pin 2 Drawer kick-out connector pin 5 ESC t n [Name] Select character code table. [Format] ASCII ESC Hex 1B Decimal 27 [Range] [Description] 0 <= n <= 5, 19, 255 Selects a page n from the character code table. n 0 1 2 3 4 5 19 255 t 74 116 n n n Page 0 (PC437 [U.S.A., standard Europe]) 1 (Katakana) 2 (PC850 [Multilingual]) 3 (PC860 [Portuguese]) 4 (PC863 [Canadian-French]) 5 (PC865 [Nordic]) 19(PC858[EURO] Space page P:\FIRMA\Support\Drucker\SRP-350\DOC's\srp350-esc_commands.doc 8-12 SRP-350 ESC-Commands ESC { n [Name] Turn ON / OFF upside-down printing mode [Format] ASCII ESC { Hex 1B 7B Decimal 27 123 [Range] [Description] 0 <= n <= 255 Turn upside-down Printing mode on or off. * Wenn LSB is 0, upside-down printing mode is turned off. * Wenn LSB is 1, upside-down printing mode is turned on. n n n FS p n m [Name] Print NV bit image [Format] ASCII FS Hex 1B Decimal 27 [Range] 1 <= n <= 255 0 <= m <=3; 48 <= m <= 51 Prints a NV bit image n using the mode specified by m. [Description] m 0 1 2 3 Mode Normal Double-width Double-height Quadruple p 70 112 n n n m m m Horizontal dot Density (DPI) 180 180 90 90 Vertical dot Density (DPI) 180 90 180 90 * n is the number of the NV bit image ( defined by FS q command ). * m specifies the bit image mode. FS q n [xL xH yLyH d1 ...dk]1 ...[xL xH yL yH d1...dk]n [Name] Define NV bit image [Format] ASCII FS Hex 1C Decimal 28 [Range] 1 <= n <= 255 0 <= xL <= 255 0 <= xH <= 3 (when 1 <= (xL + xH x 256) <= 1023 0 <= yL <= 3 (when 1 <= (yL + yH x 256) <= 288 1 <= d <= 255 k = (xL + xH x 256) x (yL + yH x 256) x 8 Total defined data area = 2M bits (256K bytes) Define the NV bit image specified by n. * n specifies the number of the defined NV bit image. * xL, xH specifies (xL + xH x 256) x 8 dots in the horizontal direction for the NV bit image you are defining. * yL, yH specifies (yL + yH x 256) x 8 dots in the vertical direction for the NV bit image you are defining. [Description] q n 71 n 113 n [xL xH yL yH dl...dk]l...[xL xH yL yH dl...dk]n [xL xH yL yH dl...dk]l...[xL xH yL yH dl...dk]n [xL xH yL yH dl...dk]l...[xL xH yL yH dl...dk]n P:\FIRMA\Support\Drucker\SRP-350\DOC's\srp350-esc_commands.doc 8-13 SRP-350 ESC-Commands GS ! n [Name] Select character size. [Format] ASCII GS Hex 1D Decimal 29 [Range] 0 <= n <= 255 (1 <= vertical number of times <= 8, 1 <= horizontal number of times <= 8) Selects the character height using bits 0 to 2 and selects the character width using bits 4 to 7, as following: [Description] Bit 0-3 4-7 ! 21 33 n n n Off/0N Hex Decimal Function Character height selection. See Table 2 Character width selection. See Table 1 Character Width Selection Hex Decimal Width 00 0 1 (normal) 10 16 2(double-width) 20 32 3 30 48 4 40 64 5 50 80 6 60 96 7 70 112 8 Character Height Selection Hex Decimal Height 00 0 1 (normal) 01 1 2 (double-height) 02 2 3 03 3 4 04 4 5 OS 5 6 06 6 7 07 7 8 GS $ nL nH [Name] Set absolute vertical print position in page mode [Format] ASCII GS Hex 1D Decimal 29 [Range] [Description] 0 <= nL <= 255, 0 <= nH <= 255 * Sets the absolute vertical print starting position for buffer character data in page mode. * This command sets the absolute print position to [(nL + nH x 256) x (vertical or horizontal motion unit)] inches. $ 24 36 nL nL nL nH nH nH GS * x y d1...d(x x y x 8) [Name] Define downloaded bit image. [Format] ASCII GS Hex 1D Decimal 29 [Range] 1 <= x <= 255 1 <= y <= 48 x x y <= 1536 0 <= d <= 255 Defines a downloaded bit image using the dots specified by x and y. * x indicates the number of dots in the horizontal direction. * y indicates the number of dots in the vertical direction. [Description] * 2A 42 x x x y y y d1...d(x x y x 8) d1...d(x x y x 8) d1...d(x x y x 8) P:\FIRMA\Support\Drucker\SRP-350\DOC's\srp350-esc_commands.doc 8-14 SRP-350 ESC-Commands GS / m [Name] Print downloaded bit image. [Format] ASCII GS Hex 1D Decimal 29 [Range] [Description] 0 <= m <= 3; 48 <= m <= 51 Prints a downloaded bit image using the mode specified by m. m selects a mode from the table below: m 0 1 2 3 (Dec.) 48 49 50 51 Mode Normal Double-width Double-height Quadruple / 2F 47 m m m Vertical Dot Density(DPI) 180 180 90 90 Horizontal Dot Density(DPI) 180 90 180 90 GS : [Name] Start/End macro definition. [Format] ASCII GS Hex 1D Decimal 29 [Description] Starts or ends macro definition. : 3A 58 GS R n [Name] Turn white/black reverse printing mode on/off. [Format] ASCII GS Hex 1D Decimal 29 [Range] [Description] 0 <= n <= 255 Turns on or off white/black reverse printing mode. * When the LSB is 0, white/black reverse printing mode is turned off. * When the LSB is 1, white/black reverse printing mode is turned on. B 42 66 n n n GS H n [Name] Select printing position of HRI characters. [Format] ASCII GS Hex 1D Decimal 29 [Range] [Description] 0 <= n <= 3; 48 <= n <= 51 Selects the printing position of HRI characters when printing a bar code, n selects the printing position as follows: H 48 72 n n n n (Dec.) Printing position 0 48 Not printed. 1 49 Above bar code. 2 50 Below bar code. 3 51 Both above and below the bar code. HRI indicates Human Readable Interpretation. P:\FIRMA\Support\Drucker\SRP-350\DOC's\srp350-esc_commands.doc 8-15 SRP-350 ESC-Commands GS I n [Name] Transmit printer ID. [Format] ASCII GS Hex 1D Decimal 29 [Range] [Description] 1 <= n <= 3; 49 <= n <= 51 Transmits the printer ID specified by n as follows: n 1 2 3 (Dec.) 49 50 51 Printer ID Printer model ID Type ID ROM version ID I 49 73 n n n Specification SRP-350 series Depends on ROM version ID (HEX) 20 02 02 GS L nL nH [Name] [Format] [Range] [Description] Set left margin. ASCII GS L nL nH Hex 1D 4C nL Decimal 29 76 nL nH nH 0 <= nL <= 255 0 <= nH <= 255 Sets the left margin using nL and nH. * The left margin is set to [(nL + nH x 256) x horizontal motion unit]] inches. Printable area Left margin Printing area width GS P x y [Name] Set horizontal and vertical motion units. [Format] ASCII GS Hex 1D Decimal 29 [Range] 0 <= x <= 255 0 <= y <= 255 Sets the horizontal and vertical motion units to approximately 25,4/x mm {1/x inch and > and approximately 25.4/y mm {1/y inches}, respectively. When x and y are set to 0, the default setting of each value is used [Description] P 50 80 x x x y y y P:\FIRMA\Support\Drucker\SRP-350\DOC's\srp350-esc_commands.doc 8-16 SRP-350 ESC-Commands 1) GS V m , 2) GS V m n [Name] Select cut mode and cut paper. [Format] 1) 2) [Range] V 56 86 V 56 86 m m m m m m n n n 1) m = 1; 49 2) m = 42; 66, 0 <= n <= 255 Selects a mode for cutting paper and executes paper cutting. The value of m selects the mode as follows: [Description] m 1 42 ASCII GS Hex 1D Decimal 29 ASCII GS Hex 1D Decimal 29 (Dec) Print mode 49 Partial cut (one point left uncut) 66 Feeds paper (cutting position + [n x (vertical motion unit)]), and cuts the paper partially (one point left uncut). GS W nL nH [Name] Set printing area width [Format] ASCII GS Hex 1D Decimal 29 [Range] 0 <= nL <= 255 0 <= nH <= 255 Sets the printing area width to the area specified by nL and nH. * The printing area width is set to [(nL + nH x 256) x horizontal motion unit)] inches. [Description] W 57 87 Printable area Left margin Printing area width GS \ nL nH [Name] Set relative vertical print position in page mode [Format] ASCII GS Hex 1D Decimal 29 [Range] 0 <= nL <= 255 0 <= nH <= 255 Sets the relative vertical print starting position from the current position in page mode. * This command sets the distance from the current position to [(nL + nH x 256) x vertical or horizontal motion unit] inches. [Description] \ 5C 92 nL nL nL nH nH nH P:\FIRMA\Support\Drucker\SRP-350\DOC's\srp350-esc_commands.doc 8-17 SRP-350 ESC-Commands GS ^ r t m [Name] Execute macro. [Format] ASCII GS Hex 1D Decimal 29 [Range] 0 <= r <= 255 0 <= t <= 255 m = 0, 1 Executes a macro. * r specifies the number of times to execute the macro. * t specifies the waiting time for executing the macro. * m specifies macro executing mode. When the LSB of m = 0: The 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. [Description] ^ 5E 94 r r r t t t m m m GS a n [Name] Enable/Disable Automatic Status Back. [Format] ASCII GS Hex 1D Decimal 29 [Range] [Description] 0 <= n <= 255 Enables or disables ASB and specifies the status items to include, using n as follows: a 61 97 n n n Bit Off/On Hex Decimal Status for ASB 0 Off 00 0 Drawer kick-out connector pin 3 status disabled. On 01 1 Drawer kick-out connector pin 3 status enabled. 1 Off 00 0 On-line/off-line disabled. On 02 2 On-line/off-line enabled. 2 Off 00 0 Error status disabled. On 04 4 Error status enabled. 3 Off 00 0 Paper roll sensor status disabled. On 08 8 Paper roll sensor status enabled. 4-7 Undefined. P:\FIRMA\Support\Drucker\SRP-350\DOC's\srp350-esc_commands.doc 8-18 SRP-350 ESC-Commands GS b n [Name] Turns smoothing mode on/off [Format] ASCII GS Hex 1D Decimal 29 [Range] [Description] 0 <= n <= 255 Turns smoothing mode on or off. When the LSB of n is 0, smoothing mode is turned off. When the USB of n is 1, smoothing mode is turned on. b 62 98 n n n GSf n [Name] Select font for Human Readable Interpretation(HRI) characters. [Format] ASCII GS Hex 1D Decimal 29 [Range] [Description] n = 0, 1; 48, 49 Selects a font for the HRI characters used when printing a bar code, n selects a font from the following table: n 0,48 1,49 f 66 102 n n n Font Font A (12 x 24) Font B (9 x 17) GS h n [Name] Set barcode height [Format] ASCII GS Hex 1D Decimal 29 [Range] [Description] 1 <= n <= 255 Set the height of the bar code. n specifies the number of dots in the vertical direction. h 68 104 P:\FIRMA\Support\Drucker\SRP-350\DOC's\srp350-esc_commands.doc 8-19 SRP-350 ESC-Commands 1) GS k m dl... dk NUL 2) GS k m n dl... dn [Name] Print bar code. [Format] 1) 2) [Range] [Description] m 0 1 1) 2 3 4 5 6 65 66 67 2) 68 69 70 71 72 73 ASCII Hex Decimal ASCII Hex Decimal k 6B 107 k 6B 107 m m m m m m d1....dk NUL d1....dk 00 d1....dk 0 n d1....dn n d1....dn n d1....dn 1) 0 <= m <= 6 (k and d depends on the bar code system used.) 2) 65 <= m <= 73 (n and d depends on the bar code system used.) Selects a bar code system and prints the bar-code. m selects a bar code system as follows: Bar Code System UPC-A UPC-E JAN13(EAN13) JAN8(EAN8) CODE 39 ITF CODABAR UPC-A UPC-E JAN13(EAN13) JANS(EANS) CODE 39 ITF CODABAR CODE93 CODE128 GS 1D 29 GS 1D 29 Number of Characters 11 <= k <= 12 11 <= k <= 12 12 <= k <= 13 7 <= k <= 8 1 <= k 1 <= k even number 1 <= k *1) 11 <= n <= 12 11 <= n <= 12 12 <= n <= 13 7 <= n <= 8 1 <= n <= 255 Remarks 48 < d < 57 48 < d < 57 48 < d < 57 48 < d < 57 48 < d < 57, 65 < d s 90,32, 36,37,43,45, 46,47 48 < d < 57 48 < d < 57, 65 < d < 68, 36,43,45,46,47, 58 48 < d < 57 48 < d < 57 48 < d < 57 48 < d < 57 48 < d < 57, 65 < d < 90,32, 36,37,43,45, 46,47 d1 = dk = 42 (1) 1<= n <= 255 even number 48 < d < 57 1 <= n <= 255 48 < d < 57, 65 < d < 68, 36, 43,45,46,47, 58 1 <= n <= 255 0<d< 127 2 <= n <= 255 C s d < 127 *1) Zeichen: 0-9 A-D $ - . / : GSrn [Name] Transmit status. [Format] ASCII GS Hex 1D Decimal 29 [Range] [Description] n = 1, 2; 49, 50 Transmits the status specified by n as follows. n 1,49 2,50 r 72 114 n n n Function Transmits paper sensor status. Transmits drawer kick-out connector status. P:\FIRMA\Support\Drucker\SRP-350\DOC's\srp350-esc_commands.doc 8-20 SRP-350 ESC-Commands GS v 0 m xL xH yL yH d1....dk [Name] Print raster bit image [Format] ASCII GS Hex 1D Decimal 29 [Range] 0 <= m <= 3; 48 <= m <= 51 0 <= xL <= 255 0 <= xH <= 255 0 <= yL <= 255 0 <= d <=255 k = (xL + xH x 256) x (yL + yH x 256) ( k # 0 ) Selects Raster bit-image mode. The value of m selects the mode, as follows: [Description] m 0, 48 1, 49 2, 50 3, 51 Mode Norma Double-width Double-height Quadruple v 76 118 0 30 48 m m m Vertical Dot Density(DPI) 180 DPI 180 DPI 90 DPI 90 DPI xL xL xL xH xH xH yL yL yL yH yH yH d1....dk d1....dk d1....dk Horizontal Dot Density(DPI) 180 DPI 90 DPI 180 DPI 90 DPI * xL, xH, select the number of data bits( xL + (xH x 256 )) in the horizontal direction for the bit image. * yL, yH, select the number of data bits ( yl + (yH x 256 )) in the vertical direction for the bit image. GS w n [Name] Set bar code width. [Format] ASCII GS Hex 1D Decimal 29 [Range] [Description] 2 <= n <= 6 Set the horizontal size of the bar code, n specifies the bar code width as follows. n Module width for multi-level bar code 2 3 4 5 6 0.282 0.423 0.564 0.706 0.847 w 77 119 n n n Binary-level bar code Thin element width (mm) 0.282 0.423 0.564 0.706 0.847 Thick element width (mm) 0.706 1.129 1.411 1.834 2.258 * Multi-level bar codes are as follows: UPC-A, UPC-E, JAN13(EAN13), JANS(EANS), CODE93, CODE128. * Binary-level bar codes are as follows. CODE39, ITF, CODABAR P:\FIRMA\Support\Drucker\SRP-350\DOC's\srp350-esc_commands.doc 8-21