Download Print this page

Advertisement

Quick Links

EC-80XXX Programming Manual
V6_1

Advertisement

loading

Summary of Contents for EcLine EC-80 Series

  • Page 1 EC-80XXX Programming Manual V6_1...
  • Page 2 1. COMMANDS 1.1 Command Notation [Name] The name of the command. [Format] The code sequence. [Range] Gives the allowable ranges for the arguments. [Description] Describes the command’s function. [Details] Describes the usage of the command in detail. [Notes] Provides important information on setting and using the printer command, if necessary. [Default] Gives the default values, if any, for the command parameters.
  • Page 3 (7) Ignore The state in which all codes, including parameters, are read in and discarded, and nothing happens. (8) Inch A unit of length. One inch is 25.4 mm. (9) MSB Most Significant Bit (10) LSB Least Significant Bit (11) Base line Standard position when character data is stored in the print buffer.
  • Page 4 Command List Horizontal tab Print and line feed FF (*) Print and return to standard mode in page mode CAN (*) Cancel print data in page mode DLE EOT n (*) Real-time status transmission DLE ENQ n (*) Real-time request to printer DLE DC4 n m t (*) Generate pulse at real-time ESC FF (*)
  • Page 5 ESC t n Select character code table ESC { n Turns on/off upside-down printing mode FS p n m (*) Print NV bit image FS q n [xL xH yL yH Define NV bit image d1…dk]1…[xL xH yL yH d1…dk]n GS ! n (*) Select character size GS $ nL nH...
  • Page 6 1.3. Control Commands [Name] Horizontal tab [Format] ASCII Decimal [Description] Moves the print position to the next horizontal tab position. • This command is ignored unless the next horizontal tab position has been set. [Details] • If the next horizontal tab position exceeds the printing area, the printer sets the printing position to [Printing area width + 1].
  • Page 7 CAN (*) [Name] Cancel print data in page mode [Format] ASCII Decimal [Description] In page mode, deletes all the print data in the current printable area. • This command is enabled only in page mode. [Details] • If data that existed in the previously specified printing area also exists in the currently specified printing area, it is deleted.
  • Page 8 printer is busy. This command is executed even when the printer is off-line or there is an error status when DIP switch 2-1 is on with a parallel interface model. • When Auto Status Back (ASB) is enabled using the GS a command, the status transmitted by the DLE EOT command and the ASB status must be differentiated.
  • Page 9 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. n = 4: Continuous paper sensor status Off/On Decimal Function Not used.Fixed to Off. Not used Fixed to On.
  • Page 10 In ESC ∗ m n dk, d1 = <10>H, d2 = <05>H, d3 = <01>H • This command should not be contained within another command that consists of two or more bytes. Example: If you attempt to transmit ESC 3 n to the printer, but DTR (DSR for the host computer) goes to MARK before n is transmitted, and DLE ENQ 2 interrupts before n is received, the code <10>H for DLE ENQ 2 is processed as the code for ESC 3 <10>H.
  • Page 11 consider this. • This command should not be used within the data sequence of another command that consists of 2 or more bytes. • This command is effective even when the printer is disabled with ESC = (Select peripheral device). [Reference] ESC p ESC FF (*)
  • Page 12 ESC ! n [Name] Select print mode(s) [Format] ASCII Decimal 0 ≤ n ≤ 255 [Range] [Description] Selects print mode(s) using n as follows: Off/On Decimal Function Character font A (12 ╳ 24). Character font B (9 ╳ 17). Undefined. Undefined.
  • Page 13 0 ≤ nL ≤ 255 [Range] 0 ≤ nH ≤ 255 [Description] Sets the distance from the beginning of the line to the position at which subsequent characters are to be printed. • The distance from the beginning of the line to the print position is [( nL + nH ╳...
  • Page 14 • x specifies the number of dots in the horizontal direction. • The allowable character code range is from ASCII code <20>H to <7E>H (95 [Details] characters). • It is possible to define multiple characters for consecutive character codes. If only one character is desired, use c1 = c2. •...
  • Page 15 • When font B (9 ╳ 17) is selected. ESC * m nL nH d1... dk [Name] Select bit-image mode [Format] ASCII m nL nH d1...dk 2A m nL nH d1...dk Decimal 42 m nL nH d1...dk ------------ -------------- THERMAL RECEIPT PRINTER-...
  • Page 16 [Range] m = 0, 1, 32, 33 0 ≤ nL ≤ 255 0 ≤ nH ≤ 3 0 ≤ d ≤ 255 [Description] Selects a bit-image mode using m for the number of dots specified by nL and nH, as follows: Vertical Direction Horizontal Direction Mode...
  • Page 17 • When 24-dot bit image is selected: ------------ -------------- THERMAL RECEIPT PRINTER-...
  • Page 18 ESC – n [Name] Turn underline mode on/off [Format] ASCII Decimal 0 ≤ n ≤ 2, 48 ≤ n ≤ 50 [Range] [Description] Turns underline mode on or off, based on the following values of n: Function 0, 48 Turns off underline mode 1, 49 Turns on underline mode (1-dot thick) 2, 50...
  • Page 19 • In standard mode, the vertical motion unit (y) is used. • In page mode, this command functions as follows, depending on the starting position of the printable area: ① When the starting position is set to the upper left or lower right of the printable area using ESC T, the vertical motion unit (y) is used.
  • Page 20 ESC @ [Name] Initialize printer [Format] ASCII Decimal [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. • The DIP switch settings are not checked again. [Details] •...
  • Page 21 [Description] Turns emphasized mode on or off •  W hen the LSB of n is 0, emphasized mode is turned off. •  W hen the LSB of n is 1, emphasized mode is turned on. •  O nly the least significant bit of n is enabled. [Details] •...
  • Page 22 ESC L (*) [Name] Select page mode [Format] ASCII Decimal [Description] Switches from standard mode to page mode. • This command is enabled only when processed at the beginning of a line in [Details] standard mode. • This command has no effect in page mode. •...
  • Page 23 Function Character font A (12 × 24) selected. 0,48 Character font B (9 × 17) selected. 1,49 ESC R n [Name] Select an international character set [Format] ASCII Decimal 0 ≤ n ≤ 15 [Range] [Description] Selects an international character set n from the following table: Character U.S.A.
  • Page 24 values can be set independently in standard mode and page mode) to those for standard mode: ① Set right-side character spacing: ESC SP, FS S ② Select default line spacing: ESC 2, ESC 3 • The following commands are enabled only to set in standard mode. ①...
  • Page 25 set by ESC W. • Parameters for horizontal or vertical motion units ( x or y) differ as follows, depending on the starting position of the printing area: ① If the starting position is the upper left or lower right of the printing area, data is buffered in the direction perpendicular to the paper feed direction: Commands using horizontal motion units: ESC SP, ESC $, ESC \ Commands using vertical motion units: ESC 3, ESC J, GS $, GS \...
  • Page 26 x0 = [( xL + xH × 256) × (horizontal motion unit)] y0 = [( yL + yH × 256) × (vertical motion unit)] dx = [ dxL + dxH × 256] × (horizontal motion unit)] dy = [ dyL + dyH × 256] × (vertical motion unit)] The printing area is set as shown in the figure below.
  • Page 27 • This printable area for this printer is approximately 72 mm in the horizontal direction and approximately 117.3 mm (1662/360 inches) in the vertical direction. [Default] xL = xH = yL = yH = 0 dxL = 0, dxH = 2, dyL = 126, dyH = 6 [Reference] CAN, ESC L, ESC T, GS P ESC \ nL nH...
  • Page 28 depending on the starting point of the printing area: ①When the starting position is set to the upper left or lower right of the printable area using ESC T, the horizontal motion unit ( x) is used. ②When the starting position is set to the upper right or lower left of the printable area using ESC T, the vertical motion unit ( y) is used.
  • Page 29 Paper roll near-end sensor enabled Paper roll end sensor disabled Paper roll near-end sensor enabled Paper roll end sensor disabled Paper roll near-end sensor enabled Undefined • It is possible to select multiple sensors to output signals. Then, if any of the sensors detects [Details] a paper end, the paper end signal is output.
  • Page 30 ESC C 5 n [Name] Enable/disable panel buttons [Format] ASCII Decimal 0 ≤ n ≤ 255 [Range] [Description] Enables or disables the panel buttons. • When the LSB of n is 0, the panel buttons are enabled. • When the LSB of n is 1, the panel buttons are disabled. •...
  • Page 31 ESC t n [Name] Select character code table [Format] ASCII Decimal 0 ≤ n ≤10, 16 ≤ n ≤ 21 [Range] [Description] Selects a page n from the character code table. Page PC437 [U.S.A.Standard Europe] Katakana PC850:Multilingual PC860:Portuguese PC863 [Canadian French] PC865:Nodic West Europe Greek...
  • Page 32 and then prints it. [Default] n = 0 [Example] FS p n m (*) [Name] Print NV bit image [Format] ASCII 70 n Decimal 112 n 0 ≤ n ≤ 255 [Range] 0 ≤ m ≤ 3 , 48 ≤ m ≤ 51 [Description] Prints a NV bit image n using the mode specified by m.
  • Page 33 double-height mode (m=2, 50), and it means 2 dots in double-width mode (m=1, 49) and in quadruple mode(m=3, 51). ①The printing area width is extended to the right in NV bit image mode up to one line vertically. In this case, printing does not exceed the printable area. ②If the printing area width cannot be extended by one line vertically, the left margin is reduced to accommodate one line vertically.
  • Page 34 • NV bit image means a bit image which is defined in a non-volatile memory by FS q and printed by FS p. • In standard mode, this command is effective only when processed at the beginning of the line. •...
  • Page 35 GS ! n (*) [Name] Select character size [Format] ASCII Decimal 0 ≤ n ≤ 255 [Range] (1 ≤ vertical number of times ≤ 8, 1 ≤ horizontal number of times ≤ 8) [Description] Selects the character height using bits 0 to 2 and selects the character width using bits 4 to 7, as follows: Off/On Decimal...
  • Page 36 Character width selection. See Table 1. Table 1 Character Width Selection Decimal Width 1(normal) 2(double-width) Table 2 Character Height Selection Decimal Width 1(normal) 2(double-height) • This command is all characters (alphanumeric and Kanji) effective except for [Details] HRI characters. • If n is outside of the defined range, this command is ignored. •...
  • Page 37 GS $ nL nH [Name] Set absolute vertical print position in page mode [Format] ASCII nL nH Decimal 29 nL nH 0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255 [Range] [Description] • Sets the absolute vertical print starting position for buffer character data in page mode.
  • Page 38 • The downloaded bit image definition is cleared when: ① ESC @ is executed. ② ESC & is executed. ③ FS q is executed. ④ Printer is reset or the power is turned off. • The following figure shows the relationship between the downloaded bit image and the printed data.
  • Page 39 ① The printing area width is extended to the right up to one line in vertical. In this case, printing does not exceed the printable area. ② If the printing area width cannot be extended by one line in vertical, the left margin is reduced to accommodate one line in vertical.
  • Page 40 GS H n [Name] Select printing position for HRI characters [Format] ASCII Decimal 0 ≤ n ≤ 3, 48 ≤ n ≤ 51 [Range] [Description] Selects the printing position of HRI characters when printing a bar code. n selects the printing position as follows: Printing position 0, 48 Not printed...
  • Page 41 GS P x y (*) [Name] Set horizontal and vertical motion units [Format] ASCII Decimal 0 ≤ x ≤ 255 [Range] 0 ≤ y ≤ 255 [Description] Sets the horizontal and vertical motion units to approximately 25.4/ x mm { 1/ x inches} and approximately 25.4/ y mm {1/ y inches}, respectively.
  • Page 42 [Description] Selects a mode for cutting paper and executes paper cutting. The value of m selects the mode as follows: Print mode 0, 1, 49 Partial cut (one point left uncut) Feeds paper (cutting position + [ n ╳  ( vertical motion unit)]), and cuts the paper partially (one point left uncut).
  • Page 43 ③ If the printing area width cannot be extended sufficiently, the right space is reduced. • If the width set for the printing area is less than one line in vertical, the following processing is performed only on the line in question when data other than character data (e.g., bit image, user-defined bit image) is developed: ①...
  • Page 44 horizontal motion unit (x) is used. • The horizontal and vertical motion unit are specified by GS P. • The GS P command can change the horizontal (and vertical) motion unit. However, the value cannot be less than the minimum horizontal movement amount, and it must be in even units of the minimum horizontal movement amount.
  • Page 45 Off/On Decimal Status for ASB Drawer kick-out connector pin 3 status disabled. Drawer kick-out connector pin 3 status enabled. Undefined. Error status disabled. Error status enabled. Paper roll sensor status disabled. Paper roll sensor status enabled. Undefined. • If any of the status items in the table above are enabled, the printer transmits the status when [Details] this command is executed.
  • Page 46 GS h n [Name] Select bar code height [Format] ASCII Decimal 29 104 1 ≤ n ≤ 255 [Range] [Description] Selects the height of the bar code. n specifies the number of dots in the vertical direction. [Default] n = 162 [Reference] GS k ①GS k m d1…dk NUL...
  • Page 47 45 ≤ d ≤ 57, 65 ≤ d ≤ 90, 1 ≤ n ≤ 255 CODE39 d = 32, 36, 37, 43, 45, 46, 47 d = 42 1 ≤ n ≤ 255(even number) 48 ≤ d ≤ 57 1 ≤ n ≤ 255 48 ≤...
  • Page 48 following data as normal data. In this case the data buffer position does not change. . If bar code width exceeds the printing area, the printer does not print the bar code but moves the data buffer position to the left side out of the printing area. When CODE93 (m = 72) is used: .
  • Page 49 Off/On Decimal Status for ASB Drawer kick-out connector pin 3 is LOW. Paper roll near-end sensor: paper near end. Undefined. Not used. Fixed to Off. Undefined. Not used. Fixed to Off. GS v 0 m xL xH yL yH d1..dk [Name] Print raster bit image [Format]...
  • Page 50 • The ESC a (Select justification) setting is also effective on raster bit images. • When this command is received during macro definition, the printer ends macro definition, and begins performing this command. The definition of this command should be cleared. •...
  • Page 51 Undefined. Undefined. Undefined. Underline mode is OFF. Underline mode is ON. • When both double-width and double-height modes are set (including right- and [Details] left-side character spacing), quadruple-size characters are printed. • The printer can underline all characters (including right- and left-side character spacing), but cannot underline the space set by HT and 90°...
  • Page 52 • The specified line thickness does not change even when the character size changes. • It is possible to turn underline mode on or off using FS !, and the last received command is effective. [Default] n = 0 [Reference] FS ! FS .
  • Page 53 FS S n1 n2 [Name] Set left- and right-side Kanji character spacing [Format] ASCII n 1 n2 n 1 n2 Decimal n 1 n2 0 ≤ n 1 ≤ 255 [Range] 0 ≤ n 2 ≤ 255 [Description] Sets left- and right-side Kanji character spacing n1 and n2, respectively. •...
  • Page 54 twice the normal value. • The horizontal and vertical motion units are set by GS P. The previously specified character spacing does not change, even if the horizontal or vertical motion unit is changed using GS P. • The value cannot be less than the minimum horizontal movement amount, and must be in even units of the minimum horizontal movement amount.
  • Page 55 ESC C m t n [Name] Printer Beeper and Alarm Notification [For GP-80250I] [Format] ASCII Decimal [Range] 1<=m<=20,1<=t<=20,0<=n<=3 [Description] Beeper and alarm functions when receipt comes. • m: 1<=m<=20, the functions times of beeper and alarm. • t: 1<=t<=20, the beeper and alarm lasting time, which is [tx50]ms. •...