久久久国产一区-久久久国产一区二区三区丝-久久久国产一区二区三区丝袜-久久久国产综合视频-久久久精品白浆无码-久久久精品波多野结衣

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

主站蜘蛛池模板: 亚洲色精品一区二区三区 | 加勒比综合在线19p 日日夜夜久久嫩草 | 园产精品久久久一级毛片 | 一区高清 | 日韩欧美精品免费久久 | 强奷乱码欧妇女中文字幕熟女 | 日韩三级不卡 | 欧洲无线一线二线三线怎么区分 | 中文精品一卡2卡3卡4卡国色 | 国产精品毛片a∨一区二区三区 | 精品国内自产拍在线视频 | 久久国产精品99久久久久久老狼 | 狠狠色噜噜狠狠狠狠色吗综合 | 中文字幕无码家庭乱欲 | 日本无码人妻精品一区二 | 麻豆免费版| 五月天无码 | 老司机精品在线 | 日本高清在线中字视频 | 亚洲男人天堂免费视频 | 久久九九日本韩国精品 | 国产三级级在线观看大学生 | 99这里是99在线视频 | 亚洲人成网站在线播放影院在线 | 男女摸下面刺激免费视频软件 | 国产探花在线一区二区 | 国产在线二区三区熟女A级 国产在线干 | 久久精品国产对白国产AV | 完美世界动漫在线视频免费观看 | 无码中文字幕免费一区二区蜜桃 | 国产精品hd在线播放 | 国产熟女乱子视频正在播放 | 精品视频人妻少妇一区二区三区 | jizz亚洲视频 | 97超精品视频在线观看 | 最好看免费观看高清视频了 | 国产另类ts人妖一区二区 | 亚洲 欧美 国产 图片 | 久久久久成亚洲综合精品 | 亚洲精品久久区二区三区蜜桃臀 | 欧美中文字幕一区二区三区亚洲 |