Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 9 of 14

User Manual and Technical Guide: The O'Neil microFlash Series of Printers, pages 81 to 90

Pages 81 to 90 of 135

The original document is the PDF (799 KB). 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 3, Symbol Microflash-2T and Datamax MicroFLASH 3

Page 81

Notes on the use of PDF-417 1. 2.

1.

2.

3. 4.

1. 2. 3. 4.

Use PDF-417 the same as any other bar code: After entering Easy Print using ESC+EZ, select the barcode using the name “PD417” Enter data between two ‘|’. If the data is long, DO NOT put CR/LF in data unless you want the CR/LF to be in the bar code PDF-417 has several field parameters that may be specified: COLUMNS will specify the number of columns of DATA printed in each row of the bar code. If not specified, the default value of 2 DATA columns is used. The actual COLUMNS used is 4 greater then 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 default value for the number of data characters to be printed is used: 1-40 characters level 2 40-160 characters level 3 161-320 characters level 4 321-863 characters level 5 YDIM specifies the height of each element, in units of .005 inches. Default is 1 WDIM specifies the width of each element, in units of .005 inches. Default is 1 PDF-417 symbols contains: 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 EXAMPLE: {PRINT: @75,10:PD417,YDIM 6,XDIM 2,COLUMNS 2, SECURITY 3|ABCDEFGHIJKL|}

Will print a PDF-417 bar code containing ABCDEFGHIJKL with each element .010” wide and .030” high, with each row containing 2 data bytes and using a error detection and correction level of 3, which adds 16 error correction code words to the bar code. You can print any characters using the O’Neil PDF-417. It is optimized for the most common printing of a mixture of numbers, text, and control characters.

User Manual and Technical Guide The O'Neil microFlash Series of Printers Custom Receipts and Labels • 71

Page 82

{Print,Global Options1:@row,column:

Name,Field Options|Data|}

Graphic Names Function:

Print a stored graphic, e.g. stored under the name “alogo.”

Example 1:

{PRINT: @10,30:ALOGO|}

Example 2:

{PRINT:@10,30:ALOGO,HMULT2, VMULT2|}

Explanation:

Example 1 prints whatever logo has been stored under the five-character name, “ALOGO.” (See Chapter 3 on how to use the “Graphics” button in the microFlash Configuration Program to store a graphic automatically. Example 2 above makes the logo twice as big as it would be otherwise.

Field Options|Data|}

{Print,Global Options1:@row,column:Name,

Graphic Field Options These options are used to widen or heighten the graphic. Field Option HMULTn VMULTn

Abbr. HMn VMn

Description Multiplies width of graphic by “n” Multiplies height of graphic by “n”

See Chapter 3, Graphics section, for storing graphics automatically before you print.

72 • Custom Receipts and Labels User Manual and Technical Guide The O'Neil microFlash Series of Printers

Page 83

{Print,Global Options1:@row,column:

Name,Field Options|Data|}

Line Names 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|}

Example 2:

{PRINT:@60,30:VLINE, length 50, thick2|}

Explanation: Example 1 prints a horizontal line 200 dotlines long, and two dotlines thick. Example 2 prints a vertical line 50 dotlines long, and 2 dotlines thick. There is only a single vertical bar “|” because there is no data to enclose. Abbr. T V L T

Name HLINE VLINE Lengthnnn Thicknnn

Description Horizontal line Vertical line Sets line length Sets line thickness

User Manual and Technical Guide The O'Neil microFlash Series of Printers Custom Receipts and Labels • 73

Page 84

74 •

User Manual and Technical Guide The O'Neil microFlash Series of Printers

Page 85

CardReader Commands

Operational Commands

7

All operational commands for the magnetic/smart card reader peripheral are IMMEDIATE commands, taking the form of Easy Print commands (bracketed by “{“ and “}”) and preceded by the ESC (1Bh) character. Responses vary by command. All operational commands are two characters, followed by: ! command complete, no data is expected in response ? command complete, response with data expected : data for peripheral follows In addition, the reader has configuration options which can be semi“permanently” set in Flash for LED usage, Magnetic Stripe and Smart Card reader. Format for these configuration commands follows the self-writing three character configuration commands (similar to IR related configuration commands). In all cases, the printer will respond with either a NAK (N<crc>}, or a WACK (W<crc>) indicating the printer is busy writing to flash followed by an ACK (A<crc>). The CRC is the common CRC-16.

General Reader Operational Commands The card reader has two LEDS, red and green that may be used to give a visual status to the user for either magnetic cards or smart cards. In addition, the printer can be polled for general card reader status as well as the current state of the LEDs. Semicolons separate elements of the returned status: Command: {RS?} Status – returns power, card inserted, and LED status as follows: P:0/1 for smart card (ICC) power off or on S:0/1 for card not seated or seated User Manual and Technical Guide The O'Neil microFlash Series of Printers

CardReader Commands • 75

Page 86

Command: {RG:data}

Command: {RR:data}

RG/RR data:

B:0/1 for button currently connected to reader G:0/1/F for Green Led off or on or flashing R:0/1/F for Red Led off or on or flashing Example Response – no button reader {RS!P:0;S:1;G:F;R:0}indicating ICC power off, card is seated and green led is flashing Example Response – with button reader {RS!P:0;S:0;B:1;G:0;R:0} indicating ICC and LEDs off, no card seated, button in contact Controls Green Led – requires 1 data byte Response: {RG!} if the command was received (for any data sent) Controls Red Led - requires 1 Data byte Response: {RR!} if the command was received (for any data sent) 0 (zero) – Turn LED off 1 (one) – Turn LED on F (flash) – Begin flashing LED

General Reader Configuration Commands The red and green LEDS and buzzer can be configured to be under host control, or the printer’s control. The printer can control the LEDs only if EITHER the MAG card read is enabled, OR the Smart Card is enabled, but not both. If the LEDs are configured to be under host control, the MG and MR commands will override the printer’s current use of the LED: Command: {CCR:data} Reader LED and BEEPER configuration – requires data CCR data: HOST – LEDs and BEEPER are under host control AUTO – LEDs and BEEPER are under reader’s control: If MAG card enabled and ICC Smart Card disabled: Flashing Green – card inserted Solid Green (timed) + 2 short beeps – good read Solid Red (timed) + 1 long beep – bad read If ICC Smart Card enabled and MAG card disabled Flashing Green – card inserted Solid Red – card inserted and ICC power ON Solid Green (timed) – card inserted and ICC power turned OFF

76 • CardReader Commands

User Manual and Technical Guide The O'Neil microFlash Series of Printers

Page 87

Magnetic Card Operational Commands The magnetic card reader is always operating in the background if it is enabled. Magnetic card data is read when the card is inserted, removed, or both (default is read on removal only). That data read is stored in the printer until the data is zeroed or the printer falls asleep. Temporary flash configuration override commands are valid only until changed by another command or the printer falls asleep. Command: {ME!} Enable Magnetic card reader (temporarily overrides Flash setting) Response: {ME!} Command: {MD!} Disable Magnetic card reader (Temporarily overrides Flash setting) Response: {MD!} Command: {MZ!} Zero Magnetic card data (use to assure data is from CURRENT read) Response: {MZ!} Command: {MR?} Read Magnetic card data – all data read from card is returned, Including start/stop characters (%?;) and delimiters (^=) Returns data delimited as follows: {N} – no card data read OR: T1: - delimits Track 1 data (sent if track 1 is enabled) T2: - delimits Track 2 data (sent if track 2 is enabled) T3: - delimits Track 3 data (sent if track 3 is enabled) | - delimits data from one track to another If there is NO data recorded on an enabled track, then an ‘N’ is returned In place of that data. If the data read was bad (parity or LRC), then a ‘B’ Is returned in place of that data Response example (all three tracks enabled – all good read) {T1:<data>|T2:<data>|T3:<data>} Response example (Track 1 data bad and Track 3 not recorded) {T1:B|T2:<data>|T3:B}

User Manual and Technical Guide The O'Neil microFlash Series of Printers

CardReader Commands • 77

Page 88

Magnetic Card Configuration Commands The magnetic card reader is capable of reading Tracks I, II, and III. Not all applications use all tracks, so to avoid bad reads being reported you should enable only the tracks you expect data to read for data. In addition, the reader can read data when the card is inserted, removed or in both directions. Finally, the card reader can be globally enabled or disabled. Parameters to be set should be set in a single command, with options separated by semicolons: Command: {CMR:data} Configure Magnetic Card Reader – requires data CMR data: T1:ON or OFF to enable or disable reading Track I T2:ON or OFF to enable or disable reading Track II T3:ON or OFF to enable or disable reading Track III E:ON or OFF to enable or disable the magnetic card read D:IN or OUT or BOTH for card read direction S:ON or OFF to enable or disable auto RS-232 send of data on reading A:ON or OFF to enable the autoprint stand-alone demo Example – turn turn T1&2 ON, T3 OFF, and the autoprint ON: 1 – put the printer into Easy Print by sending 3 characters ESC+EZ 2 – configure by sending {CMR:T1:ON;T2:ON;T3:OFF;A:ON}

78 • CardReader Commands

User Manual and Technical Guide The O'Neil microFlash Series of Printers

Page 89

Smart Card Operational Commands Since Smart Card applications and card types can vary widely, the printer acts only as a conduit to the card, relaying commands to the card and accepting data back from the card. Most cards require special commands of their own. The commands shown here are commands to the reader, not to the card. The card specific data sent to the printer as data along with these reader commands is sent to the card and any response (data and/or status word – a 2 byte sequence) from the card is returned to the host. Consult ISO-7816 part 4 for T=0 commands to the smart card, which are included as the data for the SR and SW commands to the card reader and meaning of responses. Command: {SP:data} Controls Power to the Smart card – requires data Response for power ON: {SP:<ATR data>} Where ATR data is Answer To Reset data returned by card Response for power OFF: {SP!} SP data: 0 (zero) – Turn power off 1 (one) – Turn power on (printer returns ATR for async card) Command: {SW:data} ICC card write – requires command to be written to card (ISO-7816) Uses Sync or if Async, protocol selected at configuration Returns status response from card preceded by {SW! Command: {SR:data} ICC card read – requires command/data to be written to card (ISO-7816) Uses Sync or of Async, protocol selected at configuration Returns data and status response with data from card preceded by {SR! Implemented as required (future): Command: {SM:data} Smart Memory Card – requires command/data to be written to card Uses I2C or SPI communications to card Subcommands for read and write control the reader as well as the card

User Manual and Technical Guide The O'Neil microFlash Series of Printers

CardReader Commands • 79

Page 90

Smart Card Configuration Commands The smart card reader can be enabled and disabled. The reader can support smart Asynchronous (T=0 and T=1/future) and Synchronous (future) smart cards, microprocessor based cards as well as memory cards (future). But it must be configured for the type of card that is to be used. Parameters to be set should be set in a single command, with options separated by semicolons: Command: {CSR:data} Configures the smart card reader – requires data CSR data: T:MEM or ASYNC or SYNC for memory or async or sync µP based card types P:T0 or T1 for ASYNC card protocol to be used (T1 is future) M:I2C or SPI for I2C or SPI type memory card interface (future) E:ON or OFF to enable or disable the smart card reader C:BIN or HEX to send commands to the card in binary or ASCII Hex R:BIN or HEX to receive status&data responses from card in binary or ASCII Hex A:ON or OFF to enable the autoprint stand-alone demo Example, to turn the autoprint demo ON: 1 – put the printer into Easy Print by sending three characters: ESC+EZ 2 – configure the printer by sending {CSR:A:ON}

Operational Scenarios General The magnetic card and button data are read automatically by the 2tcr/2icr/4tcr and buffered internally until the host requests the data. Data is flushed either when the host explicitly requests that the buffer is zeroed or when the printer falls asleep. Smart cards, however, vary widely and many have specific security issues (such as passwords, cryptographic keys, and application knowledge of file structure) that must be presented to gain access to data stored on the card. For smart card applications, the 2tcr/2icr/4tcr acts as a conduit for commands and data from the host, and returns data sent from the card. In normal operation, the printer will probably be asleep when any card or button transaction begins. The printer will wake up whenever a magnetic card or smart card is 80 • CardReader Commands

User Manual and Technical Guide The O'Neil microFlash Series of Printers