找回密碼 或 安全提問
 註冊
|註冊|登錄

伊莉討論區

搜索
感激所有對伊莉作出奉獻的人發表文章前請先閱讀相關版規搞笑、娛樂、精彩的影片讓你看
神奇寶貝三上cosplay一拳超人mg 無碼officeadobe
kawd中壢christmatim69037惡靈寄終末的火1room

休閒聊天興趣交流學術文化旅遊交流飲食交流家庭事務PC GAMETV GAME
熱門線上其他線上感情感性寵物交流家族門派動漫交流貼圖分享BL/GL
音樂世界影視娛樂女性頻道潮流資訊BT下載區GB下載區下載分享短片
電腦資訊數碼產品手機交流交易廣場網站事務長篇小說體育運動時事經濟
上班一族博彩娛樂

[簡]單人房、日照一般

[繁]Re:Monster 04-

華為手機 AI讓女生一

[繁]魔法科高中的劣等

石碇國道5號 女警處理

✡ 仙武傳・58・2023.
C & C++ 語言C# 語言Visual Basic 語言PHP 語言JAVA 語言
查看: 4799|回復: 2
打印上一主題下一主題

[求助]尋找VB6程式碼可以讀取RFID的值[複製鏈接]

帖子
0
積分
52 點
潛水值
620 米
跳轉到指定樓層
樓主
發表於 2010-7-13 01:34 PM|只看該作者|倒序瀏覽
如果發覺自己無法使用一些功能或出現問題,請按重新整理一次,並待所有網頁內容完全載入後5秒才進行操作。
小弟我找了很多書籍,也逛了很多網頁...但是我找不到有成功的程式碼....
有哪位大大可以幫我解決這問題嗎??
下載: 訪客無法瀏覽下載點,請先 註冊登入會員

這是RFID的機器
分享分享0收藏收藏0支持支持0

使用道具檢舉

帖子
0
積分
0 點
潛水值
60 米
頭香
發表於 2011-4-29 10:19 AM|只看該作者
成為伊莉的版主,你將獲得更高級和無限的權限。把你感興趣的版面一步步地發展和豐盛,那種滿足感等著你來嚐嚐喔。
這個太貴了~~
你何不買個大陸的隨插隨用ㄋ~~
若新密碼無法使用,可能是數據未更新。請使用舊密碼看看。

使用道具檢舉

koshuchung 該用戶已被刪除
3
發表於 2011-6-1 12:16 PM|只看該作者
這是Omron V系列。

  1. Dim Cancelpressed, acknowledged As Boolean, PageNumbers(1 To 30) As Integer
  2. Dim pagemax As Integer  '¤@­ÓTAGªº³Ì¤j­¶¼Æ¡C
  3. Dim command As String  '¤G¦ì¼Æ©R¥O½X2
  4. Dim commandtosend As String '©R¥O¶Ç°e
  5. Dim appropriatelength As Integer
  6. Dim Version As String
  7. Option Explicit
  8. Private Sub allshow()
  9. '¨Ï©Ò¦³ªº³]©w­È­P¯à
  10. Action.Enabled = True
  11. TagsizeFrame.Enabled = True
  12. Port.Enabled = True
  13. DataFormat.Enabled = True
  14. ByteSelectionFrame.Enabled = True
  15. Triggertypeframe.Enabled = True
  16. PageSelection.Enabled = True
  17. End Sub
  18. Private Sub allhide()
  19. 'This makes all the settings frames disabled, so that they cannot be changed (usually during FIFO operations)
  20. Action.Enabled = False
  21. TagsizeFrame.Enabled = False
  22. Port.Enabled = False
  23. DataFormat.Enabled = False
  24. ByteSelectionFrame.Enabled = False
  25. Triggertypeframe.Enabled = False
  26. PageSelection.Enabled = False
  27. End Sub
  28. Private Sub initarray()
  29. 'This initializes the array of bits for page specification
  30. 'ªì©l¤Æ©Ò¦³RFID Page bits
  31. Dim counter As Integer
  32. For counter = 1 To 30
  33.    PageNumbers(counter) = 0
  34. Next
  35. End Sub
  36. Function buildopcode() As String
  37. Dim opcode As String
  38.    ' set the hex / binary part of the opcode
  39. If FormatASCII Then
  40.     opcode = "1"
  41.     Else: If FormatHEX Then opcode = "0"
  42.     End If
  43.     'set the trigger type part of the opcode
  44. Select Case TriggerType
  45.     Case "Single Trigger"
  46.         opcode = opcode + "0"
  47.     Case "Single Auto"
  48.         opcode = opcode + "1"
  49.     Case "FIFO Trigger"
  50.         opcode = opcode + "8"
  51.     Case "FIFO Auto"
  52.         opcode = opcode + "9"
  53.     Case "FIFO Continue"
  54.         opcode = opcode + "A"
  55.     Case "FIFO Repeat"
  56.         opcode = opcode + "B"
  57. End Select
  58. buildopcode = opcode
  59. End Function
  60. Function EndCodetext(Code As String) As String
  61.     'convert the opcode recieved into the description for the opcode
  62. Select Case Code
  63.     Case "00"
  64.         EndCodetext = "Normal End"
  65.     Case "01"
  66.         EndCodetext = "Parity Error"
  67.     Case "11"
  68.         EndCodetext = "Framing Error"
  69.     Case "12"
  70.         EndCodetext = "Overrun Error"
  71.     Case "14"
  72.         EndCodetext = "Format Error"
  73.     Case "18"
  74.         EndCodetext = "Frame Length Error"
  75.     Case "70"
  76.         EndCodetext = "Transmission Error"
  77.     Case "71"
  78.         EndCodetext = "Verification Error"
  79.     Case "72"
  80.         EndCodetext = "Tag Absence Error"
  81.     Case "7A"
  82.         EndCodetext = "Address Specification Error"
  83.     Case "7B"
  84.         EndCodetext = "Outside of Write Area Error"
  85.     Case "7D"
  86.         EndCodetext = "Write Protection Error"
  87.     Case "7F"
  88.         EndCodetext = "ID System Error"
  89.     Case "7C"
  90.         EndCodetext = "Antenna Hardware Error"
  91. End Select
  92. End Function
  93. Function pageformat() As String
  94. Dim string1, string2, string3, string4 As String
  95. Dim count1, count2, count3, count4, count, multiplier As Integer
  96. 'Determine the decimal equivalent of the 8 bit groups for the page specification
  97. multiplier = 4
  98. For count = 1 To 6
  99.     count1 = count1 + (PageNumbers(count) * multiplier)
  100.     multiplier = multiplier * 2
  101. Next
  102. multiplier = 1
  103. For count = 7 To 14
  104.     count2 = count2 + (PageNumbers(count) * multiplier)
  105.     multiplier = multiplier * 2
  106. Next
  107. multiplier = 1
  108. For count = 15 To 22
  109.     count3 = count3 + (PageNumbers(count) * multiplier)
  110.     multiplier = multiplier * 2
  111. Next
  112. multiplier = 1
  113. For count = 23 To 30
  114.     count4 = count4 + (PageNumbers(count) * multiplier)
  115.     multiplier = multiplier * 2
  116. Next
  117. 'Determine the Hex equavilent of the page specifications
  118. string1 = Hex(count1)
  119.   If Len(string1) = 1 Then string1 = "0" + string1
  120. string2 = Hex(count2)
  121.   If Len(string2) = 1 Then string2 = "0" + string2
  122. string3 = Hex(count3)
  123.   If Len(string3) = 1 Then string3 = "0" + string3
  124. string4 = Hex(count4)
  125.   If Len(string4) = 1 Then string4 = "0" + string4
  126. pageformat = string4 + string3 + string2 + string1
  127. End Function
  128. Private Sub ByteAcknowledge_Click()
  129. 'sets the acknowledged flag for FIFO Continue Operations
  130. acknowledged = True
  131. End Sub
  132. Private Sub Bytes128_Click()
  133. 'Sets the tag parameters for 128 Byte tags
  134. pagemax = 14
  135. VScroll1.Min = 14
  136. VScroll3.Min = 111
  137. VScroll2.Min = pagemax - Val(StartPage) + 1
  138. If Val(StartPage.Text) > pagemax Then StartPage.Text = pagemax
  139. End Sub
  140. Private Sub Bytes256_Click()
  141. 'Sets the tag parameters for 256 Byte tags
  142. pagemax = 30
  143. VScroll1.Min = 30
  144. VScroll3.Min = 240
  145. VScroll2.Min = pagemax - Val(StartPage) + 1
  146. If Val(StartPage.Text) > pagemax Then StartPage.Text = pagemax
  147. End Sub
  148. Private Sub Bytewrite_Click()
  149. 'Makes the appropriate frames visible when Byte Write is selected
  150. ByteSelectionFrame.Visible = True
  151. Triggertypeframe.Visible = True
  152. ByteWriteButton.Enabled = True
  153. ByteWriteCancel.Enabled = False
  154. DataFormat.Visible = True
  155. PageSelection.Visible = False
  156. WriteDataFrame.Visible = False
  157. ReadDataFrame.Visible = False
  158. ByteWriteFrame.Visible = True
  159. StringSent.Text = ""
  160. StringRec.Text = ""
  161. ResponseCodeNumber.Text = ""
  162. ResponseCodeDescription.Text = ""
  163. End Sub
  164. Private Sub ByteWriteButton_Click()
  165. Dim startingaddress As String
  166. Dim opcodeforbytewrite, bytebuffer As String
  167. Dim byteendcode As String
  168. Dim satisfied As Boolean
  169. 'Performs the sending of data for a Byte Write operation
  170. If Not MSComm1.PortOpen Then MSComm1.PortOpen = True
  171. Cancelpressed = False
  172. acknowledged = False
  173. ByteWriteButton.Enabled = False
  174. ByteWriteCancel.Enabled = True
  175. If Int(Len(ByteWriteData.Text) / 2) <> (Len(ByteWriteData.Text) / 2) Then ByteWriteData.Text = ByteWriteData.Text + "0"
  176. startingaddress = Hex(StartingByte.Text)
  177. If Len(startingaddress) = 1 Then startingaddress = "0" + startingaddress
  178. opcodeforbytewrite = buildopcode
  179. MSComm1.Output = "04" + opcodeforbytewrite + startingaddress + ByteWriteData.Text + Chr$(13)
  180. StringSent.Text = "04" + opcodeforbytewrite + startingaddress + ByteWriteData.Text
  181. satisfied = False
  182. allhide
  183. Do
  184. bytebuffer = ""
  185.    Do
  186.      DoEvents
  187.      bytebuffer = bytebuffer & MSComm1.Input
  188.     Loop Until InStr(bytebuffer, Chr$(13)) Or Cancelpressed
  189.   If Not Cancelpressed Then StringRec.Text = Left(bytebuffer, Len(bytebuffer) - 1)
  190. 'parse out end code
  191. If Not Cancelpressed Then byteendcode = Left(bytebuffer, 2)
  192. If Not Cancelpressed Then ResponseCodeNumber.Text = byteendcode
  193. If Not Cancelpressed Then ResponseCodeDescription.Text = EndCodetext(byteendcode)
  194.      
  195. If TriggerType = "Single Auto" Or TriggerType = "Single Trigger" Then satisfied = True
  196. If TriggerType = "FIFO Trigger" Then satisfied = True
  197. If TriggerType = "FIFO Continue" And Cancelpressed Then satisfied = True
  198. If TriggerType = "FIFO Repeat" And Cancelpressed Then satisfied = True
  199. If TriggerType = "FIFO Auto" Then satisfied = True
  200. If TriggerType = "FIFO Continue" And (Not Cancelpressed) And byteendcode = "00" Then Beep
  201. If TriggerType = "FIFO Continue" And (Not Cancelpressed) Then
  202.     Do
  203.       DoEvents
  204.       ByteAcknowledge.Visible = True
  205.     Loop Until acknowledged Or Cancelpressed
  206.     End If
  207. If acknowledged Then
  208.     MSComm1.Output = "11" + Chr$(13)
  209.     ResponseCodeNumber.Text = ""
  210.     StringRec.Text = ""
  211.     ResponseCodeDescription.Text = ""
  212. End If
  213. acknowledged = False
  214. ByteAcknowledge.Visible = False
  215. If (Not Cancelpressed) And ResponseCodeNumber.Text = "00" Then Beep
  216. Loop Until satisfied
  217. allshow
  218.      
  219.      
  220. Cancelpressed = False

  221. MSComm1.PortOpen = False
  222. ByteWriteButton.Enabled = True
  223. ByteWriteCancel.Enabled = False
  224. End Sub
  225. Private Sub ByteWriteCancel_Click()
  226. Dim inbuffer As String
  227. Cancelpressed = True
  228. MSComm1.Output = "13" + Chr(13)
  229. Do
  230. DoEvents
  231.    inbuffer = inbuffer & MSComm1.Input
  232.     Loop Until InStr(inbuffer, Chr$(13))
  233. End Sub
  234. Private Sub CancelRead_Click()
  235. Dim inbuffer As String
  236. Cancelpressed = True
  237. MSComm1.Output = "13" + Chr(13)
  238. Do
  239. DoEvents
  240.    inbuffer = inbuffer & MSComm1.Input
  241.     Loop Until InStr(inbuffer, Chr$(13))
  242. End Sub

  243. Private Sub ReadAcknowledge_Click()
  244. 'sets acknowledged flag for FIFO Continue operations
  245. acknowledged = True
  246. End Sub
  247. Private Sub Readtag_Click()
  248. Dim Hold As Integer, Temp As String, Buffer As String
  249. Dim count As Integer
  250. Dim pagespecification, endcode As String
  251. Dim opcodeforread As String  '2 digit option code
  252. Dim satisfied As Boolean

  253. initarray 'sets array of page markers to 0
  254. For count = Val(StartPage) To (Val(StartPage) + Val(NumberofPages) - 1)
  255.   PageNumbers(count) = 1
  256.   Next
  257.         
  258. pagespecification = pageformat()
  259. If Not MSComm1.PortOpen Then MSComm1.PortOpen = True
  260. Cancelpressed = False
  261. acknowledged = False
  262. Readtag.Enabled = False
  263. CancelRead.Enabled = True
  264.     'Build string to send
  265. command = "01"  'Selects write for Command
  266.     'build opcode
  267. Buffer = ""
  268. opcodeforread = buildopcode
  269. commandtosend = command + opcodeforread + pagespecification
  270. MSComm1.Output = commandtosend + Chr$(13)
  271. StringSent.Text = commandtosend
  272. ResponseCodeNumber.Text = ""
  273. StringRec.Text = ""
  274. ResponseCodeDescription.Text = ""
  275. 'waitforresponse
  276. satisfied = False
  277. allhide
  278. Do
  279. Buffer = ""
  280.     Do
  281.         DoEvents
  282.         Buffer = Buffer + MSComm1.Input
  283.         
  284.     Loop Until InStr(Buffer, Chr$(13)) Or Cancelpressed
  285.     If Not Cancelpressed Then StringRec.Text = Left(Buffer, Len(Buffer) - 1)
  286. 'parse out end code
  287. If Not Cancelpressed Then endcode = Left(Buffer, 2)
  288. If Not Cancelpressed Then ResponseCodeNumber.Text = endcode
  289. If Not Cancelpressed Then ResponseCodeDescription.Text = EndCodetext(endcode)
  290. If (Not Cancelpressed) And (endcode = "00") Then DataRead.Text = Right$(Left$(Buffer, Len(Buffer) - 1), Len(Buffer) - 3)
  291. If (Not Cancelpressed) And FormatASCII And DataRead.Text = "" Then DataRead.Text = "Please Enter Valid ASCII data on the RFID Tag"
  292. If TriggerType = "Single Auto" Or TriggerType = "Single Trigger" Then satisfied = True
  293. If TriggerType = "FIFO Trigger" Then satisfied = True
  294. If TriggerType = "FIFO Continue" And Cancelpressed Then satisfied = True
  295. If TriggerType = "FIFO Repeat" And Cancelpressed Then satisfied = True
  296. If TriggerType = "FIFO Auto" Then satisfied = True
  297. 'Acknowledge a repeat
  298. If TriggerType = "FIFO Continue" And (Not Cancelpressed) And endcode = "00" Then Beep
  299. If TriggerType = "FIFO Continue" And (Not Cancelpressed) Then
  300.    
  301.     Do
  302.      DoEvents
  303.      ReadAcknowledge.Visible = True
  304.     Loop Until acknowledged Or Cancelpressed
  305.     End If
  306. If acknowledged Then
  307. MSComm1.Output = "11" + Chr$(13)
  308. ResponseCodeNumber.Text = ""
  309. StringRec.Text = ""
  310. ResponseCodeDescription.Text = ""
  311. End If
  312. acknowledged = False
  313. ReadAcknowledge.Visible = False
  314. If (Not Cancelpressed) And ResponseCodeNumber.Text = "00" Then Beep
  315. Loop Until satisfied
  316. allshow
  317. Cancelpressed = False
  318. Readtag.Enabled = True
  319. CancelRead.Enabled = False
  320. MSComm1.PortOpen = False
  321. End Sub
  322. Private Sub VScroll1_Change()
  323. StartPage.Text = VScroll1.Value
  324. VScroll2.Min = pagemax - Val(StartPage) + 1
  325. If Val(StartPage.Text) > pagemax Then StartPage.Text = pagemax
  326. End Sub
  327. Private Sub VScroll2_Change()
  328. If VScroll2.Value > 16 Then VScroll2.Value = 16
  329. NumberofPages.Text = VScroll2.Value
  330. End Sub
  331. Private Sub VScroll3_Change()
  332. StartingByte.Text = VScroll3.Value
  333. End Sub
  334. Private Sub WriteAcknowledge_Click()
  335. acknowledged = True
  336. End Sub
  337. Private Sub WriteCancel_Click()
  338. Dim inbuffer As String
  339. Cancelpressed = True
  340. MSComm1.Output = "13" + Chr(13)
  341. Do
  342. DoEvents
  343.    inbuffer = inbuffer & MSComm1.Input
  344.     Loop Until InStr(inbuffer, Chr$(13))
  345.    
  346. End Sub

  347. Private Sub COM1_Click()
  348. 'Sets the COMM port to 1
  349. MSComm1.CommPort = 1
  350. End Sub
  351. Private Sub Com2_Click()
  352. 'Sets the COMM port to 2
  353. MSComm1.CommPort = 2
  354. End Sub
  355. Private Sub Command2_Click()
  356. 'Exits program
  357. End
  358. End Sub
  359. Private Sub Form_Load()
  360. 'Initializes variables to defaults
  361. pagemax = 14   'Number of pages on 128 Byte tag
  362. VScroll1.Min = 14  'property for page selection
  363. StartPage.Text = VScroll1.Value
  364. NumberofPages.Text = VScroll2.Value
  365. VScroll2.Min = pagemax - Val(StartPage) + 1
  366. If Val(StartPage.Text) > pagemax Then StartPage.Text = pagemax
  367. ByteAcknowledge.Visible = False
  368. ReadAcknowledge.Visible = False
  369. WriteAcknowledge.Visible = False
  370. 'Set Version Number
  371. Version = "Version 1.00"
  372. versiondisplay.Text = Version

  373. 'Set default for Port and Tag Size
  374. Bytes128 = True
  375. COM1 = True
  376. FormatHEX = True
  377. 'Hide all action frames
  378. WriteDataFrame.Visible = False
  379. ReadDataFrame.Visible = False
  380. ByteWriteFrame.Visible = False
  381. Triggertypeframe.Visible = False
  382. DataFormat.Visible = False
  383. PageSelection.Visible = False
  384. ByteSelectionFrame.Visible = False
  385. 'Configure Default Port Settings
  386. MSComm1.CommPort = 1
  387. MSComm1.Settings = "9600,E,8,1"

  388. 'Add Items to Write Action List
  389. TriggerType.AddItem "Single Trigger"
  390. TriggerType.AddItem "Single Auto"
  391. TriggerType.AddItem "FIFO Trigger"
  392. TriggerType.AddItem "FIFO Auto"
  393. TriggerType.AddItem "FIFO Continue"
  394. TriggerType.AddItem "FIFO Repeat"

  395. End Sub

  396. Private Sub Other_Click()
  397. 'Enable Other Actions Frame
  398. ByteWriteFrame.Visible = False
  399. WriteDataFrame.Visible = False
  400. ReadDataFrame.Visible = False
  401. PageSelection.Visible = False
  402. DataFormat.Visible = False
  403. Triggertypeframe.Visible = False
  404. ByteSelectionFrame.Visible = False
  405. StringSent.Text = ""
  406. StringRec.Text = ""
  407. ResponseCodeNumber.Text = ""
  408. ResponseCodeDescription.Text = ""
  409. End Sub
  410. Private Sub Read_Click()
  411. 'Enable Read Frame
  412. Readtag.Enabled = True
  413. CancelRead.Enabled = False
  414. ByteSelectionFrame.Visible = False
  415. Triggertypeframe.Visible = True
  416. DataFormat.Visible = True
  417. PageSelection.Visible = True
  418. ByteWriteFrame.Visible = False
  419. WriteDataFrame.Visible = False
  420. ReadDataFrame.Visible = True
  421. StringSent.Text = ""
  422. StringRec.Text = ""
  423. ResponseCodeNumber.Text = ""
  424. ResponseCodeDescription.Text = ""
  425. End Sub
  426. Private Sub SendWrite_Click()
  427. 'Performs the sending of the data on a Page Send command
  428. Dim Hold As Integer, Temp As String, Buffer As String
  429. Dim count As Integer
  430. Dim pagespecification, endcode As String
  431. Dim test As Integer
  432. Dim satisfied As Boolean

  433. Dim opcodeforwrite As String  '2 digit option code
  434. initarray 'sets array of page markers to 0
  435. If Not MSComm1.PortOpen Then MSComm1.PortOpen = True
  436. Cancelpressed = False
  437. SendWrite.Enabled = False
  438. WriteCancel.Enabled = True
  439. acknowledged = False
  440. For count = Val(StartPage) To (Val(StartPage) + Val(NumberofPages) - 1)
  441.   PageNumbers(count) = 1
  442.   Next
  443.   
  444. If FormatASCII Then
  445. appropriatelength = 8 * NumberofPages
  446. If Len(WriteData) > appropriatelength Then WriteData = Left(WriteData, appropriatelength)
  447.    For count = 1 To (appropriatelength - Len(WriteData))
  448.       WriteData = WriteData + "0"
  449.       Next
  450. End If
  451. If FormatHEX Then
  452. appropriatelength = 16 * NumberofPages
  453. If Len(WriteData) > appropriatelength Then WriteData = Left(WriteData, appropriatelength)
  454.    For count = 1 To (appropriatelength - Len(WriteData))
  455.       WriteData = WriteData + "0"
  456.       Next
  457. End If
  458.       
  459. pagespecification = pageformat()
  460. opcodeforwrite = buildopcode
  461. commandtosend = "02" + opcodeforwrite + pagespecification + WriteData
  462. MSComm1.Output = commandtosend + Chr$(13)
  463. StringSent.Text = commandtosend
  464. ResponseCodeNumber.Text = ""
  465. StringRec.Text = ""
  466. ResponseCodeDescription.Text = ""
  467. 'waitforresponse
  468. satisfied = False
  469. allhide

  470. Do
  471. Buffer = ""
  472.     Do
  473.       DoEvents
  474.       Buffer = Buffer & MSComm1.Input
  475.     Loop Until InStr(Buffer, Chr$(13)) Or Cancelpressed
  476.    ResponseCodeNumber.Text = ""
  477. StringRec.Text = ""
  478. ResponseCodeDescription.Text = ""
  479.   If Not Cancelpressed Then StringRec.Text = Left(Buffer, Len(Buffer) - 1)
  480.   If Not Cancelpressed Then endcode = Left(Buffer, 2)
  481.   If Not Cancelpressed Then ResponseCodeNumber.Text = endcode
  482.   If Not Cancelpressed Then ResponseCodeDescription.Text = EndCodetext(endcode)
  483. If TriggerType = "Single Auto" Or TriggerType = "Single Trigger" Then satisfied = True
  484. If TriggerType = "FIFO Trigger" Then satisfied = True
  485. If TriggerType = "FIFO Continue" And Cancelpressed Then satisfied = True
  486. If TriggerType = "FIFO Repeat" And Cancelpressed Then satisfied = True
  487. If TriggerType = "FIFO Auto" Then satisfied = True
  488. 'Acknowledge a repeat
  489. If TriggerType = "FIFO Continue" And (Not Cancelpressed) And endcode = "00" Then Beep
  490. If TriggerType = "FIFO Continue" And (Not Cancelpressed) Then
  491.     Do
  492.    
  493.     DoEvents
  494.    
  495.     WriteAcknowledge.Visible = True
  496.     Loop Until acknowledged Or Cancelpressed
  497.     End If
  498. If acknowledged Then
  499. MSComm1.Output = "11" + Chr$(13)
  500. ResponseCodeNumber.Text = ""
  501. StringRec.Text = ""
  502. ResponseCodeDescription.Text = ""
  503. End If
  504. acknowledged = False
  505. WriteAcknowledge.Visible = False
  506. If (Not Cancelpressed) And ResponseCodeNumber.Text = "00" Then Beep
  507. Loop Until satisfied
  508. allshow
  509. satisfied = False
  510. Cancelpressed = False
  511. SendWrite.Enabled = True
  512. WriteCancel.Enabled = False
  513. MSComm1.PortOpen = False
  514. End Sub
  515. Private Sub Write_Click()
  516.     'Enable Write Frame
  517.     DataFormat.Visible = True
  518.     PageSelection.Visible = True
  519.     ByteSelectionFrame.Visible = False
  520.     Triggertypeframe.Visible = True
  521.     SendWrite.Enabled = True
  522.     WriteCancel.Enabled = False
  523.     ByteWriteFrame.Visible = False
  524.     WriteDataFrame.Visible = True
  525.     ReadDataFrame.Visible = False
  526.     StringSent.Text = ""
  527.     StringRec.Text = ""
  528.     ResponseCodeNumber.Text = ""
  529.     ResponseCodeDescription.Text = ""
  530. End Sub
複製代碼
...
瀏覽完整內容,請先 註冊登入會員

使用道具檢舉

您需要登錄後才可以回帖 登錄 | 註冊

Powered by Discuz!

© Comsenz Inc.

重要聲明:本討論區是以即時上載留言的方式運作,對所有留言的真實性、完整性及立場等,不負任何法律責任。而一切留言之言論只代表留言者個人意見,並非本網站之立場,用戶不應信賴內容,並應自行判斷內容之真實性。於有關情形下,用戶應尋求專業意見(如涉及醫療、法律或投資等問題)。 由於本討論區受到「即時上載留言」運作方式所規限,故不能完全監察所有留言,若讀者發現有留言出現問題,請聯絡我們。有權刪除任何留言及拒絕任何人士上載留言,同時亦有不刪除留言的權利。切勿上傳和撰寫 侵犯版權(未經授權)、粗言穢語、誹謗、渲染色情暴力或人身攻擊的言論,敬請自律。本網站保留一切法律權利。
回頂部