国产无套水多在线观看-国产无套无码aⅴ在线观看-国产无套在线观看视频-国产午夜91福利一区二区-国产午夜av秒播-国产午夜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
          

主站蜘蛛池模板: 亚洲国产天堂久久麻豆 | 国产黄色a | 中文字幕精品无码亚 | 日韩欧美日本 | 无人区乱码一区二区三区 | 四虎影视精品永久在线观看 | 国产午夜精品一区二区理论影院 | 日本黄网站三级三 | 亚洲精品久久7777777 | 91久久香蕉国产熟女线看 | 九一传媒果冻制片厂 | 亚洲精品日日 | 亚洲综合精品熟女久久久40p | 老师洗澡让我吃她胸的视频 | 国产成人亚洲精品无码h在线 | 涩涩爱涩涩片影院 | 2024天天躁天天爱 | 99热这里只有精品中文 | 亚洲女同在线观看 | av中文字幕综合一区 | 欧美日韩国产不卡 | 成人久久久久一级大 | 久久97精品久久久久久清纯 | 2024久久久最新欧美 | 免费看少妇高潮A片特黄 | 精品国产成人a区在线观看 精品国产成人a在线观看 | 精品国产乱码久久久久久1区2 | 久草在在线免在线观看视频 | 亚洲精品高清国产一线久久 | 国产久久久国产精品成人 | 日本视频不卡免费网站 | 国产三级自拍视频 | 波多野结衣超清无码教师 | 狠狠色噜噜 | 久久国产36精品色熟妇 | 欧美黄色免| 久久精品免费观看 | 99久久久无码国产精品69 | 亚洲中文aⅴ中文字幕在线 亚洲制服丝袜自拍中文字幕 | 日本三级床震 | 亚洲国产精品专区欧美 |