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 6

Monarch 9430RX Printer, pages 21 to 30

Pages 21 to 30 of 55

The original document is the PDF (1.3 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 9430RX

Page 21

Setting the DIP Switches Use the DIP switches to set the RS232 communication, IrDA, and optional RF values. To access the DIP switches, open the battery door and remove the battery. Turn the printer upside down to easily read the DIP switches. To activate the DIP switches, turn the printer off and then back on. Gently use a plastic-tipped object to set the DIP switches. Do not use any metal object! The communications interface settings must be set as defined in the table. Select DIP switches 4 through 8 for RS232 and 6 through 8 for IrDA. Communication Interface RS232 IrDA – Fixed 9600 IrDA – Variable Baud Bluetooth® Baud Rate 38400 19200 9600 2400 Parity None Odd Even Printer Pow er Auto Power Off * Manual Power Off

1

2

3

4

5

6

7

8

OFF ON ON OFF

OFF ON ON OFF

OFF OFF OFF ON

OFF ON OFF

OFF OFF OFF

OFF

OFF

OFF

OFF OFF ON ON

OFF ON OFF ON OFF ON ON

OFF OFF ON ON OFF

* The printer automatically turns off after 99 sec. (default) or the time set up by the System Administrator.

2-8 Configuring the Printer

Page 22

Printer Pinouts There is a port for a 6-Pin RJ25 data connector. It provides RS-232 communications and is located at the back of the printer. The six connections provide the serial interface to the host. The table below lists the serial interface signals and pinouts. NOTE: Pin # 3 2 6 4 1 and 5

Pins 1 and 3 must be set on at all times. Description Signal to printer from host Signal to host from printer Request to send from Host Clear to send from Printer Logic common

Input/Output Input Output Input Output

Signal RXD TXD RTS CTS COM

Following are the pin locations on the connector:

The following control characters are related to communications between the printer and the host. Char.

Hex

Control Action

AUXON

0x12

AUXOFF

0x15

XON

0x11

XOFF

0x13

Signals to the host that the printer is online. It is sent after initial power up, clearing a supply jam, or re-loading supply. Signals to the host that the printer is out of supply or has powered down. Transmitter On Signals that the device is ready to receive data (can be sent by the printer or host). Printer receiver is off Signals to the host that the print buffer is full or an error has occurred. Signals to the printer that the host’s transmitter is off.

Configuring the Printer 2-9

Page 23

Miscellaneous Control Characters You may need to use some of these miscellaneous control characters in your data streams. Char.

Hex

Control Action

BS CANCEL

0x08 0x18

EOT

0x04

Removes the last character entered in the print buffer. Re-initializes the printer. We recommend that you begin all data streams with this command. Sent by the printer to indicate the buffer is empty and the printer is idle (End Of Text).

2-10 Configuring the Printer

Page 24

3

C R E AT I N G A N D P R I N T I N G F O R M AT S

A format defines which fields appear and where the fields are printed on the supply. Fields can contain text, graphics, and bar codes. This chapter describes how to create a format.

Overview To create a format: 1.

Decide the information (fields) you want on your supply.

2.

Draw a rough sketch of how you want the format to look. For example, a graphic (graphic field) may appear at the top, followed by the name of your organization (text field), followed by a list of items (text field) purchased. Your format could be organized any number of ways.

NOTE:

There are .157-inch no-print zones on the left and right sides of the format, and a .7-inch no-print zone at the top of the format.

3.

Create the data stream, based on your format’s design.

4.

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 initialize the printer (18 hex) or any supply control commands.

5.

Send the data stream from the host to the printer.

Creating Text Fields Text fields can contain letters, numbers, and symbols. To specify text for the format, write the text directly to the printer. There is no special Text field command. However, there are commands/control characters to select a character set and font.

Creating and Printing Formats 3-1

Page 25

Selecting Character Sets The printer comes with a default ASCII character set.

You can select either of two extended character sets: International or PC LineDraw.

These character sets are standard in the printer. NOTE:

You can modify the standard character sets/fonts. See Appendix B, “Modifying Standard Fonts,” for more information.

Character Exceptions Both character sets have missing characters. The and , respectively ; the character replaces .

3-2 Creating and Printing Formats and characters replace

Page 26

Syntax

ESC-<cmdcs>-<chset> ESC

Starts the command language.

<cmdcs>

Character set command. Enter F.

<chset>

Character Set. Options: 1 Selects International (ANSI) characters (default) 2

Example

Selects PC Line-Draw (ASCII) characters.

ESC F1

Selects the International (ANSI) character set.

Selecting a Font For your format’s text, select the font, its size, and style (normal or bold). Syntax

ESC-‘chheight’ ESC-<cmdf>-<font> ESC-<cmdb>-<bold> ESC

Starts the command language.

‘chheight’

Character Height. Use EXTEND or EXTENDOFF. 1C hex Prints characters twice as high as normal (EXTEND). 1D hex Prints characters at the normal height (EXTENDOFF).

ESC

Starts the command language.

<cmdf>

Font command. Enter k.

<font>

Font. Options: 0 Large Rotated (90 degrees clockwise) 1

Large Normal

2

Standard Bold (default)

3

Standard Normal

4

Reduced Bold

5

Reduced Normal

Creating and Printing Formats 3-3

Page 27

ESC

Starts the command language.

<cmdb>

Bold command. Enter U.

<bold>

Enables or disables bold printing. Options: 0 1

Example

Turn off bold printing. Turn on bold printing.

ESC 1D hex ESC k1 ESC U0

This example uses the International (ANSI) character set, prints characters at the normal height, uses the Large Normal font, and disables bold printing.

Using Underline Characters You can specify underlining for text on your format. Syntax

Example

ESC-<cmdu>-<uline>-‘data’ ESC

Starts the command language.

<cmdu>

Underline command. Enter F.

<uline>

Sets underline mode. Options: w Turns on underline for all characters following this command. Underline is used until an ESC Fh command is received or until the end of the current line. h Turns off underline for all for all characters following this command. No underline is used until an ESC Fw command is received or until the end of the current line.

‘data’

Enter the data to print in your format. Must be enclosed within single quotation marks.

ESC Fw ‘12345’ ESC Fh ‘78910’ ESC Fw ‘3345’ CR ‘12345’

Turns on underline for characters 12345 and turns off underline for characters 78910. The printer prints: 12345789103345 12345

3-4 Creating and Printing Formats

Page 28

Selecting the Line Spacing You can change the line spacing between lines or before a line. Syntax

Example

ESC-<cmdls>-num ESC

Starts the command language.

<cmdls>-num

Line spacing command. Options: a-num sets the line spacing between text lines. Value for num is 0-10, in increments of 0.125mm. J-num sets the number of line feeds at the beginning of a line. Value for num is 0-255, in increments of 0.125mm.

ESC a2

Sets the spacing between lines to 0.25mm.

Creating Graphic Fields The printer can print bitmap graphics from ♦ data streams

♦ flash memory.

You use the same commands for both methods. However, if you use a data stream, you must recreate the graphic every time you print it. If you save the graphic in flash memory, you only create it once and retrieve it when you want to print it. You can also compress graphics. You can also change the line spacing between lines or before a line. See “Selecting the Line Spacing” in this chapter for more information.

Creating and Printing Formats 3-5

Page 29

Using Data Stream Graphics Data stream graphics print one line at a time. These lines may contain data or spaces. To create 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. Syntax

ESC-<cmdgl>-<lines1><lines2>-#data# ESC

Starts the command language.

<cmdgl>

Graphic line command. Enter V.

<lines1><lines2>

The first and second hexadecimal digits of the number of lines to print.

#data#

72 hex bytes, indicating the dots to turn on or off. For example, if a specified byte is FF, all the dots are on. If it is 01, only one dot is on, and the other 7 are off. If you accidentally specify less than 72 bytes, the printer does not print the graphic. If you specify more than 72 bytes, a fatal error occurs.

NOTE:

Example

You do not directly specify the bits turned on or off. You specify the bits in groups of eight by using two-digit hex values.

ESC V 10 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFF

This line of code prints a solid horizontal line of dots. The data needs to be entered on one line. Do not use line breaks to wrap the data. This data is shown on several lines because of the font size and margins.

3-6 Creating and Printing Formats

Page 30

Using Compressed Graphics You can compress the data in a graphic when it has repetitive values. Syntax

ESC-<cmdg>-<height>-<width>-<counter>-#data# ESC

Starts the command language.

<cmdg>

Graphic command. Enter v.

<height>

The number of dot lines in the following data (entered as 8-bit data).

<width>

The number of bytes per dot line (entered as 8-bit data).

<counter>

An indicator of how much data to process. When <counter> is signed (and a positive number), process the specified amount of data as with data stream graphics. Otherwise, repeat the next byte the specified number of times. When <counter> is unsigned (and less than or equal to 127), process the specified amount of data as with data stream graphics. Otherwise, repeat the next byte the specified number of times (the specification being the difference between counter and 256).

#data#

The data in the graphic. 72 hex bytes, indicating the dots to turn on or off. For example, if a specified byte is FF, all the dots are on. If it is 01, only one dot is on, and the other 7 are off.

NOTES: <counter> and <data> can repeat multiple times within one command. For using Flash Memoroy Graphics, use the graphic command above. However, <height> and <width> are replaced by <low> and <high>. Do not use <counter>, but make sure you still include the graphic’s #data#. <low><high>

The hex digits (listed backward) of a number indicating how many lines to print. For example, to print 10 lines, <low> is A, and <high> is 0.

#data#

72 hex bytes, indicating the dots to turn on or off. For example, if a specified byte is FF, all the dots are on. If it is 01, only one dot is on, and the other 7 are off. If you accidentally specify less than 72 bytes, the printer does not print the graphic. If you specify more than 72 bytes, a fatal error occurs. Creating and Printing Formats 3-7