国产狂喷潮在线观看-日韩a∨无码中文无码电影-精品午夜中文字幕熟女人妻在线-国内精品久久久久久久电影视-成人欧美一区二区三区a片

午夜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
          

主站蜘蛛池模板: 日韩人妻精品一区二区三区视频| 99久久综合狠狠综合久久aⅴ| 97丨九色丨国产人妻熟女| 中文字幕亚洲情99在线| 美女网站免费观看视频| 成人h无码动漫超w网站| 成人18禁深夜福利网站app免费 | 亚洲人成人网色www| av电影在线观看| 国产大屁股视频免费区 | 天天干天天日| 色播久久人人爽人人爽人人片av | 国产精品色无码av在线观看 | 窝窝午夜理论片影院| 午夜无码无遮挡在线视频| 亚洲人妻av伦理| 韩国精品久久久久久无码| 蜜桃av亚洲精品一区二区| 国产情侣久久久久aⅴ免费| 日本护士╳╳╳hd少妇| 久久成人麻豆午夜电影| 无码午夜人妻一区二区三区不卡视频| 亚洲国产欧美一区三区成人| 亚洲狼人伊人中文字幕| 亚洲欧洲国产成人综合在线观看| 亚洲一区日韩高清中文字幕亚洲 | 国产综合久久99久久| 久久精品国产一区二区三| 少妇人妻14页_麻花色| 亚洲毛片多多影院| 99久久精品国产综合| 精品久久人人爽天天玩人人妻 | 狠狠色综合网丁香五月| 中文字幕av日韩精品一区二区| 亚洲一区精品二人人爽久久| 免费午夜福利不卡片在线播放 | 亲子乱aⅴ一区二区三区| 国产亚洲色视频在线| 国产精品久久久久av福利动漫| 亚洲狠狠成人网| 少妇无码av无码专区在线观看|