The text of a manual · part 5 of 10
O'Neil Programming Language Reference Manual: Using Easy Print Mode, pages 25 to 33
Pages 25 to 33 of 69, from O'Neil Programming Language Reference Manual
The original document is the PDF (2.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the O'Neil MicroFLASH 4T (MF4T) and Datamax MicroFLASH 4T (MF4T)
Page 25
Chapter 3: Using Easy Print Mode
Print Command: Customizing Bar Codes Bar Code Names {Print, Global Options:@row,column:NAME,Field Options|data|} Use the following options to customize a bar code: Name
Description
Requirements for Data
BC39N
Code 39 2:1 ratio
Use the following characters in the data field: Space $ % + . / 0-9 A-Z Auto inserts leading and trailing asterisk (*).
BC39W
Code 39 3:1 ratio
Use the following characters in the data field: Space $ % + . / 0-9 A-Z Auto inserts leading and trailing asterisk (*).
COBAR
Codabar
0-9 - $:/.a b c d. You must send leading and trailing guard bar a-d.
I2of5
Int (?) 2 of 5 0-9 (Digits only, must be even. Controller inserts leading zero 2.5:1 ratio to ensure an even number of digits.)
BCI25
Int. (?) 2 of 5 0-9 (Digits only, must be even. Controller inserts leading zero 2:1 ratio to ensure an even number of digits.)
BC128
Code 128
Automatically selects codes A-C for the shortest bar code. Allows all ASCII characters.
EN128
EAN-128
Uses codes C for the shortest bar code. Allows all ASCII characters.
UPC-A
UPC-A
0-9 (Must have 11 digits or error. Controller calculates check digit.)
EAN08
EAN-8
0-9 (Must have seven digits or error. Controller calculates check digit.)
EAN13
EAN-13
0-9 (Must have 12 digits or error. Controller calculates check digit.)
PD417
PDF-417
For more information, see ___.
Bar Code Field Options {Print, Global Options:@row,column:Name,FIELD OPTIONS|data|} Field Abbreviation Description Option HIGHn
H nn
Changes the height of the bar code in five dot-inch intervals. The default is five dots; 1<n<255.
WIDEn
W nn
Width multiplier of the bar code. Default is one; If W=2, W is twice as wide (1/2 density) as W=1; 1<n<255.
O’Neil Programming Language Reference Manual
24
Page 26
Chapter 3: Using Easy Print Mode
Using PDF-417 Symbols You can print any characters using O'Neil PDF-417 symbols. PDF-417 symbols are optimized for printing a mixture of numbers, text, and control characters. To use PDF-417 as a standard bar code: 1
Enter Easy Print Mode using ESC+EZ.
2
Select the barcode using the name PD417.
3
Enter data between vertical bars (|). If the data is long, do not enter a carriage return and/or line feed unless you want CR/LF to appear in the bar code
The following PDF-417 field parameters can be specified: COLUMNS
Specifies the number of columns of data printed in each row of the bar code. If a column is not specified, the default value of 2 data columns is used. The actual columns used is 4 greater than data columns. (2 for gard columns and 2 for row indicator columns).
SECURITY
Specifies the level of error detection and correction codes, from 1 through 8. If not specified, the following default values for the number of data characters to be printed is used: 1-40 characters 40-160 characters 161-320 characters 321-863 characters
Level 2 Level 3 Level 4 Level 5
YDIM
Specifies the height of each element, in units of .005 inches. The default height is 1.
WDIM
Specifies the width of each element, in units of .005 inches. The default width is 1.
Use the following guidelines when entering PDF-417 symbols: •
A maximum of 1848 text characters (fewer if mixed with arbitrary bytes)
•
A minimum of 3 rows and a maximum of 30 rows
•
A minimum of 1 column and a maximum of 30 columns
•
Error detection and correction characters vary with different security levels: Level 1 adds 4 codewords Level 2 adds 8 codewords Level 3 adds 16 codewords Level 4 adds 32 codewords Level 5 adds 64 codewords Level 6 adds 128 codewords Level 7 adds 256 codewords Level 8 adds 512 codewords
Using PDF4-17 Example {PRINT: @75,10:PD417,YDIM 6,XDIM 2,COLUMNS 2, SECURITY 3|ABCDEFGHIJKL|} Explanation: Prints a PDF-417 bar code containing ABCDEFGHIJKL with each element .010" wide and .030" high; each row contains 2 data bytes and uses an error detection and correction level of 3, which adds 16 error correction code words to the bar code. O’Neil Programming Language Reference Manual
25
Page 27
Chapter 3: Using Easy Print Mode
Print Command: Customizing Graphic Names Graphic Names {Print, Global Options:@row,column:NAME,Field Options|data|} Function
Prints a stored graphic.
Example 1
{PRINT:@10,30:ALOGO|} Prints the logo stored under the five-character name (ALOGO), or a single character name. (See Chapter 3 on how to use the Graphics button in the microFlash configuration program to automatically store a graphic.)
Example 2
{PRINT:@10,30:ALOGO,HMULT2, VMULT2|} Doubles the size of the logo.
Graphic Field Options {Print, Global Options:@row,column:Name,FIELD OPTIONS|data|} Use the following options to heighten or widen graphics: Field Option
Abbreviation Description
HMULTn
HMn
Multiplies the width of the graphic by n.
VMULTn
VMn
Multiplies the height of the graphic by n.
Print Command: Customizing Line Names Line Names {Print, Global Options:@row,column:NAME,Field Options|data|} Format 1
Hline, length nnn, thick n
Format 2
Vline, length nnn, thick n
Function
Horizontal and vertical lines can be drawn around text or graphics.
Example 1
{PRINT: @60,30:HLINE, length 200, thick 2|} Prints a horizontal line 200 dotlines long and 2 dotlines thick.
Example 2
{PRINT:@60,30:VLINE, length 50, thick2|} Prints a vertical line 50 dotlines long and 2 dotlines thick. There is only one vertical bar (|) because there is no data to enclose.
Abbreviation
Name
Description
T
HLINE
Horizontal line.
V
VLINE
Vertical line.
L
Lengthnnn
Sets line length.
T
Thicknnn
Sets line thickness. O’Neil Programming Language Reference Manual
26
Page 28
Chapter 3: Using Easy Print Mode
Easy Print: Using Configuration Commands Configuration commands are either in two-letter or three-letter formats. One or several two letter commands can be sent to the printer but are not written to Flash memory and do not take effect until a {COMMIT} command is sent. When the printer receives the {COMMIT} command, the values received are written to Flash and the printer restarts. Each two-letter command changes one parameter. Most three-letter commands permit several parameters to be changed at once, although some only accept data. If several parameters can be changed with one command, one or two letters indicating the parameter are separated from the data for that parameter by a colon ":". Parameter and/or data pairs are separated with a semicolon. When the printer receives a three letter command, it writes the values to Flash and restarts the printer. To prevent the printer from resetting after each three letter configuration command, some printer families allow you to send the NORESET command {NORESET} before sending configuration commands. After issuing the NORESET command and configuring the printer, send the COMMIT command {COMMIT} to write to Flash and restart the printer. Note: Configuration data is stored separately from the main printer application's binary program; therefore, all configuration data remains intact after the firmware is updated. In earlier versions of the software, the structure of the configuration data was modified; therefore, if you are updating to those earlier versions, your configuration data will be lost.
Creating Configuration Command Files You can create files that can be sent to the printer for the following commands using DOS Edit or Notepad. Each of these commands are preceded by <ESC>EZ (1B455Ah). Two character commands must be followed by {COMMIT}; three character commands are immediate commands and do not need the {COMMIT}. The commands on the following pages can be used to configure specific parameters.
Two-Letter Configuration Commands Auto White Space Advance {CA:n}
Original MF2, MF3, 2t, 4t
Radio Ready 2t, 3l, 4t
X (Default N)
X (Default Y)
O’Neil Programming Language Reference Manual
27
{
A left bracket begins the command set.
CA:n n=y or Y : Speed up over white space n=n or N : Do not speed up over white space. Note: If there is nothing to print, the Auto White Space Advance command speeds the paper feed.
}
A right bracket ends the command set.
Page 29
Chapter 3: Using Easy Print Mode
Configure Baud Rate {CB:nn} {
A left bracket begins the command set.
CB:nn
Configures the baud rate. Use the following values to specify the baud rate: nn=00: 1200 BAUD nn=01: 2400 BAUD nn=02: 4800 BAUD nn=03: 9600 BAUD (default) nn=04: 19.2K BAUD nn=05: 38.4 BAUD nn=06: 57.6 BAUD nn=07: 115.2K BAUD
}
Radio Ready 2t, 3l, 4t
X (MF2/MF3) X X (MF2/MF3) X X (MF2/MF3) X
X X X X X X X X
Original MF2, MF3, 2t, 4t
Radio Ready 2t, 3l, 4t
X
X
A right bracket ends the command set.
Configure Print Darkness {CD:nn} {
A left bracket begins the command set.
CD:nn
Configures print darkness (aka burn adjust). The value of nn is normal plain paper. nn=-25: -25% (for very sensitive stock) nn=-20: -20% nn=-15: -15% nn =-10:-10% nn =-05:-5% nn = 00: 00 (default - for "regular" stock) nn = 05:+5% nn = 10: +10% nn = 15:+15% nn = 20: +20% nn = 25: +25% nn = 30: +30% nn = 35: +35% (for high temp stock)
}
Original MF2, MF3, 2t, 4t
A right bracket ends the command set.
Configure Battery Eliminator {CE:n} {
A left bracket begins the command set.
CE:n n = y or Y: Battery eliminator is present. n = n or N: None (default) Note: The battery eliminator can be used to power the printer from a wall charger.
}
A right bracket ends the command set.
Original MF2, MF3, 2t, 4t
Radio Ready 2t, 3l, 4t
X X (4t printers only) (4t printers only)
O’Neil Programming Language Reference Manual
28
Page 30
Chapter 3: Using Easy Print Mode
Form Feed Active {CF:n} {
A left bracket begins the command set.
CF:n n= y or Y: Act on form feed. n = n or N: Ignore from feed (default) Note: The form feed character (12 decimal or 0C Hex) can be configured to be ignored.
}
A right bracket ends the command set.
Configure Charger Beep {CG:n} {
A left bracket begins the command set.
CG:n
The printer can be configured to beep when first connected. N = y or Y: Beep N = n or N: Do not beep (default)
}
Original MF2, MF3, 2t, 4t
Radio Ready 2t, 3l, 4t
X Always On
X
Original MF2, MF3, 2t, 4t
Radio Ready 2t, 3l, 4t
X
X
Original MF2, MF3, 2t, 4t
Radio Ready 2t, 3l, 4t
X
X
Original MF2, MF3, 2t, 4t
Radio Ready 2t, 3l, 4t
X
X
A right bracket ends the command set.
Configure RS-232 Handshaking {CH:n} {
A left bracket begins the command set.
CH:n n = N : No handshaking n = H : Hardware handshaking n = S : Software handshaking n = B : Both H/W and S/W (default)
}
A right bracket ends the command set.
Job Status Reporting in Easy Print Mode{CJ:n} {
A left bracket begins the command set.
CJ:n n = y or Y : Job Status Report ON n = n or N : Job Status Report OFF (def) Note: The Job Status report issues a message via whatever communications medium was used to send the job can show successful job completion or if there was a problem such as paper out.
}
A right bracket ends the command set.
O’Neil Programming Language Reference Manual
29
Page 31
Chapter 3: Using Easy Print Mode
Configure Default Protocol {CL:nnn} {
A left bracket begins the command set.
CL:nnn
Changes the default protocol to one of the following:
Original MF2, MF3, 2t, 4t
Radio Ready 2t, 3l, 4t
X
X
Original MF2, MF3, 2t, 4t
Radio Ready 2t, 3l, 4t
X
X
Original MF2, MF3, 2t, 4t
Radio Ready 2t, 3l, 4t
X
X
ESC :Line Printer Mode (default) EZ : Easy Print Mode EMC1 : Custom 1 EMC2 : Custom 2 EMC3 : Custom 3 EMP1 : PGL EMZ1 : CPCL EMZ2 : Cog EMZ3 : ZPL }
A right bracket ends the command set.
Set Test Print {TP:n} {
A left bracket begins the command set.
TP:n
Sets test print. n = 0 : Normal self test (default) n = 1 : Special MAC address label Note: When n is not zero, a special selftest label is printed. After a special label is printed, performing another self-test within 10 seconds prints the normal self test.
}
A right bracket ends the command set.
Configure Paper Out Beep {CU:n} {
A left bracket begins the command set.
CU:n
Sets the printer to continuously remind the user that the paper needs to be changed. Beep repetitions stop when printer goes to sleep. Configures the paper out beep as follows: n = 0 : One Beep (default) n = 1 : Five Beeps n = 2 : Five Beeps repeated every 15s n = 3 : Five Beeps repeated every 30s n = 4 : Five Beeps repeated every 60s
}
A right bracket ends the command set.
O’Neil Programming Language Reference Manual
30
Page 32
Chapter 3: Using Easy Print Mode
RF Radio Power Down Timeout {CR:nn} {
A left bracket begins the command set.
CR:nn
This command turns off the radio if there is no activity in nnn minutes; it requires the user to turn the radio back on via button push before communications can resume.
Original MF2, MF3, 2t, 4t
Radio Ready 2t, 3l, 4t
X
X
Original MF2, MF3, 2t, 4t
Radio Ready 2t, 3l, 4t
X
X nnn in minutes nnn = 65536: Never times out (default) }
A right bracket ends the command set.
System Timeout (Printer Sleep Timer) {CT:nn} {
A left bracket begins the command set.
CT:nn nnn in seconds (default 10s to 60s) nnn = 9999: Never times out. Note: If there is no activity (communications or button pushes) within the specified time, the printer will "go to sleep" to save power. A button push or new communications will wake up the printer.
}
A right bracket ends the command set.
Configure Number of Data Bits {CN:n} {
A left bracket begins the command set.
CN:n
Configures the number of data bits where n indicates seven or eight data bits.
}
A right bracket ends the command set.
Configure Parity {CP:n} {
A left bracket begins the command set.
CP:n
Configures the parity: N = No parity E = Even parity O = Odd parity
}
A right bracket ends the command set.
O’Neil Programming Language Reference Manual
31
Page 33
Chapter 3: Using Easy Print Mode
Configure Carriage Return {CC:n} {
A left bracket begins the command set.
CC:n
Configures the carriage return to automatically add LF (line feed) to CR (carriage return) as follows: CR - CR Y - CR=CRLF (For PK printers only)
}
A right bracket ends the command set.
Configure Beeper {CS:n} (version 5.21, 6.21, and later only) {
A left bracket begins the command set.
CS:n
Configures the beeper on or off: Y = Beeper on N = Beeper off
}
A right bracket ends the command set.
Three-Letter Configuration Commands TCP/IP 802.llb and Bluetooth Wireless configurations. Versions 5.13 and 6.13 and later only: Configure Default Values {CDV} {
A left bracket begins the command set.
CDV
Reverts to non user-specific default values at time of manufacture for configuration parameters.
}
A right bracket ends the command set.
Restore Default Values {RDV} {
A left bracket begins the command set.
RDV
Restores all configuration parameters to those stored by the SDV command.
}
A right bracket ends the command set.
Stores Default Values {SDV} {
A left bracket begins the command set.
SDV
Stores an image of the current parameter values in separate area of Flash. See RDV to restore the parameters to those values stored by SDV.
}
A right bracket ends the command set.
O’Neil Programming Language Reference Manual
32