The text of a manual · part 2 of 6
Monarch 9430RX Printer, pages 11 to 20
Pages 11 to 20 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 11
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. Indicates a variable with a single-byte value. Indicates the value is a literal. Enter the value as it appears or use the ASCII hex values for the same characters. Indicates a variable of any length. Indicates a variable of an exact length. Indicates the beginning of a command sequence. Enter 1B hex for this item. Indicates the end of a response from the printer. In the response, it is represented as 0D 0A 15 hex.
( ) # # ESC CR-LFNAK
These conventions make it easier for you to read the commands' syntax descriptions. They are not part of the data streams. For example, ESC-'F1' may be the syntax description, but the data stream should contain 1B for ESC. Also, - and ' (and other such characters described here) are not part of the data stream. For values not enclosed within single quotation marks, enter the value shown while pressing ALT on the keyboard. NOTE:
The printer ignores commands with syntax errors.
1-2 Introduction
Page 12
Control Characters The following characters are reserved and used to control the printer. The printer provides single-byte responses to the host of its status. Char. EOT
Control ^D
Hex 0x04
Dec 04
BS
^H
0x08
08
HT
^I
0x09
09
LF
^J
0x0A
10
VT
^K
0x0B
11
FF
^L
0x0C
12
CR
^M
0x0D
13
SO
^N
0x0E
14
SI
^O
0x0F
15
Control Action End Of Text Signals to the host device that the printer is in idle mode and the print buffer is empty. Backspace Removes the previous character in the print buffer. Horizontal Tab Advances to the next tab position (from the following list) or to the beginning of the next line: 5, 9, 13, 17, 21, 25, 29, 33, 37. Line Feed Advances to beginning of next line. Vertical Tab Advances 5 lines. Form Feed Advances 10 lines. Carriage Return Advances to beginning of next line. Shift Out Switches to 36-column print mode Shift In Switches to 57-column print mode.
Introduction 1-3
Page 13
Char. XON
Control ^Q
Hex 0x11
Dec 17
AUXON
^R
0x12
18
XOFF
^S
0x13
19
NORM AUXOFF
^T ^U
0x14 0x15
20 21
CANCEL
^X
0x18
24
ESC
^[
0x1B
27
EXTEND
^\
0x1C
28
EXTEND OFF
^]
0x1D
29
1-4 Introduction
Control Action Transmitter On Signals that the device is ready to receive data (can be sent by the printer or host). Printer on Signals to the host that the printer is online. It is sent after initial power up, clearing a supply jam, or a supply reload. 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. Switches to 57-column print mode. Printer is off Signals to the host that the printer is out of supply or has powered down. Cancel and reset printer Resets the print buffer places the printer in initial power-up mode with the default settings. Escape Indicates that the following characters are part of a printer control language command. Extended print Prints characters double high. Extended print off/Normal print Prints characters at the normal height.
Page 14
CONFIGURING THE PRINTER
2
There are several commands to configure the printer. You can include these commands anywhere in a data stream. This chapter describes the commands to configure the printer.
Selecting the Operating Mode 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). Syntax
Example
ESC-‘cmdol’ ESC
Starts the command language.
‘cmdol’
Online command. Options: P# Selects online mode. P$ Selects buffer mode.
ESC P#
Uses online mode. The printer starts printing as soon as it receives a character.
Setting the Print Contrast You can increase or decrease the print contrast for lighter or darker print. This setting affects the print speed (the higher the contrast, the lower the speed and vice versa). The print contrast also depends on the battery voltage. Syntax
Example
ESC-<cmdpc>-<contrast> ESC
Starts the command language.
<cmdps>
Print contrast command. Enter P.
<contrast>
Print Contrast. Value can be between 0-9, where 0 is the highest contrast and 9 is the lowest contrast. The default is 5.
ESC P9
Sets printer to lowest contrast (9) and fastest print speed. Configuring the Printer 2-1
Page 15
Setting the Power Mode The printer can operate in five different power modes, each using a different number of printhead sections, which are groups of dots on the printhead. The mode selected also affects the print speed (the more printhead sections used, the faster the printer speed and vice versa). Syntax
Example
ESC-<cmdpm>-<powmode> ESC
Starts the command language.
<cmdpm>
Power mode command. Enter P.
<powmode>
Power mode. The number of printhead sections to use, specified in hex. Options: 1 Low - Use one printhead section, less than 1.0 Amp. 2 Medium - Use two printhead sections, less than 2.0 Amps. 3 High - Use three printhead sections, less than 3.0 Amps. 6 Very high - Use six printhead sections, less than 9.0 Amps. 7 Auto Control - Dynamically choose the number of printhead sections to use (1, 2, 3, or 6), depending on what is printed (default).
ESC P2
Uses two printhead sections, which is less than 2.0 Amps.
Checking the Battery Voltage The following commands/control characters check the battery’s voltage and request statuses. Syntax
Example
ESC-‘cmdvolt’ ESC
Starts the command language.
‘cmdvolt’
Battery voltage command. Options: P^ Prints the battery voltage. P! Requests the battery voltage from the printer.
ESC P^
Prints the battery voltage. 2-2 Configuring the Printer
Page 16
Request the printer statuses You can request the print buffer, battery status, and magnetic card reader status from the printer by sending 16 hex (Ctrl-V) to the printer. The printer responds with ESC-'B'-#pbchars#-CR-LF-ESC-'V'-#volts#-CR-LF-ESC'M'-#card#-CR-LF-NAK ESC B
Print buffer status.
#pbchars#
The number of characters currently in the print buffer, shown as four ASCII hex digits, which are “OR’d” with 30 hex.
CR LF
Carriage return and line feed.
ESC V
Battery voltage status.
#volts#
Four ASCII decimal digits (which are “OR’d” with 30 hex). 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.
CR LF
Carriage return and line feed.
ESC M
Magnetic card reader status.
#card#
Four ASCII hex digits (which are “OR’d” with 30 hex) representing the time left before the printer enters sleep mode.
CR-LF-NAK
Indicates the end of a response from the printer.
You can send a print status request to the printer for print buffer status and the magnetic card reader status by sending 2 hex (Ctrl-B)
Configuring the Printer 2-3
Page 17
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. 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 sends AuXon then Xoff. See “Setting the Communications Parameters” for descriptions of the dip switches and for information about this feature. Syntax
ESC-<cmdpt>-<digit1><digit2>-CR ESC
Starts the command language.
<cmdpt>
Power-off timer command. Enter M.
<digit1><digit2>
Number of seconds for the inactivity period. Options: 0 to 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.
CR
Carriage return.
NOTE:
Example
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.
ESC MC CR
Sets the inactivity period to the default (20 seconds). Example
ESC M560 CR
Sets the inactivity period to 56 seconds. Example
ESC M000 CR
Disables the power-off timer.
2-4 Configuring the Printer
Page 18
Supply Control Commands The commands in this section control how the printer uses black-mark supplies. Look at your supply (distance between black marks, existence of any preprinted text, etc.) before you begin. You may have to use the black mark search command multiple times if the marks are farther apart than the maximum search allows. To use these commands: 1.
Set the sensitivity of the sensor search mechanism detecting the black mark (ESC QQ command).
2.
Move the supplies forward (ESC QF command) or backward (ESC QB or ESC QJ commands) to find the black mark.
3.
Wait for a response from the printer (found or not found).
4.
Send a data stream with printing commands.
Syntax
ESC-‘cmdbw’-<lines> ESC-‘cmdos’-<lines> ESC-‘cmdbfw’-<max> ESC-‘cmdbbw’-<max> ESC
Starts the command language.
‘cmdbw’
Backward command. Enter QJ.
<lines>
The number of lines to move the printer backwards in 0.125 mm increments (in 00 hex – FF hex).
ESC
Starts the command language.
‘cmdos’
Out of supply sensitivity command. Enter QQ.
<lines>-
The number of lines to continue to print in 0.125mm increments (00 hex – FF hex) after failing to detect a black mark. The default is 28 hex.
ESC
Starts the command language.
‘cmdbfw’
Search for black mark forward command. Enter QF.
<max>
The maximum number of lines to move forward (advance) in 0.25mm line increments (in 00 hex – FF hex). Configuring the Printer 2-5
Page 19
ESC
Starts the command language.
‘cmdbbw’
Search for black mark backward command. Enter QB.
<max>
The maximum number of lines to move backward in 0.25mm line increments (in 00 hex – FF hex).
Printer Responses See the printer’s response to the black mark commands in the following table. Command ESC QR39 ESC QB35
Response
Description
ESC-'Q'-3F hex-3F hex-#high#-#low#
Black mark found.
ESC-'Q'-30 hex-30 hex-#high#-#low#
Black mark not found
#high#
The left digit of the hex number representing the number of lines moved to find the black mark in 30 hex – 3F hex.
#low#
The right digit of the hex number representing the number of lines moved to find the black mark in 30 hex – 3F hex.
Checking Version Information You can check the versions of both the printer’s hardware and firmware. Syntax
ESC-‘cmdfv’ ESC-‘cmdhv’ ESC
Starts the command language.
‘cmdfv’
Request firmware version command. Enter P(.
ESC
Starts the command language.
‘cmdhv’
Request hardware version command. Enter P).
2-6 Configuring the Printer
Page 20
Example
ESC P(
The printer responds with: ESC-'('-#version#-CR-LF-NAK
Example
ESC (
Response from the firmware version request.
#version#
Four ASCII characters representing the firmware version.
CR-LF-NAK
Indicates the end of a response from the printer.
ESC P)
The printer responds with: ESC-')'-'103'-#version#-CR-LF-NAK ESC )
Response from the hardware version request.
#version#
An ASCII character representing the hardware version.
CR-LF-NAK
Indicates the end of a response from the printer.
Printer/Device Communications Following are the printer’s communication values. The defaults are listed in bold. ♦
Baud Rate – 2400, 9600, 19200, or 38.4K
♦
Stop Bits – 1 or 2
♦
Parity – None, Odd, or Even
♦
Data Bits – 7 or 8
♦
Flow Control – RTS/CTS (hardware) or XON/XOFF (software)
The printer and host cannot communicate unless they use the same communication values. Additional communication specifications: Word Length –10 or 11 bits
Start Bit – 1
Mark or Logical 1 – -3 to -15VDC
Signal Levels – RS232C
Space or Logical 0 – +3 to +15VDC
Auto Pow er Up – Positive signal on RTS input turns printer on. Configuring the Printer 2-7