一区二区三区成人-一区二区三区www-一区二区三区 日韩-一区二区日韩欧美-一区二区日韩精品中文字幕-一区二区日韩

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

主站蜘蛛池模板: 免费一级国产生活片 | 美女牲交毛片一级视频 | 欧美性videossex丝袜 | 特黄未满14周岁毛片 | 2022国产麻豆剧果冻传媒入口 | 天堂网www在线观看 天堂欧美 | 免费精品国产在线观看 | 久久免费资源福利资源站 | 手机能看的黄色网站 | zozo日本另类极品 | 色哟哟在线视频 | 精品久久久久免费极品大片 | 青青青视频免费观看 | 国产99热99| 免费观看一级特黄三大片视频 | a级精品九九九大片免费看 a级动漫 | 操bb| 500福利第一导航 | 大妹子最新视频在线观看 | 黄 色 成 年人在线 幻女free性俄罗斯第一次摘花 | 公妇乱淫| 成年女人毛片免费观看中文w | 国产一区二区三区欧美 | 免费特黄一区二区三区视频一 | 亚洲成年人免费网站 | 日处女b | 国产精品亚洲w码日韩中文 国产精品香蕉在线观看不卡 | 日本在线精品视频 | 色综合网亚洲精品久久 | 九九九九九九精品免费 | 精品无码久久久久久久久 | 手机在线观看精品国产片 | 女人张开腿让男人做爽爽 | 国产精品九九热 | 无码爽死成人777在线观看网站 | 国产精品香蕉 | 国产亚洲综合久久 | 乌克兰粉嫩摘花第一次 | 极品美女aⅴ高清在线观看 极品ts赵恩静和直男激战啪啪 | 男人叼女人的痛爽视频免费 | 日本国产一区二区三区 |