日韩精品一区高清|国产情侣作爱视频免费观看|激情欧美亚洲一区|亚洲亚洲精品av在线动态图|欧美一区 欧美二区

午夜339351
級(jí)別: 實(shí)習(xí)會(huì)員
精華主題: 0
發(fā)帖數(shù)量: 3 個(gè)
工控威望: 46 點(diǎn)
下載積分: 673 分
在線時(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 分
在線時(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 分
在線時(shí)間: 0(小時(shí))
注冊(cè)時(shí)間: 2018-03-23
最后登錄: 2018-03-23
查看午夜339351的 主題 / 回貼
2樓  發(fā)表于: 2018-03-23 16:33
          

主站蜘蛛池模板: 97人妻无码免费专区| 亚洲午夜精品久久久久久app| 亚洲国产天堂精品一区二| 在线看色片一区二区| 欧美一区二区日韩在线| 国产成人在线观看不卡一区| 国产午夜精品理论片| 精品人妻系列无码人妻免费视频| 丁香五月综合久久激情 | 裸体女人高潮毛片| 人妻互换精品一区二区三区| 黄色性感一区二区| 蜜臀av99无码精品国产专区| 精品麻豆剧传媒av国产| 人妻少妇精品无码系列| 亚洲国产精品久久久久久| 夜色人妻一区二区三区| 大陆熟妇丰满多毛xxxx| 色avav色av爱avav亚洲色拍| 久久一本精品久久精品66| 五月天精品一区二区| 欧美日韩精品一区二区三区高清视频在线观看 | 午夜精品久久久久久久爽| 欧美在线一区二区免费视频| 国产人妻精品一区二区三区不卡| 日韩欧美一区二区三| 丝袜无码一区二区三区| 一本大道精品视频在线| 亚洲中文在线播放一区| 波多野结衣在线播放| 国产精品久久久久久一区二区三区| 国产成人无码av大片大片在线观看 | 精品人妻在线一区| 中文无码伦av中文字幕| 久久婷婷一区二区| 尤物av无码国产在线观看| 国产精品一区二区在线观看| 4hu四虎永久在线观看| 在线精品国精品国产尤物| 色五月激情五月亚洲综合考虑| 国产一区二区福利免费观看|