欧美鲁鲁_啦啦啦啦在线观看_日韩精品短视频_玩偶姐姐作品在线观看_天天综合天天做天天综合_国产综合图区

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

主站蜘蛛池模板: 亚洲精品成人久久久998 | 妹妹说有我这种哥哥真不幸短剧在线观看 | 欧美在线第一区 | 国产毛片毛片毛片 | 国产天堂一区二区 | 淫护士影院| 一级毛片在线免费观看视频 | 亚洲最大成人在线观看 | 色婷婷av777 欧美人与禽性xxxxx | 国产精品白丝娇喘喷水 | 欧美xxx另类 | 开心综合网 | 无码AV最新清无码专区吞精 | 大决战第一部辽沈战役在线观看 | 一区高清视频 | 艳妇乳肉豪妇荡乳ⅹxxoo图片 | 视频一区二区三区入口 | 91久久精品日日躁夜夜躁欧姜 | av电影网站在线观看 | 久久亚洲国产精品日日av夜夜 | 韩国免费一区 | 欧美日韩激情视频 | 一二三四在线观看高清观看 | 亚洲熟妇无码八AV在线播放 | 777午夜精品免费观看 | 制服丝袜成人影院 | 欧美激情精品久久久久 | 中文无码一区二区不卡αv 夜夜躁狠狠躁日日躁av | 日本午夜片无码区在线观看 | avtt在线观看 | 久久亚洲精品视频 | 老人freemovies性中国 | 色哟哟网站入口在线观看 | 国产福利在线 | 在线欧美精品一区二区三区 | 曰本丰满熟妇XXXX性 | 色综综合| 国产激情久久久久影院小草 | 亚洲视频免费一区 | 亚洲日韩国产精品第一页一区 | 91亚洲精品久久久蜜桃网站 |