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 夜夜穞天天穞狠狠穞

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


****
控件有很多






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

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

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

    wenluderen
    人人為我我為人人
    級別: 略有小成
    精華主題: 0
    發(fā)帖數(shù)量: 185 個
    工控威望: 322 點
    下載積分: 6183 分
    在線時間: 43(小時)
    注冊時間: 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 個
    工控威望: 322 點
    下載積分: 6183 分
    在線時間: 43(小時)
    注冊時間: 2010-09-23
    最后登錄: 2024-02-19
    查看wenluderen的 主題 / 回貼
    4樓  發(fā)表于: 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
    發(fā)帖數(shù)量: 185 個
    工控威望: 322 點
    下載積分: 6183 分
    在線時間: 43(小時)
    注冊時間: 2010-09-23
    最后登錄: 2024-02-19
    查看wenluderen的 主題 / 回貼
    5樓  發(fā)表于: 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
    發(fā)帖數(shù)量: 185 個
    工控威望: 322 點
    下載積分: 6183 分
    在線時間: 43(小時)
    注冊時間: 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


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

    精華主題: 3 篇
    發(fā)帖數(shù)量: 2083 個
    工控威望: 3076 點
    下載積分: 25469 分
    在線時間: 1555(小時)
    注冊時間: 2014-01-05
    最后登錄: 2025-12-07
    查看不小心遇見你的 主題 / 回貼
    7樓  發(fā)表于: 2018-07-23 18:37
    項目、視覺、通訊QQ3515716
    nlb2001
    級別: 略有小成
    精華主題: 0
    發(fā)帖數(shù)量: 97 個
    工控威望: 237 點
    下載積分: 577 分
    在線時間: 65(小時)
    注冊時間: 2013-02-03
    最后登錄: 2025-11-06
    查看nlb2001的 主題 / 回貼
    8樓  發(fā)表于: 2018-08-03 11:19
    神級操作,先收藏了!!
    zq362622701
    級別: 略有小成
    精華主題: 0
    發(fā)帖數(shù)量: 47 個
    工控威望: 270 點
    下載積分: 2075 分
    在線時間: 55(小時)
    注冊時間: 2012-12-21
    最后登錄: 2025-07-29
    查看zq362622701的 主題 / 回貼
    9樓  發(fā)表于: 2018-08-09 10:57
    現(xiàn)在都在搞上位機了
    zjh0102
    級別: 論壇先鋒
    精華主題: 0
    發(fā)帖數(shù)量: 56 個
    工控威望: 1259 點
    下載積分: 1783 分
    在線時間: 102(小時)
    注冊時間: 2018-01-27
    最后登錄: 2022-03-09
    查看zjh0102的 主題 / 回貼
    10樓  發(fā)表于: 2019-01-22 10:18
    想看C#的
    cd_looper
    好想放飛自我
    級別: 工控俠客
    精華主題: 0
    發(fā)帖數(shù)量: 366 個
    工控威望: 2019 點
    下載積分: 3374 分
    在線時間: 226(小時)
    注冊時間: 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
    • «
    • 1
    • 2
    • »
    • Pages: 1/2     Go

    主站蜘蛛池模板: 亚洲乱码国产乱码精品天美传媒 | 日本丶国产丶欧美色综合 | 亚洲精品狼友在线播放 | 极品少妇hdxx麻豆hdxx | 手机在线看片福利 | 精品国产不卡一区二区三区 | 中文字幕巨乳 | 麻豆国产尤物av尤物在线看 | 中文字幕高清 | 筱崎爱三级在线播放 | 五月激情六月 | 久久国产主播福利在线 | 日韩欧美在线一区二区 | 亚洲天堂8 | 亚洲一区综合图区 | 91免费在线看片 | 一级特黄bbbbb免费观看 | 天堂久久一区二区 | 日本熟妇大屁股人妻 | 午夜歪影 | 亚洲国产成人久久一区久久 | 中文字幕乱码亚洲无线码三区 | 99精品视频在线在线观看视频 | 牛牛影视一区二区三区免费看 | 2021在线精品自偷自拍无码 | 依依成人在线视频 | 99视频在线免费观看 | 久久久国产一区二区三区四区小说 | 欧美成aⅴ人高清怡红院 | 国产三级av在在线观看 | 伊人色综合一区二区三区 | 欧洲精品在线视频 | 亚洲精品在线视频观看 | www久久久天天com | 色五婷婷 | 三级全黄的视频在线观看 | 蜜臀免费av | 少妇粉嫩小泬喷水视频在线观看 | 狂野欧美性猛交免费视频 | 国产精品久久久久久久久免费丝袜 | 国产女人高潮抽搐喷水视频 | 欧美三级a做爰在线观看 | 性免费网站 | 开心激情网五月天 | 主播大秀一区二区三区 | 精品卡1卡二卡三国色天香 国产欧美在线免费观看 | 国产精品激情av久久久青桔 | 妇欲欢公爽高h欢欲苏欢苏望章 | 把腿张开老子臊烂你多p视频 | 欧美一区二区在线视频观看 | 伊甸园成人入口 | 另类亚洲小说图片综合区 | 日韩精品在线观看网站 | 另类捆绑调教少妇 | 久久精精品久久久久噜噜 | 国产娇喘视频 | 国产91对白在线播放 | 五月深爱婷婷 | 人人干超碰| 人妻丰满熟妇av无码处处不卡 | 亚洲精品久久久蜜桃网尤妮丝 | 国产又色又爽 | 日韩h在线 | 香蕉在线网站 | 一区二区三区免费视频播放器 | 丁香综合五月 | 中日av乱码一区二区三区乱码 | 国产一区日韩 | 天天澡夜夜澡人人澡 | 国产美女被遭强高潮网站不再 | 国产无套粉嫩白浆内谢网站 | 日韩精品人妻系列一区二区三区 | 操操日日| 欧美日韩一区二区三区四区 | av在线首页| 国产suv精品一区二区四区三区 | 国产又粗又猛视频免费 | 欧美人与禽猛交狂配 | 国产做床爱无遮挡免费视频 | 色爽爽爽爽爽爽爽爽 | 91视频一88av | 男人看片 | 中文在线无码高潮潮喷在线播放 | www.桃色av嫩草.com | 激情综合色综合啪啪五月丁香 | 婷婷色网 | 久久久久久欧美精品se一二三四 | 西欧free性满足hd老熟妇 | 免费不卡无码av在线观看 | 欧美城天堂网 | 日韩v在线观看 | 男女做爰猛烈叫床视频免费 | 欧美高潮喷水大叫 | 黑人干亚洲女 | 国产精品久久久久久久久免费相片 | 久久久久久久久99 | 黑人暴操 | 男女一进一出超猛烈的视频 | 久久亚洲精精品中文字幕 |