background image

 

Title 

Rev. 

Page 

HPP-240 

Ver1.0 

P.6 

 

1-4)

 Model Number

 

 

          HPP-240  □□ 

 
 
 
 
 
 
 
 
 
 

Ex)Ordered Model Name 

HPP-240HS --- 9 ~ 24V, Serial(RS-232C) 
HPP-240LS --- 5 ~ 8.5V, Serial(RS-232C) 
HPP-240LT --- 5 ~ 8.5V, Serial(TTL)

 

 

※Interface Type 

S        : RS-232C or USB or Combo 
T        : Serial(TTL) 

※Power Input 

: 9 ~ 24V 

L        : 5 ~ 8.5V 

Summary of Contents for HPP-240

Page 1: ...User Manual HPP 240 ...

Page 2: ...uration 11 2 6 Memory SW 14 2 7 Internal Connector 16 3 General Specification 18 3 1 Printer Specification 18 3 2 Font 18 3 3 Internal Buffer 18 3 4 Power 18 3 5 Operating Temperature Humidity 18 3 6 MCBF 18 4 Interface Specification 19 4 1 RS232C TTL 19 4 2 USB 19 5 Commands 20 6 Windows Driver 50 6 1 Printer Function Configuration 50 6 2 Paper Supply Configuration 51 6 3 Making New Paper Format ...

Page 3: ... cause an impact to the product Do not store the product in the wet humid place Caution Please follow the direction in using the product as it may become the reason of malfunction serious injury or even death Please contact us to take an action when product fails Please power off during the removal of any matter Please ventilate the air circulation in closed area Please install the product away fr...

Page 4: ...l dimension 1 1 Printer Features 1 Open Lever 2 Front Indicator Panel LED FEED 3 Fixture Hook 4 Dip switch Option 5 I F USB Connector 6 I F Serial Connector 7 Power Connector 8 Fixture Hole 9 Manual Cutter 10 Thermal Head 11 Paper Sensor 1 2 3 4 5 6 7 8 9 10 11 ...

Page 5: ...Title Rev Page HPP 240 Ver1 0 P 4 1 2 External Dimension ...

Page 6: ...Title Rev Page HPP 240 Ver1 0 P 5 1 3 Product Composition 1 Printer 2 Power Cable 20Cm 3 Communication Cable 20Cm USB Optional 2 3 1 ...

Page 7: ...1 0 P 6 1 4 Model Number HPP 240 Ex Ordered Model Name HPP 240HS 9 24V Serial RS 232C HPP 240LS 5 8 5V Serial RS 232C HPP 240LT 5 8 5V Serial TTL Interface Type S RS 232C or USB or Combo T Serial TTL Power Input H 9 24V L 5 8 5V ...

Page 8: ...per change Pull out Set the paper orientation so that the end of the paper is clear as shown in the picture Open the cover by pressing down on the lever Paper direction should not be flipped as shown on the picture Close the cover press feedswitch feed a certain amount then cut it manually Feed Switch ...

Page 9: ...eated Date Interface Configuration Dip SW Configuration Sample Print When shipped out the Dip Switch is not included in the factory default and it will be set on 19200 baudrate 8 bit non parity mode as a default HPP 240 Control Board Firmware VerX XX Create 20XX XX XX Interface and Setting information Interface USB RS 232C Baud Rate 19200 Data Bit 8 Bit Parity None Stop Bit 1 or 2 Peripheral Setti...

Page 10: ...datas This would be useful when developing an application because this notifies the transmission status Prints if 12 digits is received Data under 12 digits will print when you press the feed button Control Code Below 1F16 prints as Prints as when 8016 or above Print Sample 16 hexadecimal indicator ASCII indicator HEX DUMP MODE 41 42 43 44 45 46 47 47 49 A B C D E F G H I 30 31 32 33 34 35 36 37 3...

Page 11: ...and communication port through the provided update program The ERROR LED will turn off and it will turn back on few seconds later and the update will start when the LED starts flashing rapidly Do not turn off the printer until the update is complete 4 Update Complete notification will display when the process is complete If the ERROR LED flashes slowly during the update then the process is in erro...

Page 12: ...W2 SW3 Baud Rate BPS OFF OFF 9600 ON OFF 19200 ON ON 38400 OFF ON 57600 c no 4 SW4 Reserve ON OFF d no 5 6 Parity SW5 SW6 Parity OFF OFF None ON OFF Even ON ON Odd e no 7 Print Mode SW7 Print Mode ON HEX DUMP Mode OFF NORMAL Mode f no 8 Operation Mode SW8 Operation Mode ON Factory Mode OFF NORMAL Mode When shipped out the Dip Switch is not included in the factory default and it will be set on 1920...

Page 13: ...on once for more than 1second Select Press the feed button many times less than 1second as menu number Exit Turn power off then on Press the FEED button more than 1 seconds to confirm Enter less than 1 seconds to select menu For example if you d like to change the Auto Melody option in the list number 6 press the FEED button less than 1 seconds 6 times and more than 1 seconds 1 time When terminati...

Page 14: ...tes that the changes were made without a problem The value is invalid try again Displayed when the selected item is invalid or moved to another menu without changing the item 5 You may find the configuration results by checking the position of the arrow character after printing the test page or entering preferences mode by selecting one of the list ...

Page 15: ...you make the change Memory SW Set Value Description SW1 Reserve SW2 Reserve SW3 Reserve SW4 Basic Code Page Setting one of the Code Page out of the option to be a default SW5 Basic Font 2byte code will set the default from Korean 24x24 Korean 16x16 Japanese 24x24 Chinese 24x24 1byte code will set the default from ASCII 12x24 ASCII 8x16 9x16 SW6 Reserve SW7 Reserve SW8 Reserve Code Page Mesnu Font ...

Page 16: ...ing down the FEED button start self test and stop printing Press the FEED button one more time to display the contents of the memory switch Memory Switch information Code Page PC437 U S 2Byte Font Korean 24x24 1Byte Font ASCII 12x24 Mem1 FFh Mem2 FFh FFh Mem3 FFh FFh Mem4 00h Mem5 00h Mem6 FFh Mem7 FFh Mem8 FFh Mem9 FFh Mem10 FFh Example of memory switch content checking self test printing ...

Page 17: ... identify the polarity before connecting the power cable 2 CN2 Machanism Connector 05005HS 30F Yunho FFC Cable Pin No Circuit Type Note 1 A Motor 2 A 3 B 4 B 5 FG 6 PS_OUT Collector Paper Existance Sensor 7 PS_GND Emitter 8 PS_GND Cathode 9 PS_IN Anode 10 COM 5 8 5V Thermal Head 11 COM 12 SO 13 LATCH Low Active 14 GND 15 GND 16 STB1 17 STB2 18 STB3 19 TM Thermistor 20 TM Thermistor GND 21 VDD 22 S...

Page 18: ...8 04A Molex Housing YMH025 04R Yunho or 5264 04A Molex Pin Circuit Note 1 TxD 2 RxD 3 RTS or DTR 4 GND Refer to Interface Specification in page 16 for the connecting method 4 CN4 USB Communication Connector Option USB MINI B type Pin Circuit Note 1 Vcc 5V 2 D Data 3 D Data 4 NC Not Connected 5 GND ...

Page 19: ...al Character 14types 37 characters Korea USA France Germany England Denmark 1 Sweden Italy Spain 1 Japan Norway Denmark 2 Spain 2 Latin America 4 Korean FONT A Gothic type 24 x 24 FONT B Gothic type 16 x 16 Option 3 3 Internal Buffer Transmit Buffer 4K Byte 3 4 Power Specification 1 Operating Voltage Input Voltage 9V 24V Internal Operating Voltage 8 5V Head motor internal operating voltage Logic V...

Page 20: ...MAW025 04R Yunho or 5268 04A Molex Printer Pin Signal I O 1 TxD Output 2 RxD Input 3 DTR RTS Output 4 GND Dotted Line Connect depending on Host 4 2 USB 1 Standard USB 2 0 Compatible Full Speed 12Mb Response 2 Connector Type MINI B 3 Cable USB2 0 standard cable 4 Data Method Bulk IN Bulk OUT Bulk IN End point 6 Bulk OUT End point 2 Full Speed Max Packet Size 64 Byte Bulk OUT 64 Byte Bulk IN Host Pi...

Page 21: ... SUB F Line OFF 24 SUB P Line 1 Dotline Character 24 ESC D Horizontal Tab Location 25 ESC SP Gap between ASCII Characters 25 ESC Designating ASCII Character Arrangement 25 ESC Designating Absolute Path in Print 26 ESC Bit Image Vertical Arrangement 27 ESC ASCII Character Underline 28 ESC 2 Initial Row Space 29 ESC 3 Column Space 29 ESC Printer Reset 29 ESC E Bold Format 29 ESC G Double Print 29 ES...

Page 22: ...S S Korean Character Spacing 37 FS W Korean Charcter Size 37 FS q Register NV Logo Bit Image 38 FS p Print NV Logo 38 GS Expand Characters 39 GS K fn 49 Character Density 40 GS K fn 97 Operating in Low Power 40 GS B Black and White Cross Character 41 GS H Barcode Text 41 GS L Left Margin 42 GS W Print Area Setting 42 GS h Barcode Height 42 GS k Barcode Character 43 GS w Barcode Expand Minimize 44 ...

Page 23: ...LF is ignored behind of CR CAN Function Cancel print data in page mode Code ASCII CAN Hex 18h Decimal 24 Range Description The print data will be deleted in print area HT Function Horizontal tab Code ASCII HT Hex 09h Decimal 9 Range Description Moves the print position to the next tab position Caution Horizontal tab positions are to set in ESC D n FF Function Print and return to standard mode and ...

Page 24: ...ction Code ASCII SUB p n Hex 1A 70h n Decimal 26 112 n Range 0 n 1 Initial Value n 1 Description n 0 Does not transition to offline when paper is empty data communication available n 1 Transition to offline when paper is empty data communication not avaiable SUB R n Function Set the character outline Code ASCII SUB b n Hex 1A 52h n Decimal 26 82 n Range 0 n 1 Description n 0 cancel outline border ...

Page 25: ...of data n1 Type of 2D barcode n2 Number of data n3 Size of barcode d1 dk Barcode data n1 Type of 2D barcode 1 PDF417 2 QR code 1 PDF417 2 QR code n2 Number of data 1 n2 255 n3 Size of barcode 3 Horizontal 3 4 Horizontal 4 5 Horizontal 5 6 Horizontal 6 7 Horizontal 7 8 Horizontal 8 9 Horizontal 9 PDF417 Vertial size automatic setting n2 Number of data n3 1 1 n2 17 n3 3 1 n2 53 n3 5 1 n2 106 n3 9 1 ...

Page 26: ... 0 kL kHx256 448 0 kL 255 0 kH 3 Descript It writes 1 from nL nHx256 to kL kHx256 Caution If the range is exceed the data will be ignored If the writing is set up the data is not erased until you do power off or you receive the command the rule clear SUB C Name Rule CLEAR Format ASCII SUB C Hex 1A 43h Decimal 26 67 Descript It clears all of data as zero you choosed Caution Please use this command ...

Page 27: ...e preserved SUB P Name Printing a dot of Rule Format ASCII SUB P Hex 1A 50h Decimal 26 80 Descript It s printing a dot of rule 1 Caution Please do not use this command if you print the character or the graphic Please use the Rule ON if you print the character or the graphic Please use this command if you print the rule between row and row at the space ...

Page 28: ...l Value n 0 Description Set in n x 0 125mm the space amount on the right side of ASCII character Caution Set the Korean space in FS S n ESC n Function Set character all at once Code ASCII ESC n Hex 1B 21h n Decimal 27 33 n Range 0 n 255 Initial Value n 0 Description Set font character in the same time Caution If it s Korean the Font the Stress is valid only Bit Function Hex Decimal 0 0 Font 12x24 ...

Page 29: ...ings Code ASCII ESC nL nH Hex 1B 24h nL nH Decimal 27 36 nL nH Range 0 nL nH 256 65535 0 nL 255 0 nH 255 Initial Value nL 0 nH 0 Description Move the position from the space of left ending to nL nH 256 0 125mm Move the position into the space of left ending if the area is over ...

Page 30: ... nL 255 0 nH 3 0 d 255 Description Due to fixing nL nHx256 Printing from bit data to graphic data in Mode m m Mode Dots in vertical Dots in horizontal Data k 0 8dots Single Density 8 224 nL nH 256 1 8dots Double Density 8 448 nL nH 256 32 24dots Single Density 24 224 nL nH 256 3 33 24dots Double Density 24 448 nL nH 256 3 8 dots Mode D1 D2 D3 MSB LSB D1 D2 D3 3배 2배 3배 1배 Single Density Double Dens...

Page 31: ...l Value n 0 Description Set Cancel underline n Function 0 Cancel underline 1 Set underline in thick 0 125mm 2 Set underline in thick 0 25mm 3 Set underline in thick 0 375mm 4 Set underline in thick 0 5mm 5 Set underline in thick 0 625mm 6 Set underline in thick 0 75mm 7 Set underline in thick 0 875mm D1 D4 D7 D2 D5 D8 D3 D6 D9 Single Double Single Density Double Density Double Single ...

Page 32: ...rmat ASCII ESC 3 n Hex 1B 33h n Decimal 27 51 n Range 0 n 255 Initial Value n 0 Descript Set the interval of line in n x 0 125mm ESC Name Rest printer Initialize the printer Format ASCII ESC Hex 1B 40h Decimal 27 64 Range 0 n 255 Descript Clear buffer Initialize all parameter ESC E n Name Set the font in thick Format ASCII ESC E n Hex 1B 45h n Decimal 27 69 n Range 0 n 255 Initial Value n 0 Descri...

Page 33: ...eeding in n x 0 125mm ESC M n Name Select font Format ASCII ESC M n Hex 1B 4Dh n Decimal 27 77 n Range 0 n 2 Initial Value n 0 Descript Select printer font n Precedence 4bits Korean fonts Subordinate 4bits ASCII 0000 Korean 24x24 Gothic 0000 12x24 0001 Korean 16 x 16 General 0001 8x16 9x16 0010 Japanese 24 x 24 Bodoni 0010 56x88 big fonts only 0 9 numbers 0011 Chinese 24 x 24 Gothic 0011 Reservati...

Page 34: ... international character as 14 units n Country Name 0 USA 1 France 2 Germany 3 England 4 Denmark1 5 Sweden 6 Italian 7 Spain1 8 Japanese 9 Norway 10 Denmark2 11 Spain2 12 Latin America 13 Korea ESC a n Name Align the printing Format ASCII ESC a n Hex 1B 61h n Decimal 27 97 n Range 0 n 2 Initial Value n 0 Descript Align the printing position n Printing Position 0 Left 1 Middle 2 Right ...

Page 35: ... Descript Set the reverse image Caution Move the standard from the left to the right n Function 0 Cancel 180 1 Set 180 ESC t n 기능 국제 Code Page 설정 코드 ASCII ESC t n Hex 1B 74h n Decimal 27 116 n 정의범위 0 n 5 14 n 17 초기치 n 0 설명 각각의 Code Page의 국제문자를 아래표와 같이 설정함 주의 SUB x 커맨드로 1바이트 Mode로 설정시 유효 2바이트 Mode로 설정시 무효 n Code Page 0 PC437 US 1 KANA JAPAN 2 PC850 Multilingual 3 PC860 Portugal 4 PC863 Canadian Fre...

Page 36: ...CII ESC L Hex 1B 4Ch Decimal 27 76 Range 0 n 255 Initial Value n 0 Descript Switches from standard mode to page mode ESC FF Name Printing the page area Format ASCII ESC FF Hex 1Bh 0Ch Decimal 27 12 Range Please edit the received data at the page area The page area will be printed all at once when you use this command Descript The page area remains Please use the command ESC S If you want all clear...

Page 37: ...in page mode Format ASCII ESC T n Hex 1B 54h n Decimal 27 84 n Range 0 n 3 Initial Value n 0 Descript Select the print direction start position in page mode n 0 Left Right n 1 Bottom Top Feeding Feeding n 2 Right Left n 3 Top Bottom Feeding Feeding ABCD ABCD D B ABCD ABCD ...

Page 38: ...L C0h dxH 01h dyL dyH 256 1200 150mm dyL B0h dyH 04h Descript Set printing area starting point Horizontal starting point xL xH 256 0 125mm Vertical starting point yL yH 256 0 125mm Horizontal size dxL dxH 256 0 125mm Vertical size dyL dyH 256 0 125mm Caution The maximum page width is available 56mm The maximum page length is available 150mm Barcode graphic data is executed as per standard line If ...

Page 39: ...ent is not required in Korean mode due to auto detection Pls refer the command of SUB x n FS Name Cancel Korean mode 2Bytes mode Format ASCII FS Hex 1C 2Eh Decimal 28 46 Descript Cancel Korean mode 2Bytes mode Caution In case of cancel 2 bytes mode in extended graphic mode Appointment is not required due to auto detection in Korean mode Ref SUB x n command Bit Function Hex Decimal 0 00h 0 1 00h 0 ...

Page 40: ...pace between Korean characters Format ASCII FS S n1 n2 Hex 1C 53h n1 n2 Decimal 28 83 n1 n2 Range 0 n1 255 0 n2 255 Initial Value n 0 Descript Set the space between Korean characters Set the left space in n1 0 125mm Set the right space in n2 0 125mm FS W n Name Set the font size in Korean Format ASCII FS W n Hex 1C 57h n Decimal 28 87 n Range 0 n1 255 Initial Value n 0 Descript Set the Korean font...

Page 41: ...56 8 yL yH Set the vertical dot in xL xH 256 8 k Bitmap image of a N V logo Caution Register various as much as NV s capa Required to delete all if it is registered again Renewable registeration deletion at 100000 cycles It s not recommended frequent registeration deletion due to memory damage You can register very easily if you download the program of logo registeration Register image FS p n m Na...

Page 42: ...tension in Vertical GS K pL pH fn m fn 49 Name Set the printing density Format ASCII GS K pL pH fn m Hex 1D 28h 4Bh pL pH fn m Decimal 29 40 75 pL pH fn m Range pL 2 pH 0 fn 49 0 m 5 251 m 255 Initial Value m 0 Descript Set the printing density m Density m Density 0 Standard 251 Level 5 1 Level 1 252 Level 4 2 Level 2 253 Level 3 3 Level 3 254 Level 2 4 Level 4 255 Level 1 5 Level 5 Caution In cas...

Page 43: ...st division m Partial operation 0 Initial setting first division 1 First Division 2 Second Division GS B n Name Reverse printing in black Format ASCII GS B n Hex 1D 42h n Decimal 29 66 n Range 0 n 255 Initial Value n 0 Descript Reverse printing in black n 0 standard printing n 1 reverse printing in black GS H n Name Select the printing position of HRI characters Barcode Format ASCII GS H n Hex 1D ...

Page 44: ...nL nH Name Set printing area width Format ASCII GS W nL nH Hex 1D 57h nL nH Decimal 29 87 nL nH Rasnge 0 nL 255 0 nH 255 Initial Value nL nH 256 448 56mm nL 0 nH 0 Descript Set printing area width from the left margin in nL nH 256 0 125mm GS h n Name Select barcode height Format ASCII GS h n Hex 1D 68h n Decimal 29 104 n Range 1 n 255 Initial Value n 162 20 25mm Descript Select barcode height by n...

Page 45: ...90 d 32 36 37 43 45 46 47 5 ITF I of 2 5 1 n Only even number 48 d 57 6 CODABAR 1 n 48 d 57 65 d 68 d 36 43 45 46 47 58 7 CODE128 2 n 255 Check digit Stop character Is automatically added 0 d 127 Caution In CODE128 add set as 2bytes when the special character as below Special character Barcode data ASCII Hex Decimal SHIFT S 7Bh 53h 123 83 CODE A A 7Bh 41h 123 65 CODE B B 7Bh 42h 123 66 CODE C C 7B...

Page 46: ...625mm 3 0 5mm 0 375mm 1mm 4 0 625mm 0 5mm 1 25mm Multi Level barcode UPC E EAN13 EAN8 2 level barcode CODE39 ITF CODABAR GS r n Name Transmit status Format ASCII GS r n Hex 1D 72h n Decimal 29 114 n Range n 1 Descript Transmit current status of printer Caution The status is not ready till the printer is offline If the receiver buffer is full at the printer offline this command is not able to recei...

Page 47: ...atus back 1 Enable automatic status back Status transmission data Bit Satus Hex Decimal 0 0 Paper 1 No paper 00h 01h 0 1 1 0 Printer head down 1 Printer head up 00h 02h 0 2 2 0 Paper w o jamm 1 Paper with jamm 00h 04h 0 4 3 0 Paper adequate 1 Paper Near End 00h 08h 0 8 4 0 Print complete 1 Print or Feeding 00h 10h 0 16 5 0 Cutter no error jamm 1 Cutter error jamm 00h 20h 0 32 6 0 unused 00h 0 7 0 ...

Page 48: ...xH 256 yL yH 256 Descript The raster bit image will be recognized in mode m xL xH appoint the data byte of horizontal at image data yL yH appoint the dta dot line of vertical at image data d is a data for raster bit m Mode Expansion 0 48 Normal X1 1 49 Horizontal expansion X2 2 50 Vertical expansion X2 3 51 Horizontal Vertical expansion X2 Horizontal Vertical Ex Expansion image xL xH 256 32 byte 3...

Page 49: ... paper jam cutting jam has to reset compulsory DLE EOT n Name Realtime status transmission Format ASCII DLE EOT n Hex 10h 04h n Decimal 16 4 n Range n 2 Descript The realtime send a byte of printer status when this command is conducted Caution It is only valid once the DIP SW1 is up up on Please refer to the table of the printer status If the offline is valid and the printer receive the data same ...

Page 50: ...wn list to set the Density Cutting Option and Print Speed Setting No Cut No Cut just Print Full Cut Full Cut after print Partial Cut Partial Cut after print Black Mark Search Full Cut The cutting position from the black mark will be set by the memory switch All printed materials would be different depending on the print data size due to printing in graphic so by fixing the setting to the below set...

Page 51: ...ed when the printed material length is irregular As you can see from the example below the feeding will not happen even if you set the margin through the Visual Basic so you d have to set the FontSize smaller and print to set the cutting position through Dummy Form Feeding Example Example Dummy form feeding to cutting position Printer Print vbLf Printer Print vbLf Printer Print vbLf Printer FontSi...

Page 52: ... server property under File Menu 2 Select the STANDARD Size 80 x 400mm from Form Location 3 Check the Create New Form box 4 Click the paper size field and input 6 0cm W 15 0cm H Make sure to make no changes in the print area margin 5 Save the form after creating a custom name for the size i e Ticket Size 60 x 150mm 6 Go to Basic Print Setting Advance then Select the newly created Ticket Size 60 x ...

Page 53: ...Title Rev Page HPP 240 Ver1 0 P 52 ...

Page 54: ...me Return Open Normal 0 Open Error 3 negative 2 long PrintStr LPCTSTR data Prints String Parameters data String datas Return Print Normal 1 Print Error 0 To prevent the loss of data for the print timeout please use the function NewRealRead to check the status and go to the next step when it s normal 3 long PrintCmd unsigned char data Prints 1 byte of data When printing big data spool use the follo...

Page 55: ...rom our website 7 2 USB Cautionary Points when using the USB interface When transmitting jointly with Windows driver with the USB interface there are cases of data transmission does not complete in order due to the mixed signal from the windows driver data and the USB interface data In this case set it to without using Printer SpoolFunction under the printer s property There won t be an error duri...

Page 56: ...Title Rev Page HPP 240 Ver1 0 P 55 No Date History Page Ver 1 2018 02 21 신규작성 1 0 ...

Reviews: