久久99精品视频一区97_亚洲a免费在线观看_美欧日韩av无码一区二区_国产精品视频123_东京热一本无码av_99精品国产闺蜜国产在线闺蜜

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

主站蜘蛛池模板: 天天干天天看 | 91在线你懂的 | 久久成人热 | 国产强奷在线播放免费不卡 | 亚洲国产精品ⅴa在线观看 亚洲爱爱小视频 | 国产一区二区视频免费观看 | 91在现视频 | 亚洲久本草在线中文字幕 | 99re8这里有精品热视频8在线 | 老头把我添高潮了95视频 | 青青久在线视频 | 91porny丨九色 | 91超碰九色 | 国产麻豆精品久久一二三 | 密色av| 青青青在线视频观看 | 99精品一区二区三区 | 欧美18免费视频 | 伊人wwwyiren22cn | 国产欧美一区二区三区在线看 | 国产夫妻原创自拍 | 久久男人| 538在线一区二区精品国产 | 国产麻豆成人精品av | 91美剧| 国产一区二区视频免费观看 | 国产一区亚洲二区三区 | 免费国产小视频 | a视频免费观看 | 欧美日韩在线观看视频小说 | 一级黄色激情片 | 四虎永久成年免费影院 | 91精品啪在线观看国产足疗 | 国产成人高清视频 | 欧美日韩国产一级片 | 秋霞影视一区二区三区 | 欧美日韩亚洲国产 | 草莓视频做爰视频免费观看 | 成年日韩免费大片黄在线观看 | 亚洲精品影院 | 国产毛片在线看 |