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

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

主站蜘蛛池模板: 无码人妻精品一区二区三区不卡 | 国产一级毛片大陆 | 在线欧美精品一区二区三区 | 国产成人精品免费视频大全麻豆 | 国产精品va一级二级三级 | 少妇午夜福利一区二区三区 | 久久视频精品38线视频在线观看 | 久久无码一区人妻A片蜜臀 久久无码一区人妻A片蜜 | 日本色一区 | 激情综合色综合啪啪开心 | 久久无码潮喷A片无码高潮动漫 | 亚洲成年网站在线观看 | 午夜精品A片一区二区三区 午夜精品成人一区二区视频 | 人妻精品无码一区二区三区 | 日韩人妻一区二区三区久久 | 一区二区传媒有限公司 | 啪啪免费视频在线观看 | 精品久久久久久中文字国产 | 午夜人妻熟女一区二区 | 麻豆国产精品 | 99久久精品国产一区二区三区 | 久久亚洲国产成人影院 | 亚洲精品久久久久久不卡精品小说 | 四虎成人精品在永久免费 | 中文免费自拍高清 | 成人精品天堂一区二区三区 | 91麻豆产精品久久久久久 | 国产精品视频一区二区三区四区 | 极品美女久久久久久久久久久 | 色偷偷资源 | 亚洲精品国产一区二区 | 欧美激情视频一区二区三区免费 | 浪潮一区国产 | 国产大奶在线播放 | 久久精品无码一区二区软件 | 亚洲三级在线观看 | 成人综合亚洲日韩欧美色 | 电视高清麻豆专媒体一区二区 | 亚洲国产天堂久久综合 | 不卡无码人妻一区三区音频欧美老师午夜漫画 | 国产精品啪啪视频 |