男人插女人小逼免费视频,国产精品一级久久c片 ,国产一区二区三区精华液,我要看操逼片操逼逼操逼

tangfeng
學(xué)海無(wú)涯
級(jí)別: 探索解密
精華主題: 0
發(fā)帖數(shù)量: 44 個(gè)
工控威望: 143 點(diǎn)
下載積分: 922 分
在線時(shí)間: 97(小時(shí))
注冊(cè)時(shí)間: 2010-01-24
最后登錄: 2025-05-26
查看tangfeng的 主題 / 回貼
樓主  發(fā)表于: 2017-09-02 16:50
'在窗體的Load事件中加入下列代碼對(duì)串口進(jìn)行初始化:
Private Sub Form_Load()
  MSComm1.CommPort = 1                  ' 設(shè)置通信端口號(hào)為COM1
  MSComm1.InputMode = 1                 ' 接收二進(jìn)制型數(shù)據(jù)
  MSComm1.RThreshold = 1                ' 設(shè)置并返回要接收的字符數(shù)
  MSComm1.SThreshold = 1                ' 設(shè)置并返回發(fā)送緩沖區(qū)中允許的最小字符數(shù)
  MSComm1.Settings = "9600,E,7,1"       ' 設(shè)置串口1通信參數(shù)
  MSComm1.PortOpen = True               ' 打開通信端口1
  Timer1.Enabled = False
End Sub
'向PLC發(fā)送指令:02 30 31 30 30 30 32 30 03 35 36,功能是從D0開始讀取32個(gè)字節(jié)數(shù)據(jù)
Private Sub Cmdsend_Click()
  MSComm1.Output = Chr(&H2) & Chr(&H30) & Chr(&H31) & Chr(&H30) & Chr(&H30) & Chr(&H30) & Chr(&H32) & Chr(&H30) & Chr(&H3) & Chr(&H35) & Chr(&H38)
  Timer1.Enabled = True
End Sub
'獲得各輸入端口狀態(tài)
Private Sub Timer1_Timer()
  Dim Inbyte() As Byte
  Dim buffer As String
  ReDim Inbyte(100)
  Inbyte = MSComm1.Input                         '返回的數(shù)據(jù)串
  For i = LBound(Inbyte) To UBound(Inbyte)
     buffer = buffer + Hex(Inbyte(i)) + Chr(32)
  Next i
  'Text1.Text = buffer                            '顯示返回的數(shù)據(jù)串,需自己添加TextBox
  If Hex(Inbyte(2)) = "31" Then                  '31表示觸點(diǎn)閉合
    Shape1(0).FillColor = QBColor(12)
  Else                                           '30表示觸點(diǎn)斷開
    Shape1(0).FillColor = QBColor(10)
  End If
  If Hex(Inbyte(6)) = "31" Then
    Shape1(1).FillColor = QBColor(12)
  Else
    Shape1(1).FillColor = QBColor(10)
  End If
  If Hex(Inbyte(10)) = "31" Then
    Shape1(2).FillColor = QBColor(12)
  Else
    Shape1(2).FillColor = QBColor(10)
  End If
  If Hex(Inbyte(14)) = "31" Then
    Shape1(3).FillColor = QBColor(12)
  Else
    Shape1(3).FillColor = QBColor(10)
  End If
  If Hex(Inbyte(18)) = "31" Then
    Shape1(4).FillColor = QBColor(12)
  Else
    Shape1(4).FillColor = QBColor(10)
  End If
  If Hex(Inbyte(22)) = "31" Then
    Shape1(5).FillColor = QBColor(12)
  Else
    Shape1(5).FillColor = QBColor(10)
  End If
  If Hex(Inbyte(26)) = "31" Then
    Shape1(6).FillColor = QBColor(12)
  Else
    Shape1(6).FillColor = QBColor(10)
  End If
  If Hex(Inbyte(30)) = "31" Then
    Shape1(7).FillColor = QBColor(12)
  Else
    Shape1(7).FillColor = QBColor(10)
  End If
  If Hex(Inbyte(34)) = "31" Then
    Shape1(8).FillColor = QBColor(12)
  Else
    Shape1(8).FillColor = QBColor(10)
  End If
  If Hex(Inbyte(38)) = "31" Then
    Shape1(9).FillColor = QBColor(12)
  Else
    Shape1(9).FillColor = QBColor(10)
  End If
  If Hex(Inbyte(42)) = "31" Then
    Shape1(10).FillColor = QBColor(12)
  Else
    Shape1(10).FillColor = QBColor(10)
  End If
  If Hex(Inbyte(46)) = "31" Then
    Shape1(11).FillColor = QBColor(12)
  Else
    Shape1(11).FillColor = QBColor(10)
  End If
  If Hex(Inbyte(50)) = "31" Then
    Shape1(12).FillColor = QBColor(12)
  Else
    Shape1(12).FillColor = QBColor(10)
  End If
  If Hex(Inbyte(54)) = "31" Then
    Shape1(13).FillColor = QBColor(12)
  Else
    Shape1(13).FillColor = QBColor(10)
  End If
  If Hex(Inbyte(58)) = "31" Then
    Shape1(14).FillColor = QBColor(12)
  Else
    Shape1(14).FillColor = QBColor(10)
  End If
  If Hex(Inbyte(62)) = "31" Then
    Shape1(15).FillColor = QBColor(12)
  Else
    Shape1(15).FillColor = QBColor(10)
  End If
  Timer1.Enabled = False
End Sub
'當(dāng)退出程序時(shí),關(guān)閉串行口
Private Sub Cmdquit_Click()
  MSComm1.PortOpen = False           '關(guān)閉串口
  Unload Me
End Sub
// 讀不到PLC 輸入點(diǎn),下標(biāo)越界,望高手指點(diǎn)修改
j654346731
級(jí)別: 略有小成
精華主題: 0
發(fā)帖數(shù)量: 124 個(gè)
工控威望: 216 點(diǎn)
下載積分: 4215 分
在線時(shí)間: 145(小時(shí))
注冊(cè)時(shí)間: 2016-02-18
最后登錄: 2025-02-24
查看j654346731的 主題 / 回貼
1樓  發(fā)表于: 2017-09-06 16:52
收藏了
yhtxiao
級(jí)別: 探索解密
精華主題: 0
發(fā)帖數(shù)量: 36 個(gè)
工控威望: 145 點(diǎn)
下載積分: 496 分
在線時(shí)間: 69(小時(shí))
注冊(cè)時(shí)間: 2011-05-19
最后登錄: 2025-05-24
查看yhtxiao的 主題 / 回貼
2樓  發(fā)表于: 2017-09-07 21:33
反饋數(shù)據(jù)是8位數(shù)據(jù)  用串口監(jiān)測(cè)軟件看一下數(shù)據(jù)結(jié)構(gòu)應(yīng)該很好理解
duquanplc
DDD
級(jí)別: 略有小成
精華主題: 0
發(fā)帖數(shù)量: 260 個(gè)
工控威望: 404 點(diǎn)
下載積分: 703 分
在線時(shí)間: 220(小時(shí))
注冊(cè)時(shí)間: 2008-08-25
最后登錄: 2025-05-01
查看duquanplc的 主題 / 回貼
3樓  發(fā)表于: 2017-09-08 21:57
為什么不用專用協(xié)議做呢?格式一或格式四都可。
不小心遇見你
自動(dòng)項(xiàng)目、PLC、視覺、通訊等工控軟件開發(fā)QQ3515716
級(jí)別: 工控俠客

精華主題: 3 篇
發(fā)帖數(shù)量: 2100 個(gè)
工控威望: 3023 點(diǎn)
下載積分: 25362 分
在線時(shí)間: 1498(小時(shí))
注冊(cè)時(shí)間: 2014-01-05
最后登錄: 2025-05-31
查看不小心遇見你的 主題 / 回貼
4樓  發(fā)表于: 2017-09-09 14:38
不要這樣寫程序 給你推薦個(gè)官方使用的控件即可 使用方便
MX Component
項(xiàng)目、視覺、通訊QQ3515716
roger614
級(jí)別: 略有小成
精華主題: 0
發(fā)帖數(shù)量: 78 個(gè)
工控威望: 235 點(diǎn)
下載積分: 472 分
在線時(shí)間: 154(小時(shí))
注冊(cè)時(shí)間: 2007-10-28
最后登錄: 2018-09-26
查看roger614的 主題 / 回貼
5樓  發(fā)表于: 2018-03-10 14:15
用4樓方法編寫簡(jiǎn)單
gafika
級(jí)別: 略有小成
精華主題: 0
發(fā)帖數(shù)量: 17 個(gè)
工控威望: 395 點(diǎn)
下載積分: 2341 分
在線時(shí)間: 41(小時(shí))
注冊(cè)時(shí)間: 2018-02-16
最后登錄: 2025-05-29
查看gafika的 主題 / 回貼
6樓  發(fā)表于: 2018-03-10 18:26
ASCII 跟 HEX 要先搞清楚。

图片区小说区视频区综合| 91av精品在线免费观看| 亚洲最大成人网在线观看| 欧美性福利免费观看视频| 韩国激情电影善良的嫂子| 91精品国产综合久久不乱| 亚洲国产婷婷六月丁香伊| 国产精品三级女人国产香蕉| 国内精品久久波多野结衣| 欧美一线高本道高清免费| 99无码精品热在线观看| 我要看女人靠逼| 77777日本欧美在线| 欧美一区日韩精品精东影业| 亚洲国产av午夜福利精品| 小舞屈辱打开双腿自慰出白浆| 大学生高潮无套内谢视频| 99久久久久久精品四季| 97在线人妻免费的视频| 在线看欧美三级中文经典| 99热在线都是精品免费| 九九热这里只有精品26| 男人操逼视频a| 人妻妺妺窝人体色www聚色窝 | 嘴巴周围总是长白色的小点| 大鸡巴轮肏大奶骚屄高清| 一区二区深夜影院在线观看| 欧美日韩一区二区三区人妻| 亚洲男人av天堂东京热| 97影院午夜视频免费观看| 欧美一区二三区好的精华液| 男人的鸡鸡女人的逼软件| 国产精品久久久久精品紧| 中文字幕av一区| 午夜性刺激在线观看免费| www国产视频| 一边捏奶头一边高潮视频| 久久久美腿丝袜夜夜夜电影| 手机电影免费一区二区三区| 久青草视频免费在线观看| 大吊日小逼免费黄色电影|