background image

. . . . . . . . . . . . . . . . . . . . . . . . . . . .  

 

Infinite Peripherals, Inc. 

www.ipcprint.com 

PP-55 Resident Command Set Version 1.0

1

  

 

 

 

PP-55

Resident Command Set

 

Summary of Contents for PP-55

Page 1: ... Infinite Peripherals Inc www ipcprint com PP 55 Resident Command Set Version 1 01 PP 55 Resident Command Set ...

Page 2: ...mand Set Version 1 01 Revision Information This document revision refers are related to the PP 55 s firmware changes Items in blue through this document refer to changes or additions to the most resent firmware version listed below Date August 25th 2004 Firmware v1 17b ...

Page 3: ...le to choose between protocol and raw mode mode while the serial interface can work in both protocol and raw data mode As the serial interface by default is deactivated it is activated by a six byte sequence The following sequence activates the serial interface in raw data mode 16 H 4E H AA H 81 H BC H 43 H The following sequence activates the serial interface in protocol mode 16 H 4E H AA H 81 H ...

Page 4: ... NAK bit 2 channel or command error 0 channel and command OK 1 channel or command not supported bit 3 7 application specific LEN length of data The maximum packet length is 2048 bytes The answer differs from the command by bit 7 MSB in the port number If bit 7 is 0 then it is a command if it is 1 then it is a response Bit 0 in the status byte shows if there was an error accepting or processing the...

Page 5: ...5 11 22 33 44 55 81 00 00 00 SEND DATA WITH ERROR 01 02 00 05 11 22 33 44 55 81 01 00 00 01 02 00 05 11 22 33 44 55 81 01 00 00 01 02 00 05 11 22 33 44 55 81 00 00 00 RECEIVE DATA 01 03 00 00 81 00 00 00 01 03 00 00 81 00 00 04 11 22 33 44 01 03 00 00 81 00 00 00 GET STATUS 01 04 00 00 81 00 00 05 3F F8 01 55 66 DEVICE TYPES 0 reserved 1 palm printer ...

Page 6: ...ed and a status byte with value 3 is returned in the answer Command 3 Receive data If there is data to be transmitted from the printer to the PDA it is transmitted in the data field of the packet otherwise an empty packet is received The application must take care to get the data fast enough from the output buffer or the data may be corrupt Command 4 Get Printer Status status data in data field BU...

Page 7: ...et Factory Defaults 1BH 3EH n 17 ESC n Reading a magnetic card 1BH 3FH n 18 ESC Initialising the Printer 1BH 40H 19 ESC D Setting horizontal tab position 1BH 44H n k 00H 20 ESC E Specifying cancelling highlighting 1BH 45H n 21 ESC G Specifying cancelling double printing 1BH 47H n 22 ESC I Specifying cancelling italic printing 1BH 49H n 23 ESC J Printing and feeding paper n 203 inch 1BH 4AH n 24 ES...

Page 8: ...tings to nonvolatile RAM 1BH 5EH 45 ESC _ Restore factory settings 1BH 5FH 46 GS Set read internal variable 1DH 29H 47 GS a Enabling disabling automatic status back ASB 1DH 61H n 48 GS c Setting the real time clock 1DH 63H 49 GS C Reading the real time clock 1DH 43H 50 GS k Printing the bar code 1DH 6BH n d 51 GS w Selecting the horizontal size scale factor of bar code 1DH 77H n 52 GS h Selecting ...

Page 9: ...ion has not been set The horizontal tab position is set by ESC D Initial setting of the horizontal tab position is each 8 characters in 9th 17th 25th columns See Also ESC D LF Printing and Paper Feed Command Code 0A H Outline Prints data inside the input buffer and feeds lines based on the line feed amount having been set The head of the line becomes the next print starting position See Also ESC 2...

Page 10: ... Font Font A Font B 1 Undefined 2 Undefined 3 High lighting Cancelled Specified 4 Double height Cancelled Specified 5 Double width Cancelled Specified 6 Undefined 7 Underline Cancelled Specified Caution With double height and double width being specified simultaneously double wide and double high characters are consisted An underline is attached to the full character width which however is not att...

Page 11: ...of the second byte is used m 3 Define character group with ASCII codes between n1 and n2 for character set B 9x16 Every character is 16 bytes n1 is the ASCII code of the first and n2 is the ASCII code of the last of n2 n1 1 consecutive symbols To define a single symbol n1 n2 d is the data that defines the symbols Every Font A symbol consists of 48 bytes while every Font B symbol consists of 16 byt...

Page 12: ...it image is equal to n1 256 x n2 When bit image data have been input in excess of dot position of one line 384 dots the excess data are discarded d is bit image data the bits subject to printing are taken as 1 and those not as 0 The bit image modes specified by m are shown as follows Vertical Direction Horizontal Direction m Mode Dots Dot Density Dot Density Max Dots 0 8 dot single density 8 67 DP...

Page 13: ...s without compression Mode 20 is similar to mode 17 but every byte is mirrored before putting in the print buffer bits 0 and 7 1 and 6 2 and 5 3 and 4 change places All modes are high resolution 203 x 203 DPI When bit image data have been input in excess of dot position of one line 384 dots the excess data are discarded d is bit image data the bits subject to printing are taken as 1 and those not ...

Page 14: ...nderline 1 Specifying an underline for 1 dot width 2 Specifying an underline for 2 dots width Caution An underline is attached to the full character width It is however not attached to the part having been skipped by horizontal tab command An underline is not attached to a 9 right turned characters See Also ESC ESC Selftest Code 1B H 2E H Outline Prints character table character samples with diffe...

Page 15: ...or the command to be effective If the USBB port is configured either as host or slave the command is discarded and VBUS state is not changed Default The default value is 0V output on pin VBUS ESC n Data Input Control Code 1B H 3D H n Range 0 n FFh Outline Selecting equipment in which data input from the host is effective Only bit 0 is defined Value 0 Selected Value 1 Not selected When the printer ...

Page 16: ... magnetic card Code 1B H 3F H n Outline When this command is received the diode lights red and the printer waits for the card to be passed through the slot If the card is not supplied within 10 seconds 2 minutes selectable by the most significant bit the command ends automatically If a byte is transmitted through the serial interface while the printer is in card reading mode the operation ends and...

Page 17: ...n 1 is to be specified For example to set the position at 9th column n 8 is to be specified k denotes the number of horizontal tab positions you want to set The tab position is set at position where it is character width x n from the line beginning The character width at this time includes the rightward space amount In double wide characters it is made double of the ordinary case Tab positions can...

Page 18: ... at its side Caution The print result of Double printing and highlight character printing is completely same See Also ESC ESC G n Specifying canceling Double Printing ESC G n Code 1B H 47 H n Range 0 n FFh Outline Specifying canceling the double printing n is valid only for the lowest bit n0 Control by n is shown as follows 0 Canceling double printing 1 Specifying double printing This is effective...

Page 19: ...e is not defined ESC M n Specifying canceling highlighting Code 1B H 4D H n Range 0 n FFh Outline Selects character font n is valid only for the lowest bit n0 Control by the lowest bit n0 is shown as follows 0 Selection of font A 12x24 1 Selection of font B 9x16 Caution ESC can also select fonts but the setting made by the command processed last is valid See also ESC ESC S n Selecting serial inter...

Page 20: ...el temperature voltage and serial port speed See also ESC ESC V n Specifying Canceling 90º right turned Characters Code 1B H 56 H n Range 0 n 1 Outline Specifying canceling characters 90º right turned character n means the followings 0 Canceling 90º right turned Characters 1 Specifying 90º right turned Characters Caution No underlines are attached to 90º right turned characters Default The initial...

Page 21: ... as follows Bit Meaning 28 0 Supports IrDA mode 28 1 Supports magnetic card reader 28 2 Supports simultaneous reading of three tracks from a magnetic card 28 3 ASCII codes above 127 contain Katakana symbols 28 4 Supports JIS and Shift JIS symbols 28 5 Prints when ESC and ESC T and transmits when ESC the temperature in º Fahrenheit 28 6 Not Used 28 7 Reserved always 1 29 0 Supports downloadable fon...

Page 22: ...in degrees Celsius plus 20h Example If the battery voltage is 6 4 V and the print head temperature is 33 C the printer will transmit 60h 41h which is 40h 20h 21h 20h or 64 32 33 32 ESC a n Aligning the characters Code 1B H 61 H n Range 0 n 2 Outline This command is extended and has the following format All the printed text data or the bar code within one line are aligned in the specified position ...

Page 23: ...of n is 0 ESC d n Printing and Feeding the paper by n lines Code 1B H 64 H n Range 0 n FFh Outline Prints data inside the buffer and feeds paper by n lines Specified line does not remain The beginning of the line is to be considered as the next printing start position Default The initial value is not defined ESC n Transmitting the printer serial number Code 1B H 6E H n Outline Transmits the serial...

Page 24: ... string ends with a NULL character 00H Requesting an unsupported parameter returns a value of 255 For more information about barcode reader parameters see Symbols CSE600 Scan Engine Integration guide Example Input ESC q 0 1 19 150 NULL Output 0 1 1 1 19 23 150 255 NULL Default The default values for CSE600 Scan Engine are given in the table below Paramete r number Value Paramete r number Value Par...

Page 25: ...0xFF byte 0x20 If the scan session completes but no bar code is read the printer returns 0 NULL If some error in the scan engine is detected communication etc no scan session is started and the printer transmits NULL The possible bar code types are given in the following table Bar code value Bar code value Not Applicable 0 EAN 8 with 2 Supps 74 Code 39 1 EAN 8 with 5 Supps 138 Codabar 2 EAN 13 wit...

Page 26: ...sts of paired parameter number and a value all separated with spaces An empty parameter string resets the parameters to their default values Default The default values for CSE600 Scan Engine are given in the table below Paramete r number Value Paramete r number Value Paramete r number Value 0 1 23 0 48 0 1 1 24 2 49 0 2 1 25 29 50 1 3 1 26 2 51 1 4 1 27 38 77 0 5 0 28 2 78 1 6 1 29 41 80 7 7 1 30 ...

Page 27: ...d characters n is valid only for the lowest bit n0 Bit n n0 means the followings 0 Canceling inverted characters 1 Specifying inverted characters Caution Inverted printing means printing the line at 180º turned Valid is the last value specified in a line Default The initial value of n is 0 ESC n1 n2 Specifying the Absolute Positions Code 1B H 24 H n1 n2 Range 0 n1 FFh 0 n2 1 Outline The printing s...

Page 28: ...ots 65536 N The number of dots is divided by 256 whose quotient is taken as n2 and the residual as n1 Caution Specifying exceeding the top of line or the end of line is ignored Default The initial value is not specified See Also ESC ESC Save current settings to nonvolatile RAM Code 1B H 5E H Outline Stores current printer settings to RAM This printer setting are restored with ESC command Caution U...

Page 29: ...acter the printer will return the parameter number fallowed by its value Some variables are used to configure specific printer features Some can only be read but not written to Variable number 0 Enable disable the switch on beep and read card barcode successful beep Range of the value is 0 255 but only least significant bit is defined 0 disable sounds 1 enable sounds 1 A read only variable Value 0...

Page 30: ...atic status back ASB Code 1D H 61 H n Range 0 n1 FFh Outline The printer returns four bytes of information each time the specified event occurs The byte n is a bit mask that enables disables ASB for specific sort of events 1 enables ASB for the specified event while 0 disables it Bit ASB at 0 Not defined 1 Not defined 2 Overheating and cooling of the print head 3 Change in paper state 4 Not define...

Page 31: ...ttery plus 20 H Byte 4 current temperature of the print head plus 20 H Caution ASB function is active only during serial non protocol raw communication When this command is issued to the printer the four byte status is always sent via the current communication channel Default By default ASB is enabled for all events GS c parameter string Setting the real time clock Code 1D H 63 H ASCIIZ string Out...

Page 32: ...bar code Code 1 1D H 6B H m d k 00 H 2 1D H 6B H m n d k 3 1D H 6B H m a d k 00 H 4 1D H 6B H m xL xH a d k Range 1 0 m 6 2 65 m 73 3 m 9 a 0 1 4 m 74 256 xH xL 3000 a 0 1 Outline Specifying a type of bar code and printing bar codes The beginning of line is considered as the next printing start position Depending on the value of m the following bar code can be selected d indicates a bar code data ...

Page 33: ...8 Di 57 4 CODE 39 48 Di 57 65 Di 90 32 36 37 43 45 46 47 5 ITF 48 Di 57 6 CODABAR NW 7 48 Di 57 65 Di 68 36 43 45 46 47 58 7 CODE 93 1 Di 127 8 CODE 128 1 Di 127 9 PDF 417 1 Di 255 M 2 Bar code type Length Range of d 65 UPC A 11 48 Di 57 66 UPC E 11 48 Di 57 67 EAN13 JAN13 12 48 Di 57 68 EAN 8 JAN8 7 48 Di 57 69 CODE 39 48 Di 57 65 Di 90 32 36 37 43 45 46 47 70 ITF 48 Di 57 71 CODABAR NW 7 48 Di 5...

Page 34: ...e Table A contains ASCII symbols with codes 0 to 95 and control symbols FNC1 FNC2 FNC3 FNC4 SHIFT CODEB CODEC Table B contains symbols with ASCII codes from 32 to 127 and control characters FNC1 FNC2 FNC3 FNC4 SHIFT CODEA CODEC Table C It is used for coding bar code areas that consist only of numerals Each symbol gives two digits that are coded with ASCII codes from 0 to 99 Control characters FNC1...

Page 35: ...utline Selecting bar code height n denotes the number of dots in the vertical direction Default The initial value of n is 162 GS H n Selecting of Printing Position of HRI Code Code 1D H 48 H n Range 0 n 3 Outline Selecting printing position of HRI code in printing bar codes n means the followings 0 No printing 1 Above the bar code 2 Below the bar code 3 Both above and below the bar code The HRI co...

Page 36: ...code is printed at the position specified with GS h on page 63 Default The initial value of n is 0 See Also GS H GS p n1 n2 n3 Setting bar code PDF 417 parameters Code 1D H 70 H n1 n2 n3 Range 0 n1 255 0 n2 30 n3 0 3 n3 90 Outline n1 selects PDF 417 security level Setting a security level higher than eight forces the printer to automatically adjusts the security level according the following table...

Page 37: ...ue of n3 is 0 auto select See Also GS k GS n1 n2 d n1 X n2 X 8 Defining the Download Bit Image Code 1D H 2A H n1 n2 d n1 X n2 X 8 Range 1 n1 FFh 1 n2 30 n1 X n2 51Fh Outline Defines downloading bit images of the number of dots specified by n1 and n2 The numbers of dots are n1 x 8 in horizontal direction and n2 in vertical direction d indicates bit image data The bit image data consists of n1 n2 by...

Page 38: ...t been defined this command is ignored A portion of a download bit image exceeding one line length is not printed Default The initial value is not specified See Also GS GS Starting Ending Macro Definition Code 1D H 3A H Outline Specifying starting ending macro definition Means termination when received while defining a macro Caution Maximum content available for macro definition is 2048 bytes A po...

Page 39: ...essed When it is pressed the macro is executed once This action is repeated n1 times Caution When this command is received while in macro definition suspension of macro definition is indicated At this time the defined content is cleared No execution takes place when macro is held undefined or n1 0 While in macro execution with n3 1 paper feed with the LF SW is not available Default Initially this ...

Reviews: