Page 2
Each company’s registered trademarks and trademarks are not marked with Notice In the case you use the Z-MODE in a Oki Label printer together with Zebra’s software (including the printer driver), if such software license is granted on the condition that the software is used in combination with a...
Table of Contents 1. 1. 1. 1. SCOPE SCOPE ........ SCOPE SCOPE ....................................................................................................................................................5 5 5 5 2. 2. 2. 2. GENERAL DESCRIPTION GENERAL DESCRIPTION ........
Page 4
8.10 ^BD UPS MAXICODE BAR CODE..............................43 8.11 ^BE EAN-13 BAR CODE................................44 8.12 ^BF MICROPDF417 BAR CODE ..............................45 8.13 ^BI INDUSTRIAL 2 OF 5 BAR CODE............................45 8.14 ^BJ STANDARD 2 OF 5 BAR CODE............................46 8.15 ^BK ANSI CODABAR BAR CODE..............................47 8.16 ^BM MSI BAR CODE..................................48 8.17 ^BQ QR CODE BAR CODE................................49...
1. SCOPE This specification applies to the Zebra converter for use with the LE840/LE850 series, general-purpose thermal label printers. 2. GENERAL DESCRIPTION This specification describes the operational procedures of the Z-MODE which converts the Zebra ® ® Programming Language (ZPL II ) to the TPCL command to perform printing.
Page 8
(4) Send a Zebra command. (5) To fine adjust a print position, print tone, etc., with the “Z-MODE Setting tool.” The BASIC file name shall start with the following string: In the case of the LE840/LE850 series: “Z-LE“ - 6 -...
3.2 MAIN PROGRAM AND SYSTEM MODE PROGRAM Main Program The main program allows the Oki Data printers to issue labels when they receive Zebra commands. System Mode Program The system mode program enables setting of Zebra command parameters with key operations in the system mode of the Oki Data printer.
3.3 DATA FILE ZEBRAPRM.TXT This is a parameter file described in “Section 5. DEFAULT SETTING.” Usually, this file is automatically created by the BASIC program, but it also can be downloaded by using the Z-MODE Setting Tool. ZDEFAULT.TXT This file contains a table of the initial values to be used just in case a transmission of Zebra commands partly failed, and a font conversion table.
4. START OF Z-MODE Place the printer in Z-MODE to use the Z-MODE. Refer to the subsequent pages for the operation example on the LE840/LE850. (Also refer to the “LE840/LE850 Key Operation Manual”.) NOTES: 1. Disable Z-MODE before downloading the BASIC file.
Page 12
Power OFF (15) Power OFF state When the Z-MODE is set to ON: Power OFF (1) Power OFF state (2) Turn on the printer power. Display of the BASIC main program (3) The BASIC program is started. Example of BASIC main program display when the Z-MODE is set to ON: LE840 VX.
5. DEFAULT SETTING If Zebra command parameters, such as paper width, are not sent to the Oki Data printer, settings with key operations are required to ensure the Oki Data printer operates properly. In this case, enabling the Z-MODE on the printer allows parameter settings with key operations.
Page 14
[PAUSE] (15) Press the [PAUSE] key. (16) Label width setting LABEL WIDTH value using [FEED] 104.0 mm [RESTART] key. To move the cursor, use the [PAUSE] key. [PAUSE] (17) Press the [PAUSE] key. (18) Ribbon type setting RIBBON Select a ribbon type using the [FEED] or WITH RIBBON [RESTART] key.
Page 15
DOT/MM (32) Dots/mm setting 12 or 8 dots/mm Select a resolution using the [FEED] or [RESTART] key. [PAUSE] (33) Press the [PAUSE] key. FORMAT CONVERT (34) Format conversion setting NONE Enable/disable format conversion using the [FEED] or [RESTART] key. [PAUSE] (35) Press the [PAUSE] key.
Page 16
[PAUSE] (49) Press the [PAUSE] key. (50) Tone adjust (MD) command ON/OFF TONE ADJ (MD) setting ENABLE Enable/disable the command using [FEED] or [RESTART] key. [PAUSE] (51) Press the [PAUSE] key. GRAPHIC POSITION (52) Graphic printing mode setting. PRECISE POSITION Select a graphic printing mode using [FEED] or [RESTART] key.
Page 17
[PAUSE] (65) Press the [PAUSE] key. SYSTEM MODE VX. X <10> RFID <11> RTC (66) The system mode menu is displayed. <12> Z-MODE <13> USB MEMORY Power OFF (67) Power OFF state - 15 -...
5.1 SELECTION OF PAPER LENGTH FEED 10.0 to 1500.0 mm RESTART Select a number from 0 through 9 for an applicable digit by pressing the [FEED] or [RESTART] key. Pressing the [PAUSE] key determines the value for the selected digit, then the cursor moves to the next digit.
5.3 SELECTION OF RIBBON TYPE WITH RIBBON • FEED WITHOUT RIBBON • RESTART Among the Zebra commands, the ^MT command sets ribbon type. If the ^MT command is not sent to the printer, ribbon type set by this parameter will be valid. If a ribbon error occurs when a direct thermal paper is used, check the ribbon type setting.
5.6 SELECTION OF PRINT SPEED FEED RESTART LE840/LE850 3 ips (G/T) 5 ips (T) 6 ips (G) 8 ips (T) 10 ips (G/T) 12 ips (G/T) When 5 ips is selected for the 203-dpi printer, printing is performed at 6 ips, and when 8 inch/sec. is selected, it is performed at 10 inch/sec.
CALIBRATE” selected, select “NONE” and substitute standard calibration settings for LE840/LE850. (For details, refer to the automatic calibration settings in LE840/LE850 Key Operation Manual.) NOTE: Do not open the print head during calibration. After the print head is opened, subsequent operations are not guaranteed.
CALIBRATE” selected, select “NONE” and substitute standard calibration settings for LE840/LE850. (For details, refer to the automatic calibration settings in LE840/LE850 Key Operation Manual.) NOTE: Do not open the print head during calibration. After the print head is opened, subsequent operations are not guaranteed.
5.11 SELECTION OF FORMAT CONVERSION NONE No format conversion • FEED 150 → 300 150dpi to 300dpi • 150 → 600 150dpi to 600dpi • RESTART 200 → 600 200dpi to 600dpi • 300 → 600 300dpi to 600dpi • Among the Zebra commands, the ^MU command converts the format.
5.13 SELECTION OF FORMAT PREFIX FEED 00 to FF HEX (00-1F HEX are not supported.) RESTART Select a number from 0 through 9 for an applicable digit by pressing the [FEED] or [RESTART] keys. Pressing the [PAUSE] key determines the value for the selected digit, then the cursor moves to the next digit.
RESTART DISABLE • When “DISABLE” is selected, the Zebra command ~SD is ignored. When “ENABLE” is selected, the print tone fine adjustment value set by the Oki Data printer system mode is overwritten with ~SD command value. - 23 -...
5.19 SELECTION OF TONE ADJUST (MD) COMMAND ON/OFF FEED ENABLE • DISABLE • RESTART When “DISABLE” is selected, the Zebra command ^MD is ignored. When “ENABLE” is selected, the TPCL print tone command is generated. 5.20 SELECTION OF GRAPHIC PRINTING MODE FEED SPEED-ORIENTED •...
5.22 SELECTION OF RFID TAG POSITION ADJUSTMENT FEED -999.9 to +999.9 mm RESTART Select a number from 0 through 9 for an applicable digit by pressing the [FEED] or [RESTART] keys. Pressing the [PAUSE] key determines the value for the selected digit, then the cursor moves to the next digit.
5.25 SETTING FOR PDF417 ・TYPE1 FEED ・TYPE2 RESTART For TYPE1, PDF417 is drawn by aspect ratio of Zebra compliant. For TYPE2, PDF417 is drawn by aspect ratio of ISO compliant. - 26 -...
6. ITEMS TO BE CHANGED Some parts of the BASIC program may need to be changed to use the Z-MODE. This document is a guide for modifying the program. 6.1 MODIFICATION TO ZEBRA COMMANDS BY USING THE BASIC PROGRAM In case a print result looks different from that of Zebra printer, ZPL commands sent from the upper system can be modified with the BASIC program in the printer into ZPL commands that generates the same result before conversion.
Main routine of the BASIC main program (After modification) *MAIN ********** To switch the source for commands analysis to SDATA2$(0) comment out then next 4 lines NOTE: Remember to set the Source for the GETCMDZB to basic application in the initial file setting !!!!!!!! SDATA1$(0) = ""...
Saving function • Saving into or reading from the onboard Flash ROM cannot be performed simultaneously with the PC commands saving function of the Oki Data printer. The operation with the PC commands saving function used is not guaranteed.
Page 32
File name • A file name can contain up to 16 characters. If the number of characters in a file name exceeds 16, the overflowing characters are discarded and the file is saved under the name of the first 16 characters. •...
7.3 USE OF WILDCARDS Applicable commands: ID/HW These commands have the following common specifications: [Common specifications] File name and extension • Wildcards are used in accordance with the rules shown below. [Wildcard applying rules] Wildcard type [*]… This can be substituted for a string with an unspecified number of characters. When [X*Y] is entered, [Y] is deemed invalid and it is processed as [X*].
7.4 TRUETYPE FONT COMMANDS Applicable commands: DU/DY/ID/A@/CW These commands have the following common specifications concerning TrueType fonts (hereinafter referred to as “TTF”): Number of usable TTF types • Up to seven types can be used (in ^A@ and ^CW). Eight or more TTFs cannot be downloaded even if there is enough space in the TTF storage area and the number of TTFs does not reach the maximum.
If the lower-case alphabet for Font B are selected, they are converted to upper-case characters before printing. When the OKI outline font is selected, the print image collapses if there exists other print data in the printing area. When the character type is space (abnormal value) as in "^A o,h,w," it is deemed as “^Ao,h,w" for operation as the space is deleted during receiving operation.
In the case of Zebra, the font selected in ^CF command is used when the name of nonexistent font is selected. However, in the case of Oki Data, the font to be used follows the font conversion table in ZDEFAULT.TXT.
= Bar code height (in dots) 203-dpi printer: LE840 1 to 800 dots 300-dpi printer: LE850 1 to 1200 dots When omitted: Value of ^BY *1 If the value after dot-to-mm conversion exceeds 100 mm, it is corrected to 100 mm.
= Bar code height (in dots) 203-dpi printer: LE840 1 to 800 dots 300-dpi printer: LE850 1 to 1200 dots When omitted: Value of ^BY *1 If the value after dot-to-mm conversion exceeds 100 mm, it is corrected to 100 mm.
The amount of data that can be contained in “No. of columns x No. of rows” for Oki Data is smaller than that for Zebra by a few bytes. (The number of bytes varies depending on the numbers of columns and rows.)
= Bar code height (in dots) 203-dpi printer: LE840 1 to 800 dots 300-dpi printer: LE850 1 to 1200 dots When omitted: Value of ^BY *1 If the value after dot-to-mm conversion exceeds 100 mm, it is corrected to 100 mm.
Module width is 5 or more: Font E Data other than numeric values, if any, are converted to ‘0.’ When the interpretation line above code is to be printed with Oki Data, the header and terminator (system number and check digit) are printed outside the guide bar.
= Bar code height (in dots) 203-dpi printer: LE840 1 to 800 dots 300-dpi printer: LE850 1 to 1200 dots When omitted: Value of ^BY *1 If the value after dot-to-mm conversion exceeds 100 mm, it is corrected to 100 mm.
= Bar code height (in dots) 203-dpi printer: LE840 1 to 800 dots 300-dpi printer: LE850 1 to 1200 dots When omitted: Value of ^BY *1 If the value after dot-to-mm conversion exceeds 100 mm, it is corrected to 100 mm.
Page 44
When data starts with ‘>’ and it is not followed by ‘8’ (“>8”: FNC1) in Mode D, the data is printed with ‘>’ skipped with Oki Data while the data after ‘>’ is not printed with Zebra. *10 When a control code with ‘>’ is placed in the middle of data in Mode D, the data after ‘>’ is printed with Oki Data while it is not printed with Zebra.
When omitted: 1 In Mode 2, if data containing less than 15 digits is selected, a bar code is not printed with Oki Data. In Mode 2, if non-Mode 2 data is selected, it is automatically encoded as Mode 3.
Module width is 4 or less: Font A Module 5 or more: Font E When the interpretation line above code is to be printed with Oki Data, the header (1st digit of country code) is printed outside the guide bar.
= Bar code height (in dots) 203-dpi printer: LE840 1 to 80 dots 300-dpi printer: LE850 1 to 120 dots When omitted: Value of ^BY *1 If the value after dot-to-mm conversion exceeds 10 mm per module, it is corrected to 10 mm.
= Bar code height (in dots) 200-dpi printer: LE840 1 to 800 dots 300-dpi printer: LE850 1 to 1200 dots When omitted: Value of ^BY *1 If the value after dot-to-mm conversion exceeds 100 mm, it is corrected to 100 mm.
When E, N, or T is selected for the start/stop character, the interpretation line is printed in lower- case characters with Oki Data while it is printed in upper-case characters with Zebra. If the command is sent without setting data (only ^FS and ^XZ are set while ^FD^FS and ^FD are not set), the barcode will not be printed.
= Bar code height (in dots) 203-dpi printer: LE840 1 to 800 dots 300-dpi printer: LE850 1 to 1200 dots When omitted: Value of ^BY *1 If the value after dot-to-mm conversion exceeds 100 mm, it is corrected to 100 mm.
While a space is placed between the point of origin and the print start point with Zebra in some cases, printing with Oki Data starts from the point or origin regardless of the Zebra operation. Information about the error correction level and the data input is required for the data portion.
8.18 ^BR GS1 DATABAR BAR CODE Format: ^BRa,b,c,d,e,f o = Font rotation N : 0° R : 90° : 180° B : 270° When omitted: Value of ^FW * The point of origin differs depending on the coordinate designated in ^FT and ^FO. b = GS1 DataBar-14 family 1 to 12 1 : GS1 DataBar 14...
Page 53
If data outside of the effective range is entered, an unreadable bar code is printed with Zebra while no bar code is printed with Oki Data. If the command is sent without setting data (only ^FS and ^XZ are set while ^FD^FS and ^FD are not set), the barcode will not be printed.
= Bar code height (in dots) 203-dpi printer: LE840 1 to 800 dots 300-dpi printer: LE850 1 to 1200 dots When omitted: Value of ^BY *1 If the value after dot-to-mm conversion exceeds 100 mm, it is corrected to 100 mm.
Module width is 5 or more: Font E Data other than numeric values, if any, are converted to ‘0.’ When the interpretation line above code is to be printed with Oki Data, the header and terminator (system number and check digit) are printed outside the guide bars.
8.21 ^BX DATA MATRIX BAR CODE Format: ^BXo,h,s,c,r,f,g o = Font rotation N : 0° R : 90° : 180° B : 270° When omitted: Value of ^FW * The point of origin differs depending on the coordinate designated in ^FT and ^FO. h = Height of individual symbol elements 1 to 99 dots When omitted: Value of ^BY...
When omitted: Previous ^BY value h = Bar code height (in dots) 203-dpi printer: LE840 1 to 800 dots 300-dpi printer: LE850 1 to 1200 dots Default: “Default bar code height (dots)” in the default setting file When omitted: Value of ^BY * If the value after dot-to-mm conversion exceeds 100 mm, it is corrected to 100 mm.
In case of parameter t is set 0, While the 6th/8th/12th-digit or other data is also printed with Zebra, only the 5th/9th/11th-digit data is printed with Oki Data (due to Oki Data specifications). Since, for the purpose of use of POSTNET bar codes, the 5th/9th/11th-digit data are used, data for digits other than 5th/9th/11th digit are not printed as bar codes.
8.24 ^CC OR ~CC CHANGE CARET Format: ^CCx or ~CCx Change caret '^‘ (0x5E) x = Prefix Any character code from 0x20 to 0x7F Non-omissible Default: “FORMAT PREFIX” in the Z-MODE parameter * The supported character codes differ from those for Zebra. When a job is cancelled while parameters are not saved by the JU command, the parameters specified by this command will not be taken over after the job is cancelled but "reset."...
8.25 ^CD OR ~CD CHANGE DELIMITER Format: ^CDa or ~CDa Change delimiter ',‘ (0x2c) x = Delimiter Any character code from 0x20 to 0x7F Non-omissible Default: “DELIMITER CHAR” in the Z-MODE parameter * The supported character codes differ from those for Zebra. When a job is cancelled while parameters are not saved by the JU command, the parameters specified by this command will not be taken over after the job is cancelled but "reset."...
8.26 ^CF CHANGE ALPHANUMERIC DEFAULT FONT Format: ^CFf,h,w f = Default font setting A to Z, 0 to 9 Default: A When omitted: Previous CF value h = Individual character height (in dots) 0 to 32000 Default: 9 When omitted: Calculated from the width based on the ratio *1 w = Individual character width (in dots) 0 to 32000 Default: 5...
8.27 ^CI CHANGE INTERNATIONAL FONT/ENCODING Format: ^CIa,s1,d1,s2,d2,… a = Setting font code 0 to 30 (14 to 17, 24 to 26, 29, and 30 are not supported) 0 : Single Byte Encoding - U.S.A. 1 Character Set 1 : Single Byte Encoding - U.S.A. 2 Character Set 2 : Single Byte Encoding - U.K.
8.28 ^CT OR ~CT CHANGE TILDE Format: ^CTa or ~CTa Change control command '~‘ (0x7E) a = Control command character Any character code from 0x20 to 0x7F Non-omissible Default: “CONTROL PREFIX” in the Z-MODE parameter * The supported character codes differ from those for Zebra. When a job is cancelled while parameters are not saved by the JU command, the parameters specified by this command will not be taken over after the job is cancelled but "reset."...
8.29 ^CW FONT IDENTIFIER Format: ^CWa,d:o.x a = Font number A to Z, 0 to 9 When omitted: This command is ignored. d = Drive R : RAM E : On-board Flash ROM B : USB memory A : USB memory When omitted: R o = File name When omitted: UNKNOWN...
8.30 ^DF DOWNLOAD FORMAT Format: ^DFd:o.x d = Drive R : RAM E : On-board Flash ROM B : USB memory A : USB memory When omitted: R o = File name A file name consisting of 1 to 16 characters can be set. When omitted: UNKNOWN x = Extension ZPL (fixed)
8.31 ~DG DOWNLOAD GRAPHICS Format: ~DGd:o.x,t,w,data d = Drive R : RAM E : On-board Flash ROM B : USB memory A : USB memory When omitted: R o = File name A file name consisting of 1 to 16 characters can be set. When omitted: UNKNOWN x = Extension GRF (fixed)
For TrueType fonts, refer to “7.4 TRUETYPE FONT COMMANDS.” While, in the case of Zebra, data is registered only when the extension is set to FNT, all extensions can be registered and read with Oki Data regardless of extension setting. - 66 -...
Non-omissible The registered data can be deleted with ^ID/^EG command. When the extension is set to Oki Data, downloaded objects cannot be handled as font data. For the common specifications of commands used for the devices, refer to “7.2 COMMANDS USED FOR DEVICES.”...
8.37 ^FA FIELD ALLOCATE Format: ^FAn Prints specified digits only. n = Number of digits Maximum number of data digits: 253 When omitted: This command is ignored. - 70 -...
8.38 ^FB FIELD BLOCK Format: ^FBa,b,c,d,e a = Text block/line width (in dots) 0 to 832: LE840 0 to 1238: LE850 When omitted: “Rectangle width” in the default setting table b = Maximum number of lines in text block 1 to 99 When omitted: “Number of rows in the rectangle”...
Page 74
• The operation for special code (0x23, 0x28) differs from that with Zebra. With Oki Data, a line feed is made and the code is printed at the beginning of the next line. • With the special code 0x1f, which develops into 0x1f+0x1f, a back lash is printed.
8.39 ^FC FIELD CLOCK Format: ^FCa,b,c a = Primary clock indicator character Characters except for the current format and the control prefix, separation character, and hexadecimal code ('^' '~' ',' '_') Default When omitted : % b = Secondary clock indicator character Characters except for the current format and the control prefix, separation character, and hexadecimal code ('^' '~' ',' '_') Default...
8.41 ^FH FIELD HEXADECIMAL INDICATOR Format: ^Fha a = Hexadecimal indicator Characters except for the current format and control prefix ('^' '~') Default : _ (underscore) When omitted : _ (underscore) The code corresponding to the indicator differs from that with Zebra. 1-byte hexadecimal code indicators such as “_F”...
0 to 9999 When omitted: 0 * While 0 to 9999 are valid for the field number, up to 200 fields can be registered in Oki Data. Up to 100 fields if the data of ^FD following ^FN selects Font 0.
While the individual position and size vary depending on whether the ^MU/^JM command is placed before or after ^FO/^FT/^LH/^LS/^LL/^PW or other command with Zebra, the position and the size vary per label with Oki Data. After ^FS is received, both X and Y-coordinates become 0.
8.44 ^FP FIELD PARAMETER Format: ^FPd,g d = Direction: H = Horizontal printing V = Vertical printing R = Reverse printing (right to left) When omitted: “Default rotation angle” in the default setting file g = Additional inter-character gap (in dots) 0 to 9999 When omitted: “Inter-character gap”...
8.45 ^FR FIELD REVERSE PRINT Format: ^FR Printing field with the color reversed For diagonal lines, circles, and box shapes with rounded corners, the black lines are reversed to white when field reverse print is applied but the overlapped portions are printed in black. When field reverse print is applied to box shapes with rounded corners, the portion where a side and a corner overlap is printed in black.
8.46 ^FS FIELD SEPARATOR Format: ^FS Field separation code Since this is used to separate individual printings, processing to restore the reception parameter of each command (set value) to default is made. • The printing position is restored to default (0, 0). •...
While the individual position and size vary depending on whether the ^MU/^JM command is placed before or after ^FO/^FT/^LH/^LS/^LL/^PW or other command with Zebra, the position and the size vary per label with Oki Data. When X and Y-coordinates are omitted in printing strings, the start point is the coordinates at the end of the previous drawing.
8.48 ^FV FIELD VARIABLE Format: ^FVa Data in variable data fields are specified. a = Data to be printed Maximum data digits: 253 When omitted: Operation is performed without data. If the field number contains non-numeric characters, operation differs from that with Zebra. - 82 -...
8.49 ^FW FIELD ORIENTATION Format: ^FWr,z o = Field rotation N : 0° R : 90° : 180° B : 270° Default: N When omitted: The previous value is used. * The point of origin differs depending on the coordinate designated in ^FT and ^FO. z = Text justification 0 : Left 1 : Right...
8.50 ^FX COMMENT Format: ^FXc c = Comment data A string which does not include '^' (caret) and '~' (tilde) When omitted: Operation is performed without comments. * The string after ^FX is deemed as a comment until '^' (caret) or '~' (tilde) is received. - 84 -...
0 to 8 When omitted: 0 With Oki Data, lines are thickened outward. Thus, for a box shape almost painted over with thick lines, the size of the base box shape must be small. Therefore, the corner-rounding amount calculated based on the base box shape is necessarily small and the corner-rounding amount for a box shape with thick lines is not the same as that with Zebra.
*2 In the case of Zebra, if the line width is set to 2 or less or omitted, printing is performed with line width 2. In the case of Oki Data, printing is performed with line width 1. c = Line color...
8.53 ^GD GRAPHIC DIAGONAL LINE Format: ^GDw,h,t,c,o w = Box width (in dots) 1 to 32000 When omitted: 1 h = Box height (in dots) 1 to 32000 When omitted: 1 t = Line width (in dots) 1 to 999 When omitted: “Line width”...
(ellipse width) is not applied to printing and a point is drawn. In the case of Oki Data, if the ellipse width (ellipse height) is set to 3 or less or omitted, printing is performed with width (height) 2 and the set ellipse height (ellipse width).
8.55 ^GF GRAPHIC FIELD Format: ^GFa,b,c,d,data a = Compression type A : ASCII HEX For B64 (Base64), [:B64:] is placed at the data head. For Z64 (Base64+LZ77), [:Z64:] is placed at the data head. Operation is performed with such set values as used for Zebra. B : Binary C : Compressed binary (unsupported) When omitted: Not printed...
When the character base point is at the lower position due to 90° or 180° rotation setting, printing is performed with the basis at the character top with Zebra, while subscript printing is performed with the basis at the character bottom with Oki Data.. The justification information from FO, FT, and FW is ignored in this command.
8.57 ~HB BATTERY STATUS Format: ~HB Battery status request command from host The following fixed value is returned: <STX>00.00,00.00,00<ETX><CR><LF> Supported by BASIC application While this s a real-system command, processing is not made until the next command (caret or tilde) is received.
8.58 ^HG HOST GRAPHIC Format: ^HGd:o.x d = Drive R : RAM E : On-board Flash ROM B : USB memory A : USB memory When omitted: Checked in the following order: R -> E-> B -> A o = File name A file name consisting of 1 to 16 characters can be set.
One of the following values is returned: In the case of LE840 <STX>LE840-203dpi,V1.0,8,8192KB,CUTTER DETECTED<ETX><CR><LF> <STX>LE840-203dpi,V1.0,8,8192KB<ETX><CR><LF> In the case of LE850 <STX>LE850-300dpi,V1.0,12,8192KB,CUTTER DETECTED<ETX><CR><LF> <STX>LE850-300dpi,V1.0,12,8192KB<ETX><CR><LF> * The version information and the cutter information are created based on the internal data of the printer.
8.60 ~HM HOST RAM STATUS Format: ~HM Memory request command from host Ram capacity is returned. <STX>8192,8192,XXXX<ETX><CR><LF> If this is 8193 or more, it is corrected to 8192. Only the currently available RAM capacity is covered. For RAM total capacity and available RAM capacity, the fixed value "8192" is used and returned. If the communication I/F is a Centronics I/F, reply is returned through RS-232C.
8.61 ~HQ HOST QUERY Format: ~HQquery-type Printer information request command from host query-type = Printer information identification MA : Obtain maintenance alert information The following fixed values are sent. <STX><CR><LF> MAINTENANCE ALERT SETTINGS <CR><LF> HEAD REPLACEMENT INTERVAL: 50 km <CR><LF> HEAD REPLACEMENT FREQUENCY: <CR><LF>...
Page 98
ES: Obtain printer status The following values are sent: <STX><CR><LF> PRINTER STATUS <CR><LF> ERRORS: 0 00000000 00000000 <CR><LF> WARNINGS: 0 00000000 00000000 <CR><LF> <ETX> “ERRORS” information format ERRORS: a bbbbbbbb cccccdef : 0 No errors Error detected bbbbbbbb : 00000000 fixed ccccc : 00000 fixed : 0 No errors...
Page 99
“PLUG AND PLAY MESSAGES” information format MFG: OKI DATA CORP CMD: TPCL (fixed) MDL: In the case of LE840 LE840 In the case of LE850 LE850 SN: Obtain printer serial number information The following values are sent: <STX><CR><LF> SERIAL NUMBER <CR><LF>...
Page 100
In the case of LE840 model <STX><CR><LF> USB INFORMATION <CR><LF> PID: 0309 <CR><LF> RELEASE VERSION: 01.00 <CR><LF> <ETX> In the case of LE850 model <STX><CR><LF> USB INFORMATION <CR><LF> PID: 030A <CR><LF> RELEASE VERSION: 01.00 <CR><LF> <ETX> When omitted: This command is ignored.
8.62 ~HS HOST STATUS RETURN Format: ~HS Printer information request command from host The following values are returned: String 1 = <STX>aaa,b,c,dddd,eee,f,g,h,iii,j,k,l<ETX><CR><LF> : Communication setting aaa = a8a7a6a5a4a3a2a1a0 a0,a1,a2,a8: Baud rate a8 a2 a1 a0 0 0 0 1 = 300 bps 0 0 1 0 = 600 bps 0 0 1 1 = 1200 bps 0 1 0 0 = 2400 bps...
Page 102
: No paper flag 0: Paper present 1: No paper : Pause flag 0: Not in pause 1: In pause dddd : Label length 10 to 15000 : Number of formats in receive buffer Fixed value (0) : Buffer full flag 0: Buffer not full 1: Buffer full : Communication diagnosis mode flag...
Page 103
: Format under printing flag Fixed value (1) www : Graphics for saving 0 to 999 String 3 = <STX>xxxx,y<ETX><CR><LF> xxxx : Password Fixed value (1234) : Built-in RAM loaded flag Fixed value (0) Regarding the label length to be sent, a difference of a few dots from the Label Length sent in ^LL may occur.
8.63 ~HU RETURN ZEBRANET ALERT CONFIGURATION Format: ~HU ZebraNet Alert setting table request command The following values are returned: <STX>B,C,Y,Y,ADMIN@COMPANY.COM,0<ETX><CR><LF> <STX>J,F,Y,Y,,0<ETX><CR><LF> <STX>C,F,Y,Y,,0<ETX><CR><LF> <STX>H,C,Y,N,ADMIN@COMPANY.COM,0<ETX><CR><LF> <STX>N,C,Y,Y,ADMIN@COMPANY.COM,0<ETX><CR><LF> While this s a real-system command, processing is not made until the next command (caret or tilde) is received.
0 to 9999 When omitted: 0 * While 0 to 9999 are valid for the field number, up to 200 fields can be registered in Oki Data. Up to 100 fields if the data of ^FD following ^FN selects Font 0.
8.65 ^HW HOST DIRECTORY LIST Format: ^HWd:o.x Directory list request command from host d = Location to retrieve object list R : RAM E : On-board Flash ROM B : USB memory A : USB memory Z : Loaded Zebra font types and bar code types When omitted: R o = File name A file name consisting of 1 to 16 characters can be set.
8.66 ^HY UPLOAD GRAPHICS Format: ^HYd:o.x Command for uploading registered graphics A saved file can be uploaded to the specified drive. d = Drive R : RAM E : On-board Flash ROM B : USB memory A : USB memory When omitted: Checked in the following order: R ->...
8.67 ^ID IMAGE DELETE Format: ^IDd:o.x Command for deleting registered graphics A registered image (graphic) file can be deleted. d = Drive R : RAM E : On-board Flash ROM B : USB memory A : USB memory When omitted: R o = File name A file name consisting of 1 to 16 characters can be set.
8.68 ^IL IMAGE LOAD Format: ^ILd:o.x Command for calling registered image files A registered image (graphic) file in the specified drive can be called. d = Drive R : RAM E : On-board Flash ROM B : USB memory A : USB memory When omitted: Checked in the following order: R ->...
8.69 ^IM IMAGE MOVE Format: ^IMd:o.x Command for calling registered image files A registered image (graphic) file in the specified drive can be called. d = Drive R : RAM E : On-board Flash ROM B : USB memory A : USB memory When omitted: Checked in the following order: R ->...
8.70 ^IS IMAGE SAVE Format: ^ISd:o.x,p Command for registering image files The current image (graphic) to be printed can be saved in the specified drive. d = Drive R : RAM E : On-board Flash ROM B : USB memory A : USB memory When omitted: R o = File name...
8.71 ^JB INITIALIZE FLASH MEMORY Format: ^JBa Flash memory initialization command a = Device to be initialized E : On-board Flash ROM B : USB memory A : USB memory Non-omissible Writing into Drive E reduces capacity as data are not over written even with the same name. The capacity of Drive E can be restored by deleting all data through memory initialization (^JB).
The label length, sensor selection, and ribbon selection obtained through execution of calibration in the Z-MODE cannot be modified. When the “Auto calibration setting” for Oki Data is set to ‘ON,' Z-MODE calibration is not performed. To enable Z-MODE calibration, ensure the “Auto calibration setting” for Oki Data is set to ‘OFF.’...
8.74 ~JK DELAYED CUT Format: ~JK Paper cut execution command Valid only when "PRINT MODE" in the Z-MODE parameter is set to "5: DelayCut" (print mode of ^MM is set to 'D'). Paper can be cut only while or after the last page of 1JOB is printed. If sent before the last page is printed, this command is ignored.
8.75 ~JL SET LABEL LENGTH Format: ~JL Feed operation is performed (no sensor adjustment). When "SENSOR" in the Z-MODE parameter is set to ‘NONE,’ no feed operation is performed with this command. If the "SENSOR" value in the Z-MODE parameter and the paper do not match, "PAPER JAM" is generated.
Oki Data. Drawing running over in the horizontal direction is printed as it is with Oki Data. However, when magnified, the portion running over the set width is not printed. In the case of Zebra, drawing running over the set width is not printed.
8.77 ~JN HEAD TEST FATAL Format: ~JN When this command is received before ^JT command, head check is performed every number of printing pages set when receiving ^JT command. - 116 -...
8.78 ~JO HEAD TEST NON-FATAL Format: ~JO When this command is received before ^JT command, head check is not performed every number of printing pages set when receiving ^JT command. - 117 -...
8.80 ^JS SENSOR SELECT Format: ^JSa a = Sensor type A : Feeds with the sensor specified with ^MN B : Feeds with the reflective sensor T : Feeds with the transmissive sensor When omitted: This command is ignored. For ^MNN, this command is ignored (no feed). The feed type varies depending on whether "LABEL TYPE (MN)"...
8.81 ^JT HEAD TEST INTERVAL Format: ^JT####,a,b,c #### = The number of labels printed between executing head checks 0 to 9999 When omitted: 0 right after start-up If ^JT command is already received, the previous set value is valid. a = Selection of element range to check Y : Element range is selectable.
TRANS PRINT SPEED 3 ips MAXIMUM LENGTH 0500.0mm POWER ON CALIB CALIBRATE HEAD CLOSE CALIB CALIBRATE DOT/MM 8dots/mm: LE840 12dots/mm: LE850 FORMAT CONVERT NONE CONTROL PREFIX FORMAT PREFIX DELIMITER CHAR LABEL SIZE(LL) ENABLE LABEL TYPE(MN) ENABLE MEDIA TYPE(MT) ENABLE: LE840T/LE850T...
8.83 ^JZ REPRINT AFTER ERROR Format: ^JZa a = Reprint after error Y : Yes N : No Default: Y When omitted: This command is ignored. In the case of Oki Data, feed is made after the error is corrected. - 122 -...
8.84 ^KL DEFINE LANGUAGE Format: ^KLa a = Language setting 1 : English 2 : Spanish 3 : French 4 : Germany 5 : Italian 7 : Portuguese 10 : Spanish 11 : Dutch 13 : Japanese 15 : Chinese (Simplified) Default: 1 When omitted: 1 This setting is applied when the unit is started up (restarted) after the setting.
8.85 ^LH LABEL HOME Format: ^LHx,y x = X-coordinate (in dots) 0 to 3000 Default: “Label home X-coordinate” in the default setting file When omitted: This parameter is ignored. * Number of dots after reflecting the value of ^LS command y = Y-coordinate (in dots) 0 to 65535 Default: “Label home X-coordinate”...
While the paper length specified in this command becomes the printable area with Zebra, the printable area with Oki Data is 2 mm shorter than the paper length specified in this command. Even when the automatic normal rotation waiting function is on, normal rotation waiting is not performed with printing operation if the label length is set to 20 mm or shorter in this command.
8.87 ^LR LABEL REVERSE PRINT Format: ^LRa a = Label reverse print Y : Yes N : No Default: N When omitted: N For diagonal lines, circles, and rectangles with rounded corners, the black lines are reversed to white when field reverse print is applied. However, the overlapped portions are printed in black. When field reverse print is applied to rectangles with rounded corners, the portion where a side and a corner overlap each other is printed in black.
8.88 ^LS LABEL SHIFT Format: ^LSa a = Shift left value -9999 to 9999 dots Default: "LABEL SHIFT" in the Z-MODE parameter "Label shift" in the default setting file is ignored. When omitted: This command is ignored. This command always shifts a label to the left when a positive value is set. If ^PO command is called later, the label shift to left is applied to the later commands.
= Feed fine adjustment value 203-dpi printer: LE840 -400 to 400 dots (-50.0 mm to +50.0 mm) 300-dpi printer: LE850 -600 to 600 dots (-50.0 mm to +50.0 mm) Default: “Feed fine adjustment value” in the default setting file...
8.90 ^MC MAP CLEAR Format: ^MCa a = Bitmap clear Y : Clears bitmap N : Not clear bitmap Default: Y When omitted: Y If the paper length of the first and the second labels differs with ^MCN, print result is not guaranteed.
Default: “Media darkness fine adjustment value" in the default setting file When omitted: This command is ignored. Since the print tone range for Oki Data is from -20 to +10, the range of the parameter a, -30 to 30, is adjusted to it.
If either of the setting for parameter p or h is omitted, this command is ignored. Calibration after power-up • When C or S is selected, LE840/LE850 standard calibration is performed. When L or F is selected, feed operation is performed for the set label pitch. When N is selected, no operation is performed.
8.93 ^ML MAXIMUM LABEL LENGTH Format: ^MLa a = Maximum label length 203-dpi printer: : 406 to 7917 inch : 2 to 38 (406 to 7826 dots) : 51 to 989 (408 to 7912 dots) 300-dpi printer : 600 to 11700 inch : 2 to 38 (609 to 11582 dots) : 50 to 975 (600 to 11700 dots) Default: "MAXIMUM LENGTH"...
Page 135
8.94 ^MM PRINT MODE Format: ^MMa,b a = Print mode T : Tear-off P : Peel-off R : Reserved A : Applicator compatible C : Cutter D : Delayed cutter F : Reserved L : Reserved* U : Reserved* Default: "Print Mode" value in the Z-MODE parameter When omitted: T * When F or R is selected, operation is performed using the parameters specified previously.
8.95 ^MN MEDIA TRACKING Format: ^MNa a = Media being used N : Continuous media Y : Non-continuous media web sensing (Label) W : Non-continuous media web sensing (Label) M : Non-continuous media mark sensing (Tag with black marks) Default: "SENSOR" in the Z-MODE parameter When omitted: This command is ignored.
8.96 ^MT MEDIA TYPE Format: ^MTa a = Media type T : Ribbon D : Thermal paper Default: "RIBBON" in the Z-MODE parameter When omitted: This command is ignored. If "MEDIA TYPE" in the Z-MODE parameter is set to ‘DISABLE,’ this command is ignored and the "RIBBON"...
Oki Data. Drawing running over in the horizontal direction is printed as it is with Oki Data. However, when magnified, the portion running over the set width is not printed. In the case of Zebra, drawing running over the set width is not printed.
While printing is not performed if a value exceeding the label length is entered with Zebra, it is performed with Oki Data. In the case of Zebra, printing speed becomes faster for the portion without drawing. In the case of Oki Data, the speed does not change. - 137 -...
If ~PH is sent while printing, one feed is made in the end with Zebra while the command is ignored with Oki Data. In the pause state regarding the Centronics connection, this command can be sent with Zebra while it cannot be sent with Oki Data. - 138 -...
8.100 ^PM PRINTING MIRROR IMAGE OF LABEL Format: ^PMa a = Print mirror image of entire label Y : Printed N : Not printed Default: "Label rotation and printing mirror image of label" value in the default setting file When omitted: The previous value is used. - 139 -...
8.101 ^PO PRINT ORIENTATION Format: ^POa a = Print orientation N : Bottom first : Top first Default: “Label rotation and printing mirror image of label” in the default setting file When omitted: This command is ignored. LS command always shifts a label to the left when a positive value is set. If this command is called, the left shift is applied to the later commands.
8.102 ^PP OR ~PP PROGRAMMABLE PAUSE Format: ^PP or ~PP Pause command ^PP: Pause is made after the command currently being sent to the printer is processed. ~PP: Pause is made after the printing currently being performed ends. *1 If a pose is required at the end of printing by PQ command and it is also required by ^PP command, the pause needs to be cleared twice at the end of printing.
8.103 ^PQ PRINT QUANTITY Format: ^PQq,p,r,o q = Total quantity of labels to print 0 to 9999 * 10000 or more is corrected to 9999. 0 is corrected to 1. Default: “Quantity of labels to print” in the default setting file When omitted: 1 p = Cut/pause interval This is used as a parameter for cut interval when cutting is enabled (^MMC) and for pause interval...
8.105 ~PS PRINT START Format: ~PS Print start command Only when the printer is in pause state, that pause state is cleared. When the printer is not in pause state, this command is ignored. - 144 -...
When omitted: Previous value While the individual position and size vary depending on whether the ^MU/^JM command is placed before or after ^FO/^FT/^LH/^LS/^LL/^PW or other command with Zebra, the position and the size vary per label with Oki Data. - 145 -...
8.107 ^RB DEFINE EPC DATE STRUCTURE Format: ^RBn,p0,p1,p2,…,p15 n = Total bit size (in bits) 1 to n When omitted: 96 p0…p15 = Partition size (in bits) 1 to 64 When omitted: 1 *1 This command is used for format setting to generate total bit size in bits by converting data written in the EPC area of the RFID tag into hexadecimal data for each partition specifying the decimal-to-hexadecimal conversion format and coupling the converted data of each partition.
8.108 ^RF READ OR WRITE RFID FORMAT Format: ^RFo,f,b,n,m o = Operation W : Write R : Read L : Write [locked] (not supported yet) P : Read [password protected] (not supported yet) When omitted: W * If “L: Write [locked]” and “P: Read [password protected]” are selected, operation is performed as “W: Write”...
8.109 ^RI GET RFID TAG ID Format: ^RI#,s,r,m # = Field number 0 to 9999 When omitted: 0 s = Data order (unsupported) * This parameter is ignored. r = Number of retries 0 to 10 When omitted: 0 *1 A value exceeding 10 is corrected to 10. *2 After read failure and void printing, the operation is repeated up to as many times as the value of this parameter.
8.110 ^RM ENABLE RFID MOTION Format: ^RMe e = Issue operation Y : Issued N : Not issued When omitted: Y If this is set to N, retry for data write is not performed. No void printing is performed when data write failed. - 149 -...
8.111 ~RO RESET ADVANCED COUNTERS Format: ~ROc c = Counter to reset 1, 2 (unsupported) 3, 4 The RFID counter is cleared. When omitted: This command is ignored. * If 1 or 2 is selected, this command is ignored. While this is a real-time command, processing is not made until the next command (caret or tilde) is received.
8.112 ^RQ QUICK WRITE EPC DATA AND PASSWORDS Format: ^RQf,c,o[data] f = Format A :ASCII H :HEX E :EPC When omitted: H c = Chip type (unsupported) * This parameter is ignored. o = Option (unsupported) * This parameter is ignored. [data] = EPC data, access password, kill password Format: ^FD[EPC],[access],[kill] * Can be used for EPC Class 1 Generation 2 tags...
8.113 ^RR SPECIFY RFID RETRIES FOR A BLOCK Format: ^RRn n = Number of retries 0 to 10 When omitted: 0 *1 A value exceeding 10 is corrected to 10. *2 After write/read failure and void printing, the operation is repeated up to as many times as the value of this parameter.
8.114 ^RS SET UP RFID PARAMETERS Format: ^RSt,p,v,n,e,a,c,s t = Tag type When UHF module (U2) is installed: 8 : EPC Class 1, Generation 2 (U2) * If a option other than the above is selected, operation is performed with “EPC Class 1 Generation 2.”...
8.115 ^RT READ RFID TAG Format: ^RT#,b,n,f,r,m,s # = Field number 0 to 9999 When omitted:0 b = Read start block address 0 to n When omitted:0 n = Number of blocks/bytes to read 1 to n When omitted:1 f = Format 0 : ASCII 1 : HEX When omitted: 0...
8.116 ~RV REPORT RFID ENCODING RESULTS Format: ~RVa a = Enable/disable E : Enable D : Disable When omitted : D * After reading/writing ends, the result is sent to the host computer. E.g. “+,0” write/read success No void printing “-,3”...
8.117 ^RZ SET RFID TAG PASSWORD AND LOCK TAG Format: ^RZp,m,l p = Password 00000000 to FFFFFFFF When omitted: None * If this parameter and the AccessPassword set in the tag do not match, void printing is performed. m = Memory bank K : Kill password A : Access password E : EPC...
8.118 ^SC SET SERIAL COMMUNICATIONS Format: ^SCa,b,c,d,e,f a = Baud rate (Non-omissible) 2400, 4800, 9600, 19200, 38400, 115200 110, 300, 600, 1200, 14400, 28800, 57600 (unsupported) b = Data length (in bits) (Non-omissible) 7, 8 c = Parity (Non-omissible) N : None E : Even O : Odd d = Stop bit...
When omitted: This command is ignored. This command is not set until the next caret is received. Since the print tone range for Oki Data is from -20 to +10, the range of the parameter ##, 0 to 30, is adjusted to it.
8.120 ^SF SERIALIZATION FIELD (WITH A STANDARD ^FD STRING) Format: ^SFa,b a = Mask string O or o : Octal numeric D or d : Decimal numeric : Hexadecimal alphanumerals (Upper-case alphabets) : Hexadecimal alphanumerals (Lower-case alphabets) : Alphabet (Upper-case alphabets) : Alphabet (Lower-case alphabets) : Alphabet + number (Upper-case alphabets) : Alphabet + number (Lower-case alphabets)
= Language Not supported yet While ‘T’ for the Zebra ^SL command represents the time of drawing, ‘T’ for Oki Data represents the time of printing. If the update method with the unit ON is changed from “S: When format is received” to “T: When printing starts,”...
8.122 ^SN SERIALIZATION DATA Format: ^SNv,n,z v = Start value String containing a numeric value with up to 40 digits When omitted: 1 *1 If the number of digits exceeds 40, printing is not performed. *2 If a numeric value is not contained, increment/decrement is not applied. n = Increment/decrement value -999999999 to 999999999 Default: “Numeric value to INC/DEC”...
8.123 ^SO SET OFFSET (FOR REAL-TIME CLOCK) Format: ^SOa,b,c,d,e,f,g a = Clock set 2 to 3 b = Months offset -32000 to 32000 c = Days offset -32000 to 32000 d = Years offset -32000 to 32000 e = Hours offset -32000 to 32000 f = Minutes offset -32000 to 32000...
8.124 ^SQ HALT ZEBRANET ALERT Format: ^SQa,b,c a = Condition type A : Paper out B : Ribbon out C : Print head over-temp D ; Print head under-temp (unsupported) E : Head open F : Power supply over-temp (unsupported) G : Ribbon-in warning (direct thermal mode) (unsupported) H : Rewind full : Cut error...
8.125 ^ST SET DATE AND TIME (FOR REAL-TIME CLOCK) Format: ^STa,b,c,d,e,f,g a = Month 1 to 12 When omitted: Current month b = Day 1 to 31 When omitted: Current day c = Year 1998 to 2097 When omitted: Current year d = Hour 1 to 23 When omitted: Current hour...
8.126 ^SX SET ZEBRANET ALERT Format: ^SXa,b,c,d,e,f a = Condition type A : Paper out B : Ribbon out C : Print head over-temp D ; Print head under-temp (unsupported) E : Head open F : Power supply over-temp (unsupported) G : Ribbon-in warning (direct thermal mode) (unsupported) H : Rewind full : Cut error...
Page 168
e = Destination setting E-mail address (unsupported) IP address SNMP trap (unsupported) IP or IPX address (unsupported) When omitted: Destination information is not updated. Only when ‘TCP/TP’ or ‘UDP/IP’ is selected for the destination, the destination information is updated as IP address information. f = Port number When omitted: Port number information is not updated.
### = Adjustment value (in dots) 203-dpi printer: LE840 -40 to 40 dots (-5.0 mm to +5.0 mm) 300-dpi printer: LE850 -60 to 60 dots (-5.0 mm to +5.0 mm) This parameter can be set in units of 0.5 mm.
8.128 ^TB TEXT BLOCKS Format: ^TBa,b,c a = Text block rotation direction N : 0° R : 90° : 180° B : 270° When omitted: Value of ^FW or ^A b = Text block width (in dots) 1 to label width in dots When omitted: 1 c = Text block height (in dots) 1 to label height in dots...
8.129 ~WC PRINT CONFIGURATION LABEL Format: ~WC While Zebra prints a configuration label after data is segmented by specified label length, Oki Data prints diagnostic label without segmentation. In the case of Zebra, if "Bitmap clear: No” (^MCN) is selected, printing is performed without clearing the drawing areas.
= Error tag check Y : Yes N : No When omitted: N Regarding the error tag check, if the RFID error tag detection in the Oki Data system mode is set to ‘PASS,’ this setting is ignored. - 170 -...
= Error tag check Y : Yes N : No When omitted: N Regarding the error tag check, if the RFID error tag detection in the Oki Data system mode is set to ‘PASS,’ this setting is ignored. - 171 -...
8.133 ^XF RECALL FORMAT Format: ^XFd:o.x d = Drive R : RAM E : On-board Flash ROM B : USB memory A : USB memory When omitted: Checked in the following order: R -> E-> B -> A o = File name A file name consisting of 1 to 16 characters can be set.
8.134 ^XG RECALL GRAPHIC Format: ^XGd:o.x,mx,my d = Drive where graphic is stored R : RAM E : On-board Flash ROM B : USB memory A : USB memory When omitted: Checked in the following order: R -> E-> B -> A o = File name A file name consisting of 1 to 16 characters can be set.
8.135 ^XZ END FORMAT Format: ^XZ Format end command While saving with ^DF command, data saving is started. While reading with ^XF command, data reading is finished. When printable data exist, a print command is issued. - 175 -...