Download Print this page
iDiPOS TP-80 Program Manual

iDiPOS TP-80 Program Manual

Thermal receipt printer

Advertisement

Quick Links

PROGRAM MANUAL
Thermal receipt printer TP-80
1. COMMANDS
1.1 Command Notation
[Name]
The name of the command.
[Format]
The code sequence.ASCII,Hex, Decimal 3 kinds of formats, default Decimal format.
[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.
[Reference] Lists related commands.
2. HT
[Name]
Horizontal tab
[Format]
ASCII
Hex
Decimal
[Description] Moves the print position to the next horizontal tab position.
[Details]
• This command is ignored unless the next horizontal tab position has been set.
• If the next horizontal tab position exceeds the printing area, the printer sets the
printing position to [Printing area width + 1].
• Horizontal tab positions are set with ESC D.
• If this command is received when the printing position is at [printing area width
+ 1], the printer executes print buffer-full printing of the current line and
horizontal tab processing from the beginning of the next line.
• The default setting of the horizontal tab position for the paper roll is font A
(12 ╳ 24) every 8th character (9th, 17th, 25th, ... column).
[Reference]
ESC D
3. LF
[Name]
Print and line feed
[Format]
ASCII
Hex
Decimal
[Description]
Prints the data in the print buffer and feeds one line based on the current line
spacing.
[Note]
This command sets the print position to the beginning of the line.
[Reference]
ESC 2, ESC 3
HT
09
9
LF
0A
10

Advertisement

loading
Need help?

Need help?

Do you have a question about the TP-80 and is the answer not in the manual?

Questions and answers

Summary of Contents for iDiPOS TP-80

  • Page 1 PROGRAM MANUAL Thermal receipt printer TP-80 1. COMMANDS 1.1 Command Notation [Name] The name of the command. [Format] The code sequence.ASCII,Hex, Decimal 3 kinds of formats, default Decimal format. [Range] Gives the allowable ranges for the arguments. [Description] Describes the command’s function.
  • Page 2 4. FF [Name] Print and return to standard normal mode in page mode [Format] ASCII Decimal [Description] Prints the data in the print buffer collectively and returns to normal mode. The buffer data is deleted after being printed. [Details] The printing area set by ESC W is reset to the default setting. The printer does not execute paper cutting.
  • Page 3 The printer transmits the status without confirming whether the host computer can receive data. The printer executes this command upon receiving it. This command is ony available for serial port printer. The printer executes this command upon receiving it any status. n = 1: Printer status Decimal Function...
  • Page 4 Normal print head temperature and voltage Abnormal print head temperature and voltage Fixed to “0” n = 4: Continuous paper sensor status Decimal Function Fixed to “0”. Fixed to “1”. Paper enough Paper near-end Fixed to “1”. Paper enough Paper end Fixed to “0”.
  • Page 5 performs the same operation specified by this command. The user must consider above condition. 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).
  • Page 6 [Name] Select print mode(s) [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Selects print mode(s) using n as follows: Decimal Function Character font A (12 ╳ 24). Character font B (9 ╳ 17). Undefined. Undefined. Emphasized mode not selected. Emphasized mode selected.
  • Page 7 subsequent characters are to be printed. • The distance from the beginning of the line to the print position is [( nL + nH ╳ 256) ╳ (vertical or horizontal motion unit)] inches. [Details] • Settings outside the specified printable area are ignored. •...
  • Page 8 from the left side. Any remaining dots on the right side are blank. • The data to define a user-defined character is (y ╳ x) bytes. • Set a corresponding bit to 1 to print a dot or 0 to not print a dot. •...
  • Page 9 14. 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 [Range] m = 0, 1, 32, 33 0 ≤ nL ≤ 255 0 ≤...
  • Page 10 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 Number of Number of Data Mode Dots Density Density 8-dot single-density 67 DPI 100 DPI nL + nH ╳...
  • Page 11 • When 24-dot bit image is selected 15. ESC – n [Name] Turn underline mode on/off [Format] ASCII Decimal [Range] 0 ≤ n ≤ 2, 48 ≤ n ≤ 50 [Description] Turns underline mode on or off, based on the following values of n: Function 0, 48 Turns off underline mode...
  • Page 12 [Format] ASCII Decimal [Description] Selects 3.75mm line spacing. [Details] •The line spacing can be set independently in standard mode and in page mode. [Reference] ESC 3 17. ESC 3 n [Name] Set line spacing [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 ╳...
  • Page 13 [Default] n = 1 19. ESC ? n [Name] Cancel user-defined characters [Format] ASCII Decimal [Range] 32 ≤ n ≤ 127 [Description] Cancels user-defined characters. [Details] • This command cancels the pattern defined for the character code specified by n. After the user-defined characters is canceled, the corresponding pattern for the internal character is printed.
  • Page 14 • This command cancels the previous horizontal tab settings. • When setting n = 8, the print position is moved to column 9 by sending HT. • Up to 32 tab positions ( k = 32) can be set. Data exceeding 32 tab positions is processed as normal data.
  • Page 15 [Name] Print and feed paper [Format] ASCII Decimal [Range] 0 ≤ n≤ 255 [Description] Prints the data in the print buffer and feeds the paper [ n ╳ vertical or horizontal motion unit] inches. [Details] • After printing is completed, this command sets the print starting position to the beginning of the line.
  • Page 16 ③ Turn upside-down printing mode on/off: ESC { ④ Set left margin: GS L ⑤ Set printable area width: GS W • The following command is ignored in page mode: ① Execute test print: GS ( A • The following command is not available in page mode: ①...
  • Page 17 Denmark I Sweden Italy Spain I Japan Norway Denmark II Spain II Latin Korea Slovenia/Croatia Chinese [Default] n = 0 28. ESC S (*) [Name] Select standard mode [Format] ASCII Decimal [Description] Switches from page mode to standard mode. This command is effective only in page mode. [Details] Data buffered in page mode are cleared.
  • Page 18: Print Direction

    0 n 3 [Range] 48 n 51 [Description] Selects the print direction and starting position in page mode. n specifies the print direction and starting position as follows: Print Direction Starting Position 0, 48 Left to right Upper left 1, 49 Bottom to top Lower left 2, 50...
  • Page 19 0 n 1, 48 n 49 [Range] [Description] Turns 90clockwise rotation mode on/off n is used as follows: Function 0, 48 Turns off 90clockwise rotation mode 1, 49 Turns on 90clockwise rotation mode This command affects printing in standard mode. However, the setting is [Details] always effective.
  • Page 20 The horizontal and vertical motion unit are specified by GS P. Changing the horizontal or vertical motion unit does not affect the current printing area. 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 minimum horizontal movement amount.
  • Page 21 When pitch N is specified to the left (the negative direction), use the complement of 65536. When pitch N is specified to the left: nL+ nH ╳ 256 = 65536 - N • The print starting position moves from the current position to [ N ╳ horizontal or vertical motion unit] •...
  • Page 22 Decimal 99 51 0 n 255 [Range] [Description] Selects the paper sensor(s) to output paper end signals •  Each bit of n is used as follows: Off/On Decimal Function Paper roll near-end sensor disabled Paper roll near-end sensor enabled Paper roll end sensor disabled Paper roll near-end sensor enabled Paper roll end sensor disabled...
  • Page 23 Undefined When one paper sensor is enabled with this command, printing is stopped only when [Details] the corresponding paper is selected for printing. When a paper-end is detected by the paper roll sensor, the printer goes offline after printing stops. When either bit 0 or 1 is on, the printer selects the paper roll near-end sensor for the paper sensor to stop printing.
  • Page 24 38. ESC p m t1 t2 [Name] Generate pulse [Format] ASCII m t1 t2 m t1 t2 Decimal m t1 t2 [Range] m = 0, 1, 48, 49 0 ≤ t1 ≤ 255, 0≤ t2 ≤ 255 [Description] Outputs the pulse specified by t1 and t2 to connector pin m as follows: Connector pin 0, 48 Drawer kick-out connector pin 2.
  • Page 25 40. ESC { n [Name] Turns on/off upside-down printing mode [Format] ASCII Decimal 123 n 0 n 255 [Range] [Description] Turns upside-down printing mode on or off. When the LSB of n is 0, upside-down printing mode is turned off. When the LSB of n is 1, upside-down printing mode is turned on.
  • Page 26 [dpi: dots per 25.4 mm {1"}] n is the number of the NV bit image (defined using the FS q command). m specifies the bit image mode. NV bit image means a bit image which is defined in a non-volatile memory by [Details] FS q and printed by FS p.
  • Page 27 n specifies the number of the defined NV bit image. xL, xH specifies (xL xH 256) 8 dots in the horizontal direction for the NV ╳ ╳ bit image you are defining. yL, yH specifies (yL yH 256) 8 dots in the vertical direction for the NV bit ╳...
  • Page 28 When this command is received during macro definition, the printer ends macro definition,and begins performing this command. Once a NV bit image is defined, it is not erased by performing ESC @, reset, and power off. This command performs only definition of a NV bit image and does not perform printing.Printing of the NV bit image is performed by the FS p command.
  • Page 29 43. 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 30 In page mode, vertical and horizontal directions are based on the character orientation. When characters are enlarged with different sizes on one line, all the characters on the line are aligned at the baseline. The ESC ! command can also turn double-width and double-height modes on or off.
  • Page 31 [Description] Defines a downloaded bit image using the number of dots specified by x and y • x specifies the number of dots in the horizontal direction. • y specifies the number of dots in the vertical direction. [Details] • The number of dots in the horizontal direction is x ╳...
  • Page 32 Decimal [Range] 0 ≤ m ≤ 3, 48 ≤ m ≤ 51 [Description] Prints a downloaded bit image using the mode specified by m. m selects a mode from the table below: Mode Vertical Dot Density (DPI) Horizontal Dot Density (DPI) 0, 48 Normal 1, 49...
  • Page 33 [Description] Turns on or off white/black reverse printing mode. When the LSB of n is 0, white/black reverse mode is turned off. When the LSB of n is 1, white/black reverse mode is turned on. Only the lowest bit of n is valid. [Details] This command is available for all characters,except HRI characters .
  • Page 34 • The left margin is set to [( nL + nH ╳ 256) ╳ horizontal motion unit]] inches. Printable area Left margin Printing area width [Details] • This command is effective only processed at the beginning of the line in standard mode.
  • Page 35 Commands using x: ESC 3, ESC J, ESC W, GS $, GS \ Commands using y: ESC SP, ESC $, ESC W, ESC \,FS S, GS V The command does not affect the previously specified values. The calculated result from combining this command with others is truncated to the minimum value of the mechanical pitch.
  • Page 36 [Description] Sets the printing area width to the area specified by nL and nH. ╳ • The printing area width is set to [( nL + nH  256) ╳ horizontal motion unit]] inches. [Details] • This command is effective only processed at the beginning of the line. •...
  • Page 37 • 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. [Reference] ESC $, ESC T, ESC W, ESC \, GS $, GS P 56.
  • Page 38 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. First bit(printer status): Off/On Decimal Status for ASB Default 0 Undefined.
  • Page 39 58. GS f n [Name] Select font for Human Readable Interpretation (HRI) characters [Format] ASCII Decimal 29 102 n [Range] n = 0, 1, 48, 49 [Description] Selects a font for the HRI characters used when printing a bar code. n selects a font from the following table: Font Font A (12 24)
  • Page 40 Barcode type Number of Character Remark Characters UPC-A 11 ≤ k ≤ 12 0~9 48 ≤ d ≤ 57 UPC-E 11 ≤ k ≤ 12 0~9 48 ≤ d ≤ 57 JAN13 12 ≤ k ≤ 13 0~9 48 ≤ d ≤ 57 (EAN13) JAN8 (EAN8) 7 ≤...
  • Page 41 [Details for ②] n indicates the number of bar code data, and the printer processes n bytes from the next character data as bar code data. If n is outside of the specified range, the printer stops command processing an processes the following data as normal data.
  • Page 42 Print “No.”by CODE B,and then print next numbers by CODE C GS k 73 10 123 66 78 111 46 123 67 12 34 56 • If it is not character option before barcode data, printer will stop excuting this command, and excute following as simple data.
  • Page 43 Undefined. Not used. Fixed to 0. Cash drawer ( n = 2, 50): Decimal Status Drawer kick-out Drawer doesn’t kick-out undefined Not used. Fixed to 5,6 undefined Not used. Fixed to [Reference] DLE EOT,GS a 62. GS v 0 m xL xH yL yH d1...dk [Name] Print raster bit image [Format]...
  • Page 44 d indicates the bit-image data. Set time a bit to 1 prints the dot and setting it to 0 does not print the dot. [For example] xL+ xH × 256 = 64 63. GS w n [Name] Set bar code width [Format] ASCII Decimal 29...
  • Page 45 [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Sets the print mode for Kanji characters, using n as follows: Decimal Function 0, 1 Undefined Double-width mode is OFF. Double-width mode is ON. Double-height mode is OFF. Double-height mode is ON. Undefined Underline OFF Underline ON...
  • Page 46 66. FS - n [Name] Turn underline mode on/off for Kanji characters [Format] ASCII Decimal [Range] 0 ≤ n ≤ 2, 48 ≤ n ≤ 50 [Description] Turns underline mode for Kanji characters on or off, based on the following values of n.
  • Page 47 k = 72 [Description] Defines user-defined Kanji characters for the character codes specified by c1 and [Details] • c1 and c2 indicate character codes for the defined characters. c1 specifies for the first byte, and c2 for the second byte. •...
  • Page 48 [Format] ASCII n 1 n2 n 1 n2 Decimal n 1 n2 [Range] 0 ≤ n 1 ≤ 255 0 ≤ n 2 ≤ 255 [Description] Sets left- and right-side Kanji character spacing n1 and n2, respectively. • When the printer model used supports GS P, the left-side character spacing is ╳...
  • Page 49 71. ESC B n t [Name] Beeping on printing job (GP-80XXX series) [Format] ASCII Decimal [Range] 1<=n<=9,1<=t<=9 [Description] printer beeps when it get a printing job. • n indicates times of beeping • t indicates beeping time (t × 50)ms. 72.
  • Page 50 APPDENIX X: 128 code X.1 128 Introduction: 128 code can alternate from character A, B, C, and code 128 ASCII characters, numbers from00~99, each character set as following: • Character A: ASCII character 00H ~ 5FH • Character B: ASCII character 20H ~ 7FH •...
  • Page 51 X.2 Character Set Character A Sending data Sending data Sending data Char Char char Decimal Decimal Decimal 7B,31 123,49 7B,32 123,50 7B,33 123,51 7B,34 123,52 < 7B,53 123,83 7B,42 123,66 > 7B,43 123,67 SHIF...
  • Page 52 " &...
  • Page 53 Character B Sending data Sending data Sending data char Char Char Decimal Decimal Decimal 十进制码 " & 7B,7B 123,123 — 7B,31 123,49 7B,32 123,50 7B,33 123,51 7B,34 123,52 7B,53 123,83 7B,41 123,65 7B,43 123,67 SHIF < >...
  • Page 54 Character C Sending data Sending data Sending data char Char Char Decimal Decimal Decimal 十进制码 7B,31 123,49 7B,41 123,65 7B,42 123,66...