欧美日韩在线一区二区-欧美日韩在线一区二区三区-欧美日韩在线一区亚洲二区-欧美日韩在线永久免费播放-欧美日韩整片中文字幕-欧美日韩制服丝袜六区

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

主站蜘蛛池模板: 在线看免费无码的av天堂 | 18禁无遮挡爽爽爽无码视频 | 婷婷人妻精品一区二区三区 | 国精品人妻无码一区二区三区性色 | 国产午夜精品一区二区 | 2024四虎永久在线观看 | 国产欧美一区二区三区久久 | 欧美国产日本 | 成人亚洲A片V一区二区三区日本 | 久久久av无码国产一区二区 | 国产一区二区三区精品欧美日韩 | 久久99九九精品免费 | 精品中文字幕一区在线 | 久久伊人精品波多野结衣 | 国产精品熟女高潮视频 | 国产毛a片啊久久久久久 | 国产日韩久久久精品影院首页 | 在线观看免费大片 | 欧美日韩精品一区二区在线 | 另类精品视频一区二区 | 巨胸喷奶水www冈哺乳期 | 2024亚洲中文字幕在线第99 | 亚洲AV日韩AV无码AV另类 | 狠狠色丁香婷婷综合久久片 | 国产精品自产拍在线观看中文 | 久久国产一区二区三区 | 香蕉久久一区二区不卡无毒影院 | 91久久高清一区视频 | 国产亚洲欧洲美女黄视频 | 91精品欧美激情福利 | 2025最新电视剧高清热播 | 国产超碰人人做人人爰 | 久久激情四射五月天 | 91在线影院 | 橙人精品在线观看 | 伦理电影观看 | 18禁婷婷丁香久久精品人人 | 国产精品第一区在线观看 | 久久精品国产亚洲av麻豆毛 | 2024国产成人精品视频人 | 日本人妻和老人中文字幕 |