欧美日韩在线一区二区-欧美日韩在线一区二区三区-欧美日韩在线一区亚洲二区-欧美日韩在线永久免费播放-欧美日韩整片中文字幕-欧美日韩制服丝袜六区

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

       #region  "監(jiān)視元件狀態(tài)"
        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
級(jí)別: 實(shí)習(xí)會(huì)員
精華主題: 0
發(fā)帖數(shù)量: 3 個(gè)
工控威望: 46 點(diǎn)
下載積分: 673 分
在線(xiàn)時(shí)間: 0(小時(shí))
注冊(cè)時(shí)間: 2018-03-23
最后登錄: 2018-03-23
查看午夜339351的 主題 / 回貼
1樓  發(fā)表于: 2018-03-23 16:30
各位大神求助!卡了半天了!!謝謝!
午夜339351
級(jí)別: 實(shí)習(xí)會(huì)員
精華主題: 0
發(fā)帖數(shù)量: 3 個(gè)
工控威望: 46 點(diǎn)
下載積分: 673 分
在線(xiàn)時(shí)間: 0(小時(shí))
注冊(cè)時(shí)間: 2018-03-23
最后登錄: 2018-03-23
查看午夜339351的 主題 / 回貼
2樓  發(fā)表于: 2018-03-23 16:33
          

主站蜘蛛池模板: 国产成人毛片基地 | 国产精品亚洲自在线播放页码 | a级片日韩亚洲视频中文版 a级片视频 | a级毛片毛片免费看 | 欧美内射深喉中文字幕 | 精品久久久久久久99热 | 全肉高H短篇合集 | 成熟妇女性成熟满足视频 | 国产亚洲日韩欧美另类第八页 | 69久久国产| 97色伦色在线综合视频 | 欧美另类又黄又爽的A片 | 超级香蕉97视频在线观看一区 | 国产精品人人做人人爽人人 | 亚洲欧美春色激情另类 | 亚洲一区二区久久 | 国产成人亚洲精品电影香蕉 | 欧美激情乱人伦 | 亚洲欧美一级久久精品 | 高h猛烈失禁潮喷 | 黄色一级片在线 | 国产一区二区三区视频高清 | 东京热亚洲精品中文一区 | 狠色鲁很很鲁在线视频 | 九色视频最新网址 | 91精品一区二区三区在线观看 | 免费伦理电影在线观看 | 久热精品在线视频 | 亚洲一区欧洲一区 | 高潮喷水无码AV亚洲 | 麻豆精品一区二区三区高清 | 国产电影一区二区三区:多元视角下的崛起与挑战 | a级毛片免费播放无码 | 91精品国产一区自在线拍 | 波多野结衣多次高潮三个老人 | 国产美女视频一区二区三区 | 久久久久无码国产精品一区中 | 麻豆小偷闯空门被强制 | 国产精品特级毛片一区二区三区 | 大片免费视频观看 | 国产成人精品高清 |