15
3
O’Neil Programming Language Reference Manual
Using Easy Print Mode
Overview
The Easy Print protocol is much more than just a printing protocol. In its most basic form,
Easy Print mode allows the user to send and execute commands. As part of the command
execution, the printer may return data to the host. In addition to printing, commands also
allow paper motion, configuring, and control of peripherals such as the magnetic and smart
card readers.
All commands begin with an opening "left curly bracket" or '{' (ASCII 0x7C) and end with a
closing "right curly bracket" or '}' (ASCII 0x7D). The commands immediately follows the
opening bracket '{'. A colon ':' separates the command from the data that follows. The
general format of any Easy Print command is: {[COMMAND]<:DATA>}.
Easy Print mode controls the printer down to a single dotline. At the printer's resolution of 8
dots per mm, or approximately 200 dots per inch, one dotline is approximately .005". Most
dimensions in Easy Print are in dotlines. For example, a simple command that allows paper to
advance or retract would be {AHEAD:200} or {BACK:50} (the command AHEAD or BACK is
followed by the number of dotlines to move paper).
Easy Print commands are categorized as follows:
•
Paper movement and misc.
•
Toggle Protocols
•
Printing
•
Downloading Fonts and Graphics
•
Configuration
Summary of Contents for microFlash2
Page 3: ......