全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:2170
推到 Plurk!
推到 Facebook!

讀卡機設定問題

 
leeantsung
一般會員


發表:1
回覆:0
積分:0
註冊:2006-08-17

發送簡訊給我
#1 引用回覆 回覆 發表時間:2006-08-17 17:35:00 IP:220.229.xxx.xxx 未訂閱
向各位前輩請教:
此vb範例是否是
MSComm1.PortOpen = True
Dim AA(12) As Byte
AA(0) = CInt("&h07")
AA(1) = CInt("&h87")
--------------------
MSComm1.Output = AA
MSComm1.PortOpen = False
如知道大人指導此案例
-----------------------------------------------------------------------------------
Text 1.2 – Command for setting the Year, Month and Date
E
R
L
F
Data Structure:
B E L :Decimal code 07.
Y S :The command code for calendar year setting.
a a :The reader address for polling for direct mode “0 0” is usually defauted.
y y :The last two digits of A.D. calendar year code ( 00 till 99 )
m m :The month code ranged from 01 till 12.
G :The suffix check code. ( Decimal 81 or Hex 47 )
C R :Carrige return. (Decimal 13 or Hex 0D )
L F :Line feed. ( Decimal 10 or Hex 0A )

Description:
The text 1.2 is used to set the system calendar which include the last two digits of
year, month and date.
The procedures for sending the text 1.2 to reader for adjusting the calendar are as
following:
Procedures:
a. Send BEL ( Dec or Hex 07 ) After dealing microseconds, then send
following strings ( b to l )
b. Send Y ( Dec 89 or Hex 59 )
c. Send S ( Dec 83 or Hex 53 )
d. Send a ( 0 for direct mode ) 10’s digit of polling address
e. Send a ( 0 for direct mode ) 1’s digit of polling address
f. Send yymmdd 6 digits of ASCII strings
g. Send G ( Dec 71 or Hex 47 ) suffix check code
h. Send CR ( Dec 13 or Hex 0D ) carrige return
i. Send LF ( Dec 10 or Hex 0A ) Line feed
系統時間:2024-11-23 17:30:46
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!