background image

Monarch

6017

HandiPrint

Printer

Programmer’s
Manual

Programmer’s
Manual

TC6017PM Rev. A

C

 0

6

/0

2

    ©2001 Monarch Marking Systems, Inc. All rights reserved.

Summary of Contents for HANDIPRINT 6017

Page 1: ...Monarch 6017 HandiPrint Printer Programmer s Manual Programmer s Manual TC6017PM Rev AC 06 02 2001 Monarch Marking Systems Inc All rights reserved...

Page 2: ...hen the equipment is operated in a commercial environment This equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with the instruction manual m...

Page 3: ...Stream Graphics 2 4 Using Flash Memory Graphics 2 5 Creating Bar Code Fields 2 7 Specifying Particular Bar Codes 2 8 Positioning Fields 2 10 Configuring the Printer 3 1 Selecting the Operating Mode 3...

Page 4: ...nt Sizes 4 1 Defining New Characters 4 2 Selecting Character Sets 4 3 Loading New Characters 4 4 Saving Modified Fonts 4 4 Using the Magnetic Card Reader 5 1 Error Messages 5 3 Using the Bar Code Scan...

Page 5: ...to the printer It writes these commands either directly or through the Symbol Application Programming Interface API For information about the API refer to Symbol s Web site www symbol com This manual...

Page 6: ...ble of any length Indicates a variable of an exact length ESC Indicates the beginning of a command sequence Enter 1B hex for this item CR LF NAK Indicates the end of a response from the printer In the...

Page 7: ...of ways 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 2 Code the commands to implement your format design as described...

Page 8: ...g characters The and characters replace and respectively the character replaces Command Summary Command Description ESC F1 Selects ANSI characters ESC F2 Selects ASCII characters F1 and F2 are two cha...

Page 9: ...unt the space for the printer to leave between lines of text space 0 10 The amount of space in increments of 125 mm The default is 3 375 mm Example ESC a2 Sets the space between text lines to 25 mm C...

Page 10: ...e 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 l...

Page 11: ...below It takes two commands to make the transition to Download Mode Design the application so that it waits to send the second command until the printer responds to the first command by returning a ch...

Page 12: ...s ESC Lg0 Prints the graphic stored in flash memory ESC V low high data Prints a number of graphic lines low and high The hex digits listed backward of a number indicating how many lines to print For...

Page 13: ...ption ESC z bctype length height data Prints a bar code without human readable data ESC Z bctype length height data Prints a bar code with human readable data bctype The type of bar code to print valu...

Page 14: ...articular Bar Codes for data restrictions which vary by bar code Specifying Particular Bar Codes Values for the length and data parameters depend on the type of bar code you choose with bctype Bar Cod...

Page 15: ...reader as 00 7F hex subset B uses 20 7F hex and subset C uses 30 39 hex The following table explains how to switch from one subset to another Character Subset A Subset B Subset C 80 hex Function 3 Fu...

Page 16: ...nd left sides and a 7 inch no print zone at the top Command Summary Command Description D hex CR Advances to the beginning of the next line C hex FF Advances 10 lines 14 hex Norm F hex SI Sets the pri...

Page 17: ...en prints them upon receipt of an EOT control character 4 hex Command Summary Command Description ESC P Selects online mode ESC P Selects buffer mode S e t t i n g t h e P r i n t C o n t r a s t You...

Page 18: ...number of printhead sections to use specified in hex 1 Use one printhead section 2 Use two printhead sections 3 Use three printhead sections 6 Use six printhead sections 7 Default Dynamically choose...

Page 19: ...ltage 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 U...

Page 20: ...ts 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 inact...

Page 21: ...ximum search allows Command Summary Command Description ESC QJ lines Moves the printer backward in 125mm line increments lines 00 hex FF hex The number of lines to move ESC QQ lines Specifies the numb...

Page 22: ...30 hex 3F hex The right digit of the hex number representing the number of lines moved to find the black mark C h e c k i n g V e r s i o n I n f o r m a t i o n Your application can check the version...

Page 23: ...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 powe...

Page 24: ...s 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...

Page 25: ...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 F o n t S i z e s Before you start take note of the maxim...

Page 26: ...ight Byte 7 6 5 4 3 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...

Page 27: ...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 DX charfont Selects characters and...

Page 28: ...Reduced Bold Reduced Normal 2 Reduced Bold Reduced Normal code The hex character code for the new character 21 hex 7F hex ASCII or 80 hex FF hex Extended ASCII and ANSI matrix The hex data from the ma...

Page 29: ...ponds with XON to indicate the reader is ready Command Summary Command Description ESC M timer tracks CR Prepares the reader for a magnetic card swipe The reader s LED turns on when the printer receiv...

Page 30: ...field contains an E character and the error message text see Error Messages 2 hex Ctrl B Requests the print buffer and card reader statuses The printer responds with ESC B pb CR LF ESC M sleep CR LF N...

Page 31: ...ding text 05 Timeout Expired 07 Invalid Track Number 08 Unsupported Track Selected 09 Cancel Request Considerations We recommend designing your applications so the user can manually enter data when th...

Page 32: ...5 4 Using the Magnetic Card Reader...

Page 33: ...scanner For example using the API commands the application must enable the scanner and define the connection to the printer buttons before performing the scan The interaction between the printer and h...

Page 34: ...are being pressed and when they are not on The number of characters in onstring onstring The data indicating the buttons are being pressed off The number of characters in offstring offstring The data...

Page 35: ...s the following sales receipt A p p l i c a t i o n C o d e The printer s data stream is integrated with the commands that make up the handheld s application For example the application must define an...

Page 36: ...ialPort Dim iReturn Dim CRLF Dim LF Dim NAK Dim Byte Dim String ESC Chr 27 Initialize variables CR Chr 13 CRLF Chr 13 Chr 10 LF Chr 10 NAK Chr 21 Byte String LPrint Chr 24 Reinitialize Printer LPrint...

Page 37: ...ing LF CmdString CmdString Total 13475 CRLF CRLF CmdString CmdString AMEX 37xvz55xx315001 LF CmdString CmdString Exp Date 10 01 CRLF CRLF CRLF CmdString CmdString ESC z1 Char 6 Chr 64 123456 CmdString...

Page 38: ...ation Buffer MemoryFree Buffer Deallocate the port iReturn SerialPortClose iSerialPort iReturn SerialPortFree iSerialPort LPrint Chr 12 Form feed MsgBox Done Finish up If ClosePort false then MsgBox C...

Page 39: ...9 bar codes 2 8 commands bar code field creation 2 7 bar code scanner 6 2 battery voltage checking 3 2 character set selection 2 2 4 3 data stream graphic 2 4 field positioning 2 10 flash memory graph...

Page 40: ...oning 2 10 text 2 1 firmware version 3 6 flash memory graphics 2 5 fonts modified 4 4 resident 4 1 sizes 4 1 formats definition 2 1 printing and creating 2 1 formatting text 2 2 G graphics data stream...

Page 41: ...4 1 responses supply control 3 6 S sample application A 1 saving modified fonts 4 4 scanner bar code 6 1 selecting character sets creating text fields 2 2 character sets font modification 4 3 operati...

Page 42: ...Index 4...

Page 43: ......

Page 44: ...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...

Reviews: