国产无套水多在线观看-国产无套无码aⅴ在线观看-国产无套在线观看视频-国产午夜91福利一区二区-国产午夜av秒播-国产午夜av秒播在线观看

wenluderen
人人為我我為人人
級別: 略有小成
精華主題: 0
發帖數量: 186 個
工控威望: 322 點
下載積分: 6183 分
在線時間: 43(小時)
注冊時間: 2010-09-23
最后登錄: 2024-02-19
查看wenluderen的 主題 / 回貼
樓主  發表于: 2018-07-23 14:32
MX Component 使用控件通訊 就可以直接PLC內部地址的名字,不要在整個標簽。
標簽能了很久 還是不行。


****
控件有很多






感覺三菱每個可以通訊的硬件 都有一個對應的  控制可以使用

    
本帖最近評分記錄:
  • 下載積分:+5(木木2012) 感謝分享!
    不小心遇見你
    自動項目、PLC、視覺、通訊等工控軟件開發QQ3515716
    級別: 工控俠客

    精華主題: 3 篇
    發帖數量: 2056 個
    工控威望: 2975 點
    下載積分: 25212 分
    在線時間: 1447(小時)
    注冊時間: 2014-01-05
    最后登錄: 2025-02-06
    查看不小心遇見你的 主題 / 回貼
    1樓  發表于: 2018-07-23 14:40
    項目、視覺、通訊QQ3515716
    wenluderen
    人人為我我為人人
    級別: 略有小成
    精華主題: 0
    發帖數量: 186 個
    工控威望: 322 點
    下載積分: 6183 分
    在線時間: 43(小時)
    注冊時間: 2010-09-23
    最后登錄: 2024-02-19
    查看wenluderen的 主題 / 回貼
    2樓  發表于: 2018-07-23 14:46
    驗證通過AxActUtlTypeLib.AxActUtlType訪問Q04UDV的CPU,硬件接口為以太網
    ***
    新建一個VB.net  ,窗口程序,在工具欄里面添加 控件
    如下圖:

    wenluderen
    人人為我我為人人
    級別: 略有小成
    精華主題: 0
    發帖數量: 186 個
    工控威望: 322 點
    下載積分: 6183 分
    在線時間: 43(小時)
    注冊時間: 2010-09-23
    最后登錄: 2024-02-19
    查看wenluderen的 主題 / 回貼
    3樓  發表于: 2018-07-23 15:00
    添加OPEN 和CLOSE函數

    #Region "打開鏈接"
        Private Sub btn_Open_Click(sender As Object, e As EventArgs) Handles btn_Open.Click
            Dim iReturnCode As Integer              'Return code
            Dim iLogicalStationNumber As Integer    'LogicalStationNumber for ActUtlType

            ClearDisplay()

            Try
                If GetIntValue(txt_LogicalStationNumber, iLogicalStationNumber) = False Then
                    'If failed, this process is end.
                    Exit Sub
                End If
                AxActUtlType1.ActLogicalStationNumber = iLogicalStationNumber

                iReturnCode = AxActUtlType1.Open()

                If iReturnCode = 0 Then
                    'When the Open method is succeeded, disable the TextBox of 'LogocalStationNumber'.
                    txt_LogicalStationNumber.Enabled = False
                End If
            Catch exception As Exception
                MessageBox.Show(exception.Message, Name, MessageBoxButtons.OK, MessageBoxIcon.Error)
                Exit Sub

            End Try
            txt_ReturnCode.Text = String.Format("0x{0:x8} [HEX]", iReturnCode)
        End Sub
    #End Region

    **************
    #Region "關閉鏈接"
        Private Sub btn_Close_Click(sender As Object, e As EventArgs) Handles btn_Close.Click
            Dim iReturnCode As Integer     'Return code
            ClearDisplay()


            Try
                iReturnCode = AxActUtlType1.Close()
                If iReturnCode = 0 Then
                    txt_LogicalStationNumber.Enabled = True
                End If

            Catch exception As Exception
                MessageBox.Show(exception.Message, Name, MessageBoxButtons.OK, MessageBoxIcon.Error)


            End Try
            txt_ReturnCode.Text = String.Format("0x{0:x8} [HEX]", iReturnCode)
        End Sub
    #End Region

    ****
    測試可以通過

    wenluderen
    人人為我我為人人
    級別: 略有小成
    精華主題: 0
    發帖數量: 186 個
    工控威望: 322 點
    下載積分: 6183 分
    在線時間: 43(小時)
    注冊時間: 2010-09-23
    最后登錄: 2024-02-19
    查看wenluderen的 主題 / 回貼
    4樓  發表于: 2018-07-23 15:05
    隨機讀取

    #Region "隨機寫入 PLC里面的地址"
        Private Sub btn_ReadDeviceRandom2_Click(sender As Object, e As EventArgs) Handles btn_ReadDeviceRandom2.Click
            Dim iReturnCode As Integer              'Return code
            Dim szDeviceName As String = ""         'List data for 'DeviceName'
            Dim iNumberOfDeviceName As Integer = 0  'Data for 'DeviceSize'
            Dim sharrDeviceValue() As Short         'Data for 'DeviceValue'
            Dim szarrData() As String               'Array for 'Data'
            Dim iNumber As Integer                  'Loop counter

            'Displayed output data is cleared.
            ClearDisplay()

            'Get the list of 'DeviceName'.
            '  Join each line(StringType array) of 'DeviceName' by the separator '\n',
            '  and create a joined string data.
            szDeviceName = String.Join(vbLf, txt_DeviceNameRandom.Lines)

            If GetIntValue(txt_DeviceSizeRandom, iNumberOfDeviceName) = False Then
                'If failed, this process is end.
                Exit Sub
            End If

            ReDim sharrDeviceValue(iNumberOfDeviceName - 1)

            Try
                iReturnCode = AxActUtlType1.ReadDeviceRandom2(szDeviceName,  iNumberOfDeviceName, sharrDeviceValue(0))
            Catch exException As Exception
                MessageBox.Show(exException.Message, Name, MessageBoxButtons.OK, MessageBoxIcon.Error)
                Exit Sub
            End Try
            txt_ReturnCode.Text = String.Format("0x{0:x8} [HEX]", iReturnCode)

            If iReturnCode = 0 Then

                'Assign the array for the read data.
                ReDim szarrData(iNumberOfDeviceName - 1)

                'Copy the read data to the 'lpszarrData'.
                For iNumber = 0 To iNumberOfDeviceName - 1
                    szarrData(iNumber) = sharrDeviceValue(iNumber).ToString()
                Next iNumber

                'Set the read data to the 'Data', and display it.
                txt_Data.Lines = szarrData
            End If

        End Sub

    #End Region


      
    wenluderen
    人人為我我為人人
    級別: 略有小成
    精華主題: 0
    發帖數量: 186 個
    工控威望: 322 點
    下載積分: 6183 分
    在線時間: 43(小時)
    注冊時間: 2010-09-23
    最后登錄: 2024-02-19
    查看wenluderen的 主題 / 回貼
    5樓  發表于: 2018-07-23 15:09
    測試隨機寫入
    #Region "隨機寫入 PLC里面的地址"
        Private Sub btn_WriteDeviceRandom2_Click(sender As Object, e As EventArgs) Handles btn_WriteDeviceRandom2.Click

            Dim iReturnCode As Integer              'Return code
            Dim szDeviceName As String = ""         'List data for 'DeviceName'
            Dim iNumberOfDeviceName As Integer = 0  'Data for 'DeviceSize'
            Dim sharrDeviceValue() As Short         'Data for 'DeviceValue'

            'Displayed output data is cleared.
            ClearDisplay()

            'Get the list of 'DeviceName'.
            'Join each line(StringType array) of 'DeviceName' by the separator '\n',
            'and create a joined string data.
            szDeviceName = String.Join(vbLf, txt_DeviceNameRandom.Lines)

            'Check the 'DeviceSize'.(If succeeded, the value is gotten.)
            If GetIntValue(txt_DeviceSizeRandom, iNumberOfDeviceName) = False Then
                'If failed, this process is end.
                Exit Sub
            End If

            'Check the 'DeviceValue'.(If succeeded, the value is gotten.)
            ReDim sharrDeviceValue(iNumberOfDeviceName - 1)
            If GetShortArray(txt_DeviceDataRandom, sharrDeviceValue) = False Then
                'If failed, this process is end.
                Exit Sub
            End If

            Try
                iReturnCode = AxActUtlType1.WriteDeviceRandom2(szDeviceName, iNumberOfDeviceName, sharrDeviceValue(0))
            Catch exception As Exception

                MessageBox.Show(exception.Message, Text, MessageBoxButtons.OK, MessageBoxIcon.Error)
                Exit Sub

            End Try
            txt_ReturnCode.Text = String.Format("0x{0:x8} [HEX]", iReturnCode)


        End Sub
    #End Region

    wenluderen
    人人為我我為人人
    級別: 略有小成
    精華主題: 0
    發帖數量: 186 個
    工控威望: 322 點
    下載積分: 6183 分
    在線時間: 43(小時)
    注冊時間: 2010-09-23
    最后登錄: 2024-02-19
    查看wenluderen的 主題 / 回貼
    6樓  發表于: 2018-07-23 15:24
    測試成塊的數據讀取
    #Region "測試成塊的數據讀取"
        Private Sub btn_ReadDeviceBlock2_Click(sender As Object, e As EventArgs) Handles btn_ReadDeviceBlock2.Click

          Dim iReturnCode As Integer              'Return code
            Dim szDeviceName As String = ""         'List data for 'DeviceName'
            Dim iNumberOfDeviceName As Integer = 0  'Data for 'DeviceSize'
            Dim sharrDeviceValue() As Short         'Data for 'DeviceValue'
            Dim szarrData() As String               'Array for 'Data'
            Dim iNumber As Integer                  'Loop counter


            'Displayed output data is cleared.
            ClearDisplay()

            'Get the list of 'DeviceName'.
            '  Join each line(StringType array) of 'DeviceName' by the separator '\n',
            '  and create a joined string data.
            szDeviceName = String.Join(vbLf, txt_DeviceNameBlock.Lines)

            'Check the 'DeviceSize'.(If succeeded, the value is gotten.)
            If GetIntValue(txt_DeviceSizeBlock, iNumberOfDeviceName) = False Then
                'If failed, this process is end.
                Exit Sub
            End If

            'Assign the array for 'DeviceValue'.
            ReDim sharrDeviceValue(iNumberOfDeviceName - 1)

            Try
                iReturnCode = AxActUtlType1.ReadDeviceBlock2(szDeviceName, iNumberOfDeviceName, sharrDeviceValue(0))
            Catch exException As Exception
                MessageBox.Show(exException.Message, Name, MessageBoxButtons.OK, MessageBoxIcon.Error)
                Exit Sub
            End Try


            txt_ReturnCode.Text = String.Format("0x{0:x8} [HEX]", iReturnCode)
            If iReturnCode = 0 Then

                'Assign array for the read data.
                ReDim szarrData(iNumberOfDeviceName - 1)

                'Copy the read data to the 'lpszarrData'.
                For iNumber = 0 To iNumberOfDeviceName - 1
                    szarrData(iNumber) = sharrDeviceValue(iNumber).ToString()
                Next iNumber

                'Set the read data to the 'Data', and display it.
                txt_Data.Lines = szarrData
            End If


        End Sub
    #End Region


    不小心遇見你
    自動項目、PLC、視覺、通訊等工控軟件開發QQ3515716
    級別: 工控俠客

    精華主題: 3 篇
    發帖數量: 2056 個
    工控威望: 2975 點
    下載積分: 25212 分
    在線時間: 1447(小時)
    注冊時間: 2014-01-05
    最后登錄: 2025-02-06
    查看不小心遇見你的 主題 / 回貼
    7樓  發表于: 2018-07-23 18:37
    項目、視覺、通訊QQ3515716
    nlb2001
    級別: 略有小成
    精華主題: 0
    發帖數量: 96 個
    工控威望: 237 點
    下載積分: 577 分
    在線時間: 65(小時)
    注冊時間: 2013-02-03
    最后登錄: 2025-01-31
    查看nlb2001的 主題 / 回貼
    8樓  發表于: 2018-08-03 11:19
    神級操作,先收藏了!!
    zq362622701
    級別: 略有小成
    精華主題: 0
    發帖數量: 48 個
    工控威望: 270 點
    下載積分: 2075 分
    在線時間: 53(小時)
    注冊時間: 2012-12-21
    最后登錄: 2025-01-19
    查看zq362622701的 主題 / 回貼
    9樓  發表于: 2018-08-09 10:57
    現在都在搞上位機了
    zjh0102
    級別: 論壇先鋒
    精華主題: 0
    發帖數量: 59 個
    工控威望: 1259 點
    下載積分: 1783 分
    在線時間: 102(小時)
    注冊時間: 2018-01-27
    最后登錄: 2022-03-09
    查看zjh0102的 主題 / 回貼
    10樓  發表于: 2019-01-22 10:18
    想看C#的
    cd_looper
    好想放飛自我
    級別: 工控俠客
    精華主題: 0
    發帖數量: 367 個
    工控威望: 2014 點
    下載積分: 3373 分
    在線時間: 225(小時)
    注冊時間: 2013-11-16
    最后登錄: 2024-12-28
    查看cd_looper的 主題 / 回貼
    11樓  發表于: 2019-01-22 11:07
    想看Labview的  
    Easy doesn't enter into grown-up life!!!
    V:ZQL276438265

    主站蜘蛛池模板: 国产精品51麻豆CM传媒 | 欧美激情精品一区二区 | 国产成人精品无码免费播放 | 日本日本乱码伦视频在线 | 99久热精品免费观看四虎 | 亚洲国产欧美日韩在线人成 | 91在线精品亚洲一区二区 | av老司机 | 国产偷抇久久精品A片图片 国产偷抇久久一级精品a片 | 欧美亚洲精品一区二三区8V | 国产成人精品免费久久久久 | 精品韩国乱人伦久久久久久 | 国产日韩欧美精品另类一区二区 | 国产精品长长久久 | 岛国一本二本在线观看 | 色妺妺在线视频喷水 | 亚洲第一页在线播放 | 久久无码人妻中文字幕免费 | 日日摸夜夜添夜夜添高潮免费A片 | 国产中文一区二区苍井空 | 欧美黑人巨大最猛性xxxxx | 2024最新无码国产在线观看 | 日本xxxx片免费观看国产 | 成年女人喷潮毛片免费播放 | 91精品视频免费在线观看 | 欧美日韩国产有码在线观看 | 日本成人在线免费 | 性猛交富婆ⅹxxx乱大交 | 精品国产一区二区三区久久久久久 | 亚洲综合 一区二区三区 | 国产乱伦一区二区三区 | 91网站国产 | 欧美一级特黄aaaaaa在线看首页 | 蜜臀国产一区二区三区无码A片 | 国产制服丝袜在线观看 | 熟女人妻上司中文字幕 | 日本毛片久久国产精品 | 亚洲AV秘 无码一区二区久久 | 无码欧美熟妇人妻蜜桃天美 | 国产一卡2卡3卡四卡精品 | 国产精品国产三级国v麻豆 国产精品国产三级国产 |