Programming Reference International Edition, Rev. 2.
Revision Sheet VERSAJET Programming Reference Firmware Version 3.00.01 3.00.
VERSAJET Programming Reference Proprietary Statement The information contained herein is proprietary and is provided sorely for the purpose of allowing customers to operate and maintain the equipment described herein. PC Worth Int’l Co., Ltd. reserves the right to make changes in specifications and other information contained in this document without prior notice.
VERSAJET Programming Reference Table of Contents Chapter 1 Introduction .................................................................................................. 1 JCL Command Sets ........................................................................................................................... 2 Commands Comparison between JCL and ESC/POS ....................................................................... 3 ESC / POS Emulation .........................................................
VERSAJET Programming Reference ESC !................................................................................................................................................ 36 ESC $............................................................................................................................................... 37 ESC %.............................................................................................................................................. 38 ESC & ..................
VERSAJET Programming Reference FS !................................................................................................................................................... 70 FS & ................................................................................................................................................. 72 FS - .................................................................................................................................................. 73 FS 2............
VERSAJET Programming Reference GS c ............................................................................................................................................... 156 GS f ................................................................................................................................................ 158 GS h ............................................................................................................................................... 159 GS k ...............
VERSAJET Programming Reference US 4 ............................................................................................................................................... 204 US 7 ............................................................................................................................................... 205 US A ............................................................................................................................................... 206 US C.................
VERSAJET Introduction Programming Reference Thank you for choosing Cino VersaJet Mobile Printer. The VersaJet mobile printer is designed with rugged yet lightweight architecture, delivering the ultimate convenience of mobility to meet your on-demand labels and receipts printing requirements. Besides RS232 communication interfaces, the VersaJet is compatible with most Bluetooth-enabled devices by incorporating Bluetooth 2.0 wireless technology.
VERSAJET JCL Command Sets Programming Reference ESC/POS (Epson Standard Code for Point of Sales) is one of the most world-popular command sets, which was designed to provide the expandability and universal applicability demanded by the market. The JCL (Job Control Language) is the proprietary printer language of Cino mobile printer supporting ESC/POS emulation. This not only shortens user’s learning cycle, but also minimizes the system integration efforts.
VERSAJET Programming Reference Commands Comparison between JCL and ESC/POS ESC / POS Emulation Command Descriptions HT Horizontal tab LF Print and line feed FF Print and return to standard mode (in page mode) CR Print and carriage return CAN Cancel print data in page mode ESC FF Print data in page mode ESC SP Set right-side character spacing ESC ! Select print mode(s) ESC $ Set absolute print position ESC % Select/cancel user-defined character set ESC & Define user-defined characters
VERSAJET Programming Reference Command Descriptions ESC ? Cancel user-defined characters ESC @ Initialize printer ESC { Turn upside-down printing mode on/off ESC D Set horizontal tab positions ESC E Turn emphasized mode on/off ESC G Turn double-strike mode on/off ESC J Print and feed paper ESC L Select page mode ESC M Select character font ESC R Select an international character set ESC S Select standard mode ESC T Select print direction in page mode ESC V Turn 90∘colockwise rota
VERSAJET Programming Reference Command Descriptions FS ! Set print mode(s) for Kanji characters FS & Select Kanji character mode FS - Turn underline mode on/off for Kanji character FS 2 Define user-defined Kanji characters FS S Set left – and right –side Kanji character spacing FS W Turn quadruple-size mode on/off for Kanji characters FS p Read the image file from flash memory FS q Define image, write to flash memory GS ! Select character size GS $ Set absolute vertical print position
VERSAJET Programming Reference Command Descriptions GS \ Set relative vertical print position in page mode GS ^ Execute macro GS H Select printing position of Human Readable Interpretation (HRI) characters GS f Select font for HRI characters GS h Set bar code height GS k Print bar code GS v 0 Print raster bit image GS W Set printing area width GS w Set bar code width GS B Turn white/black reverse printing mode on/off 6
VERSAJET Programming Reference JCL Feature Command Sets Command Descriptions GS C 0 Select counter print mode GS C 1 Select counter mode GS C 2 Sets the serial number counter value GS c Print counter setup GS ( k Specify and print the symbol RS A Label length measurement RS B Restore factory default RS E Clear buffer RS F Remote power off RS G Paper feed to TOF position RS J Rewind command (back feed) RS L Print self-test (Pre-defined) RS a Bit-map text format setting RS e 1D b
VERSAJET Programming Reference Command Descriptions RS n Print *.
VERSAJET Programming Reference Command Descriptions US L Feed key control US M Panel buttons control US a Get RS232 configurations US c Get Bluetooth configurations US g Get printer configurations US h Get system information US k Get head resistance US m Get printing log US n Get battery status US r Get printer status 9
VERSAJET Command Overview Programming Reference This chapter covers following topics to present the supported commands that are used with VersaJet: Command Notation Explanations of Terms Supported Commands 10
VERSAJET Programming Reference Command Notation [Name] The name of the command. [Format] The code sequence. [Range] Gives the allowable ranges for the arguments. [Default] Gives the default values, if any, for the command parameters. [Description] Describes the command’s function. [Notes] Provides important information on setting and using the printer command, if necessary. Hex indicates the hexadecimal equivalents. Decimal indicates the decimal equivalents.
VERSAJET Explanation of Terms Programming Reference (1) Receive buffer The receive buffer is a buffer that stores, as is, the data received from the host (the reception data). The reception data is stored in the receive buffer temporarily, and is then processed sequentially. (2) Print buffer The print buffer is a buffer that stores the image data to be printed. (3) Print buffer full This is the state where the print buffer is full.
VERSAJET Programming Reference (5) Printable area The maximum range within which printing is possible under the printer specifications. The printable area for this printer is as follows: The length of the horizontal direction in standard mode: approximately 48 mm {1.89 “} The length of the vertical direction in page mode: approximately 160 mm {6.3 “} (6) Printing area Printing range is set by the command. It must be printing area ≤ printable area.
VERSAJET Programming Reference (9) LSB Least Significant Bit (11) Base line Standard position when character data is stored in the print buffer. Normal character in standard mode and page mode: Ay * Base line * When font A (12×24 dots) is selected, this height is for 24 dots. * When font B (9×24 dots) is selected, this height is for 24 dots.
VERSAJET Supported Commands Programming Reference In these tables, click any name to see the command description. Please refer following instructions before you utilize these commands to configure your VersaJet: Standard mode ( ) Ignored : : : : Enabled. Enabled only when the command is used at the beginning of command codes. Enabled only when data is not present in the printer buffer. All command codes including parameters are ignored. Page mode Disabled Ignored : : : : Enabled.
VERSAJET Commands Listed by Function Programming Reference Function Command Command Type Name Descriptions Classification Print LF Print and line feed Executing Print FF Print and return to standard mode (in page mode) Executing Print CR Print and carriage return Executing Print ESC FF Print data in page mode Executing Print ESC J Print and feed paper (distance controlled by “GS P”) Executing Print ESC d Print and feed n lines Executing Line Spacing ESC 2 Select default li
VERSAJET Programming Reference Function Command Command Type Name Descriptions Classification Standard Page Mode Mode Character ESC M Select character font Setting Character ESC R Select an international character set Setting Character ESC V Turn 90° clockwise rotation mode on/off Setting Character ESC t Select character code table Setting Character GS ! Select character size Setting Character GS B Turn white/black reverse printing mode on/off Setting Character RS a Bit
VERSAJET Programming Reference Function Command Command Type Name Descriptions Classification Bit Image ESC * Select bit-image mode Bit Image GS * Define downloaded bit image Bit Image GS / Print downloaded bit image Executing Bit Image GS v 0 Print raster bit image Executing Bit Image FS p Read the image file from flash memory Executing Bit Image FS q Define image, write to flash memory Executing BMP Image RS m Save *.bmp image into flash BMP Image RS n Print *.
VERSAJET Programming Reference Function Command Command Name Descriptions Type Classification Standard Page Mode Mode Ignored Kanji FS S Set left- and right-side Kanji character spacing Setting Kanji FS W Turn quadruple-size mode on/off for Kanji character Setting Miscellaneous ESC @ Initialize printer Miscellaneous ESC L Select page mode Executing ( ) Miscellaneous ESC S Select standard mode Executing Ignored Miscellaneous GS ( K [49] Printing density setup Executing M
VERSAJET Programming Reference Function Command Command Type Name Descriptions Classification Set configuration US A RS232 Setting Setting Set configuration US C Bluetooth setting Setting Set configuration US G Buzzer control Setting Set configuration US H Auto power off duration setting Setting Set configuration US I Set printing intensity (darkness) Setting Set configuration US J Automatic status feedback Setting Set configuration US K Default operation mode setup Setting Set
VERSAJET Programming Reference Function Command Command Type Name Descriptions Classification Action Command RS A Label length measurement Executing Action Command RS B Restore factory default Executing Action Command RS E Clear buffer Executing Action Command RS F Remote power off Executing Action Command RS G Paper feed to TOF position Executing Action Command RS J Rewind distance (back feed) Executing Action Command RS L Print self-test (pre-defined) Executing Paper Sensor U
VERSAJET Commands Listed in Alphanumeric Order Programming Reference Command Function Command Name Type Descriptions Classification Standard Page Mode Mode HT Print Position Horizontal tab Executing LF Print Print and line feed Executing FF Print Print and return to standard mode (in page mode) Executing CR Print Print and carriage return Executing CAN Character Cancel print data in page mode Executing Ignored ESC FF Print Print data in page mode Executing Ignored ESC
VERSAJET Programming Reference Command Function Command Name Type Descriptions Classification ESC { Character Turn upside-down printing mode on/off Setting ESC D Print Position Set horizontal tab positions Setting ESC E Character Turn emphasized mode on/off Setting ESC G Character Turn double-strike mode on/off Setting ESC J Print Print and feed paper (distance controlled by “GS P”) Executing ESC L Miscellaneous Select page mode Executing ESC M Character Select character fo
VERSAJET Programming Reference Command Function Command Name Type Descriptions Classification FS - Kanji Turn underline mode on/off for Kanji characters Setting FS 2 Kanji Define user-defined Kanji characters Setting FS S Kanji Set left- and right-side Kanji character spacing Setting FS W Kanji Turn quadruple-size mode on/off for Kanji characters Setting FS p Flash Read the image file from flash memory Executing FS q Flash Define image, write to flash memory Executing GS ! C
VERSAJET Programming Reference Command Function Command Name Type Descriptions Classification Select printing position of Human Readable Standard Page Mode Mode GS H Bar Code GS I Miscellaneous Transmit printer ID GS L Print Position Set left margin Setting GS P Miscellaneous Set horizontal and vertical motion units Setting GS W Print Position Set printing area width Setting ( ) GS \ Print Position Set relative vertical print position in page mode Executing Ignored GS ^
VERSAJET Programming Reference Command Function Command Name Type Descriptions Classification RS J Action Rewind command (back feed) Executing RS L Action Print self-test (pre-defined) Executing RS a Text Format Bit-map text format setting Setting RS e Linear bar code 1D bar code generic setting Setting RS i Graphics Draw line/box RS m Image Save *.bmp image into flash RS n Image Print *.
VERSAJET Programming Reference Command Function Command Name Type Descriptions Classification US A Set Configuration RS232 setting Setting US C Set Configuration Bluetooth setting Setting US G Set Configuration Buzzer control Setting US H Set Configuration Auto power off duration setting Setting US I Set Configuration Set printing intensity (darkness) Setting US J Set Configuration Automatic status feedback Setting US K Set Configuration Default operation mode setup Settting US
VERSAJET Programming Reference Command Descriptions This section contains the command codes for the VersaJet which allows you to configure your printer for particular application to match your specific requirements. Each command begins on a separate page with its own heading to help you find the key information about each command.
HT VERSAJET Programming Reference [Name] Horizontal tab [Format] ASCII Hex Decimal [Range] None [Default] None [Description] Moves the printing position to the next horizontal tab. HT 09 9 [Notes] This command is ignored unless the next horizontal tab position has been set. Horizontal tab positions are set by ESC D. If the next horizontal tab position exceeds the printing area, the printer sets the printing position to [Printing area width + 1].
LF VERSAJET Programming Reference [Name] Print and line feed [Format] ASCII Hex Decimal [Range] None [Default] None [Description] Prints the data in the print buffer and feed one line LF 0A 10 [Notes] The amount of paper feed per line is based on the value set using the line spacing command (ESC 2 or ESC 3). After printing, the print position moves to the beginning of the line. When a left margin is set in standard mode, the position of the left margin is the beginning of the line.
FF (in page mode) VERSAJET Programming Reference [Name] Print and return to standard mode [Format] ASCII Hex Decimal [Range] None [Default] None [Description] In page mode, prints the data in the printer buffer collectively and returns to standard mode. FF 0C 12 [Notes] This command is enabled only in page mode. Page mode can be selected by ESC L. The data is deleted in the printing area after being printed. This command returns the value set by ESC W to the default value.
CR VERSAJET Programming Reference [Name] Printing and carriage return [Format] ASCII Hex Decimal [Range] None [Default] None [Description] Executes printing and one line feed as LF. CR 0D 13 [Notes] After printing, the printing position moves to the beginning of the line. When a left margin is set, the position of the left margin is the beginning of the line. When this command is processed in page mode, only the printing position moves, and the printer does not perform actual printing.
CAN VERSAJET Programming Reference [Name] Cancel printing data in page mode [Format] ASCII Hex Decimal [Range] None [Default] None [Description] In page mode, deletes all the print data for the current printing area. CAN 18 24 [Notes] This command is only enabled in page mode. If data set in the previously specified printing area is set in the currently specified printing area, it is deleted.
ESC FF VERSAJET Programming Reference [Name] Print data in page mode [Format] ASCII Hex Decimal [Range] None [Default] None [Description] In page mode, prints all buffered data in the printable area collectively. ESC FF 1B 0C 27 12 [Notes] This command is enabled only in page mode. Page mode can be selected by ESC L. After printing, the printer does not clear the buffered data, the printing position, or values set by other command. The printer returns to standard mode with FF, ESC S and ESC @.
ESC SP VERSAJET Programming Reference [Name] Set right-side character spacing [Format] ASCII Hex Decimal [Range] 0≦n≦255 [Default] n=0 [Description] Sets the right-side character spacing to nx (horizontal or vertical motion unit). ESC SP n 1B 20 n 27 32 n [Notes] The character spacing set by this command is effective for alphanumeric and user-defined character. When characters are enlarged, the character spacing is n times normal value.
ESC ! VERSAJET Programming Reference [Name] Select print mode(s) [Format] ASCII Hex Decimal [Range] 0≦n≦255 [Default] n=0 [Description] Selects print mode(s) using n as follows: Bit 0 ESC ! n 1B 21 n 27 33 n Off/On Hex Decimal Function Off 00 0 Character font A (12 × 24). On 01 1 Character font B (9 × 24). 1 - - Undefined. 2 - - Undefined. 3 4 5 6 7 Off 00 0 Emphasized mode not selected. On 08 8 Emphasized mode selected. Off 00 0 Double-height mode not selected.
ESC $ VERSAJET Programming Reference [Name] Set absolute print position [Format] ASCII Hex Decimal [Range] 0≦nL≦255, 0≦nH≦255 [Default] None [Description] Sets the print starting position to (nL + nH x256) x (horizontal or vertical motion unit) from the beginning of the line. ESC $ nL nH 1B 24 nL nH 27 36 nL nH [Notes] The printer ignores any setting that exceeds the printing area When standard mode is selected, the horizontal motion unit is used.
ESC % VERSAJET Programming Reference [Name] Select/cancel user-defined character set [Format] ASCII Hex Decimal [Range] 0≦n≦255 [Default] n=0 [Description] Selects or cancels user-defined character set. ESC % n 1B 25 n 27 37 n When the LSB of n is 0, the user-defined character set is canceled. When the LSB of n is 1, the user-defined character set is selected. [Notes] When the user-defined character set is canceled, the resident character set is automatically selected.
ESC & VERSAJET Programming Reference [Name] Define user-defined characters [Format] ASCII Hex Decimal [Range] y=3 32≦c1≦c2≦126 0≦x≦12(Font A - 12 x 24) 0≦x≦9(Font B - 9 x 24) 0≦d≦255 k = c2 – c1 + 1 [Default] None [Description] Defines user-defined characters from character code check c1 to c2. ESC & y c1 c2 [x1 d1 d(yx x1)] [xk d1 d(yx xk)] 1B 26 y c1 c2 [x1 d1 d(yx x1)] [xk d1 d(yx xk)] 27 38 y c1 c2 [x1 d1 d(yx x1)] [xk d1 d(yx xk)] y specifies the number of bytes in the vertical direction.
When the value of y, c1, c2, or x is out of the range, this command is canceled, and the following data is processed as normal data. VERSAJET Programming Reference This command can define user-defined characters for each font independently. To select a font, use ESC ! or ESC M. A user-defined character, downloaded graphics, and downloaded bit image cannot be defined simultaneously. When this command is executed, the downloaded bit image is cleared.
ESC * VERSAJET Programming Reference [Name] Select bit-image mode [Format] ASCII Hex Decimal [Range] m = 0, 1, 32, 33 0≦nL≦255 0≦nH≦3 0≦d≦255 k = nL + nH x 256 [in case of m = 0, 1] k = nL + nH x 256 x 3 [in case of m = 32, 33] [Description] Selects a bit-image mode using m for the number of dots specified by (nL + nH x256) as follows: ESC * m nL nH d1dk 1B 2A m nL nH d1 dk 27 42 m nL nH d1 dk m Mode 0 1 32 33 8-dot single-density 8-dot double-density 24-dot single-density 24-dot double-density
VERSAJET Programming Reference [Notes] Data (d) specifies a bit printed to 1 and not printed to 0. If the bit image data exceeds the number of dots to be printed on a line, the excess data is ignored. The bit-image is not affected by print mode(emphasized, double-strike, underline, character size, white/black reverse printing, or 90° clockwise-rotated), except for upside-down printing mode. After printing a bit image, the printer processes normal data. This command is used to print a picture or logo.
ESC VERSAJET Programming Reference [Name] Turn underline mode on/off [Format] ASCII Hex Decimal [Range] 0 ≤ n ≤ 2, 48 ≤ n ≤ 50 [Default] n=0 [Description] Turns underline mode on or off, based on the following values of n : n 0, 48 1, 49 2, 50 ESC - n 1B 2D n 27 45 n Function Turns off underline mode Turns on underline mode (1-dot thick) Turns on underline mode (2-dots thick) [Notes] The printer can underline all characters, but cannot underline the space set by HT.
ESC 2 VERSAJET Programming Reference [Name] Select default line spacing [Format] ASCII Hex Decimal [Range] None [Default] None [Description] Sets the line spacing to the “default line spacing”. ESC 2 1B 32 27 50 [Notes] The line spacing can be independently in standard and page mode. In standard mode this command sets the line spacing of standard mode. In page mode this command sets the line spacing of page mode.
ESC 3 VERSAJET Programming Reference [Name] Set line spacing [Format] ASCII Hex Decimal [Range] 30≦n≦255 [Default] Amount of line spacing which corresponds to “default line spacing” (See ESC 2 for the line spacing). [Description] Set the line spacing to nx (vertical or horizontal motion unit). ESC 3 n 1B 33 n 27 51 n [Notes] The maximum line spacing is 160mm. If the specified amount exceeds 160mm, the line spacing is automatically set to 160mm.
ESC ? VERSAJET Programming Reference [Name] Cancel user-defined characters [Format] ASCII Hex Decimal [Range] 32≦n≦126 [Default] None [Description] Cancels the user-defined characters defined for the character code n. ESC ? n 1B 3F n 27 63 n [Notes] After user-defined characters are canceled, the resident character set is printed. This command can cancel user-defined characters for each font independently. To select a font, use ESC ! or ESC M.
ESC @ VERSAJET Programming Reference [Name] Initialize printer [Format] ASCII Hex Decimal [Range] None [Default] None [Description] The data in the print buffer is cleared, and the printer mode(s) is reset to the mode that was in effect when the power was turned on. ESC @ 1B 40 27 64 Any macro definitions are not cleared. Contents of user non-volatile memory are not cleared. Non-volatile bit image is not cleared. Printing log is not cleared. [Notes] The data in the receive buffer is not cleared.
ESC { VERSAJET Programming Reference [Name] Turn upside-down printing mode on/ff [Format] ASCII Hex Decimal [Range] 0≦n≦255 [Default] n=0 [Description] In standard mode, turns upside-down printing mode on/off ESC { n 1B 7B n 27 123 n When the LSB of n is 0, upside-down mode is turned off. When the LSB of n is 1, upside-down mode is turned on. [Notes] When standard mode is selected, this command is enabled only when processed at the beginning of the line.
ESC D VERSAJET Programming Reference [Name] Set horizontal tab positions [Format] ASCII Hex Decimal [Range] 1≦n≦255 0≦k≦32 [Default] n = 8,16,24,32 (Every eight characters for the default font set by ESC ! or ESC M) [Description] Sets a horizontal tab to n columns from the beginning of the line. k indicates the number of horizontal tab positions to be set.
VERSAJET Programming Reference When [n] is less than or equal to the preceding value [n]k-1, horizontal tab setting is finished, and the following data is processed as normal data. k is not transmission data to the printer. Even if the character width is changed after setting the horizontal tab position, the setting of the horizontal tab positions will not be changed. Horizontal tab positions setting are effective until ESC @ is executed, the printer is reset, or the power is turned off.
ESC E VERSAJET Programming Reference [Name] Turn emphasized mode on/ff [Format] ASCII Hex Decimal [Range] 0≦n≦255 [Default] n=0 [Description] Turns emphasized mode on/ff ESC E n 1B 45 n 27 69 n When the LSB of n is 0, emphasized mode is turned off. When the LSB of n is 1, emphasized mode is turned on. [Notes] This mode is effective for alphanumeric, Kana, multilingual and user-defined character.
ESC G VERSAJET Programming Reference [Name] Turn double-strike mode on/ff [Format] ASCII Hex Decimal [Range] 0≦n≦255 [Default] n=0 [Description] Turns double-strike mode on/off ESC G n 1B 47 n 27 71 n [Notes] When the LSB of n is 0, double-strike mode is turned off. When the LSB of n is 1, double-strike mode is turned on.
ESC J VERSAJET Programming Reference [Name] Print and feed paper [Format] ASCII Hex Decimal [Range] 0≦n≦255 [Default] None [Description] Prints the data in the print buffer and feeds the paper nx (vertical or horizontal motion unit). ESC J n 1B 4A n 27 74 n [Notes] The maximum paper feed amount is 160mm. If the specified amount exceeds 160mm, the paper feed amount is automatically set to 160mm. When standard mode is selected, the vertical motion unit is used.
VERSAJET Programming Reference When this command is processed in page mode, only the printing position moves, and the printer does not perform actual printing. This command is used to temporarily feed a specific length without changing the line spacing set by other commands.
ESC L VERSAJET Programming Reference [Name] Select page mode [Format] ASCII Hex Decimal [Range] None [Default] None [Description] Switches from standard mode to page mode. ESC L 1B 4C 27 76 [Notes] This command is only enabled when processed at the beginning of the line in standard mode. In other cases, this command is ignored. The printing position is the starting position specified by ESC T within the printing area defined by ESC W.
VERSAJET Programming Reference Standard mode is selected as the default. In page mode, the printer prints the data in the print buffer for the printing area specified by ESC W collectively by FF or ESC FF. When executing the print and paper feed commands, such as LF, CR, ESC J and ESC d, only the printing position moves, and the printer does not perform actual printing.
ESC M VERSAJET Programming Reference [Name] Select character font [Format] ASCII Hex Decimal [Range] 0, 1, 48, 49 [Default] n=0 [Description] Selects a character font, using n as follows: n 0, 48 1, 49 ESC M n 1B 4D n 27 77 n Function Font A Font B [Notes] This mode is effective for alphanumeric, Kana, multilingual and user-defined character. Configurations of Font A and Font B depend on printer model.
ESC R VERSAJET Programming Reference [Name] Select an international character set [Format] ASCII Hex Decimal [Range] 0≦n≦10 [Default] n=0 [Description] Select an international character set n as follows: [Notes] ESC R n 1B 52 n 27 82 n U.S.A. ASCII code Hex 23 24 Dec 35 36 # $ 40 64 @ 5B 91 [ 5C 92 \ 5D 93 ] 5E 94 ^ 1 France # $ à ° Ç § ^ ` é ù è ¨ 2 Germany # $ § Ä Ö Ü ^ ` ä ö ü ß 3 U.K.
ESC S VERSAJET Programming Reference [Name] Select standard mode [Format] ASCII Hex Decimal [Range] None [Default] None [Description] Switches from page mode to standard mode. ESC S 1B 53 27 83 [Notes] This command is only enabled in page mode. Page mode can be selected by ESC L. When this command is executed, data in all the printing area is cleared, the printing area set by ESC W returns to the default value, but the value set by ESC T is maintained.
ESC T VERSAJET Programming Reference [Name] Select print direction in page mode [Format] ASCII Hex Decimal [Range] 0 ≤ n ≤ 3, 48 ≤ n ≤ 51 [Default] n=0 [Description] In page mode, selects the print direction and starting position, using n as follows: n 0, 48 1, 49 2, 50 3, 51 ESC T n 1B 54 n 27 84 n Printing Direction Left to right Bottom to top Right to left Top to bottom A → ↑ B printing area ↓ Starting Position Upper left (A in the figure) Lower left (B in the figure) Lower right (C in th
VERSAJET Programming Reference This command setting has no effect in standard mode. If this command is processed in standard mode, an internal flag is activated, and this flag is enabled when the printer selects page mode. The parameters for the horizontal or vertical motion unit differ, depending on the starting position of the printing area as follows: If the starting position is the upper left or lower right of the printing area: These commands use horizontal motion units: ESC SP, ESC $, ESC \.
ESC V VERSAJET Programming Reference [Name] Turn 90° clockwise rotation mode on/off [Format] ASCII Hex Decimal [Range] n = 0, 1, 48, 49 [Default] n=0 [Description] In standard mode, turns 90° clockwise rotation mode on or off, using n as follows: n 0, 48 1, 49 ESC V n 1B 56 n 27 86 n Function Turns off 90° clockwise rotation mode Turns on 90° clockwise rotation mode [Notes] The 90° clockwise rotation mode is effective for alphanumeric, Kana, multilingual and user-defined characters.
ESC W VERSAJET Programming Reference [Name] Set printable area in page mode [Format] ASCII Hex Decimal [Range] 0≦ xL, xH, yL, yH≦255 (except for dxL = dxH = 0 or dyL = dyH = 0) [Default] Horizontal logical origin and vertical logical origin = 0 xL = 0, xH = 0, yL = 0, yH = 0 [Description] In page mode, sets the size and the logical origin of the printing area as follows: ESC W xL xH yL yH dxL dxH dyL dyH 1B 57 xL xH yL yH dxL dxH dyL dyH 27 87 xL xH yL yH dxL dxH dyL dyH Horizontal logical origi
VERSAJET Programming Reference If [horizontal logical origin + printing area width] exceeds the printable area, the printing area width is automatically set to [horizontal printable area – horizontal logical origin]. If [vertical logical origin + printing area height] exceeds the printable area, the printing area height is automatically set to [vertical printable area – vertical logical origin]. The printing area and the logical origin set by this command are effective only in page mode.
VERSAJET Programming Reference paper ………………………….
ESC \ VERSAJET Programming Reference [Name] Set relative print position [Format] ASCII Hex Decimal [Range] 0≦nL≦255, 0≦nH≦255 [Description] Moves the print starting position to (nL + nH x256) x (horizontal or vertical motion unit) from the current position. ESC \ nL nH 1B 5C nL nH 27 92 nL nH [Notes] The printer ignores any setting that exceeds the printing area. When page mode is selected, the horizontal or vertical motion unit is used for the print direction set by ESC T.
ESC a VERSAJET Programming Reference [Name] Select justification [Format] ASCII Hex Decimal [Range] 0 ≤ n ≤ 2, 48 ≤ n ≤ 50 [Default] n=0 [Description] In standard mode, aligns all the data in one line to a specified position, using n as follows: n 0, 48 1, 49 2, 50 ESC a n 1B 61 n 27 97 n Function Left justification Centered Right justification [Notes] When standard mode is selected, this command is enabled only when processed at the beginning of the line in standard mode.
ESC d VERSAJET Programming Reference [Name] Print and feed n lines [Format] ASCII Hex Decimal [Range] 0≦n≦255 [Default] None [Description] Prints the data in the print buffer and feeds n lines. ESC d n 1B 64 n 27 100 n [Notes] The amount paper fed per line is based on the value set using the line spacing command (ESC 2 or ESC 3). The maximum paper feed amount is 160mm. If the specified amount exceeds 160mm, the paper feed amount is automatically set to 160mm.
ESC t VERSAJET Programming Reference [Name] Select character code table [Format] ASCII Hex Decimal [Range] 0≤ n ≤5, n =16 [Default] n=0 [Description] Select a page n from the character code table as follows: n 0 1 2 3 4 5 16 ESC t n 1B 74 n 27 116 n Character Code Table PC437(U.S.A.
FS ! VERSAJET Programming Reference [Name] Select print mode(s) for Kanji characters [Format] ASCII Hex Decimal [Range] 0≦n≦255 [Description] Set the print mode(double-width mode, double-height mode and Kanji underline mode) for Kanji characters, using n as follows: Bit 0 1 FS ! n 1C 21 n 28 33 n Function Reserved Reserved 2 Double-width mode is Off 2 Double-width mode is On 3 Double-height mode is Off 3 Double-height mode is On 4~6 Undefined 7 Kanji underline mode is Off 7 Kanji underline mode i
VERSAJET Programming Reference [Notes] When both double-height and double-width modes are selected (including right- and 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 or 90° clockwise-rotated characters. The thickness of the underline is that selected by FS -, regardless of the character size.
FS & VERSAJET Programming Reference [Name] Select Kanji character mode [Format] ASCII Hex Decimal [Description] Selects Kanji character mode. FS & 1C 26 28 38 [Notes] Kanji codes are processed in order of the first byte and the second byte. The settings of this command are effective until ESC @ is executed, the printer is reset, or the power is turned off.
FS VERSAJET Programming Reference [Name] Turn underline mode on/off for Kanji characters [Format] ASCII Hex Decimal [Range] 0 ≤ n ≤ 2, 48 ≤ n ≤ 50 [Default] n=0 [Description] Turns underline mode on or off for Kanji characters, based on the following values of n: n 0, 48 1, 49 2, 50 FS - n 1C 2D n 28 45 n Function Turns off underline mode for Kanji characters Turns on underline mode for Kanji characters (1-dot thick) Turns on underline mode for Kanji characters (2-dots thick) [Notes] The printe
FS 2 VERSAJET Programming Reference [Name] Define user-defined Kanji characters [Format] ASCII Hex Decimal [Range] c1 = FFH, 40H≤ c2≤ 7EH, 80H≤ c2≤ 9FH (Kanji font 24 x 24) c1 = FEH, A1H≤ c2≤ FEH (Traditional/Simplified Chinese font 24x24) 0 ≤ d ≤ 255, k = 72 [Description] Define user-defined Kanji characters for the character codes specified by c1 and c2. FS 2 c1 c2 d1...dk 1C 32 c1 c2 d1...dk 28 50 c1 c2 d1...
FS S VERSAJET Programming Reference [Name] Set left- and right-side Kanji character spacing [Format] ASCII Hex Decimal [Range] 0 ≤ n1 ≤ 255, 0 ≤ n2 ≤ 255 [Default] n1= 0, n2= 0 [Description] Sets left- and right-side Kanji characters spacing n1 and n2. When the printer model used supports GS P, the left-side character spacing is [n1x FS S n1 n2 1C 53 n1 n2 28 83 n1 n2 horizontal or vertical motion units] and the right-side character spacing is [n2x horizontal or vertical motion units].
VERSAJET Programming Reference In page mode, the horizontal or vertical motion unit differs in page mode, depending on starting position of the printable area as follows: 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.
FS W VERSAJET Programming Reference [Name] Turn quadruple-size mode on/off for Kanji characters [Format] ASCII Hex Decimal [Range] 0 ≤ n ≤ 255 [Default] n=0 [Description] Turn quadruple-size mode on or off for Kanji characters. When the LSB of n is 0, quadruple-size mode for Kanji characters is turned off and normal size is specified. When the LSB of n is 1, quadruple-size mode for Kanji characters is turned on. FS W n 1C 57 n 28 87 n [Notes] Only the lowest bit of n is valid.
FS p VERSAJET Programming Reference [Name] Read the image file from flash memory [Format] ASCII Hex Decimal [Range] 1≤ n ≤255 0≤ m ≤3, 48≤ m ≤51 [Description] Prints a NV bit image n using the mode specified by m.
FS q VERSAJET Programming Reference [Name] Define image, write to flash memory [Format] ASCII Hex Decimal [Range] 1≤ n ≤255 1≤ (xL + xH 256) ≤48 (0≤ xL ≤48, xH = 0) 1≤ (yL + yH 256) ≤160 (0≤ yL ≤160, yH = 0) 0≤ d ≤ 255 k = (xL + xH 256) (yL + yH 256) 8 Total defined data area is maximum 64 KB [Description] Defines NV bit image specified.
VERSAJET Programming Reference [Notes] NV bit image means a bit image which is defined in a non-volatile memory. The NV bit image defined is effective until the next NV bit image is defined. In standard mode, this command is effective only when processed at the beginning of the line. k bytes data of d1...dk is processed as a defined data of a NV bit image. The defined data (d) specifies a bit printed to 1 and not printed to 0. All NV bit images previously defined are canceled.
VERSAJET Programming Reference Data is written to the non-volatile memory by this command. Note the following when using this command. The printer is BUSY when writing the data to the non-volatile memory. In this case, be sure not to transmit data from the host because the printer does not receive data. Excessive use of this function may destroy the non-volatile memory. As a guideline, do not use any this command more than 10 times per day for writing data to the non-volatile memory.
GS ! VERSAJET Programming Reference [Name] Select character size [Format] ASCII Hex Decimal [Range] 0≦n≦7, 16≦n≦23, 32≦n≦39, 48≦n≦55, 64≦n≦71, 80≦n≦87, 96≦n≦103, 112≦n≦119 (1≦height≦8, 1≦width≦8) [Default] n=0 [Description] Selects the character height (vertical number of times normal font size) using bits 0 to 2 and selects the character width (horizontal number of times normal font size) using bits 4 to 6, as follows: Bit 6 Off Off Off Off On On On On GS ! n 1D 21 n 29 33 n Bit 5 Off Off On O
VERSAJET Programming Reference Bit 2 Off Off Off Off On On On On Bit 1 Off Off On On Off Off On On Character height selection Bit 0 Hex Decimal Height 1(normal) Off 00 0 2(double-height) On 01 1 3 Off 02 2 4 On 03 3 5 Off 04 4 6 On 05 5 7 Off 06 6 8 On 07 7 [Notes] The character size set by this command is effective for alphanumeric, Kana, multilingual and user-defined characters.
VERSAJET Programming Reference In page mode, double-height and double-width are on the character orientation. The setting of the character size of alphanumeric and Katakana is effective until ESC ! or ESC @ is executed, the printer is reset, or the power is turned off. The setting of the character size of Kanji and multilingual characters is effective until ESC @ is executed, the printer is reset, or the power is turned off.
GS $ VERSAJET Programming Reference [Name] Set absolute vertical print position in page mode [Format] ASCII Hex Decimal [Range] 0≦nL≦255 , 0≦nH≦255 [Default] None [Description] Sets the print starting position to (nL + nH x256) x (horizontal or vertical motion unit) from the starting position set by ESC T. GS $ nL nH 1D 24 nL nH 29 36 nL nH [Notes] This command is only enabled in page mode. If this command is processed in standard mode, it is ignored.
GS ( K VERSAJET Programming Reference [Name] Select printing control [Description] Selects printing control as follows: Function is specified by the function code fn. fn 49 Function 49 Function Selects printing density pL and pH specify parameter number after fn to (pL + pH x 256) bytes. [Notes] This command decides the function according to the function code (fn). Performance of the functions differs, depending on the function.
GS ( K VERSAJET Programming Reference [Name] Selects printing density [Format] ASCII Hex Decimal [Range] (pL + pH x 256) = 2 (pL = 2, pH = 0) fn = 49, 0 ≤ m ≤ 15 [Default] m=8 [Description] Selects printing control mode by m. m m<8 m=8 m>8 GS ( K pL pH fn m 1D 28 4B 02 00 31 m 29 40 75 2 0 49 m Function Selects pale density Selects standard density Selects strong density [Notes] When a standard mode is selected, all the data in a line is printed in the same density.
GS ( k VERSAJET Programming Reference [Name] Specify and print the symbol [Format] ASCII Hex Decimal [Description] Processes the data concerning two-dimensional code. (PDF417, QR Code, MaxiCode). GS ( k 1D 28 6B 29 40 107 Symbol type is specified by cn ; Function is specified by fn.
VERSAJET Programming Reference cn 55 56 57 fn 65 66 67 68 69 Function 765 Function 766 Function 767 Function 768 Function 769 80 Function 780 81 Function 781 65 Function 865 66 Function 866 67 68 Function 867 Function 868 80 Function 880 81 67 68 Function 881 Function 967 Function 968 80 Function 980 81 Function 981 Function Datamatrix: Specify the number of columns Datamatrix: Specify the number of rows Datamatrix: Specify the width of module Datamatrix: Specify the Bar Code Type D
VERSAJET Programming Reference [Notes] The function is specified with the function code (fn). Details of the performance differ according to the function. For processing of PDF417 symbol data (when cn = 48) The symbol data specified by Function 080 d1...dk is stored in the printer and is printed by the specification of Function 081. The symbol data in the save area is reserved until the following processing is performed: Function 080 or 180 or 980 is executed. ESC @ is executed.
VERSAJET Programming Reference For process of QR Code symbol (when cn = 49) The symbol data specified by Function 080 d1...dk is stored in the printer and is printed by the specification of Function 081. The symbol data in the save area is reserved until the following processing is performed: Function 080 or 180 or 980 is executed. ESC @ is executed. The printer is reset or the power is turned off. Executing function 181 after executing Function 180 respectively prints the same symbol data.
GS ( k PDF417 VERSAJET Programming Reference [Format] ASCII Hex Decimal GS ( k pL pH cn fn n 1D 28 6B 03 00 30 41 n 29 40 107 3 00 48 65 n [Range] (pL + pH x 256) = 3 (pL =3, pH =0) cn = 48, fn = 65 0 ≤ n ≤ 30 [Default] n=0 [Description] Specifies the number of columns of the data area of PDF417. n = 0 specifies auto processing When n is not 0, specifies the number of columns of the data area as n code word.
GS ( k PDF417 VERSAJET Programming Reference [Format] ASCII Hex Decimal GS ( k pL pH cn fn n 1D 28 6B 03 00 30 42 n 29 40 107 03 00 48 66 n [Range] ( pL + pH x 256) = 3 ( pL =3, pH =0) cn = 48, fn = 66 n = 0, 3 ≤ n ≤90 [Default] n=0 [Description] Specifies the number of rows of the data area of PDF417. n = 0 specifies auto processing When n is not 0, specifies the number of rows of the symbol as n rows. [Notes] Settings of this function affect the processing of Functions 081.
GS ( k PDF417 VERSAJET Programming Reference [Format] ASCII Hex Decimal GS ( k pL pH cn fn n 1D 28 6B 03 00 30 43 n 29 40 107 03 00 48 67 n [Range] (pL + pH x 256) = 3 (pL =3, pH =0) cn = 48, fn = 67 1≤ n ≤ 5 [Default] n=2 [Description] Specifies the width of a module of PDF417 symbol. [Notes] Settings of this function affect the processing of Functions 081. The setting unit differs, depending on the printer models.
GS ( k PDF417 VERSAJET Programming Reference [Format] ASCII Hex Decimal GS ( k pL pH cn fn n 1D 28 6B 03 00 30 44 n 29 40 107 03 00 48 68 n [Range] (pL + pH x256) = 3 (pL=3, pH =0) cn = 48, fn = 68, 5 ≤ n ≤100 [Default] n=5 [Description] Specifies the height of a module of PDF417 symbol. [Notes] Settings of this function affect the processing of Functions 081. Settings of this function are effective until ESC @ is executed, the printer is reset, or the power is turned off.
GS ( k PDF417 VERSAJET Programming Reference [Format] ASCII Hex Decimal GS ( k pL pH cn fn m n 1D 28 6B 04 00 30 45 m n 29 40 107 04 00 48 69 m n [Range] (pL + pH x 256) = 4 (pL = 4, pH =0) cn = 48, fn = 69 m = 48 48 ≤ n ≤56 [m = 48] [Default] m = 48 , n = 48 [Description] Specifies the error correction level of PDF417. The error correction level is specified by “level” when m = 48. [Notes] Settings of this function affect the processing of Functions 081.
VERSAJET Programming Reference The error correction code word calculated by modulus 929. Settings of this function are effective until ESC @ is executed, the printer is reset, or the power is turned off.
GS ( k PDF417 VERSAJET Programming Reference [Format] ASCII Hex Decimal GS ( k pL pH cn fn m d1 dk 1D 28 6B pL pH 30 50 30 d1 dk 29 40 107 pL pH 48 80 48 d1 dk [Range] 4 ≤ (pL + pH x 256) ≤ 65535 (0 ≤pL≤255, 0 ≤pH ≤255) cn = 48, fn = 80, m = 48, 0 ≤ d ≤255, k = (pL + pH x256) – 3 [Description] Stores the PDF417 symbol data (d1...dk) in the symbol save area. [Notes] Data stored in the symbol save area by this function are processed by Function 081 and 082.
GS ( k PDF417 VERSAJET Programming Reference [Format] ASCII Hex Decimal GS ( k pL pH cn fn m 1D 28 6B 03 00 30 51 m 29 40 107 03 00 48 81 m [Range] (pL + pH x 256) = 3 (pL = 3, pH = 0) cn = 48, fn = 81 m = 48 [Description] Encodes and prints the PDF417 symbol data in the symbol save area. [Notes] If there is any error described below in the data of the symbol save area, it cannot be printed. There is no data (Function 080 is not processed).
VERSAJET Programming Reference The data area includes the following code words. Data specified by Function 080. The descriptor of symbol length (the first code word in the data area). The error correction code word calculated by modulus 929. Pad codeword. This command is effective only in Page mode.
GS ( k QR Code VERSAJET Programming Reference [Format] ASCII Hex Decimal [Range] (pL + pH x256) = 4 (pL = 4, pH = 0) cn = 49, fn = 65 n1 = 49, 50, 51 n2 = 0 [Default] n1 = 50, n2 = 0 [Description] Specifies the model of QR Code. n1 49 50 51 GS ( k pL pH cn fn n1 n2 1D 28 6B 04 00 31 41 n1 n2 29 40 107 04 00 49 65 n1 n2 Function Specifies model 1. Specifies model 2. Micro QR [Notes] Settings of this function affect the processing of Functions 181 and 182.
GS ( k QR Code VERSAJET Programming Reference [Format] ASCII Hex Decimal GS ( k pL pH cn fn n 1D 28 6B 03 00 31 43 n 29 40 107 03 00 49 67 n [Range] (pL + pH X 256) = 3 (pL = 3, pH = 0) cn = 49, fn = 67 2≤n≤5 [Default] n=2 [Description] Specifies the size of a module of QR Code symbol. [Notes] Settings of this function affect the processing of Functions 181 and 182. The setting unit differs, depending on the printer models.
GS ( k QR Code VERSAJET Programming Reference [Format] ASCII Hex Decimal [Range] (pL + pH x 256) = 3 (pL = 3, pH =0) cn = 49, fn = 69 48 ≤ n ≤ 51 [Default] n = 48 [Description] Specifies the error correction level of QR Code. n 48 49 50 51 GS ( k pL pH cn fn n 1D 28 6B 03 00 31 45 n 29 40 107 03 00 49 69 n Function Specify Error correction level L Specify Error correction level M Specify Error correction level Q Specify Error correction level H Recovery Capacity % (approx.
GS ( k QR Code VERSAJET Programming Reference [Format] ASCII Hex Decimal GS ( k pL pH cn fn m d1 dk 1D 28 6B pL pH 31 50 30 d1 dk 29 40 107 pL pH 49 80 48 d1 dk [Range] 4 ≤ (pL + pH x 256) ≤ 7092 (0 ≤pL≤255, 0≤pH ≤27) cn = 49, fn = 80 m = 48, 0 ≤ d ≤255 k = ( pL + pH x 256) – 3 [Description] Stores the QR Code symbol data (d1...dk) in the symbol save area. [Notes] Data stored in the symbol save area by this function is processed by Functions 181.
VERSAJET Programming Reference Settings of this function are effective until the following processing is performed: Function 080 or 180 is executed. ESC @ is executed. The printer is reset or the power is turned off.
GS ( k QR Code VERSAJET Programming Reference [Format] ASCII Hex Decimal GS ( k p pH cn fn m 1D 28 6B 03 00 31 51 m 29 40 107 03 00 49 81 m [Range] (pL + pH x 256) = 3 (pL = 3, pH = 0) cn = 49, fn = 81 m = 48 [Default] None [Description] Encodes and prints the QR Code symbol data in the symbol save area. [Notes] If there is any error described below in the data of the symbol save area, it cannot be printed. There is no data (Function 180 is not processed).
VERSAJET Programming Reference The following data are added automatically by the encode processing.
GS ( k MaxiCode VERSAJET Programming Reference [Format] ASCII Hex Decimal [Range] (pL + pH x 256) = 3 (pL = 3, pH = 0) cn = 50 fn = 65 50 ≤ n ≤ 54 ( 52~54 not support) [Default] n = 50 [Description] Specifies the mode of the MaxiCode n 50 51 GS ( k k pL pH cn fn n 1D 28 6B 03 00 32 41 n 29 40 107 03 00 50 65 n Function Specify to mode 2. Specify to mode 3. [Notes] Settings of this function affect the processing of Functions 281.
GS ( k MaxiCode VERSAJET Programming Reference [Format] ASCII Hex Decimal GS ( k pL pH cn fn m d1…dk 1D 28 6B pL pH 32 50 30 d1…dk 29 40 107 pL pH 50 80 48 d1…dk [Range] 4 ≤ (pL + pH x 256) ≤200 (0 ≤ pL ≤ n, 0≤pH≤0) cn = 50 fn = 80 m = 48 0 ≤d ≤255 k = (pL + pH x 256) – 3 [Description] Stores the MaxiCode symbol data (d1...dk) in the symbol save area. [Notes] Data stored in the symbol save area by this function is processed by Function 281.
VERSAJET Programming Reference [Data Format] Item ANSI message header Transportation Data Format Header Ship-To Postal Code Ship-To Country Code Class of Service Tracking Number UPS Standard Carrier Alpha Code UPS Shipper Number Julian Day of Pickup Shipment ID Number Package In Shipment (package N of X total packages) Weight in pounds Address Validation Ship-To Address Ship-To City Ship-To State End of format End of transmission Size and Type [ ]> 01 96 5 or 9 digits in the USA (mode2), up to 6
GS ( k MaxiCode VERSAJET Programming Reference [Format] ASCII Hex Decimal GS (k pL pH cn fn m 1D 28 6B 03 00 32 51 m 29 40 107 03 00 50 81 m [Range] (pL + pH x 256) = 3 (pL =3, pH=0) cn = 50 fn = 81 m = 48 [Default] None [Description] Encodes and prints the MaxiCode symbol data in the symbol save area. [Notes] If there is any error described below in the data of the symbol save area, it cannot be printed. There is no data (Function 180 is not processed).
GS ( k Datamatrix VERSAJET Programming Reference [Format] ASCII Hex Decimal [Range] (pL + pH x 256) = 3 (pL =3, pH=0) cn = 55 fn = 65 [Default] None [Description] Specifies the number of columns of the data area of Datamatrix.
GS ( k Datamatrix VERSAJET Programming Reference [Format] ASCII Hex Decimal [Range] (pL + pH x 256) = 3 (pL =3, pH=0) cn = 55 fn = 66 [Description] Specifies the number of rows of the data area of Datamatrix. [Notes] GS ( k pL pH cn fn n 1D 28 6B 03 00 37 42 n 29 40 10703 00 55 66 n Matrix type Row Column 1 8 12 2 8 32 3 12 26 4 12 36 5 16 36 6 16 48 When you choose Matrix type 1, you have to set up the column and row with the corresponding values.
GS ( k Datamatrix VERSAJET Programming Reference [Format] ASCII Hex Decimal GS ( k pL pH cn fn n 1D 28 6B 03 00 37 43 n 29 40 107 03 00 55 67 n [Range] (pL + pH x 256) = 3 (pL =3, pH=0) cn = 55 fn = 67 1≤ n ≤ 5 [Default] n=1 [Description] Specifies the width of a module of Datamatrix symbol. [Notes] Settings of this function affect the processing of Functions 781. The setting unit differs, depending on the printer models.
GS ( k Datamatrix VERSAJET Programming Reference [Format] ASCII Hex Decimal GS ( k pL pH cn fn n 1D 28 6B 03 00 37 44 n 29 40 107 03 00 55 68 n [Range] (pL + pH x 256) = 3 (pL =3, pH=0) cn = 55 fn = 68 n = 0 or 1 Bar Code Type n 0 Datamatrix (standard square shape) 1 Datamatrix ECC200 Rectangle Shape [Default] n=0 [Description] Specify the Bar Code Type. [Notes] n = 0 ,Functions 765 and 766 may be omitted. Settings of this function affect the processing of Functions 781.
GS ( k Datamatrix VERSAJET Programming Reference [Format] ASCII Hex Decimal GS ( k pL pH cn fn n 1D 28 6B 03 00 37 45 n 29 40 107 04 00 55 69 n [Range] (pL + pH x 256) = 3 (pL =4, pH=0) cn = 55 fn = 69 1 ≤n ≤ 6 [Default] n=6 [Description] Specifies the Data mode of Datamatrix.
VERSAJET Programming Reference Barcode type: Rectangle Shape Row Column 8 8 12 12 16 16 12 32 26 36 36 48 Capacity alphanumeric 6 13 22 31 46 72 number 10 20 32 44 64 98 117 bytes 3 8 14 20 30 47
GS ( k Datamatrix VERSAJET Programming Reference [Format] ASCII Hex Decimal GS ( k pL pH cn fn m d1…dk 1D 28 6B pL pH 37 50 30 d1…dk 29 40 107 pL pH 55 80 48 d1…dk [Range] 4≤ (pL + pH x 256) ≤65535 (0≤pL≤255, 0≤pH≤255) cn = 55 fn = 80 m = 48 0 ≤d ≤255 k = (pL + pH x 256) – 3 [Description] Stores the Datamatrix symbol data (d1...dk) in the symbol save area. [Notes] Data stored in the symbol save area by this function are processed by Function 781.
GS ( k Datamatrix VERSAJET Programming Reference [Format] ASCII Hex Decimal GS ( k pL pH cn fn m 1D 28 6B 03 00 37 51 m 29 40 107 03 00 55 81 m [Range] (pL + pH x 256) = 3 (pL = 3, pH = 0) cn = 55 fn = 81 m = 48 [Description] Encodes and prints the Datamatrix symbol data in the symbol save area. [Notes] If there is any error described below in the data of the symbol save area, it cannot be printed. There is no data (Function 780 is not processed).
VERSAJET Programming Reference The data area includes the following code words. Data specified by Function 780. The descriptor of symbol length (the first code word in the data area). The error correction code word calculated by modulus 929. Pad codeword ESC T is not effective for QR Code, Datamatrix, or MaxiCode. This command is effective only in Page mode.
GS ( k RSS-14 VERSAJET Programming Reference [Format] ASCII Hex Decimal [Range] (pL + pH x 256) = 3 (pL = 3, pH = 0) cn = 56 fn = 65 49 ≤n ≤54 (Hex : 31~36) [Default] n = 49 [Description] Specify the mode of RSS-14.
GS ( k RSS-14 VERSAJET Programming Reference [Format] ASCII Hex Decimal GS ( k pL pH cn fn n 1D 28 6B 04 00 38 42 n 29 40 107 03 00 56 66 n [Range] (pL + pH x 256) = 3 (pL = 3, pH = 0) cn = 56 fn = 65 2 ≤ n ≤22 [Default] n = 22 [Description] Specify the RSS Expanded Stacked Symbol to define its number of segment per row. [Notes] Even number from 2 to 22 should be used. If any odd number is entered, it will be round down to be an even number.
GS ( k RSS-14 VERSAJET Programming Reference [Format] ASCII Hex Decimal GS ( k pL pH cn fn n 1D 28 6B 04 00 38 43 n 29 40 107 03 00 56 67 n [Range] (pL + pH x 256) = 3 (pL = 3, pH = 0) cn = 56 fn = 67 1 ≤ n ≤255 [Default] n=2 [Description] Specifies the width of narrow element size of a module of RSS-14 symbol. [Notes] Settings of this function affect the processing of Functions 881. The setting unit differs, depending on the printer models.
GS ( k RSS-14 VERSAJET Programming Reference [Format] ASCII Hex Decimal GS ( k pL pH cn fn n 1D 28 6B 04 00 38 44 n 29 40 107 03 00 56 68 n [Range] (pL + pH x 256) = 3 (pL = 3, pH = 0) cn = 56 fn = 68 1 ≤ n ≤255 [Default] n=2 [Description] Specifies the Height of separator of RSS-14 symbol. [Notes] Settings of this function affect the processing of Functions 881. Settings of this function are effective until ESC @ is executed, the printer is reset, or the power is turned off.
GS ( k RSS-14 VERSAJET Programming Reference [Format] ASCII Hex Decimal GS ( k pL pH cn fn m d1…dk 1D 28 6B pL pH 38 50 30 d1…dk 29 40 107 pL pH 56 80 48 d1…dk [Range] (4 ≤ (pL + pH x 256) ≤2437 (0 ≤pL≤255, 0 ≤pH ≤9) cn = 56 fn = 80 m = 48 0 ≤ d ≤255 k = (pL + pH x 256) – 3 [Description] Stores the RSS-14 symbol data (d1...dk) in the symbol save area. [Notes] Data stored in the symbol save area by this function is processed by Functions 881.
VERSAJET Programming Reference 2D Composite Component CC-A capacity 56 characters. CC-B capacity 338 characters. For RSS-14 and RSS LIMIT, the printer automatically adds a check character at 14th digit when print. Following table shows data type and data capacity for each RSS symbol.
GS ( k RSS-14 VERSAJET Programming Reference [Format] ASCII Hex Decimal GS ( k pL pH cn fn m 1D 28 6B 03 00 38 51 m 29 40 107 03 00 56 81 m [Range] (pL + pH x 256) = 3 (pL = 3, pH = 0 ) cn = 56 fn = 81 m = 48 [Default] None [Description] Encodes and prints the RSS-14 symbol data in the symbol save area. [Notes] If there is any error described below in the data of the symbol save area, it cannot be printed. There is no data (Function 880 is not processed).
GS ( k Code49 VERSAJET Programming Reference [Format] ASCII Hex Decimal GS ( k pL pH cn fn n 1D 28 6B 03 00 39 43 n 29 40 107 3 00 57 67 n [Range] (pL + pH x256) = 3 (pL = 3, pH = 0) cn = 57, fn = 67 1≤ n ≤ 255 [Default] n=2 [Description] Specifies the width of narrow element. [Notes] Settings of this function affect the processing of Functions 981. The setting unit differs, depending on the printer models.
GS ( k Code49 VERSAJET Programming Reference [Format] ASCII Hex Decimal GS ( k pL pH cn fn n 1D 28 6B 03 00 39 44 n 29 40 107 3 00 57 68 n [Range] (pL + pH x 256) = 3 (pL = 3, pH =0) cn = 57, fn = 68 1≤ n ≤ 255 [Default] n = 16 [Description] Specify the height of one row. [Notes] Settings of this function affect the processing of Functions 981. Settings of this function are effective until ESC @ is executed, the printer is reset, or the power is turned off.
GS ( k Code49 VERSAJET Programming Reference [Format] ASCII Hex Decimal GS ( k pL pH cn fn m d1 dk 1D 28 6B pL pH 39 50 30 d1 dk 29 40 107 pL pH 57 80 48 d1 dk [Range] 4 ≤ (pL + pH x 256) ≤ 81 (1 ≤ pL ≤81, pH =0) cn = 57, fn = 80 m = 48, 0 ≤ d ≤255 k = ( pL + pH x 256) – 3 Description〕 Stores the Code49 symbol data (d1...dk) in the symbol save area. [Notes] Data stored in the symbol save area by this function is processed by Functions 981.
VERSAJET Programming Reference Data capacity Characters: The characters can’t exceed 49 bytes. Following characters will spend one byte, the others will spend two bytes. Value 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 Character 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I L K L M N O Vaule 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 131 Character P Q R S T U V W X Y Z .
VERSAJET Programming Reference For example: (1) “123ABC” ; 6 bytes (2) “123abc” ; 3 + 3*2 = 9 bytes Numeric The numeric can’t exceed 81 bytes. Settings of this function are effective until the following processing is performed.
GS ( k Code49 VERSAJET Programming Reference [Format] ASCII Hex Decimal GS ( k pL pH cn fn m 1D 28 6B 03 00 39 51 m 29 40 107 3 00 57 81 m [Range] (pL + pH x 256) = 3 (pL = 3, pH = 0) cn = 57, fn = 81 m = 48 [Default] None [Description] Encodes and prints the Code49 symbol data in the symbol save area. [Notes] If there is any error described below in the data of the symbol save area, it cannot be printed. There is no data (Function 980 is not processed).
GS * VERSAJET Programming Reference [Name] Define downloaded bit image [Format] ASCII Hex Decimal [Range] 1≦x≦255 1≦y≦48 0≦d≦255 k=xxyx8 [Default] None [Description] Defines a downloaded bit image. GS * x y d1… d(x x y x 8) 1D 2A x y d1… d(x x y x 8) 29 42 x y d1… d(x x y x 8) x specifies the size of a bit image in horizontal to x bytes. y specifies the size of a bit image in vertical to y bytes. d defines the bit image data. k indicates the number of data to be defined.
VERSAJET Programming Reference Once a downloaded bit image has been defined, it is maintained until another definition is made, ESC & or ESC @ is executed, the printer is reset, or the power is turned off. A downloaded bit image and a user-defined character cannot be defined simultaneously. When this command is executed, the user-defined character is cleared. The downloaded bit image is printed by GS /.
GS / VERSAJET Programming Reference [Name] Print downloaded bit image [Format] ASCII Hex Decimal [Range] 0 ≤ n ≤ 3, 48 ≤ n ≤ 51 [Default] n=0 [Description] Prints a downloaded bit image using the mode specified by n. n selects a mode from the table below: GS / n 1D 2F n 29 47 n n Mode 0, 48 Normal 1, 49 Double-width 2, 50 Double-height 3, 51 Quadruple * dpi: dots per inch(25.4mm) [Notes] This command is ignored if a downloaded bit image has not been defined.
VERSAJET Programming Reference If the printing area width set by GS L and GS W is less than one line in vertical, the following processing is performed only on the line in question: 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.
GS : VERSAJET Programming Reference [Name] Start/end macro definition [Format] ASCII Hex Decimal [Range] None [Default] None [Description] Starts or ends macro definition GS : 1D 3A 29 58 [Notes] Macro definition starts when this command is processed during normal operation and ends when it is processed during macro definition. While the macro is defined, the printing is also executed. The maximum data size to be defined as a macro is 2 KB.
VERSAJET Programming Reference Macro is not defined when the power is turned on. The following commands cannot be contained in a macro. Do not use these commands while the macro is being defined: FS q, GS ^, and GS v 0.
GS ^ VERSAJET Programming Reference [Name] Execute macro [Format] ASCII Hex Decimal [Range] 1 ≦ r ≦ 255 0 ≦ t ≦ 255 m = 0, 1 [Default] None [Description] Executes a macro r times while waiting t x 100 msec for each macro execution, using the mode specified by m as follows: GS ^ r t m 1D 5E r t m 29 94 r t m When m = 0, the macro executes r times continuously at the interval specified by t.
VERSAJET Programming Reference Macro function is useful to print the same data repeatedly. To define a macro definition, send GS : just before and after the data desired to be repeated. And then execute macro by using GS ^ to print the same data repeatedly. Macro function eliminates the need for sending all the print data every time.
GS B VERSAJET Programming Reference [Name] Turn white/black reverse printing mode on/ff [Format] ASCII Hex Decimal [Range] 0≦n≦255 [Default] n=0 [Description] Turns white/black reverse printing mode on/ff GS B n 1D 42 n 29 66 n When the LSB of n is 0, white/black reverse printing mode is turned off. When the LSB of n is 1, white/black reverse printing mode is turned on. [Notes] This mode is effective for alphanumeric, Kana, multilingual and user-defined character.
GS C 0 VERSAJET Programming Reference [Name] Select counter print mode [Format] ASCII Hex Decimal [Range] 0 ≤ n ≤ 5, GS C 0 n m 1D 43 30 n m 29 67 48 n m 0 ≤ m ≤ 2, 48 ≤ m ≤ 50 [Default] n = 0, m = 0 [Description] Selects a print mode for the serial number counter (the number of printed digits and the print position within the entire range of printed digits). n specifies the number of digits to be printed. When n=0, the printer prints the actual digits indicated by the number value.
VERSAJET Programming Reference [Notes] The serial number counter is stored in the print buffer by GS c. Settings of this command are effective until ESC @ is executed, the printer is reset, or the power is turned off.
GS C 1 VERSAJET Programming Reference [Name] Select counter mode [Format] ASCII Hex Decimal [Range] 0 ≤ (aL + aH x 256) ≤65535 (0≤ aL ≤255, 0≤ aH ≤255) 0 ≤ (bL + bH x 256) ≤65535 (0≤ bL ≤255, 0≤ bH ≤255) 0 ≤ n ≤ 255 , 0 ≤ r ≤255 [Default] (aL + aH x 256) = 1(aL = 1, aH = 0) (bL + bH x 256) = 65535 (bL = 255, bH = 255) n=1,r=1 [Description] Selects a count mode for the serial number counter.
VERSAJET Programming Reference [Notes] In a count-up setting, when the GS c is executed, the counter value exceeds the maximum value( bL+bH x 256), restart counting from the minimum value ( aL + aH x 256). In a count-down setting, when GS c is executed, the counter value is below minimum value( bL+bH x 256), restart counting from the maximum value ( aL + aH x 256). In a count-stop setting, when executing GS c, the counter value is not changed. This command does not change the counter value.
GS C 2 VERSAJET Programming Reference [Name] Select the serial number counter value [Format] ASCII Hex Decimal [Range] 0 ≤ (nL + nH x 256) ≤65535 (0≤ nL ≤255, 0≤ nH ≤255) [Default] (nL + nH x 256) = 1 [Description] Sets the serial number counter value. Specifies the counter value as (nL + nH x 256). [Notes] Settings of this command are effective until ESC @ is executed, the printer is reset, or the power is turned off.
GS H VERSAJET Programming Reference [Name] Select printing position of Human Readable Interpretation (HRI) characters [Format] ASCII Hex Decimal [Range] 0 ≤ n ≤ 3, 48 ≤ n ≤ 51 [Default] n=0 [Description] Selects whether the printer prints the HRI character or not and printing position of HRI character when printing a bar code, using n as follows: n 0, 48 1, 49 2, 50 3, 51 GS H n 1D 48 n 29 72 n Printing Position Not printed Above the bar code Below the bar code Both above and below the bar code
GS I VERSAJET Programming Reference [Name] Transmit print IS [Format] ASCII Hex Decimal [Range] n = 65 [Default] None [Description] Transmits printer information, using n as follows: n 65 GS I n 1D 49 n 29 73 n Printer ID Firmware version [Notes] With a serial interface printer, be sure to use this function when the host can receive data. With a parallel interface printer, data sent with this command is temporarily stored in the printer send buffer like other transmitted data.
GS L VERSAJET Programming Reference [Name] Set left margin [Format] ASCII Hex Decimal [Range] 0≦ (nL + nH x 256) ≦ 65535 (0≦nL≦255, 0≦nH≦255) [Default] (nL + nH x 256) = 0 (nL = 0, nH = 0) [Description] In standard mode, sets the left margin to (nL + nH x256) x (horizontal motion unit) from the left edge of the printable area. GS L nL nH 1D 4C nL nH 29 76 nL nH [Notes] When standard mode is selected, this command is enabled only when processed at the beginning of the line.
VERSAJET Programming Reference Left margin setting is effective until ESC @ is executed, the printer is reset, or the power is turned off. Left margin position is left edge of the printable area. If left margin setting is changed, left edge of the printable area will move.
GS P VERSAJET Programming Reference [Name] Set horizontal and vertical motion units [Format] ASCII Hex Decimal [Range] 0 ≤ x ≤ 255, 0 ≤ y ≤ 255 [Default] x = 203, y = 203 [Description] Sets the horizontal and vertical motion units to 1/x and 1/y inch, respectively. GS P x y 1D 50 x y 29 80 x y When x = 0, the default setting of the horizontal value is used. When y = 0, the default setting of the vertical value is used.
VERSAJET Programming Reference The setting of this command is effective until ESC @ is executed, the printer is reset, or the power is turned off. The calculated result from combining this command with others is truncated to the minimum value of the mechanical pitch. This command does not affect the current setting values.
GS W VERSAJET Programming Reference [Name] Set printable area width [Format] ASCII Hex Decimal [Range] 0≦ (nL + nH x 256) ≦ 65535 (0≦nL≦255, 0≦nH≦255) [Default] nL = 0, nH = 0 [Description] In standard mode, sets the printable area width to (nL + nH x256) x (horizontal motion unit). GS W nL nH 1D 57 nL nH 29 87 nL nH [Notes] When standard mode is selected, this command is enabled only when processed at the beginning of the line. The left margin has no effect in page mode.
GS \ VERSAJET Programming Reference [Name] Set relative vertical print position in page mode [Format] ASCII Hex Decimal [Range] 0≦nL≦255, 0≦nH≦255 [Default] None [Description] In page mode, moves the vertical printing starting position to (nL + nH x256) x (horizontal or vertical motion unit) from the current position. GS \ nL nH 1D 5C nL nH 29 92 nL nH [Notes] This command is only enabled in page mode. If this command is processed in standard mode, it is ignored.
GS c VERSAJET Programming Reference [Name] Print counter [Format] ASCII Hex Decimal [Range] None [Default] None [Description] Sets the serial counter value in the print buffer and increments or decrements the counter value. GS c 1D 63 29 99 [Notes] After setting the current counter value in the print buffer as print data (a character string), the printer updates counter value based on the count mode set.
VERSAJET Programming Reference The counter mode (count-up, count-down, count-stop) and details of counter (maximum value, minimum value, stepping amount of incrementing or decrementing of a counter value, the repetition number of printing) are set by GS C 1. The counter value is set by GS C 2.
GS f VERSAJET Programming Reference [Name] Select font for HRI characters [Format] ASCII Hex Decimal [Range] n = 0, 1, 48, 49 [Default] n=0 [Description] Selects a font for Human Readable Interpretation (HRI) characters when printing a bar code, using n as follows: n 0, 48 1, 49 GS f n 1D 66 n 29 102 n Font of HRI characters Font A Font B [Notes] The font set by this command is only effective for HRI characters. HRI characters are printed at the position specified by GS H.
GS h VERSAJET Programming Reference [Name] Set bar code height [Format] ASCII Hex Decimal [Range] 1 ≤ n ≤ 255 [Default] n = 162 [Description] Sets the height of a bar code. n specifies number of dots in the vertical direction of a bar code. [Notes] This command setting is effective until ESC @ is executed, the printer is reset, or the power is turned off.
GS k VERSAJET Programming Reference [Name] Print bar code [Format] I. ASCII Hex Decimal GS k m d1… dk NULL 1D 6B m d1… dk NULL 29 107 m d1… dk NULL II. ASCII Hex Decimal GS k m n d1… dn 1D 6B m n d1… dn 29 107 m n d1… dn [Range] I. 0 ≤ m ≤ 6 (k and d depend on the bar code system used) II. 65 ≤ m ≤ 73 (n and d depend on the bar code system used) [Default] n = 162 [Description] Selects a bar code system and prints the bar code. k of (1) indicates the number of the bar code data to be printed.
VERSAJET Programming Reference Bar code system m 1 Number of characters Characters Character code (d) 0 UPC-A Fixed 11 ≤ k ≤12 0~9 48 ≤ d ≤ 57 1 UPC-E Fixed 11 ≤ k ≤12 0~9 48 ≤ d ≤ 57 2 JAN13 (EAN13) Fixed 12 ≤ k ≤13 0~9 48 ≤ d ≤ 57 3 JAN8 (EAN8) Fixed 7 ≤ k ≤8 0~9 48 ≤ d ≤ 57 Can be changed 1≤k 0~9, A~Z SP, $, %, *, +, -, .
VERSAJET Programming Reference [Notes] For I and II When standard mode is selected, this command is enabled only when the printing position is at the head of a line or when no data exists in the print buffer. When page mode is selected, this command develops the bar code data in the print buffer but the printer does not print the bar code data. The bar code width that exceeds the printing area cannot be specified.
VERSAJET Programming Reference For UPC-A (m = 0, 65) process Modular check character is processed as follows: Automatically added when processing data is 11 bytes. The 12th byte data is processed as a modular check character when processing data is 12 bytes. In this case, modular check character is not checked. Left guard bar/center bar/right guard bar are added automatically. For UPC-E (m = 1, 66) process The first data (d1) is processed as number system character (NSC) so 0 must be specified.
VERSAJET Programming Reference Prints a 6-column short code from 10 digit (d2.d11) except NSC and modular check characters.
VERSAJET Programming Reference For JAN8/EAN8 (m = 3, 68) process Modular check character is processed as follows: Automatically added when processing data is 7 bytes. The 8th byte data is processed as a modular check character when processing data is 8 bytes. In this case, modular check character is not checked. Left guard bar/center bar/right guard bar are added automatically.
VERSAJET Programming Reference For ITF (Interleaved 2 of 5) (m = 5, 70) process Start code and stop code are added automatically. Check digits are not calculated and added. For CODEBAR (NW-7) (m = 6, 71) process Start code and stop code are not added automatically. Transmit data including the codes. Specify the start code (ASCII = “A“ ~ “D,” / Hex = 41H ~ 44H, / Decimal = 65 ~ 68) at beginning of the data (d1).
VERSAJET Programming Reference For CODE128 ( m = 73) process Make sure to specify start character. The start character must be code set selection character (any of CODE A, CODE B, or CODE C) which selects the first code set. Stop character is added automatically. In CODE A, following data can be used.
VERSAJET Programming Reference Special characters are defined by combining two characters "{+ an alphanumeric character." The ASCII character "{" is defined by transmitting "{" twice consecutively.
GS v 0 VERSAJET Programming Reference [Name] Print raster bit image [Format] ASCII Hex Decimal [Range] 0 ≤ n ≤ 3, 48 ≤ n ≤ 51 0 ≤ xL ≤ 255 0 ≤ xH ≤ 255 0 ≤ yL ≤ 255 0 ≤ yH ≤ 8 0 ≤ d ≤ 255 k = (xL + xH x 256) x (yL + yH x 256) (k ≠ 0) [Default] n=0 [Description] Selects raster bit-image mode.
VERSAJET Programming Reference [Notes] In standard mode, this command is effective only when there is no data in the print buffer. This command has no effect in the print modes (emphasized, double-strike, underline, character size, or white/black reverse printing) for raster bit image. If the printing area width set by GS L and GS W is less than the minimum width, the printing area is extended to the minimum width only on the line in question.
GS w VERSAJET Programming Reference [Name] Set bar code width [Format] ASCII Hex Decimal [Range] 1≤n≤6 [Default] n=2 [Description] Sets the horizontal size of a bar code. n specifies the bar code module width. [Notes] This command setting is effective until ESC @ is executed, the printer is reset, or the power is turned off.
RS A VERSAJET Programming Reference [Name] Label length measurement [Format] ASCII Hex Decimal [Range] None [Default] None [Description] Label Length Measurement RS A 1E 41 30 65 [Notes] When processing the automatic measurement of the label length, the printer feeds the current roll paper to measure the label length. During this time, the printer does print. After the measuring, it writes the length of label from the measuring to the non-volatile memory.
RS B VERSAJET Programming Reference [Name] Restore factory default [Format] ASCII Hex Decimal [Range] None [Default] None [Description] Restore Factory Default. RS B 1E 42 30 66 [Notes] This command will reset the setting values of commands stored in the volatile memory. Therefore, the printer buffer is cleared, and each setting returns to the default value. The printer goes BUSY while this command is executed. In this case, be sure not to transmit data from the host.
RS E VERSAJET Programming Reference [Name] Clear buffer [Format] ASCII Hex Decimal [Range] None [Default] None [Description] Clear buffer RS E 1E 45 30 69 [Notes] If this command is sent while another command is processing, processing of the other command is canceled. This command does not change or initialize settings of other commands.
RS F VERSAJET Programming Reference [Name] Remote power off [Format] ASCII Hex Decimal [Range] None [Default] None [Description] Remote power off RS F 1E 46 30 70 [Notes] This is a real-time command that the printer executes power off processing upon receiving it. All information and data stored in RAM will be deleted by processing this command.
RS G VERSAJET Programming Reference [Name] Paper feed to TOF position [Format] ASCII Hex Decimal [Range] None [Default] None [Description] Paper feed to TOF position. [Description] Paper feed to the print position specified by the paper length measurement is executed. RS G 1E 47 30 71 [Notes] Use this function by using “ the first state of the line”. This function is used when using label paper or black mark paper.
RS J VERSAJET Programming Reference [Name] Rewind command (back feed) [Format] ASCII Hex Decimal [Range] 10 ≤ n ≤100, the unit is 0.1mm. [Default] None [Description] Rewind command (back feed) RS J n 1E 4A n 30 74 n [Notes] This command is used to make motor rewind. The paper feed back is ended when no paper is detected.
RS L VERSAJET Programming Reference [Name] Print self-test [Format] ASCII Hex Decimal [Range] None [Default] None [Description] Executes a specified test print. RS L 1E 4C 30 76 [Notes] If this command is processed while a macro is being defined, the printer cancels macro definition and starts processing this command. At that time, the macro becomes undefined.
RS a VERSAJET Programming Reference [Name] Bit-map text format setting [Format] ASCII Hex Decimal [Range] 0 ≤ n1 ≤ 1 ; 0 ≤ n2 ≤ 2 ; 0 ≤ n3 ≤ 5 ; 0 ≤ n4 ≤ 255 ; 0 ≤ n5 ≤ 1 [Default] n1 = 0 , n2 = 0 , n3 = 0 , n4 = 0 , n5 = 0 [Description] Bit-map text format setting.
VERSAJET Programming Reference n4: Character Magnification setup n5: Turn white/black reverse printing mode on/off n5 Description 0 Disable bold 1 Enable bold 180
RS e VERSAJET Programming Reference [Name] 1D bar code generic setting [Format] ASCII Hex Decimal [Range] 0 ≤ n1 ≤ 3 or 48 ≤ n1 ≤ 51 ; 0 ≤ n2 ≤ 1 or 48 ≤ n2 ≤ 49 ; 1 ≤ n3 ≤ 255 ; 1 ≤ n4 ≤ 6 [Default] n1 = 0 , n2 = 0 , n3 = 162 , n4 = 2 [Description] 1D bar code generic setting.
RS i VERSAJET Programming Reference [Name] Draw graphics [Description] Draw graphics specified by the function code fn. fn: Graphic type fn Description 0 Line 1 Box 2 Circle [Notes] This command decides the function according to the function code (fn). Performance of the functions differs, depending on the function. This command is effective until ESC @ is executed, the printer is reset, or the power is turned off.
RS i VERSAJET Programming Reference [Name] Draw line [Format] ASCII Hex Decimal [Range] n1 = 0 ; 0 ≤ x1L, x1H, y1L, y1H, x2L, x2H, y2L, y2H ≤ 255 0 ≤ w ≤ 255; 0 ≤ pL, pH ≤ 255 [Default] None [Description] Draw line x1L: Position x1(Low byte) x1H: Position x1(High byte) y1L: Position y1(Low byte) y1H: Position y1(High byte) x2L: Position x2(Low byte) x2H: Position x2(High byte) y2L: Position y2(Low byte) y2H: Position y2(High byte) RS i n1 x1L x1H y1L y1H x2L x2H y2L y2H w pL pH 1E 69
VERSAJET Programming Reference [Notes] This command can draw lines of flexible length, thickness, and patterns. X1: x-coordinate of start position. Y1: y-coordinate of start position. X2: x-coordinate of end position. Y2: y-coordinate of end position. The line pattern is repetition of 16 dots which defined by pL and pH. pL and pH specifies “1” for corresponding to dots that will be printed and “0” for bits corresponding to dots that will not be printed.
RS i VERSAJET Programming Reference [Name] Draw box [Format] ASCII Hex Decimal [Range] n1 = 1 ; 0 ≤ x1L, x1H, y1L, y1H, x2L, x2H, y2L, y2H ≤ 255 0 ≤ w ≤ 255; 0 ≤ pL, pH ≤ 255 [Default] None [Description] Draw box x1L: Position x1(Low byte) x1H: Position x1(High byte) y1L: Position y1(Low byte) y1H: Position y1(High byte) x2L: Position x2(Low byte) x2H: Position x2(High byte) y2L: Position y2(Low byte) y2H: Position y2(High byte) RS i n1 x1L x1H y1L y1H x2L x2H y2L y2H w pL pH 1E 69 n
VERSAJET Programming Reference For drawing box, (x1, y1) is coordinate of inner top left corner, (x2, y2) is coordinate of inner bottom right corner.
RS i VERSAJET Programming Reference [Name] Draw circle [Format] ASCII Hex Decimal [Range] n1 = 2 ; 0 ≤ x1L, x1H, y1L, y1H, x2L, x2H, y2L, y2H ≤ 255 0 ≤ w ≤ 255; 0 ≤ pL, pH ≤ 255 [Default] None [Description] Draw circle x1L: Center of circle, x1(Low byte) x1H: Center of circle, x1(High byte) y1L: Center of circle, y1(Low byte) y1H: Center of circle, y1(High byte) x2L: Radius(Low byte) x2H: Radius(High byte) y2L: Reserved y2H: Reserved RS i n1 x1L x1H y1L y1H x2L x2H y2L y2H w pL pH 1E
VERSAJET Programming Reference For box pattern, using pL and pH as the followings: pH=0 PL 0 1 2 3 4 Description Black frame, white background White frame, black background Filled with horizontal lines in the circle. Filled with vertical lines in the circle. Filled with cross in the circle.
RS m VERSAJET Programming Reference [Name] Save *.bmp image into flash [Format] ASCII Hex Decimal [Range] 1 ≤ n1 ≤ 4 [Default] None [Description] (1) Save *.bmp image into flash. (2) n1: ID no (3) d1…..dk: image contents (4) Max 16k 384(w)dots *336(h)dots RS m n1 d1…..dk 1E 6D n1 d1…..dk 30 109 n1 d1…..dk [Notes] This command can process “.BMP” graphics formatted images. The “.BMP” MUST be encoded as a black and white image. Execute a UltraEdit or WinHex software to load the ‘.
RS n VERSAJET Programming Reference [Name] Print *.bmp image [Format] ASCII Hex Decimal [Range] 1 ≤ n1 ≤ 4 ; 0 ≤ n2 ≤ 2 or 48 ≤ n2 ≤ 50 [Default] None [Description] (1) Print *.bmp image. (2) n1: Image index no (3) n2: Image magnification setup n2 0,48 1,49 2,50 3, 51 RS n n1 n2 1E 6E n1 n2 30 110 n1 n2 Description Normal Double-width Double-height Quadruple [Notes] This command is ignored if a downloaded bit image has not been defined.
VERSAJET Programming Reference If the printing area width set by GS L and GS W is less than one line in vertical, the following processing is performed only on the line in question: 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. This printing image is defined by RS m.
RS p VERSAJET Programming Reference [Name] Set number of copies of printing data [Format] ASCII Hex Decimal [Range] 1 ≤ n ≤ 255 [Default] None [Description] Set number of copies of printing data. RS p n 1E 70 n 30 112 n [Notes] This command can process printing data from page buffer. This command will be ignored if there is no data in page buffer. This command setting is effective until ESC @ is executed, the printer is reset, or the power is turned off.
RS q VERSAJET Programming Reference [Name] Serialization setting [Format] ASCII Hex Decimal [Range] 1 ≤ n1 ≤ 8, 1 ≤ n2 ≤ 3, 0 ≤ n3 ≤ 1, 1 ≤ n4 ≤ 255, 1 ≤ n5 ≤ 255, 1 ≤ n6 ≤ 255 1 ≤ n7 ≤ 255 [Default] None [Description] Serialization setting. n1: ID no n2: Domain n2 Description 1 Alphabetic 2 Alphanumeric 3 Number n3: Increment / Decrement n3 Description 0 Increment 1 Decrement n4: Repetition n5: Stepping(low byte) n6: Stepping(high byte) n7: Number of data d1…..
VERSAJET Programming Reference [Notes] This command allows three kinds of data, numeric, alphabetic and alphanumeric to be used. For numeric data, integers 0123456789 can be used. For alphabetic data, capital letters A to Z can be used. Lowercase letters cannot be used in a serial number. For alphanumeric data allows both numeric and alphabetic data as a serial number. Values change in the following character sequence: 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123….
RS r VERSAJET Programming Reference [Name] Print serialization [Format] ASCII Hex Decimal [Range] 1 ≤ n1 ≤ 8, n2 = 1, 0x41~0x49 [Default] None [Description] Print serialization.
VERSAJET Programming Reference [Notes] After setting the current serialization value in the print buffer as print data, the printer updates serialization value based on the count mode set before stored in the print buffer. In count-up mode, the serialization value is updated as [serialization value + increment value] In count-down mode, the serialization value is updated as [serialization value – decrement value]. In count-stop mode, the serialization is not updated.
RS t VERSAJET Programming Reference [Name] Define flash macro [Format] ASCII Hex Decimal [Range] 1≤n≤8 [Default] None [Description] Define flash macro. RS t n d1…..dk 1E 74 n d1…..dk 30 116 n d1…..dk [Notes] Macro definition starts when this command is processed during normal operation and ends when it is processed during macro definition. While the macro is defined, the printing is also executed. The maximum data size to be defined as a macro is 8 KB.
VERSAJET Programming Reference The following commands cannot be contained in a macro. Do not use these commands while the macro is being defined: FS q, GS ^, and GS v 0. Excessive use of this function may destroy the non-volatile memory. As a guideline, do not use this command more than 10 times per day for writing data to the non-volatile memory.
RS u VERSAJET Programming Reference [Name] Execute macro [Format] ASCII Hex Decimal [Range] 1 ≤ n1 ≤ 8, 1 ≤ r ≤ 255, 0 ≤ t ≤ 255, 0 ≤ m ≤ 2 [Default] None [Description] Execute macro RS t n1 r t m 1E 75 n1 r t m 30 117 n1 r t m n1: Macro index no r: Number of execution t: Interval of execution m: Operation mode n4 0 1 2 Description Continuous Feedkey Present sensor Executes a macro r times while waiting t x 100 msec for each macro execution, using the mode specified by m as follows: When m = 0,
VERSAJET When m = 1, the printer waits for the period specified by t, blinks the LED, and then waits for the paper feed button to be pressed. After this button is pressed, the printer executes the macro once. The printer repeats this operation r times. Programming Reference When m = 2, the printer prints the first page, stops and waits for taking one page. The printer prints the next page when user takes one page. [Notes] If a macro is not defined or if r is 0, this command is ignored.
US 1 VERSAJET Programming Reference [Name] Top of Form Control [Format] ASCII Hex Decimal [Range] 0≤n≤1 [Default] n=1 [Description] Enable/Disable TOF when power on (page mode only) n 0 1 US 1 n 1F 31 n 31 49 n Description Disable Enable [Notes] This command is ignored in line mode. This function is used when using label paper or black mark paper. When the setting is disabled, printer does not feed one page when the printer is turned power on.
US 2 VERSAJET Programming Reference [Name] Top of Form Offset Setting [Format] ASCII Hex Decimal [Range] 0 ≤ n1 ≤ 1, 0 ≤ n2 ≤ 100 (unit is 0.1 mm) [Default] n1 = 0, n2 = 0 [Description] Adjusts printing position in a selected direction and by a specified amount from the first position. US 2 n1 n2 1F 32 n1 n2 31 50 n1 n2 n1 specifies the adjustment direction as follows: When the LSB of n1 is “0”(forward), the position is added the offset value.
US 3 VERSAJET Programming Reference [Name] Auto tear-off control [Format] ASCII Hex Decimal [Range] 0≤ n ≤1 [Default] n=0 [Description] Disable/Enable the paper-tearing position of the label under page mode by using auto tear-off setup. n 0 1 US 3 n 1F 33 n 31 51 n Function Disable. Motor will not move back Enable. Motor will move back and forward to locate the tearing position of the label in the label gap.
US 4 VERSAJET Programming Reference [Name] Auto Tear-off offset setting [Format] ASCII Hex Decimal [Range] n1 = 0, 0 ≤ n2 ≤ 100 (unit is 0.1mm) [Default] n1 = 0, n2 = 0 [Description] Auto Tear-off offset setting. US 4 n1 n2 1F 34 n1 n2 31 52 n1 n2 n1 specifies the adjustment direction as follows: When the LSB of n1 is “0”(Forward), the position is added the offset value. n1 is a fixed value, “0”. For the mechanical reason, the direction should be forward. n2 specifies the adjustment amount.
US 7 VERSAJET Programming Reference [Name] Paper sensor setting [Format] ASCII Hex Decimal [Range] 0 ≤ n1 ≤ 1, 0 ≤ n2 ≤ 1 [Default] n1 = 1, n2 = 1 [Description] Paper sensor setting.
US A VERSAJET Programming Reference [Name] RS232 Setting [Format] ASCII Hex Decimal [Range] 0 ≤ n1 ≤ 3, 0 ≤ n2 ≤ 1, 0 ≤ n3 ≤ 2, 0 ≤ n4 ≤ 1, 0 ≤ n5 ≤ 1 [Default] n1 = 0, n2 = 0, n3 = 0, n4 = 0, n5 = 0 [Description] RS232 Setting US A n1 n2 n3 n4 n5 1F 41 n1 n2 n3 n4 n5 31 65 n1 n2 n3 n4 n5 n1: Baud rate n1 Description 0 9600 1 19200 2 38400 3 115200 n2: Data length n2 Description 0 8 bit 1 7 bit n3: Parity n3 Description 0 None 1 Even 2 Odd 206
VERSAJET Programming Reference n4: Stop bit n4 0 1 bit 1 2 bit Description n5: Flow control n5 Description 0 RTS / CTS 1 Xon / Xoff 207
US C VERSAJET Programming Reference [Name] Bluetooth setting [Format] ASCII Hex Decimal [Range] 0 ≤ n2 ≤ 2, 0 ≤n3 ≤ 1 1 ≤ d1k ≤ 8, 1 ≤ d2k ≤ 15 [Default] n2 = 0, n3 = 0, d11…..d1k (PIN Code) = ‘00000000’ d21…..d2k (Device Name) = Model name + last 4 bytes BT Address [Description] Bluetooth Setting US C n2 n3 d11…..d1k 00 d21…..d2k 00 1F 43 n2 n3 d11…..d1k 00 d21…..d2k 00 31 67 n2 n3 d11…..d1k 00 d21…..
US G VERSAJET Programming Reference [Name] Buzzer control [Format] ASCII Hex Decimal [Range] 0≤ n ≤255 [Default] n = 255 [Description] Turn buzzer on/off, using n as follows: Bit 0 1 2 3 4~7 US G n 1F 47 n 31 71 n Function Disable Power on/off beep Enable Power on/off beep Disable Battery-low on/off beep Enable Battery-low beep Disable error beep Enable error beep Disable radio link beep Enable radio link beep Reserved 209 Off/On Hex Decimal Off On Off On Off On Off On Off 00 01 00 02 00 0
US H VERSAJET Programming Reference [Name] Auto power off duration setting [Format] ASCII Hex Decimal [Range] 0 ≤ n1 ≤ 255, 0 ≤ n2 ≤ 255 [Default] n1 = 01, n2 = 04 [Description] Auto power off duration setting. US H n1 n2 1F 48 n1 n2 31 72 n1 n2 n1 : If the power is on, and the printer has had no action for n1 x 5 minutes, then the printer will be automatically off.
US I VERSAJET Programming Reference [Name] Set printing intensity (darkness) [Format] ASCII Hex Decimal [Range] 0≤ n ≤15 [Default] n=8 [Description] Set printing intensity (darkness). US I n 1F 49 n 31 73 n [Notes] When a standard mode is selected, all the data in a line is printed in the same density. When a page mode is selected, all the data printed collectively by FF or ESC FF is printed in the same density.
US J VERSAJET Programming Reference [Name] Automatic status feedback [Format] ASCII Hex Decimal [Range] 0≤ n ≤1 [Default] n=1 [Description] Automatic status feedback. US J n 1F 4A n 31 74 n n: Enable/Disable n Description 0 Disable 1 Enable [Notes] Automatic status feedback is the function that transmit the status from the printer automatically. When n = 0, this function is disabled, the printer does not transmit status automatically.
US K VERSAJET Programming Reference [Name] Default operation mode setup [Format] ASCII Hex Decimal [Range] 0≤ n ≤1 [Default] n=1 [Description] Default Operation Mode setup.
US L VERSAJET Programming Reference [Name] Feed key control [Format] ASCII Hex Decimal [Range] 0≤n≤1 [Default] n=0 [Description] Feed key control. (line mode only) US L n 1F 4C n 31 76 n n: Enable/Disable n Description 0 Feed one line 1 Feed one page [Notes] This command is ignored in page mode. When n = 0, press ‘Feed’ button, the printer feeds one line. When n = 1, press ‘Feed’ button, the printer feeds one page. This function is used when using label paper or black mark paper.
US M VERSAJET Programming Reference [Name] Panel buttons control [Format] ASCII Hex Decimal [Range] 0 ≤ n ≤ 255 [Default] n=3 [Description] Panel Buttons Control. US M n 1F 4D n 31 77 n n: Enable/Disable Bit Function Off/On Hex Decimal Off On Off On 00 01 00 02 0 1 0 2 Reserved 0 0 Disable Power Enable Power Disable Feed Enable Feed 0 1 2~7 Reserved [Notes] To prevent problems caused by an accidentally pressing the buttons, use this command to disable the button.
US a VERSAJET Programming Reference [Name] Get RS232 configurations [Format] ASCII Hex Decimal US a 1F 61 31 97 Function Start byte Contents End byte Length(Byte) 1 0x5F 1 0~255 1 0x00 [Return value] [Description] Get RS232 configurations.
VERSAJET Programming Reference [Notes] This is a real-time command that the printer executes upon receiving it. The printer returns 3 bytes, the first and third bytes are fixed values. Make sure the host computer can receive data from receiving buffer.
US c VERSAJET Programming Reference [Name] Get Bluetooth configurations [Format] ASCII Hex Decimal US c 1F 63 31 99 [Return value] Function Start Byte 1 Enable/Disable 1 Bluetooth Profile 1 Authentication 1 Length (Byte) PIN Code 8 Device Name 15 End Byte 1 [Description] Value 0x5F Reserve 0x00: SPP 0x00: Disable 0x01: Enable 0x20~0x7E + 0x00 (Null) 0x20~0x7E + 0x00 (Null) 0x00 Get Bluetooth Configurations. [Notes] This is a real-time command that the printer executes upon receiving it.
VERSAJET Programming Reference The return value of device name is a fixed length of 15 bytes, filled with char 0x00(Null) for remaining bytes if the length of real data is smaller than 15.
US g VERSAJET Programming Reference [Name] Get printer configuration [Format] ASCII Hex Decimal US g 1F 67 31 103 [Return value] Function Start Byte Buzzer Bytes Value 1 0x5F 1 0x00: Disable all 0xFF: Enable all Operation Mode 1 0x00: Page mode 0x01: Line mode Top Of Form Offset Value 1 Offset Direction Bit 7 : (0: +) / (1: -) Offset Value Bit 0~6 : 0x00~0x7F Top Of Form Control 1 0x00: Disable 0x01: Enable Auto Tear Off Control 1 0x00: Disable 0x01: Enable Auto Tear-off Offset Value 1 Offset Directi
0x05: Reflective bottom to top Reserved Power Off Duration When Connected Power Off Duration When Disconnected Printing Intensity Printing Intensity Reserved Automatic Status Feedback (ASB) Feed Key Control VERSAJET Programming Reference Panel Buttons Control Reserved [Description] 1 1 0x00~0xFF 1 0x00~0xFF 1 Bit: 4~7 (1~15) Bit: 0~3 1 0x00: Disable 0x01: Enable 1 0x00: Feed a line 0x01: Feed one page 1 0x00: Disable all 0x01: Enable all 20~32 Reserved Get printer configuration.
US h VERSAJET Programming Reference [Name] Get system information [Format] ASCII Hex Decimal US h 1F 68 31 104 [Return value] Function [Description] Length (Byte) Value Start byte 1 0x5F Customer name 15 0x20~0x7E Model name 15 0x20~0x7E Firmware version 15 0x20~0x7E End byte 1 0x00 Get system information. [Notes] This is a real-time command that the printer executes upon receiving it. The printer returns 47 bytes, the first and last bytes are fixed values.
VERSAJET Programming Reference The return value of firmware version is a fixed length of 15 bytes, filled with char 0x00(Null) for remaining bytes if the length of real data is smaller than 15.
US k VERSAJET Programming Reference [Name] Get head resistance [Format] ASCII Hex Decimal US k 1F 6B 31 107 [Return value] Function Start byte Head max Head min Head average End byte [Description] Length (Byte) 1 4 4 4 1 Value 0x5F 0x00~0xFF 0x00~0xFF 0x00~0xFF 0x00 Get head resistance. [Notes] This is a real-time command that the printer executes upon receiving it. The printer returns 14 bytes, the first and last bytes are fixed values.
US m VERSAJET Programming Reference [Name] Get printing log [Format] ASCII Hex Decimal US m 1F 6D 31 109 [Return value] Function Start byte Printing log End byte [Description] Length (Byte) 1 10 1 Value 0x5F 0x00~0xFF 0x00 Get printing log. [Notes] This is a real-time command that the printer executes upon receiving it. The printer returns 12 bytes, the first and last bytes are fixed values. Make sure the host computer can receive data from receiving buffer.
US n VERSAJET Programming Reference [Name] Get battery status [Format] ASCII Hex Decimal US n 1F 6E 31 110 [Return value] [Description] Function Start byte Battery status Length (Byte) 1 1 End byte 1 Value 0x5F 0x30: less than 10% 0x31: less than 20% 0x32: more than 20% 0x33: more than 30% 0x39: more than 90% 0x3A: 100% 0x00 Battery check [Notes] This is a real-time command that the printer executes upon receiving it. The printer returns 3 bytes, the first and last bytes are fixed values.
US r VERSAJET Programming Reference [Name] Get printer status [Format] ASCII Hex Decimal US r 1F 72 31 114 [Return value] Function Start byte Status Length (Byte) 1 1 End byte 1 Value 0x5F 0x30: Idle 0x31: Paper empty 0x32: Cover opened 0x33: Command error 0x34: Paper jam 0x36: Thermal head broken 0x37: Thermal head overheated 0x38: Low battery 0x39: Motor overheated 0x3A: Thermal head overcooled 0x3B: Motor overcooled 0x3C: BT module error 0x00 [Description] [Notes] This is a real-time command t