Documente Academic
Documente Profesional
Documente Cultură
HMC-080S,HMC-080P
(Included.Serial,Parallel)
Ver 1.2
TEL.82-2-20578151(Dir.) FAX.82-2-20578536
hwasungt@hwasungt.co.kr (Ryan KIM)
No. Date Remark Page Ver.
1 07-05-02 Addition of the rule command
2 07-05-11 Addition the barcode & the laster bitmap 32,33 1.2
2
TABLE OF CONTENTS
1.General Specification 4
1-1) Characters Specifications 4
1-2) Font 4
1-3) Internal Buffer 4
1-4) Electrical Characteries 4
1-5) Enviornmental Conditions 4
2. Interface Specification 5
2-1) Serial 5
2-2) Parallel 5
2-3) Dip Switch 1 6
2-4) Dip Switch 2 7
2-5) Inner connector 7
2-6) Onboard update 10
4. Sample Program 42
5. Board Measurring 43
3
1. General Specifications
1-1) Printing Specifications
1) Print Method Thermal line printing
2) Dot Density 8dot/mm, 203dpi, 1dot=0.125mm
3) Printing Speed 160mmm/sec
4) Printing Width 80mm
5) Characters (Max) / line : 53 fonts(ASCII, 1 byte), 26 fonts(Korean, 2 bytes)
1-2) FONT
1) Alphafet FONT A(12 x 24) 95 fonts, FONT B(8 x 16) 95 fonts
2) Extended Graphic FONT A(12 x 24) 128, FONT B(8 x 16) 95
3) International Englisih,French ,Germany,Denamark,Denamark1/2 ,
Swedish,Spanish1/2,Latin American,Norway,Japanese,
* Customized Language available
4)Korean FONT A Godics (24 x 24), Myong Jo ( 24 x 24, Option )
1-4)Electrical Characteries
1) Voltage to operate
Supply Voltage 24V±10% Motor, Head
Logic Voltage 5V±5% Logic circuit, Paper / Head-up => sensors
4
2. Configuratoin
2-1) SERIAL(RS-232C) => HMC-080S
1) Data Transmission Serial
2) Hand Shaking Hardware (RTS/CTS)
3) Baud Rate 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200 BPS
4) Data Bit 7, 8 bit
5) Parity None, Even,Odd
6) Stop Bit 1, 2 bit
7) Connector DSUB-9 Female
PRINTER HOST
PIN SIGNAL IN/OUT Pin SIGNAL IN/OUT
1 N.C - 1 DCD -
2 TxD OUT 2 RxD IN
3 RxD IN 3 TxD OUT
4 DSR IN 4 DTR OUT
5 GND - 5 GND -
6 DTR OUT 6 DSR IN
7 CTS IN 7 RTS OUT
8 RTS OUT 8 CTS IN
9 N.C - 9 RI -
4) Electrical Characteries
5
5) Data Receiving Timing
DATA
nSTB t1 t3
t2
BUSY
t4
nACK
t5 t6
Specifications
Symbol Characteristios
Min Max
t1 Data Setup Time 0.75 -
t2 STROBE Pulse Width 0.75 -
t3 Data Hold Time 0.75 -
t4 BUSY Output Delay Time - 0.75
t5 ACK Pulse Width 0.2(Typ.) 0.2(Typ.)
t6 BUSY Release Time 0.5(Typ.) 0.5(Typ.)
(Unit : μsec)
6
4) SW 7 (Only for HMC-080S) 5) SW8 (HMC-080S,HMC-080)
7
3) CN3 Thermal Head Control Connector (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.
HMC-080 Ver1.2
2 GND
3 VA Sensor Power (220Ωresistance Pass)
4 Paper Detector Signal
5 Head-up Detection Signal
8
8) CN8 (HMC-080S, RS-232C, DSUB9, FEMALE)
Pin Circuit Remark
1 N.C
2 TxD
3 RxD
4 DSR
5 GND
6 DTR
7 CTS
8 RTS
9 N.C
Title Rev.
HMC-080 Ver1.2
9
Title Rev.
HMC-080 Ver1.2
10) CN9 (Assistant Sensor)
Pin Circuit Remark
1 C Sensor Detection Siganl (Input)
2 NC
3 A Sensor Power (220Ω Resistance Pass)
4 NC
5 NC
6 GND GND
7 GND GND
1) Pls position ‘ON’ the SW4 in the Dip2 and switch off and on
Then ERROR LED(red) will be power off at twice.
4) The update will be end once the update finish appear on the screen.
If the ERROR LED is appeared as on and off continuously, it could be error update.
Pls Repeat 1) article.
5) Use the printer after the SW4 in Dip2 position OFF and switch on & off.
Title Rev.
HMC-080 Ver1.2
10
3. Command Summary
3-1) Command Directory
HMC-080 Ver1.2
ESC T Set the pagemode in direction 27
ESC W Set the printing area in page mode 28
FS ! Set the printing all korean 29 11
FS & Set the korean in extended graphic mode 29
FS . Cancel the korean in extended graphic mode 29
FS - Set the underline of Korean 30
FS S Space Korean 30
FS W Set the font size of Korean 30
FS q Register Non Volatile logo(bit-image) 31
FS p Print N/V logo print 32
GS ! Extension of character 32
GS (K (fn=49) Printing density 33
GS (K (fn=97) Operation in Low Power 33
GS B Printing black in reverse 33
GS H Barcode character 34
GS L Left space 34
GS V Cutting paper 34
GS W Set the printing area 35
GS h Height of barcode 35
GS k Printing of barcode 36
GS w Extension / Reduction of barcode 37
GS r Checking the status 37
GS a Auto reply of status 38
GS v Laster bitmap image 39
SUB B 2D Barcode 40
DLE ENQ Realtime of buffer clear 41
DLE EOT Printing transmission status of realtime 41
Title Rev.
HMC-080 Ver1.2
12
CR
LF
CAN
HT
Title Rev.
HMC-080 Ver1.2
13
FF
SUB+’x’+n
SUB+’p’+n
SUB+’b’+n
Title Rev.
HMC-080 Ver1.2
Once the detection distance is over in 30Cm, it could be jammed
14
Title Rev.
HMC-080 Ver1.2
SUB+’R’+n
SUB+’s’+n
[Caution] Control command density once the low speed makes printing density (be) unclear
Title Rev.
HMC-080 Ver1.2
15
SUB+’1’
SUB+’2’
SUB+’W’+nL+nH+kL+kH
SUB+’C’
SUB+’O’
Title Rev.
HMC-080 Ver1.2
[Name] Rule ON
[Format] ASCII SUB O
Hex 1A 4Fh
Decimal 26 79
[Descript] Once you set up the command, the rull will be printing with the character or font.
16
SUB+’F’
SUB+’P’
ESC+’D’+n1…nk+NUL
[Name] Set the horizontal position
[Format] ASCII ESC D n1…nk NUL
Hex 1B 44h n1…nk 00
Decimal 27 68 n1…nk 0
[Range] 1≤n≤255, 0≤k≤32
[Descript] Set the horizontal tab position
[Caution] n : Indicating the figures from the start poistion of line to set position
K : indicating the total tabs per line
ESC+SP+n
Title Rev.
HMC-080 Ver1.2
[Descript] Set in n x 0.125mm the space amount on the right of ASCII character
[Caution] Set the Korean space in FS+’S+n
17
ESC+’!’+n
[Name] -
[Format] ASCII ESC ! n
Hex 1B 21h n
Decimal 27 33 n
[Range] 0≤n≤255
[Initial Value] n=0
[Descript] Set font & character in the same time
[Caution] -
Title Rev.
HMC-080 Ver1.2
18
Title Rev.
HMC-080 Ver1.2
ESC+’$’+nL+nH
Title Rev.
HMC-080 Ver1.2
19
ESC+’*’+m+nL+nH+d1+…+dk
[Descirpt] Due to fixing nL+nHx256, Printing from bit data to graphic data in Mode m
D1 D2 D3 Twice once
MSB
Three Three
times times
LSB
D1 D2 D3
Title Rev.
HMC-080 Ver1.2
Single Double
20
Title Rev.
HMC-080 Ver1.2
•24 dots Mode
D1 D2 D3 D4 D5 D6 D7 D8 D9 Twice Once
MSB Once Once
LSB
D1 D4 D7
D2 D5 D8
D3 D6 D9
Single Double
Density Density
ESC+’-’+n
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
Title Rev.
HMC-080 Ver1.2
21
Title Rev.
HMC-080 Ver1.2
ESC+’2’
ESC+’3’+n
ESC+’@’
ESC+’E’+n
Title Rev.
HMC-080 Ver1.2
22
ESC+’G’+n
ESC+’J’+n
[Name] Feeding
[Format] ASCII ESC J n
Hex 1B 4Ah n
Decimal 27 74 n
[Range] 0≤n≤255
[Descript] Printing the data inner buffer, feeding in n x 0.125mm
ESC+’j’+n
ESC+’M’+n
n Font
0 12x24(ASCII), 24x24(Korean)
1 8x16(ASCII)
Title Rev.
HMC-080 Ver1.2
23
ESC+’R’+n
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
n Printing Position
0 Left
1 Middle
2 Right
Title Rev.
HMC-080 Ver1.2
24
ESC+’d’+n
ESC+’{’+n
n Function
0 Cancel 180°
1 Set 180°
ESC+’i’
ESC+’m’
Title Rev.
HMC-080 Ver1.2
25
ESC+’S’
ESC+’L’
Title Rev.
HMC-080 Ver1.2
26
ESC+’T’+n
Feeding Feeding
ABCD
Feeding Feeding
Title Rev.
HMC-080 Ver1.2
ABCD
27
Title Rev.
HMC-080 Ver1.2
ESC+’W’+xL+xH+yL+yH+dxL+dxH+dyL+dyH
Paper Paper
EFGH Standard line
Printing before
(x,y) dx ABCD
moving
the standard line
Printing Area Move the standard line
dy by CR or LF
Printing after
(x+dx,y+dy) EFGH moving
the standard line
ABCD
Title Rev.
HMC-080 Ver1.2
28
FS+’!’+n
FS+’&’
FS+’.’
HMC-080 Ver1.2
[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)
FS+’-’+n 29
n Function
0 Cancel the underline of Korean
1 Set the thickness of underline in 0.125mm
2 Set the thickness of underline in 0.25mm
FS+’S’+n1+n2
FS+’W’+n
Title Rev.
HMC-080 Ver1.2
30
FS+’q’+n+(xL+xH+yL+yH+d1…dk)1……+(xL+xH+yL+yH+d1…dk)n
Title Rev.
HMC-080 Ver1.2
FS+’p’+n+m 31
m Printing mode
0 Standard
1 Horizontal extension
2 Vertical extension
3 Horizontal,vertical extension in the same time
GS+’!’+n
Bit Function
0-3 Set the extension proportion in vertical
4-7 Set the extension proportion in horizontal
Title Rev.
HMC-080 Ver1.2
n(Hex) n(Decimal) Rate n(Hex) n(DecimaL) Rate
00h 0 x1 00h 0 x1
10h 16 x2 01h 1 x2
20h 32 x3 02h 2 x3
30h 48 x4 03h 3 x4
40h 64 x5 04h 4 x5
50h 80 x6 05h 5 x6
60h 96 x7 06h 6 x7
70h 112 X8 07h 7 X8
GS+’(’+’K’+pL+pH+fn+m (fn=49) 32
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
GS+’(’+’K’+pL+pH+fn+m (fn=97)
HMC-080 Ver1.2
The Second division of electric current (ampere) will be half than first division.
m Partial operation
0 Initial setting (first division)
1 First Division
2 Second Division
GS+’B’+n
n Printing Position
0 Non printing
1 Above the barcode
2 Below the barcode
3 Both above & below barcode
GS+’L’+nL+nH
GS+’V’+m
Title Rev.
HMC-080 Ver1.2
[Name] Select cut mode and cut paper
[Format] ASCII GS V m
Hex 1D 56h m
Decimal 29 86 m
[Range] 0≤m≤1
[Initial Value] m=0
[Descript] Select a mode for cutting paper
m Function
0 Full Cutting
1 Partial Cutting
34
GS+’W’+nL+nH
Printing area
HMC-080 Ver1.2
GS+’k’+m+d1…dn+NUL 35
Title Rev.
HMC-080 Ver1.2
[Caution] In CODE128, set additional “{“ in 2bytes when the special character as below
36
GS+’w’+n
Title Rev.
HMC-080 Ver1.2
* Multi Level barcode : UPC-E, EAN13, EAN8
* 2 level barcode : CODE39, ITF, CODABAR
GS+’r’+n
37
Title Rev.
HMC-080 Ver1.2
GS+’a’+n
n Function
0 Disable automatic status back
1 Enable automatic status back
※ the status of bit 4 is effective when the realtime command DLE + EOT + n,
The others are fixed ‘0’.
Title Rev.
HMC-080 Ver1.2
38
Title Rev.
HMC-080 Ver1.2
GS+’v’+’0’+m+xL+xH+yL+yH+d1+…+dk
[Description] You can print the laster image at the range of ‘m’.
You can fix the number of horizontal data in xL,xH.
You can fix the number of vertical dot in yL,yH.
‘d’ indicates the laster bitmap image.
m Mode Enlarge
0,48 Normal Once
1,49 Horizontal enlarge Twice hor.
2,50 Vertical enlarge Three times ver.
3,51 Hor.Ver.enlarge Twice hor.Three ver.
dot
Dot line
MSB LSB
Title Rev.
HMC-080 Ver1.2
SUB+’B’+n1+n2+n3+d1...dk 39
[Name] 2D Barcode
[Description] Please use the appropriate barcode with the number of barcode.
n1 : barcode type
n2 : the number of barcode
n1 Barcode type
n3 : the size of barcode
1 PDF417
d1…………dk : barcode data
2 QR code
1) PDF417 2) QR code
Title Rev.
HMC-080 Ver1.2
40
DLE+ENQ+n
DLE+EOT+n
Title Rev.
HMC-080 Ver1.2
4.Sample Program
The details below are of VB6.0 sample program.
MSComm1.CommPort = 1 ‘COM1
MSComm1.Settings = "38400,n,8,1" ‘SET RS-232C"
MSComm1.PortOpen = True
MSComm1.RTSEnable = True
MSComm1.Handshaking = comRTS ‘ RTS flow control
MSComm1.PortOpen = False
End Sub
Title Rev.
HMC-080 Ver1.2
42
5. Board Dimensions
Thickness (t=1.6mm) Parts,Pattern are not
permitted to fix
부품,패턴금지
부품실장높이
Title Rev.
HMC-080 Ver1.2
43