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

MtP Series & FieldPro Programmer's Manual: Introduction, pages 25 to 34

Pages 25 to 34 of 63, from MtP Series & FieldPro Programmer's Manual

The original document is the PDF (923 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 Printek MtP300

Page 25

Printek Emulation Example: id = 1 This example will print the following image, but it will be scaled to fit between the left and right margins.

Escape Sequence: ESC > Hexadecimal: 1B 3E x = 45 y = 19+128 x = 44 y = 17 xmsb xlsb ymsb ylsb xmsb xlsb ymsb ylsb … t 1 ESIG= (v) 2 D 9 3 2 C 1 1 … CR 31 45 53 49 47 3D 32 44 39 33 32 43 31 31 … 0D

The entire string of data representing the graphic nodes for this example is: 2 D 9 3 32 44 39 33 2 4 1 B 32 34 31 42 1 F 3 4 31 46 33 34 2 D 3 F 32 44 33 46 3 E 3 1 33 45 33 31 3 A 2 2 33 41 32 32 0 F 2 0 30 46 32 30 0 F 2 E 30 46 32 45 3 E 3 5 33 45 33 35

2 C 1 1 32 43 31 31 2 3 1 D 32 33 31 44 1 F 3 8 31 46 33 38 3 3 3 E 33 33 33 45 3 F 2 F 33 46 32 46 2 B 1 F 32 42 31 46 0 C 2 2 30 43 32 32 1 1 2 F 31 31 32 46 4 3 3 4 34 33 33 34

2 A 1 2 32 41 31 32 2 2 1 F 32 32 31 46 2 0 3 A 32 30 33 41 3 6 3 C 33 36 33 43 3 F 2 B 33 46 32 42 1 E 1 E 31 45 31 45 0 B 2 4 30 42 32 34 1 5 3 1 31 35 33 31 4 D 3 1 34 44 33 31

2 8 1 4 32 38 31 34 2 0 2 4 32 30 32 34 2 2 3 C 32 32 33 43 3 8 3 A 33 38 33 41 3 F 2 7 33 46 32 37 1 B 1 E 31 42 31 45 0 B 2 6 30 42 32 36 2 6 3 4 32 36 33 34 4 B 3 1 34 42 33 31

2 6 1 6 32 36 31 36 1 F 2 D 31 46 32 44 2 4 3 E 32 34 33 45 3 B 3 6 33 42 33 36 3 E 2 5 33 45 32 35 1 7 1 E 31 37 31 45 0 B 2 9 30 42 32 39 2 8 3 4 32 38 33 34

2 5 1 9 32 35 31 39 1 F 3 1 31 46 33 31 2 6 3 F 32 36 33 46 3 D 3 3 33 44 33 33 3 C 2 3 33 43 32 33 1 1 1 F 31 31 31 46 0 D 2 D 30 44 32 44 3 B 3 5 33 42 33 35

Storing and Printing Graphic Images and Logos Graphic images including logos may be stored permanently in the printer’s flash memory so that they may be printed as often as needed without having to retransmit the graphic image each time. A total of 1MB of Flash memory is allocated to storing graphic images. The number of images that may be stored depends on the size of the images. An image is programmed into the printer’s memory using a series of steps, or commands, as shown below. Step 1: Send the Load Graphic Image command to the printer. Step 2: Send the image using up to 2,436 graphic lines as described in the Graphics section on page 17. (The 8-Bit Compress Graphics command is not supported when defining logos.) Step 3: Send the Store Graphic Image command to the printer. Step 4: Wait for the printer to respond with “D” (Hexadecimal 44) indicating that the printer has begun storing the image. Step 5: Wait for the printer to respond with an Exclamation Point character (Hexadecimal 21) indicating that the image has been stored.

21

Page 26

Printek Emulation Load Graphic Image

ESC L G n

This command indicates that graphic commands describing an image to be stored is to follow. The value of n is used to identify this particular graphic image and may be any printable ASCII character (0x21 ≤ n ≤ 0x7E). This same value is then used to print the graphic. The graphic data is sent using Graphic commands as described on page 17. The image may consist of up to 2,436 graphic lines. The loading process will terminate when 2,436 lines have been received, or upon receipt of the Store Graphic Image command. Example: This escape sequence specifies that the following graphic command(s) will define graphic image “A”. Escape Sequence: ESC Hexadecimal: 1B

L 4C

G 47

A 41

Graphics Data Graphic commands as described on page 17.

Note 1: This command may be used to store graphic images that can later be recalled and printed using CPCL, ZPL-II, and O’Neil Emulation Easy Print commands. The name used in the Easy Print command would be “LOGOn”, or “LOGOA” for the above example. Note 2: As of printer firmware revision 2.8, a special “Print Promo” feature is available that may be enabled through the printer’s control panel. This feature allows an image that is stored with the value of n = 0x24 (“$”) to automatically be printed at the end of each print job. Refer to the Options configuration section in the printer’s operator’s manual for more information. Note 3: As of printer firmware revision 3.1, a special “Print Header” feature is available that may be enabled through the printer’s control panel. This feature allows an image that is stored with the value of n = 0x3F (“?”) to automatically be printed at the beginning of each print job. Refer to the Options configuration section in the printer’s operator’s manual for more information.

Store Graphic Image

ESC L G DEL

This command terminates the Load Graphic Image mode and causes the graphic image to be stored in the printer’s Flash memory. After this command is received, the printer will transmit a “D” (Hexadecimal 44) and begin saving the image. Once the image is stored, the printer will transmit a an Exclamation Point (Hexadecimal 21). The image may now be printed using the Print Graphic Image command. Caution: The printer power must remain on throughout this entire process. Escape Sequence: ESC Hexadecimal: 1B

L 4C

G 47

DEL FF

Print Graphic Image

ESC L g n

This command will print a graphic image that was previously stored using the Load Graphic Image command. Example: The following escape sequence will print the graphic logo stored as “A”. Escape Sequence: ESC Hexadecimal: 1B

22

L 4C g 67

A 41

Page 27

Printek Emulation

Black Mark Sensing The MtP and FieldPro Series printers can print on preprinted forms on roll media by using a “black mark” to sense the beginning of each form. The black mark is located on the form in a position where the printer’s paper out sensor can be used to detect its presence. Additionally, the MtP “LP” models are capable of sensing a black mark on the back side of the form and for sensing the gap between labels. The recommended position for the black mark is described below.

Black Mark Requirements For automatic label and ticket printing, the black mark should be positioned as shown in the illustration below. When using Mark Sensing mode, the MtP and FieldPro printers will automatically position the label for tear-off and printing following a Form Feed command or by pressing the Paper Feed button. Please refer to your printer’s Operator’s Manual for information on selecting this operation mode.

Perforation or tear position

Black Mark should span width of paper for best results.

0.15”

Optimum Black Mark Position

Black Mark Sensing Commands For non-automatic paper positioning, the following commands may be used to cause the paper motion to stop when the black mark is sensed.

Set Paper Out Sensitivity

ESC Q Q n

This command sets the number of 0.125mm dot rows of paper motion that can occur after the paper out sensor detects the lack of paper before a paper out condition is displayed and the printer stops printing. Using this command to set a number of dot rows larger than the vertical size of the black mark, which looks like a lack of paper, allows the printer to continue operating in the area of the black mark. 0 ≤ n ≤ 255, the default value is 40. Example: The following escape sequence will set the paper out sensitivity to 50 dot rows. Escape Sequence Hexadecimal

ESC 1B

Q 51

Q 51

50 32

23

Page 28

Printek Emulation Forward Seek Black Mark

ESC Q F n

This command causes the printer to move the paper forward up to n dot rows to seek the beginning of a black mark on a form where 0 ≤ n ≤ 255 0.250mm dot rows. If the black mark is found, the printer responds with the escape sequence ESC Q ? ? n1 n2 where n1 n2 represent the number of dot rows the paper was moved before the black mark was detected. If the black mark is not found, the printer responds with ESC Q 0 0 n1 n2 where n1 n2 represent the number of dot rows moved before the seek was aborted. Example: The following escape sequence commands the printer to move the paper forward up to 200 * 0.250 mm dot rows in search of a black mark on the form. This example also shows the printer’s response that it found the beginning of the black mark in 183 dot rows. Command sent to printer: Escape Sequence: ESC Hexadecimal: 1B

Q 51

F 46

200 C8

Q 51

? 3F

? 3F

Response from printer: Escape Sequence: ESC Hexadecimal: 1B

; 3B

7 37

Note that the values for n1 n2, or in this example “;” “7” in the response from the printer, represent the upper and lower nibbles, respectively, of the number of dot rows the paper was moved before detecting the beginning of the black mark. Each of these values has been “or’ed” with 30 Hexadecimal in order to provide the character shown. As a result, the value represented by “;” is 176, and the value represented by “7” is 7, indicating that the paper was moved 183 dot rows, or 45.75mm.

Reverse Seek Black Mark

ESC Q B n

This command is identical to the Forward Seek Black Mark command described above except that the paper is moved in the reverse direction in order to seek the bottom edge of the black mark. Care should be taken not to move the paper very far in the reverse direction to avoid wrinkling the paper and creating the possibility of paper jams. Note that reverse paper motion is not supported in MtP400 SL models and this command is ignored.

Black Mark Found (Response From Printer)

ESC Q ? ? n1 n2

This response is provided by the printer after detecting the presence of a black mark on the form in response to either a Forward Seek Black Mark or Reverse Seek Black Mark command. Please refer to the example for Forward Seek Black Mark, above.

Black Mark Not Found (Response From Printer)

ESC Q 0 0 n1 n2

This response is provided by the printer when the presence of a black mark is not detected on the form in response to either a Forward Seek Black Mark or Reverse Seek Black Mark command. Please refer to the example for Forward Seek Black Mark, above.

Gap Sensing Gap sensing is only available on “LP” models and is used to sense the space between die cut labels. The minimum space between labels is 0.125” (3.2mm). Gap sensing is very similar to Black Mark sensing and uses the same commands. Refer to the Operator’s Manual for instructions on how to select Gap versus Black Mark sensing.

24

Page 29

Printek Emulation

Printer Controls Bell

BEL

Causes the printer's bell to sound. Control code: Hexadecimal:

BEL 07

CANCEL

CAN

Deletes all data in the printer’s input buffer and resets the printer to power up default values. Refer to “Printer Reset Conditions” on page 55 for more information. Control Code: Hexadecimal:

CAN 18

Print Contrast

ESC P n

Sets the contrast, or relative “darkness”, of the characters or graphic images to be printed where 0 ≤ n ≤ 9 (hexadecimal 30-39). A value of zero provides the greatest contrast and also the slowest print speed. Likewise, a value of nine provides the lowest contrast, but the fastest print speed. The default value is “5”. Since contrast is greatly affected by the quality of thermal paper being used, this command allows varying grades of paper to be printed on successfully. In association with this setting, the printer automatically adjusts the contrast while printing in order to achieve consistent output based on the current battery condition and print head temperature. Example: The following escape sequence with set the printer to a Print Contrast setting of “4”. Escape Sequence: ESC Hexadecimal: 1B

P 50

4 34

Buffer Mode

ESC P # ESC P $

Buffer Mode may be used to force the printer to “hold” data until the entire print job is received. If Buffer Mode has been enabled, the printer continues to hold data in its input buffer until an EOT character (Hexadecimal 04) has been received. Once the EOT is received, the printer will print the data in the input buffer up to the EOT character. When Buffer Mode is not enabled (default) data are printed as received. Example 1: The following escape sequence enables Buffer Mode. Escape Sequence: ESC P Hexadecimal: 1B 4D

$ 24

Example 2: This escape sequence disables Buffer Mode. Escape Sequence: ESC P Hexadecimal: 1B 4D

# 23

25

Page 30

Printek Emulation Select Format

ESC l n

Causes the current line to be printed, and then loads the format parameters for Format n. 1 ≥ n ≥ 5. If Format n is already selected, this command is ignored. Refer to the Printer Configuration section of the Operator’s Manual for complete details. Example: This escape sequence selects Format 2. Escape Sequence: ESC Hexadecimal: 1B l 6C

2 02

Select Emulation

ESC ESC n

Select the printer emulation mode to be used for future commands. For complete details, refer to “Selecting Emulations” on page 3.

Store Printer Command File

ESC T type id size name data

Stores a command file in the printer. This command file may be executed from the front panel of the printer by pressing and holding the Increment Button until “Recall File:” is displayed. Continue to hold the Increment Button and press the Enter Button to select which command file to execute (if more than one has been loaded) or to select “Exit” to cancel performing the command. When selecting the command file, the printer will display “Recall File: id” on the top line and the name on the bottom line. The selected command will be executed when the type =

Increment Button is released.

Type of command file: T = Text, a string of ASCII characters. Note: Using other values for type is not supported and may cause unpredictable results.

id =

A single printable ASCII character used to identify the command file.

size =

Four byte value containing the number of command file bytes to follow. This size includes the 16 character name.

name =

Sixteen character command name. This name will be displayed on the printer’s front panel when selecting a command file(s) to perform. Names shorter than 16 characters must be padded at the end with enough spaces to total 16 characters.

data =

Number of command bytes plus sixteen as specified by size.

Example: This command will store a Text command file with the id of “1”, the name “TestCmdFile” to display on the printer, and will cause the printer to print “Hello world” followed by a CRLF. Escape Sequence: ESC T T 1 Hexadecimal: 1B 54 54 31 (Continued)

26

29 00 00 00 1D

T e s t C m d F i l e SP 54 65 73 74 43 6D 64 46 69 6C 65 20

SP SP SP SP H e l l o SP w o r l d CR LF 20 20 20 20 48 65 6C 6C 6F 20 77 6F 72 6C 64 0D 0A

Page 31

Printek Emulation Reset

ESC c ESC * 0

Deletes all data in the printer’s input buffer and resets the printer to power up default values. Refer to “Printer Reset Conditions” on page 55 for more information. Escape Sequence: ESC Hexadecimal: 1B c 63

Escape Sequence: ESC * Hexadecimal: 1B 2A

0 00

Turn Printer Off

ESC * 1

Causes the printer to turn itself off Escape Sequence: ESC * Hexadecimal: 1B 2A

1 01

Printer Status Commands Print Battery Status

ESC P ^

This command will cause the printer to print the current battery voltage and charge status followed by a Carriage Return and Line Feed. If a partial line exists in the buffer, it will be printed prior to printing the battery information. Escape Sequence: ESC Hexadecimal: 1B

P 50

^ 5E

Query Printer Status

STX SYN

Each of these commands returns character strings which provide information regarding the current print buffer status and the magnetic card reader status. Additionally, SYN will return the current battery voltage. Each status is returned as an escape sequence and four ASCII hexadecimal digits followed by a Carriage Return and Line Feed. The hexadecimal digits are nibbles that have been “OR’ed” with 0x30. The statuses returned for each command are as follows: Command STX SYN

Returned Strings ESC B b1 ESC M m ESC B b1 ESC M m ESC V v1 b2 s1 b2 s1 v2 b3 s2 b3 s2 v3 b4 t b4 t v4

CR CR CR CR CR

LF LF LF LF LF

Comment Print Buffer Status MCR Status Print Buffer Status MCR Status Battery Voltage Status

27

Page 32

Printek Emulation Print Buffer Status String The print buffer status will be retuned as a four digits representing the number bytes in the buffer that remain to be processed, divided by 32. For example, if b1-b4 = “0020”, this would indicate that there are at least 20 x 32, or 640, bytes remaining to be processed. A value of “0000” would indicate that the buffer is empty. Magnetic Card Reader Status String The MCR status indicates the presence of a reader in the printer, and if present, its current status. m

“0” if MCR is present. “X” if not installed in printer.

s1, s2

Number of seconds remaining for a good card swipe before the timeout specified in the read command occurs. If this value is “00” and a non-zero value for t is returned, the reader will not time out and must be cancelled by a Cancel Read Magnetic Card Reader command.

t

The tracks to be read as specified by the read command. If this value is zero and m and s1, s2 are also zero, this indicates that the reader is present but currently disabled (no read pending).

Battery Voltage Status String This string contains the current battery voltage in millivolts. A string where v1 through v4 contains “7123” would indicate that the battery voltage is currently 7123 millivolts, or 7.123 volts. Example: The following control code will return the status of the print buffer, the magnetic card reader, and the battery voltage. Control Code: Hexadecimal:

SYN 16

The three sample status strings that would be returned in response to this command are as follows. Print Buffer Status: ESC Hexadecimal: 1B

B 42

0 30

0 30

4 34

2 32

CR 0D

LF 0A

1,344 bytes in input buffer.

MCR Status: Hexadecimal:

ESC M 1B 4D

0 30

1 31

2 32

4 34

CR 0D

LF 0A

Twelve seconds remain to read 1 & 2.

Battery Voltage: Hexadecimal:

ESC 1B

7 37

1 31

2 32

3 33

CR 0D

LF 0A

Battery Voltage is 7.123 Volts

28

V 56

Page 33

Printek Emulation Query Printer Firmware Version

ESC P (

This command returns a string containing the printer’s firmware version designation as three ASCII digits. The three digits may be interpreted by adding a decimal point between the first two digits as shown in the example below. Example: This following escape sequence requests the printer’s firmware version. Escape Sequence: ESC Hexadecimal: 1B

P 50

( 28

A sample string returned in response to this command is shown below and indicates that the firmware version is “1.00”. Firmware Version: ESC Hexadecimal: 1B

( 28

1 31

0 30

0 SPACE CR 30 20 0D

LF 0A

Query Printer Model and Hardware Revision Level

ESC P )

This command returns a string containing three digits that represent the printer model and a single character that represents the printer’s hardware revision level. The printer models indicated by the three digits are as follows: Value 300 302 304

Printer Model MtP300 MtP300 with MCR MtP300 LP

Value 400 401 402 403 404

Printer Model MtP400 MtP400 SL MtP400 with MCR MtP400 SL with MCR MtP400 LP

Value 4F0 4F2

Printer Model FieldPro RT43 FieldPro RT43 with MCR

Example: This escape sequence requests the printer’s model and revision level. Escape Sequence: ESC Hexadecimal: 1B

P 50

) 29

A sample string returned in response to this command is shown below and indicates that the printer is a model is an MtP400 SL with a Magnetic Card Reader, and is at hardware revision level “A”. Printer/Version: Hexadecimal:

ESC 1B

) 29

4 34

0 30

3 33

A 41

CR 0D

LF 0A

29

Page 34

Printek Emulation

Magnetic Card Reader Read Magnetic Card Data

ESC M n1 n2 t CR

If the optional Magnetic Card Reader (MCR) is installed in the printer, this command instructs the printer to read data from a card such as a credit card or driver’s license. The MCR is a three track reader designed to read magnetically encoded data conforming to ANSI/ISO 7810, 7811 standards. The card specifications are listed below. Track 1 Track 2 Track 3 ISO1 (IATA) ISO2 (ABA) ISO3 (MINTS) 210 bpi 75 bpi 210 bpi 7 5 7 79 40 107 0.030” ±0.003” (0.76mm ±0.08mm)

Recording Density Data Bits Characters Per Track Card Thickness

The Read Magnetic Card Data command to allows an application to request that the MCR reads one, two, or three tracks simultaneously within a specified number of seconds, where n1 n2 are ASCII digits that specify the number of seconds to wait for the user to successfully swipe a card before a “timeout” error occurs, and t is an ASCII digit specifying the tracks to be read. Specifying a timeout value of “00” disables the timeout timer and allows the user to swipe a card until a successful read is accomplished or until a cancel command (ESC C) is sent by the host. t 1 2 3 4 5 6

Tracks To Be Read Track 1 Track 2 Track 3 Tracks 1 & 2 Tracks 2 & 3 Tracks 1, 2 & 3

After the printer receives the command, the MCR indicator will begin to flash indicating to the user that (s)he may now pass the card to be read through the MCR slot near the front of the printer. The card may be swiped in either direction. If the read is successful, the MCR indicator will stay lit momentarily (not flashing) and the printer will transmit the data read and/or the status of the requested read operation. If a swipe does not result in a successful read, the Error Indicator will also begin to flash and an error message as described below will be transmitted. The card may be swiped multiple times until a successful read occurs or until the specified timeout expires. Once the timeout occurs, the MCR will be disabled and both indicators will be turned off. The data are returned as string(s) of ASCII characters in the following format. ASCII: Hexadecimal:

% 25

/ 2F

1 31

/ 2F track 1 data …

? 3F

CR 0D

LF 0A

ASCII: Hexadecimal:

; 3B

/ 2F

2 32

/ 2F track 2 data …

? 3F

CR 0D

LF 0A

ASCII: Hexadecimal:

+ 2B

/ 2F

3 33

/ 2F track 3 data …

? 3F

CR 0D

LF 0A

Note: If no data is available for a track, the track data portion of the string will be empty. Other tracks containing valid data will be returned. If an error occurs on any track, the track data portion of the string for that track will contain a single “E” (Hexadecimal 45).

30