91黄动漫 I 欧美 日韩 国产 成人 在线 I a级成人毛片 I 农村黄色片 I 男生捅女生的肌肌 I 精品99一区二区三区 I 妃光莉av I 日日夜夜操操 I 性中国古装videossex I 久久不卡av I 美女高潮动态图 I 极品美女开粉嫩精品 I 牛牛精品一区二区 I 91精品福利视频 I 成人刺激视频 I 91国内精品视频 I 中国一级特黄毛片大片 I 校长狠狠挺进校花体内小说 I 欧美激情黄色片 I 欧美久久久一区 I 爱豆国产剧免费观看大全剧苏畅 I 麻豆国产人妻欲求不满谁演的 I 亚洲一区二区在线免费观看视频 I 国产超碰av人人做人人爽 I 精品国产第一国产综合精品 I 久久免费看av I 欧美一区二区三区白人 I 国产精品夫妻激情 I 校花被肉干高h潮不断 I 欧美最猛黑人xxxx黑人表情 I 国产欧美日韩一区二区搜索 I 极品女神露脸呻吟啪啪 I 人人天天久久 I 亚洲动漫在线 I 日本91福利区 I 五月天 桃色 开心 I av在线免费观看国产 I 男人添女人的免费视频 I 夜夜穞天天穞狠狠穞

wenluderen
人人為我我為人人
級別: 略有小成
精華主題: 0
發(fā)帖數(shù)量: 185 個(gè)
工控威望: 322 點(diǎn)
下載積分: 6183 分
在線時(shí)間: 43(小時(shí))
注冊時(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è)對應(yīng)的  控制可以使用

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

    精華主題: 3 篇
    發(fā)帖數(shù)量: 2093 個(gè)
    工控威望: 3086 點(diǎn)
    下載積分: 25492 分
    在線時(shí)間: 1560(小時(shí))
    注冊時(shí)間: 2014-01-05
    最后登錄: 2025-12-20
    查看不小心遇見你的 主題 / 回貼
    1樓  發(fā)表于: 2018-07-23 14:40
    項(xiàng)目、視覺、通訊QQ3515716
    wenluderen
    人人為我我為人人
    級別: 略有小成
    精華主題: 0
    發(fā)帖數(shù)量: 185 個(gè)
    工控威望: 322 點(diǎn)
    下載積分: 6183 分
    在線時(shí)間: 43(小時(shí))
    注冊時(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
    人人為我我為人人
    級別: 略有小成
    精華主題: 0
    發(fā)帖數(shù)量: 185 個(gè)
    工控威望: 322 點(diǎn)
    下載積分: 6183 分
    在線時(shí)間: 43(小時(shí))
    注冊時(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
    人人為我我為人人
    級別: 略有小成
    精華主題: 0
    發(fā)帖數(shù)量: 185 個(gè)
    工控威望: 322 點(diǎn)
    下載積分: 6183 分
    在線時(shí)間: 43(小時(shí))
    注冊時(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
    人人為我我為人人
    級別: 略有小成
    精華主題: 0
    發(fā)帖數(shù)量: 185 個(gè)
    工控威望: 322 點(diǎn)
    下載積分: 6183 分
    在線時(shí)間: 43(小時(shí))
    注冊時(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
    人人為我我為人人
    級別: 略有小成
    精華主題: 0
    發(fā)帖數(shù)量: 185 個(gè)
    工控威望: 322 點(diǎn)
    下載積分: 6183 分
    在線時(shí)間: 43(小時(shí))
    注冊時(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
    級別: 工控俠客

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

    主站蜘蛛池模板: 亚洲精品中国国产嫩草影院美女 | 亚洲成av人片在线播放无码 | 免费日韩中文字幕 | 少妇性xxxxxxxxx色野 | 91成人精品一区在线播放 | 色呦呦国产精品 | 午夜免费啪视频在线无码 | 欧美日韩人人模人人爽人人喊 | 一区二区不卡视频 | 国产永久在线 | 日本精品一区二区三区在线观看视频 | 国产成人一区二区三区在线播放 | 精品久久久久久中文字幕无码vr | 国产一区二区女内射 | 国产妇女馒头高清泬20p多毛 | 手机看片1024久久 | 四虎成人精品无码 | 无码精品a∨在线观看十八禁 | 国产精品久久久久影院嫩草 | 粉嫩av一区二区在线播放 | 午夜天堂av天堂久久久 | 狠狠噜天天噜日日噜视频跳一跳 | 亚洲精品v欧洲精品v日韩精品 | 小仙女异导航av福利尤物 | 一本加勒比hezyo国产 | 亚洲s久久久久一区二区 | 一本色道久久综合亚洲精品酒店 | 奶大翘臀尤物np | 日本体内she精高潮 日本成人三级 | 蜜桃麻豆www久久国产精品 | 又粗又硬大战丰满少妇 | 国产美女网站视频 | 91美女在线视频 | 国产精品毛片 | 久久国产a | 亚洲欧洲日本一区二区三区 | 伊人成人动漫 | 在线不卡日韩 | 久久99精品久久久久久动态图 | 2018国产精华国产精品 | 99久久国产综合精品1 | 国产精品久久国产精麻豆99网站 | 色啪av | www日本高清| 欧美色综合| 欧美色图激情 | 伊人天堂网 | 永久av免费在线观看 | 伊人色综合网一区二区三区 | 最新91在线 | 日韩精品无码熟人妻视频 | 国产第一页第二页 | 国产在视频 | 两个人日本www免费版 | 亚洲亚洲人成无码网www | 青青草华人在线 | 日韩v欧美v中文在线 | 成人永久免费 | 久久久久无码精品国产不卡 | 国产一区二区三级 | 福利视频黄色 | 亚洲成人影音 | 丰满的少妇av | 艹逼逼污视频 | 欧美aa | 波多野结衣高清一区二区三区 | 91茄子在线观看 | 国内老熟妇乱子伦视频 | 色综合综合 | 欧美成 人版中文字幕 | 欧美黑人性暴力猛交喷水黑人巨大 | aⅴ网站在线观看 | 国产精品丝袜久久久久久久不卡 | 无修无码h里番在线播放网站 | 欧美a√在线 | 国产午夜高清 | 精品日本免费一区二区三区 | 777米奇色8888狠狠俺去啦 | 蜜桃av在线看 | 欧美激情精品久久久 | 丁香久久婷婷 | 人人澡人人射 | 亚洲国产视频一区 | 中文字幕av亚洲精品一部二部 | 越南女子杂交内射bbwxz | 黄色片在线免费播放 | 亚洲精品自产拍在线观看 | 吃奶摸下的激烈视频 | 国产精品一区二区三区在线免费观看 | 国产欧美日韩中文字幕 | 精品欧美乱码久久久久久 | 亚洲日韩欧美一区视频 | 国产精品无码久久四虎 | 中文字幕人成乱码熟女app | 亚洲精品无码久久久久y | 中文字幕影视 | 天堂国产一区二区三区四区不卡 | 久久婷婷五月综合色国产免费观看 | 久久久久久久久久一毛喷水 |