Page 2
Metapace T-2 1. Control Commands List Command Name Horizontal tab Print and line feed Print and return to standard mode (in page mode) Print and carriage return Cancel print data in page mode DLE EOT Real-time status transmission DLE ENQ...
Page 3
Metapace T-2 Command Name ESC d Print and feed n lines ESC p General pulse ESC t Select character code table ESC { Turn upside-down printing mode on/off FS p print NV bit image FS q Define NV bit image...
Page 4
Metapace T-2 2. Control Commands Details 2-1 Command Notation [Name] The name of the command. [Format] The code sequence. ASCII Indicates the ASCII equivalents. Hex indicates the hexadecimal equivalents. Decimal indicates the decimal equivalents. [ ] k indicates the contents of the [ ] should be repeated k times.
Page 5
Metapace T-2 [Name] Print and carriage return. [Format] ASCII Decimal [Description] ▪ When automatic line feed is enabled, this command functions the same as LF. [Notes] ▪ When automatic line feed is disabled, this command is ignored CR. ▪ The automatic line feed is ignored with a serial interface model.
Page 6
Metapace T-2 n=1 : Printer status Off/On Decimal Function Fixed. Fixed. Drawer kick-out connector pin 3 is LOW. Drawer kick-out connector pin 3 is HIGH. On-Line. Off-Line. Fixed. Not in on-line waiting status. During on lines waiting status. Paper FEED button is turned Off.
Page 7
Metapace T-2 n=4 : Continuous paper sensor status Off/On Decimal Function Fixed. Fixed. Paper roll near-end sensor : paper adequate. Paper roll near-end sensor : paper near end. Paper roll near-end sensor : paper adequate. Paper roll near-end sensor : paper near end.
Page 8
Metapace T-2 DLE DC4 fn m t (fn=1) [Name] Generate pulse in real-time. [Format] ASCII Decimal [Range] fn=1 0 ≤ m ≤ 8 1 ≤ t ≤ 8 [Description] ▪ Outputs the pulse specified by t in real-time to the connector pin specified...
Page 9
Metapace T-2 [Notes] - Executes the printer power off. ▪ If this command is encountered, the printer will not continue to process anything. To recover the printer to print again, it is necessary to turn the power on again or execute a hardware reset.
Page 10
Metapace T-2 ESC SP n [Name] Set right-side character spacing. [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Default] [Description] ▪ Sets the character spacing for the right side of the character to [n ×horizontal or vertical motion units].
Page 11
Metapace T-2 ESC % n [Name] Select/cancel user-defined character set. [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Default] [Description] ▪ Select or cancels the user-defined character set. - When the LSB of n is 0, the user-defined character set is canceled.
Page 12
Metapace T-2 ESC - n [Name] Turn underline mode on/off. [Format] ASCII Decimal [Range] 0 ≤ n ≤ 2, 48 ≤ n ≤ 50 [Default] [Description] ▪ Turn underline mode on or off, based on the following values of n :...
Page 13
Metapace T-2 ESC ? n [Name] Cancel user-defined characters. [Format] ASCII Decimal [Range] 32 ≤ n ≤ 126 [Description] ▪ Cancels user-defined characters, specified with character codes on a selected sheet. ESC @ [Name] Initialize printer. [Format] ASCII Decimal [Range] 32 ≤...
Metapace T-2 ESC G n [Name] Turn double-strike mode on/off. [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Default] [Description] ▪ Turns double-strike mode on or off. - When the LSB of n is 0, double-strike mode is turned off.
Page 15
Metapace T-2 ESC R n [Name] Select an international character set. [Format] ASCII Decimal [Range] 0 ≤ n ≤ 13 [Default] [Description] ▪ Selects international character set in from the following table : Character set Character set U.S.A Spain I...
Page 17
Metapace T-2 ESC a n [Name] Select justification. [Format] ASCII Decimal [Range] 0 ≤ n ≤2, 48 ≤ n ≤50 [Default] [Description] ▪ In standard mode, aligns all the data in one line to the position specified by n as follows :...
Page 18
Metapace T-2 Off/On Decimal Function Paper roll end sensor disable. Paper roll end sensor enable. Paper roll end sensor disable. Paper roll end sensor enable. Reserved. ESC c 5 n [Name] Enable / Disable panel button. [Format] ASCII Decimal [Range] 0 ≤...
Page 19
Metapace T-2 ESC t n [Name] Select character code table. [Format] ASCII Decimal [Range] 0 ≤ n ≤ 5, 16 ≤ n ≤ 24, 27 ≤ n ≤ 30, n=255 [Default] For model without Thai character support : n=0 For model with Thai character support : n = 20 [Description] ▪...
Page 20
Metapace T-2 ESC { n [Name] Turns upside-down printing mode on/off. [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Default] [Description] ▪ Turns upside-down printing mode on or off. - When the LSB of n is 0, upside-down printing mode is turned off.
Page 21
Metapace T-2 [Notes] ▪ Frequent write command executions by this command may damage to the NV memory. Therefore, it is recommended to write to the NV memory 10 times or less a day. ▪ During processing of this command, the printer is BUSY while writing the data to the NV bit image memory and stops receiving data.
Page 22
Metapace T-2 GS $ nL nH [Name] Set absolute vertical print position in page mode. [Format] ASCII Decimal [Range] 0 ≤ (nL + nH x 256) ≤ 65535 (0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255) [Description] ▪ Sets the absolute vertical print starting position to [(nL + nH × 256) ×...
Page 23
Metapace T-2 [Description] ▪ Enable or disables the following real-time commands. Function 0, 48 DLE DC4 fn m t (fn=1) : Not processed (disabled) 1, 49 DLE DC4 fn m t (fn=1) : Processed (enabled) 0, 48 DLE DC4 fn a b (fn=2) : Not processed (disabled)
Page 25
Metapace T-2 ▪ When a=2, the memory switch 2 is set as follows : Setting value Function Font selection : Font A (12 x 24) Font selection : Font B (9 x 24) Autocutter Function : Partial Cutting Autocutter Function : Full Cutting Codepage selection.
Page 27
Metapace T-2 GS ( L pL pH m fn [parameter] GS 8 L p1 p2 p3 p4 m fn [parameter] [Name] Select graphics data. [Format] ASCII pL pH m fn [parameter] 1D 28 4C pL pH m fn [parameter] Decimal...
Page 28
Metapace T-2 <Function 48> GS ( L pL pH m fn (fn=0, 48) [Format] ASCII Decimal [Range] (pL + pH x 256) = 2 (pL=2, pH=0) m=48 fn=0, 48 [Description] ▪ Transmits the total capacity of the NV bit-image memory (number of bytes in the memory area).
Page 29
Metapace T-2 <Function 64> GS ( L pL pH m fn d1 d2 (fn=64) [Format] ASCII Decimal [Range] (pL + pH x 256) = 4 (pL=4, pH=0) m=48 fn=64 d1=75, d2=67 [Description] ▪ Transmits the defined NV graphics key code list.
Page 30
Metapace T-2 <Function 65> GS ( L pL pH m fn d1 d2 d3 (fn=65) [Format] ASCII Decimal [Range] (pL + pH x 256) = 5 (pL=5, pH=0) m=48 fn=65 d1=67, d2=76, d3=82 [Description] ▪ Deletes all defined NV graphics data.
Page 31
Metapace T-2 [Description] ▪ The total capacity of the UV user memory is selectable as any one of [0, 64K, 128K, 192K, 256K, 320K, 384K] bytes with GS ( E. The default value is 384KB. ▪ Defines the raster graphics data in the NV graphics area.
Page 32
Metapace T-2 <Function 112> GS ( L pL pH m fn a bx by c xL xH yL yH d1...dk (fn=112) [Format] ASCII pL pH m fn a bx by c xL xH yL yH d1...dk pL pH m fn a bx by c xL xH yL yH d1...dk Decimal pL pH m fn a bx by c xL xH yL yH d1...dk...
Page 33
Metapace T-2 GS ( M pL pH fn m [Name] Customize printer. [Description] ▪ Protects or recovers values or data set or defined in the active area by commands. Function No. Descriptions 1, 49 Copies the settings stored in the active area to Function 1 the storage area (save settings).
Page 34
Metapace T-2 <Function 2> GS ( M pL pH fn m (fn=2, 50) [Format] ASCII Decimal [Range] (pL + pH x 256) = 2 (pL=2, pH=0) fn=2, 50 m=0, 1, 48, 49 [Description] ▪ When (m=0,48), initializes all settings in the active area, as described in these specifications.
Page 35
Metapace T-2 GS ( k pL pH cn fn [parameter] [Name] Specify and print the symbol. [Description] ▪ Processes the data concerning two-dimensional code. (PDF417, QR Code) - Symbol type is specified by cn. - Function is specified by fn.
Page 36
Metapace T-2 For QR Code symbol (when cn=49) ▪ The symbol data specified by Function 180 d1...dk is stored in the printer and is printed by the specification of Function 181. The symbol data in the save area is reserved until the following processing is performed :...
Page 40
Metapace T-2 ▪ The following data are added automatically by the encode processing. - Start pattern and stop pattern. - Indicator code word of left and right. - The descriptor of symbol length. (the first code word in the data area) - The error correction code word calculated by modulus 929.
Page 41
Metapace T-2 ▪ The size information for each data is as follows : Send data Decimal Data Header 1 byte Flag 1 byte Width 30H – 39H 48 – 57 1 – 5 byte Separator 1 byte Height 30H – 39H 48 –...
Page 42
Metapace T-2 <Function 167> GS ( k pL pH cn fn n (fn=67) [Format] ASCII Decimal [Range] (pL + pH x 256) = 3 (pL=3, pH=0) cn=49 fn=67 1 ≤ n ≤ 8 [Default] [Description] Specifies the size of a module of QR Code symbol.
Page 43
Metapace T-2 [Notes] ▪ Data stored in the symbol save are by this function is processed by Functions 181 and 182. The data in the symbol save area are reserved after processing Function 181 and 182. ▪ k bytes of d1..dk are processed as symbol data.
Page 44
Metapace T-2 - Error Correction code words (employs the Reed-Solomon Error Detection and Correction algorithm) - Pad codeword - Number of bits in Character Count Indicator - Mode Indicator - Terminator - Alignment Patterns (when model 2 is selected) - Extension Patterns (when model 1 is selected) ▪...
Page 45
Metapace T-2 ▪ Description of the Other Information data sent : Decimal Condition Printing is possible Printing is impossible [Notes] ▪ This command does not print the QR Code symbols. ▪ Users must consider the quiet zone for the QR Code symbols (upward and downward spaces and left and right spaces for the QR Code symbols specified in the specifications for the QR Code symbols.)
Page 46
Metapace T-2 GS B n [Name] Turns white/black reverse printing mode on / off. [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Default] [Description] ▪ Turns white/black reverse printing mode on or off. - When the LSB of n is 0, white/black reverse mode is turned off.
Page 47
Metapace T-2 GS L nL nH [Name] Set left margin. [Format] ASCII Decimal [Range] 0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255 [Default] (nL + nH x 256)=0 (nL=0, nH=0) [Description] ▪ Sets the left margin specified by nL and nH.
Page 48
Metapace T-2 ① GS V m ② GS V m n [Name] Select cut mode and cut paper. [Format] ASCII ① Decimal ASCII ② Decimal [Range] ① m=0, 1, 48, 49 ② m=65, 66, 0 ≤ n ≤ 255 [Description] ▪...
Page 49
Metapace T-2 GS ^ r t m [Name] Execute macro. [Format] ASCII Decimal [Range] 0 ≤ r ≤ 255 0 ≤ t ≤ 255 m=0, 1 [Description] ▪ Executes a macro. - r specifies the number of times to execute the macro.
Page 50
Metapace T-2 ▪ The status to be transmitted is the four bytes that follows. - First byte (printer information) Bit Off/On Hex Decimal Function Fixed. Fixed. Drawer kick-out connector pin 3 is LOW. Drawer kick-out connector pin 3 is HIGH.
Page 51
Metapace T-2 ▪ The paper roll end sensor is unstable when the cover is open. - Fourth byte (paper sensor information) Off/On Decimal Function Reserved. Reserved. Reserved. Reserved. Fixed. Reserved. Reserved. Fixed. ▪ When the memory switch Msw 8-7 is On, the printer transmits the ASB [Notes] data to the host whether the host can receive or not.
Page 52
Metapace T-2 GS h n [Name] Selects bar code height. [Format] ASCII Decimal [Range] 1 ≤ nL ≤ 255 [Default] n=162 [Description] ▪ Selects the height of the bar code as n dots. ① GS k m d1...dk NUL ② GS k m n d1...dn [Name] Print bar code.
Page 53
Metapace T-2 GS r n [Name] Transmit status. [Format] ASCII Decimal [Range] n=1, 2, 49, 50 [Description] ▪ Transmits the normal status specified by n as follows : Function 1, 49 Transmits paper sensor status. 2, 50 Transmits drawer kick-out connector status.
Page 54
Metapace T-2 [Description] ▪ Prints a raster bit image in m mode. - m specifies the bit image mode. Mode Vertical dot density Horizontal dot density 0, 48 Normal 180 dpi 180 dpi 1, 49 Double-width 180 dpi 90 dpi...
Need help?
Do you have a question about the Metapace T-2 and is the answer not in the manual?
Questions and answers