日韩精品一区高清|国产情侣作爱视频免费观看|激情欧美亚洲一区|亚洲亚洲精品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
          

主站蜘蛛池模板: 国产精品玖玖玖在线资源| 国产成人久久综合一区| 亚洲成av人片天堂网九九| 韩国精品一区在线| 免费无码又爽又刺激高潮视频| 亚洲精品有码在线观看| 久久精品国产精品| 午夜精品久久久久9999高清| 3d无码纯肉动漫在线观看| 新婚人妻不戴套国产精品| 精品亚洲aⅴ在线无码播放| 亚洲中字幕日产av片在线| 久久高清亚洲一区二区| 国内精品国语自产拍在线观看| 综合天堂av久久久久久久| 9久9久女女热精品视频在线观看| 久久综合色一综合色88| 无码人妻少妇久久中文字幕| 无码人妻丰满熟妇区bbbbxxxx| 午夜视频一区二区区别| 精品三级av无码一区| 美女又黄又免费的视频| 99久久精品国产一区二区三区| 亚洲一区二区熟女| 青青草在久久免费久久免费| 99精品热在线在线观看视频| 少妇毛片高潮激情一区二区三区| 小鲜肉自慰网站| 亚洲欧美日韩一区二区三区在线观看| 在线播放无码高潮的视频| 国产精品久久一区中出喷水| 亚洲午夜高清国产拍| 免费国产成人高清在线视频| 日日躁夜夜躁狠狠躁超碰97| 久久久久亚洲精品无码网址蜜桃| 午夜福利影院一区二区精品| 日韩一区二区三区在线免费观看视频 | 精品综合久久久久久97| 精品视频无码一区二区三区| 免费日本一区二区视频| 亚洲老女人区一区二视频|