Monarch 6015 Printer TC6015PM Rev. AC 2/01 ©1999 Monarch Marking Systems, Inc. All rights reserved.
Each product and program carries a respective written warranty, the only warranty on which the customer can rely. Monarch reserves the right to make changes in the product, the programs, and their availability at any time and without notice. Although Monarch has made every effort to provide complete and accurate information in this manual, Monarch shall not be liable for any omissions or inaccuracies. Any update will be incorporated in a later edition of this manual. ©1999 Monarch Marking Systems, Inc.
TABLE OF CONTENTS Introduction............................................................................................... 1 Creating Data Streams.............................................................................. 1 Conventions Used in this Manual................................................................ 2 Creating Formats ....................................................................................... 3 Creating Text Fields ........................................................
INTRODUCTION The Monarch® 6015™ printer works with application programs written for the Palm III™ series of organizers or the Symbol® SPT 1500. With these Palm Computing® connected organizers, the printer can print receipts for retail, healthcare, or industrial environments. Palm Computing is a subsidiary of 3Com® Corporation. 1 The application writes a data stream of commands (in the printer's control language) to the printer.
3. Add any commands to the data stream related to how the printer performs. For example, at the data stream's beginning, enter the command to choose the operating mode. See "Configuring the Printer" for more information. 4. Embed the data stream in the application and test what you have written. Conventions Used in this Manual Following are the conventions used in the syntax descriptions of each command. Symbol Description - Separates items in the command sequence.
C R E AT I N G F O R M AT S 2 A format is the design of a receipt that the application prints with the printer. It consists of fields placed at various places on the format. Fields can contain text, graphics, and bar codes. This chapter describes the commands used to create formats. Creating Text Fields Text fields can contain letters, numbers, and symbols. To specify text appearing on the format you create, write the text directly to the printer. There is no special command to use.
Formatting Text For the text on your format, you can choose the font and its size, spacing, and style (normal or bold). Command Description 1C hex (Extend) Prints characters twice as high as normal. 1D hex (Extendoff) Stops printing characters twice as high as normal. ESC-'U'- Turns bold printing on or off. Turn off bold printing. Turn on bold printing. ESC-'k'- Selects a font.
Creating Graphic Fields You print data stream graphics one line at a time. To creat e a line, you specify bits to turn off or on. Bits turned off represent white space, and bits turned on represent part of the graphic. There is a .125 mm gap between consecutive lines. Command Description ESC -'V' -01 hex-00 hex#data# Prints a graphic line. #data# 48 hex bytes, indicating the dots to turn on or off. For example, if a specified byte is FF, all the dots are on.
Creating Bar Code Fields The printer can print the following bar codes, with or without humanreadable data. ♦ Code 39 ♦ Codabar ♦ Interleaved 2 of 5 ♦ Code 128 (UCC/EAN-128) ♦ UPC/EAN/JAN Command Description ESC-'z'-- Prints a bar code without human-readable data. ESC-'Z'-- Prints a bar code with human-readable data. The type of bar code to print (values are the ASCII representation, not hex).
Specifying Particular Bar Codes Values for the and parameters depend on the type of bar code you choose with . Bar Code Code 39 9 (maximum) 0-9, A-Z, -, (space), $, /, +, and % Interleaved 2 of 5 16 (maximum) Pairs of numeric characters (0-9) UPC/EAN/JAN UPCA: 12 0-9 UPCE: 7 EAN/JAN-8: 8 EAN/JAN-13: 13 These lengths are fixed and all include a check digit. Codabar 15 (maximum) plus start and stop characters.
You can change subsets in mid-stream by using certain hex values in the data. Use 85, 84, and 83 hex to switch to subsets A, B, and C, respectively. To change the next character only to another subset, use 82 hex. With this option, you can only change between subsets A and B. You can also insert Code 128 function characters into the data.
CONFIGURING THE PRINTER 3 You must configure the printer before printing with it. This chapter describes the configuration commands. Selecting Operating Modes The printer works in either online or buffer mode. In online mode, the printer prints characters as soon as they are received. In buffer mode, the printer receives and stores characters, and then prints them upon receipt of an EOT control character ( 4 hex). Command Description ESC-'P'-'#' Selects online mode. ESC-'P'-'$' Selects buffer mode.
Setting the Power Mode The printer can operate in five different power modes, each using a different number of printhead sections. The mode selected also affects the print speed. The larger the number of dots used, the faster the printer speed. Command Description ESC-'P'- Sets the power mode. < value> 10 The number of printhead sections to use, specified in hex. How you specify this value is dependent on the language the application is written in.
Checking the Battery Voltage The following commands/control characters involve the printer's battery. Command Description ESC-'P'-'^' Prints the battery voltage. ESC-'P'-'!' Requests the battery voltage from the printer. 16 hex (Ctrl-V) NiCD and NiMH batteries only. Requests the print buffer and battery statuses. The printer responds with: ESC-'B'-(pbchars)-CR-LF-ESC-'V'-#volts#-CRLF (pbchars) The number of characters currently in the print buffer. #volts# Four ASCII characters.
Using the Power-Off Timer The printer has a power-off timer to conserve battery life. After a specified period of inactivity occurs, the printer goes into sleep mode. You can specify the length of this period. The printer returns to normal mode when it starts receiving commands again. Command Description ESC-'C' Sets the inactivity period to the default (20 seconds). ESC-'M'--0-CR and Sets the power-off timer. Use D hex for the carriage return character (CR).
Checking Version Information Your application can check the versions of both the printer hardware and firmware. Command Description ESC-'P'-'(' Requests the firmware version. The printer responds with: ESC-'('-#version#-CR-LF #version# Four ASCII characters representing the firmware version. ESC-'P'-')' Requests the hardware version. The printer responds with: ESC-')'-'097'--CR-LF #version# An ASCII character representing the hardware version.
Miscellaneous Control Characters Command Description 18 hex (Cancel) Re-initializes the printer. 2 hex (Ctrl-B) Requests the print buffer status. The printer responds with: ESC-'B'--CR-LF The number of characters currently in the print buffer. 8 hex (BS) 14 Removes the last character entered in the print buffer.
S A M P L E D ATA S T R E A M 4 How you send the data stream to the printer is dependent on the language your application is written in. For example, the following data stream (consisting of several strings that the application writes to the printer) makes use of C notations for carriage returns (\r), new lines (\n), and the C method for representing hex numbers (x06, for example). The data stream prints the label on the right. "\x1bP#\r\n\r\n" \ " Paxar/Monarch\n" \ " 170 Monarch Ln.