| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 264 人关注过本帖
标题:请问各位高手,下面这段程序什么意思,
只看楼主 加入收藏
dhp
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2014-6-13
收藏
 问题点数:0 回复次数:0 
请问各位高手,下面这段程序什么意思,
ElseIf RPLC1 Then
        RPLC1 = False: ParameterForm.OverTimer.Enabled = False
        If RBin(0) = &H2 And LRBin >= 812 Then
            For i = 1 To 809
                sum = sum + CLng(RBin(i))
            Next i
            j = 0
            If sum Mod 256 = AscToLng(RBin(810)) * 16 + AscToLng(RBin(811)) Then
                For i = 0 To 14
                    DataBuffer(i) = DataConvert(AscToLng(RBin(j + 5)), AscToLng(RBin(j + 6)), AscToLng(RBin(j + 7)), AscToLng(RBin(j + 8)))
                    j = j + 4
                Next i
                SendCmd = Chr(5) & "00FFWR0D1000C94B"
                If InfoScroll Then
                    InfoList.Text = InfoList.Text & "TXD: " & SendCmd & vbCrLf
                    InfoList.SelStart = Len(InfoList.Text) - 1
                End If
                MSComm1.Output = SendCmd
                RPLC2 = True
                ParameterForm.OverTimer.Enabled = True
            Else
                MsgBox "参数从PLC读取错误!", vbExclamation, "参数设置"
                ParameterForm.ReadfromPLC.Enabled = True: ParameterForm.WritetoPLC.Enabled = True
            End If
        Else
            MsgBox "参数从PLC读取错误!", vbExclamation, "参数设置"
            ParameterForm.ReadfromPLC.Enabled = True: ParameterForm.WritetoPLC.Enabled = True
        End If
搜索更多相关主题的帖子: False 
2014-06-13 14:05
快速回复:请问各位高手,下面这段程序什么意思,
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.018219 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved