欧美日韩在线一区二区-欧美日韩在线一区二区三区-欧美日韩在线一区亚洲二区-欧美日韩在线永久免费播放-欧美日韩整片中文字幕-欧美日韩制服丝袜六区

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

主站蜘蛛池模板: 国产精品福利在线观看 | av三级在线观看免费天堂 | 久久久久精品国产亚洲ⅴ | 久久精品免费看 | 国产a级毛片免费视频一区二区 | 欧美日韩在线精品一区二区三区激情福利综合 | 国产无码啪啪 | 黑人狂躁日本少妇在线观 | 成人h精品动漫在线 | 无码人妻欧美丰满熟妇区毛片 | 久久久久精品一区二区三区免费 | 国产精品爽爽va在线观看网站 | 国产免费一区二区三区免费视频 | 国产成午无码av在线观看 | 日韩中文人妻无码 | 久久久久精品国产四虎 | 国产精品自在线拍 | 亚洲av无码一区二区三区人妖 | 国产精品伦理一区二区三区 | 日韩在线精品亚洲午夜电影 | 久久九九久久九九这里只有精品首页 | 日本工口里画番全彩 | 你懂的日韩 | 91无码久久国产线看观看 | av福利无码中文字幕 | 无码人妻丰满熟妇啪啪欧美 | 欧美一区视频 | 天天综合天天中文精品日韩91 | 欧美与黑人午夜性猛交久久久 | 国产精品露脸视频观看 | 二区三区四 | 亚洲不卡视频 | 国产毛片片精品天天看视频 | 国产福利视频在线精品 | 无码人妻久久一区二区 | 国产人妻一区二区三区色戒乐 | 久久国产精品日本韩国 | 精品欧美亚洲韩国日本久久 | 国产亚洲欧洲国产综合一区麻豆 | 成人日韩国产在线 | 亚洲国产成人精品女人久久久 |