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

午夜339351
級別: 實習會員
精華主題: 0
發帖數量: 3 個
工控威望: 46 點
下載積分: 673 分
在線時間: 0(小時)
注冊時間: 2018-03-23
最后登錄: 2018-03-23
查看午夜339351的 主題 / 回貼
樓主  發表于: 2018-03-23 16:29
圖片:
采用MX COMPONENT 界面監視軟元件狀態,用的entryDeviceStatus指令,通訊界面提醒"超出索引"

       #region  "監視元件狀態"
        private void btn_EntryDeviceStatus_Click(object sender, EventArgs e)
        {
            int iReturnCode;                //Return code
            String szDeviceName = "";        //List data for 'DeviceName'
            int iNumberOfData = 0;            //Data for 'DeviceSize'
            int iMonitorCycle = 0;            //Data for 'MonitorCycle'
            int[] arrDeviceValue;            //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("\n", txt_DeviceNameStatus.Lines);

            //Check the 'DeviceSize'.(If succeeded, the value is gotten.)
            if (!GetIntValue(txt_DeviceSizeStatus, out iNumberOfData))
            {
                //If failed, this process is end.
                return;
            }

            //Check the 'MonitorCycle'.(If succeeded, the value is gotten.)
            if (!GetIntValue(txt_MonitorCycleStatus, out iMonitorCycle))
            {
                //If failed, this process is end.
                return;
            }

            //Check the 'DeviceValue'.(If succeeded, the value is gotten.)
            arrDeviceValue = new int[iNumberOfData];
            if (!GetIntArray(txt_DeviceDataStatus, out arrDeviceValue))
            {
                //If failed, this process is end.
                return;
            }


            //
            //Processing of EntryDeviceStatus method
            //
            try
            {
                    //When ActUtlType is selected by the radio button,
                    //The EntryDeviceStatus method is executed.
                    iReturnCode = axActUtlType1.EntryDeviceStatus(szDeviceName,
                                                                    iNumberOfData,
                                                                    iMonitorCycle,
                                                                    ref arrDeviceValue[0]);
            }

            //Exception processing            
            catch (Exception exception)
            {
                MessageBox.Show(exception.Message, Name,
                                  MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            //The return code of the method is displayed by the hexadecimal.
            txt_ReturnCode.Text = String.Format("0x{0:x8} [HEX]", iReturnCode);
        }
        #endregion
午夜339351
級別: 實習會員
精華主題: 0
發帖數量: 3 個
工控威望: 46 點
下載積分: 673 分
在線時間: 0(小時)
注冊時間: 2018-03-23
最后登錄: 2018-03-23
查看午夜339351的 主題 / 回貼
1樓  發表于: 2018-03-23 16:30
各位大神求助!卡了半天了!!謝謝!
午夜339351
級別: 實習會員
精華主題: 0
發帖數量: 3 個
工控威望: 46 點
下載積分: 673 分
在線時間: 0(小時)
注冊時間: 2018-03-23
最后登錄: 2018-03-23
查看午夜339351的 主題 / 回貼
2樓  發表于: 2018-03-23 16:33
          

主站蜘蛛池模板: 久久久久九九精品影院 | 亚洲一区二区三区成人 | 偷偷撸影院在线观看 | 嘛逗传媒在线观看免费网站 | 少妇肥臀白浆一区二区三区 | 欧美亚洲另类久久综合二区 | 国产成人无码av在线播放无广 | 国产福利 | 精品视频一区在线观看 | 国产精品黄色一区二区三区 | 久久久精品麻豆 | 艳妇乳肉豪妇荡乳 | 亚洲中文字幕久在线 | 午夜成片 | 欧美日韩亚洲中文字幕一区二区三区 | 人妻丰满熟av无码区hd | 久久久久久久99精品久久久久子伦中文精品久久久久人妻 | 国产中文在线 | 精品久久久无码中文字幕天天 | 8090成年在线看片 | 日韩欧美一区二区中文字幕 | 韩国三级日本三级香港三级黄 | 欧美重囗味成人无码区 | 国产在线精品一区二区三区不 | 国产乱子伦农村叉叉叉 | 乱人伦人妻中文字幕 | 九九热久久只有精品2 | 六月丁香综合 | 国产女人第一次做爰视频 | 久久久久青草大香综 | 亚洲一区二区三区四区五区六 | 久久精品资源 | 亚洲国产成人精品无码区在线观看 | 亚洲午夜久久久精品影院视色 | 99精品与95优品 | 亚洲国产成人 | 午夜精品久久久内射近拍高清 | 国产免费一卡二卡三卡四卡 | 丁香婷婷综合久久来来去 | 亚洲精品久久一区二区三区2024 | 国产成人爱片免费观看视频 |