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

    主站蜘蛛池模板: 久久久人成影片免费观看 | 亚洲国产精品第一页 | 国产成人综合精品 | 黑人ⅴvideo粗暴亚洲娇小 | 国产黄色av网站 | 少妇人妻陈艳和黑人教练 | xxx一区二区 | 久久婷婷国产综合精品 | 香蕉在线播放 | 99精品色| 久久精品久久国产 | 狠狠色婷婷久久一区二区三区 | 精品久久久久久无码中文野结衣 | 亚洲乱码日产精品bd在线观看 | 性欧美激情aa在线看 | 91精品久久久久久久久中文字幕 | 亚洲国产va精品久久久不卡综合 | 久久久久久美女精品啪啪 | 国产精品v亚洲精品v日韩精品 | 国产精品xvideos88 | 中文字幕无码精品亚洲资源网久久 | 国产偷自视频区视频一区二区 | 在线中文天堂 | 久久精品成人无码观看不卡 | 波多野结衣av无码 | 丰满熟妇被猛烈进入高清片 | 中文字幕99页 | 日韩av免费在线看 | 黄色在线免费网站 | 无尺码精品产品国产 | 欧美在线一二 | 亚洲国产精品综合久久2007 | 国产又黑又粗又黄又爽对白 | 偷国内自拍视频在线观看 | 欧美综合影院 | 国产精品久久久久久久久久久久冷 | 五月丁香激激情亚洲综合 | 狠狠色丁香久久综合婷婷 | 人妻熟妇女的欲乱系列 | 亚洲第一色视频 | 丰满少妇夜夜爽爽高潮水 | 欧美高清一级 | 最新无码人妻在线不卡 | 岛国av在线免费 | 毛片大全真人在线 | 国产超高清麻豆精品传媒麻豆精品 | 玖玖爱在线精品视频 | 在线高清亚洲精品二区 | 日韩六区 | www.毛片com | 四虎在线观看视频 | 日本a级片免费 | 乌克兰粉嫩xxx极品hd | 精品国产一区在线 | 午夜视频网站在线观看 | 亚洲网址在线观看 | 精品av熟女一区二区偷窥海滩 | 亚洲欧美日韩国产 | 无码熟妇αⅴ人妻又粗又大 | 欧美xxxx喷水 | 亚洲aaaa级特黄毛片 | 国产精品美女乱子伦高潮 | 亚洲欧洲精品成人 | 欧美丰满老熟妇xxxxx性 | 伊人久久大香线蕉aⅴ色 | 国产精品污污 | 久久国产乱子伦精品免费午夜,浪货好紧 | 精品国产自线午夜福利在线观看 | 在线精品视频一区二区三四 | 国产在线乱码一区二三区 | 自拍偷拍欧美亚洲 | 国产99视频精品免费视频7 | 2022国产成人精品视频人 | 无码内射成人免费喷射 | 538在线一区二区精品国产 | 国产高清在线男人的天堂 | 中文字幕日本在线观看 | 国产欧美va欧美va在线 | 嫩草网| 国产成人综合亚洲看片 | 人妻系列无码专区69影院 | 99国产欧美另类久久久精品 | 狠狠躁18三区二区一区 | 成人性生交免费大片 | 国产区在线视频 | 上原瑞穗av在线播放 | 国产乱人伦无无码视频试看 | 亚洲三级在线免费观看 | 成人福利在线 | www.99爱 | 无遮挡边吃奶边做刺激视频 | 日本一区二区三区免费播放视频站 | 久久人人爽爽人人爽人人片av | 少妇丰满尤物大尺度写真 | 黄色avav | 久久婷婷中文字幕 | 果冻传媒色av国产在线播放 | 快穿名器高h喷水荡肉爽文日本 | 亚洲中文字幕无码一去台湾 |