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 2 of 2

Monarch 6015 Printer, pages 11 to 20

Pages 11 to 20 of 20

The original document is the PDF (810 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 Monarch Paxar 6015

Page 11

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. Function 1 uses the reserved Code 128 character (UCC/EAN128), function 2 appends data, function 3 initializes the bar code reader, and function 4 extends characters (for example, 'a' (97 decimal) is changed to ' β ' (225 decimal) by adding 128 to it. Use 86 hex to specify Function 1 (all three subsets). Use 81 and 80 hex to specify Function 2 and Function 3, respectively (subsets A and B only). To specify Function 4, use 85 hex in subset A and 84 hex in subset B. Function 4 is unavailable in subset C.

Positioning Fields These commands/control characters help you move the supply through the printer to position the fields on the receipt. The application could also write spaces to the printer before it prints text.

8

Command

Description

D hex (CR)

Advances to the beginning of the next line and turns bold printing off.

C hex (FF)

Advances 10 lines.

14 hex (Norm)/ F hex (SI)

Sets the printer to 48-column mode.

E hex (SO)

Sets the printer to 24-column mode.

B hex (VT)

Advances 5 lines.

9 hex (HT)

Tabs to the next position or the beginning of the next line.

A hex (LF)

Advances to the beginning of the next line. The default amount of space between lines is .375 mm for text and .125 mm for graphics.

ESC-'J'-<num> <num>

Performs a specified number of line feeds. 1-FF The amount of space (in hex). The default is 1 (.125 mm).

Page 12

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 Print Contrast The print contrast depends on the battery voltage and the print contrast setting. The print contrast setting also affects the print speed. A high contrast indicates a slow speed and vice versa. We recommend designing your applications so the user can adjust the print contrast.

Command

Description

ESC-'P'-<value> <value>

Sets the print contrast. 0-9 0 is the highest contrast and 9 is the lowest contrast. The default is 5.

9

Page 13

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'-<value>

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. For example, in C, you would use 0x01 to select one printhead section. 1 Prints using one printhead section. 2 Prints using two printhead sections. 3 Prints using three printhead sections. 6 Prints using six printhead sections. 7 Default. Dynamically chooses the number of printhead sections to use (1, 2, 3, or 6), depending on what is printed.

Page 14

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. The first three are the battery voltage (form x.x). The fourth character categorizes the voltage listed to give it a reference. Values are 1-4, where 1 is high and 4 is low.

We recommend designing your applications so the user can check the printer's battery voltage.

11

Page 15

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'-<digit1><digit2>-0-CR <digit1> and <digit2>

Sets the power-off timer. Use D hex for the carriage return character (CR). 0-9 The number of seconds to set the timer to. To disable the timer, set both parameters to 0.

Example: ESC-M-5-6-0-CR (1B 4D 35 36 30 OD hex)

Sets the inactivity period to 56 seconds.

Be careful when using buffer mode. If there is data in the print buffer when the printer goes into sleep mode, you will lose that data.

12

Page 16

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'-<version>-CR-LF #version# An ASCII character representing the hardware version.

Communicating with the Organizer The printer and organizer must use these values for the communication parameters: ♦

Baud Rate - 19200

♦

Stop Bits - 2

♦

Parity - None

♦

Data Bits - 8

Have the organizer use hardware (RTS/CTS) communications protocol when communicating with the printer. These control characters are related to communications between the printer and the organizer. Command

Description

13 hex (Xoff)

Indicates a complete data transmission.

11 hex (Xon)

Ready to accept data.

13

Page 17

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'-<pbchars>-CR-LF <pbchars> The number of characters currently in the print buffer.

8 hex (BS)

14

Removes the last character entered in the print buffer.

Page 18

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.\n" \

"

Miamisburg, OH 45342\n" \

"

Phone: (937) 865-2123\r\n\r\n" \

"

SALES RECEIPT\r\n\r\n" \

" Description

Qty.

Total\n" \

" 1. Monarch 9490

5

" 2. Monarch 9403

4

995\n" \

" 3. Monarch 6035

3

4995\n" \

" 4. Monarch 6030

2

2995\n" \

" 5. Monarch 9450

1

995\n" \

" "

3495\n" \

-----\n" \ Total

13475\r\n\r\n"

\ " AMEX 37xyz55xx315001\n" \ " Exp. Date 10/01\r\n\r\n\r\n" \ " \x1bz1\x06\x64" \ "123456\n\x0c"

15

Page 19

This page is a scan with no text; see it in the PDF.

Page 20 read from a scan by OCR; it may hold reading errors

For supplies, service, or assistance call toll free:

1-800-543-6650 (In the U.S.A.) 1-800-263-4650 (In Canada)

www.monarch.com