成人免费AA片在线观看-成人免费a级毛片-成人免费a级毛片无码片2022-成人免费a级毛片无码网站入口-成人免费ā片在线观看-成人免费a视频

wenluderen
人人為我我為人人
級(jí)別: 略有小成
精華主題: 0
發(fā)帖數(shù)量: 186 個(gè)
工控威望: 322 點(diǎn)
下載積分: 6183 分
在線時(shí)間: 43(小時(shí))
注冊(cè)時(shí)間: 2010-09-23
最后登錄: 2024-02-19
查看wenluderen的 主題 / 回貼
樓主  發(fā)表于: 2018-07-23 14:32
MX Component 使用控件通訊 就可以直接PLC內(nèi)部地址的名字,不要在整個(gè)標(biāo)簽。
標(biāo)簽?zāi)芰撕芫?還是不行。


****
控件有很多






感覺三菱每個(gè)可以通訊的硬件 都有一個(gè)對(duì)應(yīng)的  控制可以使用

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

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

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

    #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 "關(guān)閉鏈接"
        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
    人人為我我為人人
    級(jí)別: 略有小成
    精華主題: 0
    發(fā)帖數(shù)量: 186 個(gè)
    工控威望: 322 點(diǎn)
    下載積分: 6183 分
    在線時(shí)間: 43(小時(shí))
    注冊(cè)時(shí)間: 2010-09-23
    最后登錄: 2024-02-19
    查看wenluderen的 主題 / 回貼
    4樓  發(fā)表于: 2018-07-23 15:05
    隨機(jī)讀取

    #Region "隨機(jī)寫入 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
    人人為我我為人人
    級(jí)別: 略有小成
    精華主題: 0
    發(fā)帖數(shù)量: 186 個(gè)
    工控威望: 322 點(diǎn)
    下載積分: 6183 分
    在線時(shí)間: 43(小時(shí))
    注冊(cè)時(shí)間: 2010-09-23
    最后登錄: 2024-02-19
    查看wenluderen的 主題 / 回貼
    5樓  發(fā)表于: 2018-07-23 15:09
    測試隨機(jī)寫入
    #Region "隨機(jī)寫入 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
    人人為我我為人人
    級(jí)別: 略有小成
    精華主題: 0
    發(fā)帖數(shù)量: 186 個(gè)
    工控威望: 322 點(diǎn)
    下載積分: 6183 分
    在線時(shí)間: 43(小時(shí))
    注冊(cè)時(shí)間: 2010-09-23
    最后登錄: 2024-02-19
    查看wenluderen的 主題 / 回貼
    6樓  發(fā)表于: 2018-07-23 15:24
    測試成塊的數(shù)據(jù)讀取
    #Region "測試成塊的數(shù)據(jù)讀取"
        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


    不小心遇見你
    自動(dòng)項(xiàng)目、PLC、視覺、通訊等工控軟件開發(fā)QQ3515716
    級(jí)別: 工控俠客

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

    国产卡一卡二卡三 | 又色又爽又黄18禁美女裸身无遮挡 | 国产无人区码一码二码三mba | 97久久精品午夜一区二区 | 国产精品涩涩涩视频网站 | 99精品一区二区三区无码吞精 | 亚洲精品国精品久久99热 | 精品亚洲成a人在线观看青青 | 夜夜爽妓女8888视频免费观看 | 最近免费中文字幕mv在线视频3 | 国产熟女乱子视频正在播放 | 人人妻人人添人人爽欧美一区 | 国产精品美女在线 | 在线成人精品国产区免费 | 又大又紧又粉嫩18p少妇 | 亚洲综合无码无在线观看 | 69sex久久精品国产麻豆 | 又粗又黑又大的吊av | 婷婷精品国产亚洲av麻豆不片 | 不卡一区二区三区四区 | 日韩av无码中文无码不卡电影 | 婷婷五月综合色视频 | 无码 人妻 在线 视频 | 久久草精品视频 | 国产亚洲日韩欧美一区二区三区 | 黑人巨茎大战欧美白妇 | 精品久久久久久中文字幕 | 国产裸拍裸体视频在线观看 | 欧美午夜特黄aaaaaa片 | 欧美xxxxx高潮喷水麻豆 | 日本道精品一区二区三区 | 亚洲精品国产a久久久久久 中文无码精品一区二区三区 | 亚洲一区二区三区av无码 | 亚洲欧美另类激情综合区蜜芽 | www国产精品内射 | 久久久久亚洲av成人无码电影 | 成在人av抽搐高潮喷水流白浆 | 日本一区二区三区免费播放 | 91视频免费观看 | 国产三级三级三级三级 | 成人a毛片免费全部播放 |