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

午夜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无码成人精品区日韩 | 日韩视频1区 | 18深夜在线观看免费视频 | 不卡一区二区三区视频 | 欧美一区二区福利 | 欧美日韩一区二区精品 | 久久e久久 | 欧洲亚洲国产一区二区 | 91精品国产九九九久久久亚洲 | 国产精品一区二区女厕厕 | 欧美群p视频 | 日韩免费高清 | 91精品国产综合久久婷婷香 | 色噜噜狠狠成人网p站 | 美利坚成人网 | 精品毛片在线观看 | 成人免费一区二区三区视频网站 | 国产精品免费看 | yw.尤物在线精品视频 | 91精品天堂 | 欧美永久视频 | 91tv官网精品成人亚洲 | 久久久精品久久久久 | 午夜精品久久久久 | 日韩视频在线一区二区三区 | 国产精品久久久久久久久久性按摩 | 日本在线视频不卡 | 国产视频 二区 | 国产草逼视频 | 国产视频一级 | 日韩亚洲国产精品 | ww8888免费视频 | 国产精品18久久久久久av小说 | 日本在线观看免费 | 九九热视频精品 | 一区二区三区www |