国产无套水多在线观看-国产无套无码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片 精品少妇一区二区三区视频 | 91成人自拍国产精品一页 | 四虎影视永久免费 | 操欧美美女 | 无码毛片A片-区二区三区 | 久久免费毛片 | 中文字幕一区视频一线 | 精品无码中文字幕在线 | 欧美精品v欧洲精品 | 99精品无人区乱码1区2区3区 | 成人区人妻精品黑人av | 国产精品毛片无码一区 | 亚洲午夜久久久久影院 | 国产伦亲子伦亲子视频观看 | 亚洲av高清在线观看一区二区 | 日韩精品欧美激情亚洲综合 | 麻豆视频免费版 | 2024国产精品自在自线 | 囯产亚洲欧美精品 | 亚洲精品国产品国语在线 | 国产精品99久久久久久WWW | 91精品国产八戒影视 | 在线a亚洲视频播放在线观看 | 欧美精品无码一二三区网站 | 中文在线日韩亚洲欧美 | 一本二本黄色网站 | 成人免费观看网欧美片 | 91免费精品国偷自产在线在线 | 国产精华一线二线三线区别在哪 | 国产成人精品久久久久网站 | 日本 一 级 视频 | 老司机午夜剧场 | 日日摸夜夜添夜夜添A片看见 | 亚洲色欲在线播放一区 | 国产福利一区二区在线精品 | 亚洲综合婷婷 | 日本不卡免费高清视频 | 亚洲精品乱码久久久久蜜桃 | 欧美三级免费网站 |