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 3 of 5

Monarch 6017 HandiPrint Printer Programmer's Manual, pages 19 to 27

Pages 19 to 27 of 44

The original document is the PDF (3.7 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 Monarch HandiPrint 6017

Page 19

Command

Description

16 hex (Ctrl-V)

Requests the print buffer and battery statuses. The printer responds with: ESC -'B' -#pbchars#-CR-LF-ESC -'V' -#volts#CR-LF-ESC -'M' -#card#-CR-LF-NAK #pbchars#

The number of characters currently in the print buffer, shown as four ASCII hex digits, which are “OR’d” with 30 hex.

#volts#

Four ASCII decimal digits. 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.

#card#

Four ASCII hex digits (which are “OR’d” with 30 hex) representing the time left before the printer enters sleep mode.

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. This feature is similar to the Auto-Off feature on your handheld. The printer returns to normal mode when it starts receiving commands again, but the countdown re-starts after every character received. Before powering down, the printer transmits Auxon then Xoff.

Configuring the Printer 3-3

Page 20

Command Summary Command

Description

ESC -'M' -<digit1><digit2>-'0' -C R

Sets the power-off timer’s inactivity period.

<digit1> and <digit2>

0-9

The first and second digits, respectively, of the number of seconds to set the inactivity period to. To disable the timer, set both parameters to 0.

Example: ESC -M560-CR

Sets the inactivity period to 56 seconds.

ESC -' C '

Sets the inactivity period to the default (20 seconds). Be careful when using sleep mode with buffer mode. If there is data in the print buffer when the printer goes into sleep mode, you lose the data.

3-4 Configuring the Printer

Page 21

Supply Control Commands The commands in this section control how the printer uses black -mark supplies. Be aware of the features of your supplies (distance between black marks, existence of any preprinted text, etc.) as you code these commands. For example, you may have to code the black mark search command multiple times if the marks are farther apart than the maximum search allows. Command Summary Command

Description

ESC -'QJ' -<lines>

Moves the printer backward in .125mm line increments. <lines>

ESC -'QQ' -<lines>

00 hex – FF hex

The number of lines to move.

Specifies the number of .125mm lines to continue printing after failing to detect a black mark. <lines>

ESC -'QF' -<max>

00 hex – FF hex

The number of lines to print. The default is 28 hex.

Searches for a black mark, advancing in .25mm line increments. <max>

ESC -'QB' -<max>

00 hex – FF hex

The maximum number of lines to move.

Searches for a black mark, moving backward in .25mm line increments. <max>

00 hex – FF hex

The maximum number of lines to move.

Configuring the Printer 3-5

Page 22

Printer Responses The printer responds to the two black mark search commands, with either of the following sequences. Command

Description

ESC-'Q'-3F hex-3F hex#high#-#low#

Black mark found.

ESC -'Q' -30 hex-30 hex#high#-# l o w #

Black mark not found.

#high#

30 hex – 3F hex

The left digit of the hex number representing the number of lines moved to find the black mark.

#low#

30 hex – 3F hex

The right digit of the hex number representing the number of lines moved to find the black mark.

Checking Version Information Your application can check the versions of both the printer’s hardware and firmware. Command Summary Command

Description

ESC -' P ( '

Requests the firmware version. The printer responds with: ESC -' ( ' -#version#-CR-LF-NAK #version#

ESC -'P)'

Four ASCII characters representing the firmware version.

Requests the hardware version. The printer responds with: ESC -')' -'099' -<version>-CR-LF-NAK < v ersion>

3-6 Configuring the Printer

An ASCII character representing the hardware version.

Page 23

Communicating with the Handheld The printer and handheld cannot communicate unless they use these communication parameter values: ♦

Baud Rate - 19200

♦

Stop Bits - 1

♦

Parity - None

♦

Data Bits - 8

♦

Flow Control – RTS/CTS

The following control characters are related to communications between the printer and the handheld. Command Summary Command

Description

12 hex (Auxon)

Sent by the printer to indicate the printer is online (transmitted upon initial power up, a paper reload, or clearing of a paper jam).

15 hex (Auxoff)

Sent by the printer just before a power down or when the supplies run out.

11 hex (Xon)

Sent by either device to indicate it is ready to receive data.

13 hex (Xoff)

Sent by the receiving device to indicate the transmission must end.

Configuring the Printer 3-7

Page 24

Miscellaneous Control Characters Command Summary Command

Description

18 hex (Cancel)

Re-initializes the printer. We recommend you begin all data streams with this command.

8 hex (BS)

Removes the last character entered in the print buffer.

4 hex (EOT)

Sent by the printer to indicate the buffer is empty and the printer is idle.

3-8 Configuring the Printer

Page 25

MODIFYING RESIDENT FONTS

4

You can modify the printer’s resident fonts by redefining the characters. To modify a font, perform the tasks in the following sections (in the order the sections are listed). Each time you modify a font, it replaces the current font definition. The only way to return to the default font is to reload the original definition.

Font Sizes Before you start, take note of the maximum size of characters in the font you want to use. Number

Name

Character Size (w x h)

0

Large Rotated (90 degrees clockwise)

14 x 16

1

Large Normal

16 x 21

2

Standard Bold

12 x 21

3

Standard Normal

10 x 21

4

Reduced Bold

9 x 21

5

Reduced Normal

8 x 21

Modifying Resident Fonts 4-1

Page 26

Defining New Characters You must define each new character separately, performing the following procedure for each one.

1. Define the character in a matrix. The matrix size depends on the font you use (see “Font Sizes”). Think of the matrix as a bitmap showing the character’s design. Following is an example. Left Byte 7

6

5

4

3

Right Byte 2

1

0

7

6

5

4

3

2

1

0

Leave at least one column blank to the character’s right so character strings do not run together.

2. Translate each line into two bit sequences (left byte/right byte), where an empty square is 0, and a filled-in square is a 1. For example, the second line from the top is 00000000 01000000.

3. Convert each bit sequence into two hex characters. For example, the second line from the top is 00 40.

The Next Step You have now defined the new character you want to create. The next step is to select the character set to load it in.

4-2 Modifying Resident Fonts

Page 27

Selecting Character Sets Before selecting a character set, remove the printer’s battery and wait several seconds. Then, replace the battery and immediately use one of these commands to select the character set to modify. When it receives either of these commands, the printer copies the character set to memory, then sends a ‘?’ character to the handheld. The printer returns any characters not accepted as part of this command. Do Not send any commands to the printer between turning it on and selecting the character set. Command Summary

Command

Description

ESC -'DA0'

Selects characters from the ASCII character set (33-127).

ESC -' D X ' -<charfont>

Selects characters and fonts from the Extended ASCII or ANSI character set (128255).

<charfont>

0

Extended ASCII characters – Large Rotated, Large Normal, and Standard Bold fonts.

1

Extended ASCII characters – Standard Normal, Reduced Bold, and Reduced Normal fonts.

2

ANSI characters –Large Rotated, Large Normal, and Standard Bold fonts.

3

ANSI characters –Standard Normal, Reduced Bold, and Reduced Normal fonts.

The Next Step You have now selected the character set you are modifying. The next step is to load the character into the set.

Modifying Resident Fonts 4-3