Hwasung HMC-060 User manual

Technical Manual
(Model : HMC-060 /HMK-060)
*Technical Manual = User manual / Relese 2
HWASUNG SYSTEM CO.,LTD
<NOTICE> . All features and specifications described are subject to charge without notice.
. If you have any questions, please contact us.

Title
Rev.
Page
HMC-060, HMK-060 Release 2
Ver2.0
P.1
CAUTION
· Please do not disassemble / reorganize the product.
· Please do not the remove the paper jam during power on.
· Pleased do not exceed the standard power voltage.
· Please do not wash off the product.
· Please do not press / shock the product.
· Please do not put the product at the moist (humid) condition.
· Please contact us if there is any problem.
· Please power off once remove the paper jam.
· Please clear the air / open the disclosed place.
· Please set the product without damage enviornment.
· Please set the product at the stable place.
· Pleaes keep the requires as necessary as general electrics.

Title
Rev.
Page
HMC-060, HMK-060 Release 2
Ver2.0
P.2
CONTENTS
1. Printer features & External dimension 3
1-1) Name of each parts 3
1-2) Name of model 4
1-3) Dimension 5
2. Operation 6
2-1) Setting a paper 6
2-2) Removing the paper jam 7
2-3) Self test 7
2-4) HEX Dump 8
2-5) Update (on board) 9
2-6) Rebooting Firmware 10
2-7) Dip SW 13
2-8) Internal Connector 14
3. General Specification 16
3-1) Specification 16
3-2) Font 16
3-3) Buffer 16
3-4) Electrical 16
3-5) Operation environment 16
3-6) Storage environment 16
3-7) MCBF 16
3-8) Weight 16
4. Interface Specification 17
4-1) RS232C 17
4-2) USB 17
5. Command 18
6. Ticket Version Compality mode Specificiation 47
6-1) Firmware 47
6-2) Command 48
7. USB User Interface 52
7-1) DLL Interface 52
7-2) Caution of using DLL 54
7-3) OCX Driver 55
7-4) Caution of using OCX Driver 58
7-5) Memory Switch 59

Title
Rev.
Page
HMC-060, HMK-060 Release 2
Ver2.0
P.3
1. Printer features & External dimension
1-1) Name of each parts
2
1
1. Auto cutter
2. Paper guide
3. Headup lever
4. Near end sensor
5. Paper holder
6. Power connector
7. RS232C connector,
8. USB Connector.
3
13
4
5
7
6
9. Power switch
10. Feed button
11. Power LED(Green)
12. Error LED(Red)
13. Dip switch
9
10
11
12
(+) : up
(-) : down
8

Title
Rev.
Page
HMC-060, HMK-060 Release 2
Ver2.0
P.4
1-2) Model number
HM□-060□□
※Interface
S : RS-232C
U : USB combo
※ Frame
K : KIOSK Frame type.
C : Board type.

Title
Rev.
Page
HMC-060, HMK-060 Release 2
Ver2.0
P.5
1-3) Dimension
[HMK-060]
[HMC-060U]
60
70
80
90
ø7
Ø3.5
Control board

Title
Rev.
Page
HMC-060, HMK-060 Release 2
Ver2.0
P.6
1. Please press down the feed button.
2. Please make sure the remains which the paper
comes out.
2.① Please make sure if the head-up lever is down.
② Please insert the paper, and make sure if
the auto loading is working, and the paper cuts.
3.① Please make sure if the head-up lever is down.
② Please insert the paper, and make sure if
the auto loading is working, and the paper cuts.
2. Operation
2-1) Setting a paper
[PAPER DIRECTION]
‚
‚
①
①
②
①

Title
Rev.
Page
HMC-060, HMK-060 Release 2
Ver2.0
P.7
1.① Please lift up the head-up lever.
② Please remove the paper with the direction as image.
2. Please follow the direction as image.
2-2) Removing the paper jam
.
2-3) Self test
1. Please power on, once the feed button is being pressed down.
2. The following information will be printed.
l Model
l Firmware and Date of Create
l Interface
l Dip switch information
l Sample printing
Please refer to the Dip switch info at 2-7).
①
②
************************** ****
HMC-060 Control Board
Firmware :: R2.Ver X.XX
Create : XXXX/XX/XX
************************** ****
Interface and Setting information
Inteface : USB & RS-232C
Baud Rate : 19200
Data Bit : 8 Bit
Parity : None
Stop Bit : 1 or 2
Peripheral & Setting Information
USB Status : Full Speed
Auto Cutter :: BuiIt-in
Jam sensor :: Disabled
Compatible Mode : Ticket Version

Title
Rev.
Page
HMC-060, HMK-060 Release 2
Ver2.0
P.8
2-4) HEX Dump
1. Please switch 7 *up at the dip switch, and power on. *up : on
It prints all data in hex character (16 antilogarithm), after [Hex Dump Mode] prints out.
2. It could know the printer status.
3. It will be useful for the application development.
l It prints out if it receive Nine digits.
l If it receives less than nine digits, it will be printed if you press down feed button.
l Control code ( 1F16 below) prints out as “.”.
l 8016 more prints out as “^”.
[Printing sample]
16 antilogarithm ASCII
[HEX DUMP MODE]
41 42 43 44 45 46 47 47 49
30 31 32 33 34 35 36 37 38 0 1 2 3 4 5 6 7 8
FF ^ . i
1B
69
A B C D E F

Title
Rev.
Page
HMC-060, HMK-060 Release 2
Ver2.0
P.9
2-5) Update (on Board)
By using flash memory ,it’s able to simply update on the PC.
Please conduct the updates, after refering the following steps.
1)Please power off and on.
2)Please check if the PC is connected with printer.
* If use the USB Interface, the time will be saved to update.
3) Please conduct the given update program.
The update will be started after ERROR LED is off for 4 seconds.
Please do not power off / switch off Dip switch until the update ends.
4) The update will be end, once the update complete appears on the screen.
※ If the ERROR LED is appeared as on and off continuously, it could be error.
Please repeat these steps again, and check the interface cable, and the connections.
5) You can use the updated printer after update, it will be reset automatically then power off & on.

Title
Rev.
Page
HMC-060, HMK-060 Release 2
Ver2.0
P.10
2-6) Rebooting Firmware
* If the firmware was an error or damaged, not reset, please recover the firmware as following.
1)Check for the jumper which is beside Dip Switch on the bottom of printer
2)By using Pin Header(2.5mm), Connect between both of Pins
3) Connect the cable to printer, then turn on the power of printer
4) Using the provided Booting Program and setting the interface port.
Then, Select board -> at91sam4e16-ek and click “Connect “
(RS-232 and USBport Possible only, However, the cable is only one to connect)
(If using the USB port, Save the time to set up)
5) Atfer rebooting, Please remove JP2(Jumper Pins)
* If pass this step, it would not be rebooted after recover the firmware.
Jumper
Cap
Jumper
Cap
Pin
Header
PINS
HERE

Title
Rev.
Page
HMC-060, HMK-060 Release 2
Ver2.0
P.11
6) Click the “ Icon “ in the Send file Name then atfer open the firmware file for Target model,
Then, Click “Send File Button”
*Notice : Do not revise the Parameter value.
7) Atfer the file is complete to transfer, Click “Yes “
①
②

Title
Rev.
Page
HMC-060, HMK-060 Release 2
Ver2.0
P.12
8) Click “Excute” button, atfer checking for stting up “Boot from Flash(GPNVM1) in Scripts.
9) To re-operate printer, Tune off and on

Title
Rev.
Page
HMC-060, HMK-060 Release 2
Ver2.0
P.13
2-7) Dip Switch
1)DIP Switch 1
1)SW1 :
SW1
Real time command (Valid / Invalid)
ON
DLE Command Valid
OFF
DLE Command Invalid
2)SW2,3 :
SW2
SW3
Baud Rate(BPS)
OFF
ON
9600
ON
OFF
19200
ON
OFF
38400
OFF
ON
57600
3)SW4 :
SW4
Data Bit
ON
-
OFF
-
4)SW5,6 :
SW5
SW6
Parity
OFF
-
None
ON
OFF
Even
ON
ON
Odd
5)SW7 :
Paper type
ON
Hex Dump
OFF
Normal
6)SW8 :
SW8
Printer mode
ON
JAM SENSOR Valid
OFF
JAM SENSOR Invalid
2)DIP Switch 2
a)SW1 :
SW1
Contoller Mode
ON
Ticket Compiblity Mode
OFF
Standard Mode
b)SW2 :
SW2
Black Mark Valid /
Invalid
ON
Black Mark Valid
OFF
Black Mark Invalid
※ If the valid sets up, please use
the paper with black mark.
If it is not the paper with black
mark, the paper jam happens.
※ Please use the paper which is
registered on the memory
switch. Please take a note 7-5)
about memory switch.
c)SW3 :
SW3
First Page Mode
ON
First Page No Cut
OFF
First Page Cut
※ Please use the page which is
registered on the memory
switch.
※ Please take a note the paper
has to be the same with one
which is registered on the
memory switch.
※ Please take a note the memory
switch at 7-5).
d)SW4 :
SW4
Factory Mode
ON
Factory Mode
OFF
Standard Mode

Title
Rev.
Page
HMC-060, HMK-060 Release 2
Ver2.0
P.14
2-8) Internal Connector
1)CN1 : Power connector (YAW396-02, Geoyoung) Housing : YH396-02
Pin
Circuit
Remark
1
V+
+24
2
V-
GND
2)CN2 : Functional Extension connector (GW200-07, Geoyoung: or 53014-0710, Molex )
Pin
Circuit
Remark
1
NEAR C
Near End detection input
2
FEED IN
FEED switch input
3
A
Sensor power (220Ω resistance)
4
ERROR LED
ERROR LED output (330Ω resistance)
5
MARK C
BLACK MARK detection input
6
GND
GND
7
VDD
Logic power (+5V)
※ Once ERROR LED is mounted, Please connect Cathode with Pin no.4,
and Anode with VDD(+5V).
3)CN3 : Thermal Head Control Connector (20010WS-15,Yeonho:or S15B-PH-K-S, JST)
Pin
Circuit
Remark
1
COM
+24V
2
COM
+24V
3
GND
4
GND
5
VDD
6
TM
Thermistor
7
/STROBE1
Low Active
8
/STROBE2
Low Active
9
CLOCK
10
/LATCH
Low Active
11
SI
12
GND
13
GND
14
COM
+24V
15
COM
+24V

Title
Rev.
Page
HMC-060, HMK-060 Release 2
Ver2.0
P.15
4)CN4 : Motor connector (GW200-06, Geoyoung : or 53014-0610, Molex)
Pin
Circuit
Remark
1
A
φ1
2
B
φ2
3
+24V
It is used once Unipolar drive.
4
+24V
It is used once Unipolar drive.
5
/A
φ3
6
/B
φ4
5)CN5 : Please refer to the interface spec of RS-232C.
6)CN6 : Auto cutter connector(GW250-04, Geoyoung : or 5267-04A, Molex)
Pin
Circuit
Remark
1
CUT A
Drive signal (CUT_A)
2
CUT B
Drive signal (CUT_B)
3
SW
Detect switch
4
GND
Detect switch GND
7)CN7 : Sensor connector (GW200-05,Geoyoung : or 53014-0510, Molex)
Pin
Circuit
Remark
1
GND
2
GND
3
VA
Sensor power (220Ω resistance)
4
Paper detect signal
5
Headup detect signal
8)CN8 ( USB TYPE B) :
Pin
Circuit
Remark
1
VBUS
Vbus
2
D-
Data -
3
D+
Data +
4
GND
GND
9)SW2 : GW250-02,Geoyung or 5267-02A, Molex
Pin
Circuit
Remark
1
+24V
Power switch input
2
+24V
Power switch output

Title
Rev.
Page
HMC-060, HMK-060 Release 2
Ver2.0
P.16
3. General Specification
3-1)Specification
1)Printing method : Direct thermal
2)Resolution : 8dot/mm, 203dpi, 1dot=0.125mm
3)Printing speed : 150mm/sec
4)Paper width : 56mm
5)Character (MAX) a line : 37fonts (ASCII 12 x 24),18fonts (Korean 24 x 24),56fonts(ASCII 8x16)
3-2)Font
1)Numerical value : FONT A(12 x 24) 95 fonts, FONT B(8 x 16)95 fonts
2)Extended Graphic : FONT A(12 x 24) 128 fonts, FONT B(8 x 16)95 fonts
3)International : 14types 37fonts
(Korean,English,France,Germany,England,Denmark1,Swden,Italy,
Spain1,Japan,Norway,Denmark2,Spain2,Latin America)
4)Korean : FONT C Korean (24x24, Symbols and Chines Characters)
(Times New Roman, Gothic, Bodoni of one choice)
: FONT D Japanese (24x24)
: FONT E Chinese (24x24)
3-3)Internal buffer
Receive buffer : 4KByte
3-4)Electrical
1)Operation voltage
Drive
24V±10%
Motor, Head
Logic
5V±5%
Logic, paper sensor, Head up sensor
2)Current consumption
Average : 1.5A
Peak : 14A
3-5)Operation environment
1)Temperature : 0∼40℃
2)Humidity : 40∼90%RH(in not dew condensation)
※ The conditions above can be subjeted to change the print quality.
3-6)Storage environment
1)Temperature : -25∼40℃
2)Humidity : 40∼90%RH
3-7)MCBF
1)Thermal head : 100Km (10million pulse)
2)Auto cutter : 1 million cuts
3-8)Weight
about 1.30kg (HMK-060)

Title
Rev.
Page
HMC-060, HMK-060 Release 2
Ver2.0
P.17
4.Interface Specification
4-1)RS-232C
1)Data transmission : Serial
2)Hand shake : Hardware (RTS/CTS)
3)Baud Rate : 9600, 19200, 38400, 57600 BPS
4)Data bit : 8bit
5)Parity : None, Odd, Even
6)Stop bit : 1 or 1.5 or 2bits
7)Connector : DSUB-9 Female
Printer
Pin
Signal
In/out
1
N.C
-
2
TxD
Out
3
RxD
In
4
DSR
In
5
GND
-
6
DTR
Out
7
CTS
In
8
RTS
Out
9
N.C
-
※Please use DSUB9(Male)-SUB9(Female) straight (1:1) Full cable.
4-2) USB
1)Specficiation : USB 2.0, Full Speed(12Mb)
2)Connector : Type B
3)Cable : USB2.0 standard cable
4)Data : Bulk IN, Bulk OUT
l Bulk IN : End point 6,
l Bulk OUT : End point 2
l Full Speed : Max Packet Size 64 Byte(Bulk OUT),64 Byte(Bulk IN)
Pin
Signal
In/out
1
VBus
In
2
D-
In/out
3
D+
In/out
4
GND
GND
HOST
Pin
Signal
In/out
1
DCD
-
2
RxD
In
3
TxD
Out
4
DTR
Out
5
GND
-
6
DSR
In
7
RTS
Out
8
CTS
In
9
RI
-

Title
Rev.
Page
HMC-060, HMK-060 Release 2
Ver2.0
P.18
5.Command
5-1) Command List
Command
Function
Page
CR
Print and carriage return
20
LF
Print and line feed
20
CAN
Cancel print data in page mode
20
HT
Horizontal tab
20
FF
Printing the page mode & return to standard mode
21
SUB x
Extended Graphic Mode
21
SUB p
Off line printing according to the paper detection
21
SUB b
Black mark detection
21
SUB R
Outlinie of character (Tetragon)
22
SUB s
Printing Speed
22
SUB i
Auto cutting at black mark
22
SUB B
2D Barcode
24
ESC D
Set horizontal tab positions
24
ESC SP
Set character right side spacing (ASCII)
24
ESC !
Set character
24
ESC $
Select / Cancel user-defined character set
25
ESC *
Set bit image mode (vertical)
27
ESC -
Turn underline for ASCII
27
ESC 2
Set initial line spacing
28
ESC 3
Set line spacing using minimum units
28
ESC @
Printer reset (Initialize printer)
28
ESC E
Set emphasized mode
28
ESC G
Set double-strike mode
28
ESC J
FEED
29
ESC j
BACK FEED
29
ESC M
Select character font
29
ESC R
Select internatonal character set
30
ESC t
International code page
30
ESC a
Align position
31
ESC d
Printing & line feeding
31
ESC {
Print / cancel charcater printing in 180° turning
31
ESC i
Paper cutting
31
ESC m
Paper cutting
32
FS !
Set the printing all korean
32
FS &
Set the korean in extended graphic mode
32
FS .
Cancel the korean in extended graphic mode
33
FS -
Set the underline of Korean
33
FS S
Space Korean
33

Title
Rev.
Page
HMC-060, HMK-060 Release 2
Ver2.0
P.19
Command
Function
Page
FS W
Set the font size of Korean
33
FS q
Register Non Volatile logo(bit-image)
34
FS p
Print N/V logo print
35
GS !
Extension of character
35
GS (K (fn=49)
Printing density
36
GS (K (fn=97)
Operation in Low Power
36
GS B
Printing black in reverse
36
GS H
Barcode character
37
GS L
Left margin
37
GS V
Cutting paper
37
GS W
Set the printing area
38
GS h
Height of barcode
38
GS k
Printing of barcode
38
GS w
Extension / Reduction of barcode
39
GS r
Checking the status
40
GS a
Auto reply of status
40
GS v
Laster bit image (Horizontal)
41
ESC S
Set Standard
42
ESC L
Set the pagemode in direction
42
ESC T
Set the pagemode in direction
43
ESC W
Set the printing area in page mode
44
ESC FF
Printing the page area
45
DLE ENQ
Realtime buffer clear
45
DLE EOT
Realtime status check
46
DC3 i
Cutting after it detects the black mark.
46
This manual suits for next models
5
Table of contents
Other Hwasung Printer manuals