国产无套水多在线观看-国产无套无码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
          

主站蜘蛛池模板: 免费入口TIKTOK流连忘返 | 国产人妻一区二区三区色戒乐 | 乱码丰满人妻一二三区 | 一级人做人a爰免费视频 | 亚洲伦理精品久久 | 精品亚洲?ⅴ无码午夜在线 精品亚洲a∨无码一区二区三区 | 草草在线视频 | 亚洲欧美一区二区三区不卡 | 加勒比人妻av无码不卡狠狠操天天操在线网站污 | 亚洲av无码成人精品区在线 | 国产精品高清视亚洲一区二区 | 欧美日韩国产综合在线高清视频 | 人妻少妇无码不卡 | 不卡国产00高中生在线视频 | 国产精品不卡无码v在线播放 | 国产人妻XXXX精品HD | 欧美日本韩国亚洲 | 国产婷婷色一区二区三区 | 久久男人高潮av女人高潮天堂 | 日本无码H纯肉黄动漫A红桃 | 欧美精品一区二区黄A片 | 国模无码一区二区三区 | 久草草在线| 日韩无码在线欧美福利 | 国产亚洲精品久久无码98 | 高清国产成人av在线 | 久久精品国产精品日本 | 日本老太做爰XX0LD | 四虎成人欧美精品在永久在线 | 亚洲日韩v无码中文字幕 | 欧美久久久无码精品亚洲日韩小说 | 熟女乱色综合小说 | 国产麻豆国语对白 | 亚洲国产午夜中文字幕精品黄网 | 国产精品主播在线高清不卡 | 四虎影视在线永久免费观 | 亚洲欧美牲交 | 91精品国产免费久久久久久 | 麻花传媒MD01| 亚洲国产精品免费视频 | 日本黄色aa|