˹á
 úҹ
  C/C++ new
  Java new
 Sourcecode.TV
  Android
  Blackberry
  C/C++
  Java
  Linux
  Windows Phone
  ͧͧ
 
  .NET
  Android
  Blackberry
  C++Builder
  Delphi
  Java
  Mobile
  Open Source
  Pocket PC
  Visual Basic
  Web
  Windows Phone
  Others
 Ẻ¹
  ASP
  ASP.NET Webmatrix
  C++
  eVB
  J2ME
  Java
  PHP
 
  Android
  ASP
  C++
  VC++
  CGI-Perl
  Delphi
  Java
  jQuery
  PHP
  Visual Basic
  .NET
 ԡèҡ
  Դ...
  DoodeeHosting
  Ѻ͡Ẻ Ѳ䫵
  Freeware
  ѵҤɳ
  ª١
  ʶԵԼ
 Ŵ
 Ң
 дҹʹ
  .NET
  C/C++
  Delphi
  Java
  Palm/PocketPC
  Visual Basic
  Web
 
 дҹҹ
 ԧ
 ǡѺ
 ѵҤɳ
Social Network

Facebook  Twitter  YouTube
 New Article
 Webboard
 Freelanceboard
Freeware
 (BerDee)
(Android)
駩غ
駩غ(Android)
WebcamMonitor
WebcamMonitor(Windows)
scSendMail
scSendMail(Windows)
MSN Caption
MSN Caption(Windows)
  Freelance comment
  ԴͺʹФѺ...
2015-07-29 13:35:58
  Ҽͧ纷ѲҴ HTML5 ...
2015-01-18 15:33:54
  Ҽͧ纷ѲҴ HTML5 ...
2015-01-18 15:32:51
  ԴͺФѺ
ҹ...

2014-01-06 12:47:38
  ѧҤ͹ ͧ֡ͧ...
2013-07-06 01:04:37
  ʹ觢ͺࢵҤҤҡ͹ФѺ...
2013-03-24 18:54:20
  ѧդѺҹԴѺ 08...
2012-12-16 19:18:14
  ʹ㨤 Դ 0905076277...
2012-11-12 11:07:46
  Ѻ礹ѡ֡ͺѷ
...

2012-10-29 03:10:46
  sukit_te34@hotmail.com...
2012-10-29 03:09:36
  Webboard comment
  Ѻ ͹ matlab ¹ matlab...
2017-06-03 16:27:23
  ੾зҧҴ ͧҢ...
2017-05-25 16:18:08
  ͧ˹Ѻ os ...
2017-05-25 16:12:47
  ¹ php curl ...
2017-04-20 01:04:20
  ¹ ...
2017-03-27 12:50:54
  ʧҷ ͧѾഷ...
2017-03-27 12:37:20
  ͺõͺ...
2017-02-22 13:10:24
  ͧաԸ¹ recursive f...
2017-02-14 13:11:03
  ҡ кͧشҡ...
2017-01-30 11:45:28
  for-loop ͹ѹ
...

2017-01-28 16:00:12
  Homework comment
  ͺسҡѺ...
2017-08-16 18:27:25
  ͧ ͧ ѧ ^^...
2017-04-18 18:40:46
  ͧ ͧ ѧ ^^...
2017-04-18 18:37:54
  á flowchart ѹ...
2017-04-18 17:43:33
  ҡ flowchart ...
2017-04-18 16:25:29
  kungking ӶäѺ ?...
2017-03-18 23:28:36
  ¹ʴͧ...
2017-03-06 10:56:25
  鴷ӧҹẺ ...
2016-09-06 01:00:12
  ҡҺ鴹Ѻѧ...
2016-09-05 09:31:27
  ͧ֡¹...
2016-04-22 00:47:49
  Article comment
  [b]
2017-08-11 22:39:58
  [b]
...

2017-08-11 14:46:33
  ҨѺ ͧ
...

2017-07-11 09:59:35
  ö͡Ѻ anycast ...
2017-07-05 10:12:35
  Ѻ س "Դ" ͧ֡...
2016-06-18 15:21:09
  vs2008 c# Ѻ ͺسѺ...
2016-06-17 14:39:30
  vs c# ӵآ鹵͹...
2016-06-17 14:37:44
  ͧѺ "Ҩԧ ...
2016-03-12 23:36:05
  觢ͤǧ LAN ੾Ф...
2016-03-12 18:25:42
  Terminal Mac ...
2016-02-16 11:02:01
  9Mcode comment
  ҡ...
2014-02-21 08:52:19

Link Exchange

ѵҤɳ
Statistics of Sourcecode in Thailand
 
 Webboard

- - - - - - - - - - - - - - ʹѺʹع- - - - - - - - - - - - - -

з #3537 [Vb]

Print ҹ Serial Port TMU220 Epson

úǹͺ˹¤Ѻ
Print ҹ Serial Port TMU220 Epson
Ѵ дѺ ͧҧäѺ
ADRport.Write("ͺþ" + Chr(13) + Chr(10)) Ҿ ҧ͡ ????????????
ͧŧ Byte Ǿ ֧͡ѴдѺ
ͧҧê˹¤Ѻ
For I = 1 To Len(strTempA)
byteBuffer(I - 1) = Asc(Mid(Trim(strTempA), I, 1))
Next
ADRport.WriteLine("")
ADRport.Write(byteBuffer, 0, intLength)
ADRport.WriteLine("")

ADRport.WriteLine("")
ADRport.Write(Chr(27) + Chr(45) + Chr(3))
ADRport.Write(byteBuffer, 0, intLength)

ADRport.WriteLine("")

ADRport.Write("B" + Chr(13) + Chr(10))





ͺسѺ
Private Sub btnConnect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnConnect.Click
'CHECK IF PORT IS CLOSED AND THEN OPEN COM PORT FROM COMOBOX PORT NAMES
ADRport.PortName = ComboBox1.SelectedItem
If Not ADRport.IsOpen Then
ADRport.Open()
End If
'THIS SET IS REQUIRED BY THE ADR112 TO CONFIGURE PORTA BIT 0 AS AN OUTPUT BIT. YOUR DEVICE MAY NOT REQUIRE THIS STEP
If ADRport.IsOpen Then

ADRport.Write(Chr(27) + Chr(116) + Chr(21) + Chr(&HBE) & Chr(&HD4) & Chr(&HC1) & Chr(&HBE) & Chr(&HEC) & Chr(&HE4) & Chr(&HB7) & Chr(&HC2))

'ADRport.Write(Chr(27) + Chr(116) + Chr(20))

ADRport.Write(Chr(27) + Chr(45) + Chr(3))

'Dim Str As String = "ä"
'Dim intLength As Integer = Str.Length
Dim intLength As Integer = 40
Dim I As Integer
Dim byteBuffer(40) As Byte
Dim strTempA As String

For I = 1 To 40
byteBuffer(I - 1) = 70 + I
Next
System.Text.Encoding.GetEncoding(874)
ADRport.WriteLine("")
ADRport.Write(byteBuffer, 0, intLength)
ADRport.WriteLine("")

For I = 1 To 40
byteBuffer(I - 1) = 110 + I
Next

ADRport.WriteLine("")
ADRport.Write(byteBuffer, 0, intLength)
ADRport.WriteLine("")

For I = 1 To 40
byteBuffer(I - 1) = 150 + I
Next

ADRport.WriteLine("")
ADRport.Write(byteBuffer, 0, intLength)
ADRport.WriteLine("")

For I = 1 To 40
byteBuffer(I - 1) = 190 + I
Next

ADRport.WriteLine("")
ADRport.Write(byteBuffer, 0, intLength)
ADRport.WriteLine("")

For I = 1 To 25
byteBuffer(I - 1) = 230 + I
Next

ADRport.WriteLine("")
'ADRport.Write("AAA", 0, 9)
ADRport.Write(byteBuffer, 0, intLength)
ADRport.WriteLine("")

'byteBuffer(0) = 161
'byteBuffer(1) = 210
'byteBuffer(2) = 195
'byteBuffer(3) = 164
'byteBuffer(4) = 233
'byteBuffer(5) = 164
'byteBuffer(7) = 210
'byteBuffer(8) = 203

ADRport.Write(Chr(27) + Chr(116) + Chr(21) + Chr(&HBE) & Chr(&HD4) & Chr(&HC1) & Chr(&HBE) & Chr(&HEC) & Chr(&HE4) & Chr(&HB7) & Chr(&HC2))

ADRport.Write(Chr(27) + Chr(45) + Chr(3))

strTempA = "ͺþ"
'ADRport.Write(Chr(27) + Chr(45) + Chr(3) + strTempA + Chr(13) + Chr(10), 0, intLength)

ADRport.Write("CPA11111110" + Chr(13) + Chr(10))

ADRport.WriteLine(strTempA)

ADRport.Write("CPA11111110" + Chr(13) + Chr(10))

ADRport.WriteLine(Chr(27) + Chr(45) + Chr(3) + strTempA)

ADRport.Write("ͺþ" + Chr(13) + Chr(10))
ADRport.Write("Թ" + Chr(13) + Chr(10))
ADRport.Write("ͺþ" + Chr(13) + Chr(10))

ADRport.Write(EncodeString("ͺþ") + Chr(13) + Chr(10))
ADRport.Write(EncodeUTF8("ͺþ") + Chr(13) + Chr(10))

For I = 1 To Len(strTempA)
byteBuffer(I - 1) = Asc(Mid(Trim(strTempA), I, 1))
Next
ADRport.WriteLine("")
ADRport.Write(byteBuffer, 0, intLength)
ADRport.WriteLine("")

ADRport.WriteLine("")
ADRport.Write(Chr(27) + Chr(45) + Chr(3))
ADRport.Write(byteBuffer, 0, intLength)

ADRport.WriteLine("")

ADRport.Write("B" + Chr(13) + Chr(10))
ADRport.Write("C" + Chr(13) + Chr(10))
ADRport.Write("D" + Chr(13) + Chr(10))
ADRport.Write("E" + Chr(13) + Chr(10))
ADRport.Write("F" + Chr(13) + Chr(10))
ADRport.Write("G" + Chr(13) + Chr(10))
ADRport.Write("H" + Chr(13) + Chr(10))
ADRport.Write("I" + Chr(13) + Chr(10))
ADRport.Write("J" + Chr(13) + Chr(10))
ADRport.Write("K" + Chr(13) + Chr(10))
ADRport.Write("L" + Chr(13) + Chr(10))
ADRport.Write("M" + Chr(13) + Chr(10))

ADRport.Write(Chr(10) + Chr(27) + Chr(109))
End If
End Sub
ҡس : A / dbu2001@hotmail.com [2014-12-10 15:26:30]  

61.91.35.66 Դ #29176 (ҡ IP: 61.91.35.66)
ͧѺ
"Character Type 95 Alphanumeric characters, 37 International characters, Graphic characters: 128 x 12 pages"

http://www.epson.co.th/epson_thailand/printers_and_all_in_ones/pos/product.page?product_name=Epson_TM-U220

ͧ仴͡ api ͧѺ

Print Position Commands
n country
0 USA
1 France
2 Germany
3 U.K.
4 Denmark I
5 Sweden
6 Italy
7 Spain I
8 Japan
9 Norway
10 Denmark II
11 Spain II
12 Latin America 13 Korea
14 Slovenia/ Croatia 15 China
16 Vietnam
17 Arabia

https://www.epson-biz.com/modules/pos/index.php?page=doc&dcat=27
ҡس : maddog [2014-12-10 17:31:50]

203.172.120.34 Դ #29177 (ҡ IP: 203.172.120.34)
ͺسѺҵͺ
ͷի Program POS ѹ Slip 3 дѺ ¤Ѻ ҹ Driver ¤Ѻ ҹ COM1 µç¤Ѻ ʹռͧ Project ͧҹ蹴 ѧзѧ

ͺسѺ
ҡس : A / dbu2001@hotmail.com [2014-12-10 17:57:18]

58.11.77.215 Դ #29178 (ҡ IP: 58.11.77.215)
ͧ䴴纷͡ѹ͡Ѻ¹çҡѡ
ͧͧͺͧм٨ҡͧ͡Ѻ
ҡس : maddog [2014-12-10 21:45:56]

203.172.120.34 Դ #29182 (ҡ IP: 203.172.120.34)
ͺسѺµͺФѺ
礢ŵ͹ Printer к ͡ Port Serial/ Ѻ ԴҾѺ Program 3 дѺѺ ¹ VB.Net ; ҹ COM Port ѹѴдѺ Ѻ мѧԸդѺ ѧǡѹѺ շҹ¹ Ƿ ǤԴ ͧʹҤѺ ͧʹ ѷ ٤Ѻ աҧҼ Code ҼŧѺ Google դѺ Epson Call Center ͡ҵͧ App ҤѺ

ͺسѺ
ҡس : A / dbu2001@hotmail.com [2014-12-11 10:51:52]
ͺз
´

- - - - - - - - - - - - - - ʹѺʹع- - - - - - - - - - - - - -

 
 
µͨ Ѻͧ macbook pro 2016 (usb-c to HDMI)
µͨ Ѻͧ macbook pro 2016 (usb-c to HDMI) ´дѺ 4K
ŧ Mini DisplayPort to HDMI Adapter ŧ Mini DisplayPort to HDMI Adapter Ѻͧ macbook air/pro, mac mini
ŧ Mini DisplayPort to HDMI Adapter Ѻͧ macbook air/pro, mac mini
µٿѧ Ъ Ѻ iPhone 7  7 Plus
µٿѧ Ъ Ѻ iPhone 7 7 Plus
ŧҡ USB-C Type  USB 3.1 Ѻ MacBook
ŧҡ USB-C Type USB 3.1 Ѻ MacBook
䢤ǧѺͧ Macbook Air/Pro
䢤ǧ Ѻͧ Macbook Air/Pro (300ҷ)
HDMI  3 ͡  1
HDMI 3 ͡ 1 (350ҷ)
Ի͹¹
¹¹ͷ
¹¹͹´
¹¹
¹¹ վʾ
¹¹
¹ҹԹء
¹¹Թ⿹
¹¹Ϊ ʤ
9M Blog ͧ͡ ¹ͧ
ԡ ҾѺԭ
OrmSin.com: ˹ѧͧҹ--չ (country crafts)
ѵҤɳ
 
Tutorial
eVB Tutorial
ASP.NET Webmatrix Tutorial
J2ME Tutorial
C++  Tutorial
Java  Tutorial
PHP Tutorial
ASP Tutorial
 
ẺǨ
Freelance ѺѲ

Home - Article - Tutorial - Sourcecode - Dev Handbook - Search - WebBoard - Links - About Us

ʧǹԢԷ Ѵ͡ ӫ Ѵŧ ٻẺ Ѻ͹حҵѡɳѡ
Ţ¹ҳԪ硷͹ԡҡзǧҳԪ: 7100503002000
Copyright 2001 SourceCode.in.th