VpwCellDevice.cs 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635
  1. using Aitex.Core.RT.DataCenter;
  2. using Aitex.Core.RT.Device;
  3. using Aitex.Core.RT.Log;
  4. using Aitex.Core.RT.OperationCenter;
  5. using Aitex.Core.Util;
  6. using MECF.Framework.Common.Beckhoff.ModuleIO;
  7. using MECF.Framework.Common.CommonData.Prewet;
  8. using MECF.Framework.Common.CommonData.Vpw;
  9. using MECF.Framework.Common.IOCore;
  10. using MECF.Framework.Common.Persistent.SRD;
  11. using MECF.Framework.Common.Persistent.Temperature;
  12. using MECF.Framework.Common.Persistent.VpwCell;
  13. using MECF.Framework.Common.Persistent.VpwMain;
  14. using MECF.Framework.Common.ToolLayout;
  15. using MECF.Framework.Common.Utilities;
  16. using PunkHPX8_RT.Devices.AXIS;
  17. using PunkHPX8_RT.Devices.Resistivity;
  18. using PunkHPX8_RT.Devices.VpwMain;
  19. using PunkHPX8_RT.Modules;
  20. using PunkHPX8_RT.Modules.VpwMain;
  21. using System;
  22. using System.Collections.Generic;
  23. using System.Linq;
  24. using System.Reflection;
  25. using System.Text;
  26. using System.Threading.Tasks;
  27. namespace PunkHPX8_RT.Devices.VpwCell
  28. {
  29. public class VpwCellDevice : BaseDevice, IDevice
  30. {
  31. #region 常量
  32. private const string COMMON_DATA = "CommonData";
  33. private const string DIW_FLOW = "DiwFlow";
  34. private const string VACUUM_PRESSURE = "VacuumPressure";
  35. private const string FLOW_DRIP = "FlowDrip";
  36. private const string FLOW_SMALL = "FlowSmall";
  37. private const string FLOW_LARGE = "FlowLarge";
  38. private const string VACUUM_VALVE = "VacuumValve";
  39. private const string VENT_VALVE = "VentValve";
  40. private const string DRAIN_VALVE = "DrainValve";
  41. private const string PERSISTENT_VALUE = "PersistentValue";
  42. private const string LOOPDO_VALUE = "LoopDoValue";
  43. #endregion
  44. #region 内部变量
  45. /// <summary>
  46. /// 变量是否初始化字典
  47. /// </summary>
  48. private Dictionary<string, bool> _variableInitializeDic = new Dictionary<string, bool>();
  49. /// <summary>
  50. /// 数据
  51. /// </summary>
  52. private VpwCellCommonData _commonData=new VpwCellCommonData();
  53. /// Vpw main数据
  54. /// </summary>
  55. private VpwMainCommonData _mainCommonData = new VpwMainCommonData();
  56. /// <summary>
  57. /// 持久性数值
  58. /// </summary>
  59. private VpwCellPersistentValue _vpwCellPersistentValue;
  60. /// <summary>
  61. /// 水平电机
  62. /// </summary>
  63. private JetAxisBase _rotationAxis;
  64. /// <summary>
  65. /// 水阻计控制器
  66. /// </summary>
  67. private ResistivityController _resistivityController;
  68. /// <summary>
  69. /// 水阻值
  70. /// </summary>
  71. private double _resistivityValue;
  72. /// <summary>
  73. /// main device
  74. /// </summary>
  75. private VpwMainDevice _vpwMainDevice;
  76. #endregion
  77. #region 属性
  78. /// <summary>
  79. /// 数据
  80. /// </summary>
  81. public VpwCellCommonData CommonData { get { return _commonData; } }
  82. /// <summary>
  83. /// vpw main数据
  84. /// </summary>
  85. public VpwMainCommonData MainCommonData { get { return _mainCommonData; } }
  86. /// <summary>
  87. /// 操作模式
  88. /// </summary>
  89. public string OperationMode { get { return _vpwCellPersistentValue.OperatingMode; } }
  90. /// <summary>
  91. /// 工程模式
  92. /// </summary>
  93. public string EngineerMode { get { return _vpwCellPersistentValue.RecipeOperatingMode; } }
  94. /// <summary>
  95. /// LoopDO数值
  96. /// </summary>
  97. public double LoopDOValue { get { return GetLoopDOValue(); } }
  98. #endregion
  99. /// <summary>
  100. /// 构造函数
  101. /// </summary>
  102. /// <param name="moduleName"></param>
  103. public VpwCellDevice(string moduleName) : base(moduleName, moduleName, moduleName, moduleName)
  104. {
  105. }
  106. #region 初始化
  107. /// <summary>
  108. /// 初始化
  109. /// </summary>
  110. /// <returns></returns>
  111. public bool Initialize()
  112. {
  113. InitializeParameter();
  114. InitializeRoutine();
  115. SubscribeData();
  116. SubscribeValueAction();
  117. InitializeOperation();
  118. return true;
  119. }
  120. /// <summary>
  121. /// 初始化参数
  122. /// </summary>
  123. private void InitializeParameter()
  124. {
  125. _rotationAxis = DEVICE.GetDevice<JetAxisBase>($"{Module}.Rotation");
  126. _vpwCellPersistentValue = VpwCellPersistentManager.Instance.GetPersistentValue(Module);
  127. VpwCellItem vpwCellItem=VpwCellItemManager.Instance.GetVpwItem(Module);
  128. if (vpwCellItem != null)
  129. {
  130. _resistivityController = DEVICE.GetDevice<ResistivityController>(vpwCellItem.ResistivityID);
  131. }
  132. _vpwMainDevice = DEVICE.GetDevice<VpwMainDevice>($"VPWMain1");
  133. if(_vpwMainDevice != null)
  134. {
  135. _mainCommonData = _vpwMainDevice.CommonData;
  136. }
  137. }
  138. /// <summary>
  139. /// 初始化Routine
  140. /// </summary>
  141. private void InitializeRoutine()
  142. {
  143. }
  144. /// <summary>
  145. /// 订阅
  146. /// </summary>
  147. private void SubscribeData()
  148. {
  149. DATA.Subscribe($"{Module}.{COMMON_DATA}", () => CommonData, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  150. DATA.Subscribe($"{Module}.{PERSISTENT_VALUE}", () => _vpwCellPersistentValue, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  151. DATA.Subscribe($"{Module}.DiwCellFlow", () => CommonData.DiwFlow, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  152. DATA.Subscribe($"{Module}.VacuumValve", () => CommonData.VacuumValve, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  153. DATA.Subscribe($"{Module}.{LOOPDO_VALUE}", ()=> { return GetLoopDOValue(); }, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  154. }
  155. /// <summary>
  156. /// 获取Loop do数值
  157. /// </summary>
  158. /// <returns></returns>
  159. private double GetLoopDOValue()
  160. {
  161. if (_resistivityController != null)
  162. {
  163. string value = _resistivityController.ResisitivityValue;
  164. if (double.TryParse(value, out _resistivityValue))
  165. {
  166. return _resistivityValue;
  167. }
  168. else
  169. {
  170. _resistivityValue = 0;
  171. return 0;
  172. }
  173. }
  174. else
  175. {
  176. return 0;
  177. }
  178. }
  179. /// <summary>
  180. /// 订阅数据
  181. /// </summary>
  182. private void SubscribeValueAction()
  183. {
  184. IoSubscribeUpdateVariable(DIW_FLOW);
  185. IoSubscribeUpdateVariable(DRAIN_VALVE);
  186. IoSubscribeUpdateVariable(VACUUM_PRESSURE);
  187. IoSubscribeUpdateVariable(VACUUM_VALVE);
  188. IoSubscribeUpdateVariable(VENT_VALVE);
  189. IoSubscribeUpdateVariable(FLOW_DRIP);
  190. IoSubscribeUpdateVariable(FLOW_LARGE);
  191. IoSubscribeUpdateVariable(FLOW_SMALL);
  192. }
  193. /// <summary>
  194. /// 初始化变量
  195. /// </summary>
  196. /// <param name="variable"></param>
  197. private void IoSubscribeUpdateVariable(string variable)
  198. {
  199. _variableInitializeDic[variable] = false;
  200. IOModuleManager.Instance.SubscribeModuleVariable(Module, variable, UpdateVariableValue);
  201. }
  202. /// <summary>
  203. /// 更新变量数值
  204. /// </summary>
  205. /// <param name="variable"></param>
  206. /// <param name="value"></param>
  207. private void UpdateVariableValue(string variable, object value)
  208. {
  209. PropertyInfo property = _commonData.GetType().GetProperty(variable);
  210. if (property != null)
  211. {
  212. property.SetValue(_commonData, value);
  213. if (variable == VACUUM_PRESSURE)
  214. {
  215. double torr = UnitUtil.ConvertToTorr((double)value);
  216. property.SetValue(_commonData, torr);
  217. }
  218. }
  219. if (_variableInitializeDic.ContainsKey(variable) && !_variableInitializeDic[variable])
  220. {
  221. _variableInitializeDic[variable] = true;
  222. }
  223. }
  224. /// <summary>
  225. /// 初始化OP
  226. /// </summary>
  227. private void InitializeOperation()
  228. {
  229. OP.Subscribe($"{Module}.FlowDripOn", (cmd,para)=> { return FlowDripOn(); });
  230. OP.Subscribe($"{Module}.FlowDripOff", (cmd, para) => { return FlowDripOff(); });
  231. OP.Subscribe($"{Module}.FlowSmallOn", (cmd, para) => { return FlowSmallOn(); });
  232. OP.Subscribe($"{Module}.FlowSmallOff", (cmd, para) => { return FlowSmallOff(); });
  233. OP.Subscribe($"{Module}.FlowLargeOn", (cmd, para) => { return FlowLargeOn(); });
  234. OP.Subscribe($"{Module}.FlowLargeOff", (cmd, para) => { return FlowLargeOff(); });
  235. OP.Subscribe($"{Module}.VentValveOn", (cmd, para) => { return VentValveOn(); });
  236. OP.Subscribe($"{Module}.VentValveOff", (cmd, para) => { return VentValveOff(); });
  237. OP.Subscribe($"{Module}.DrainValveOn", (cmd, para) => { return DrainValveOn(); });
  238. OP.Subscribe($"{Module}.DrainValveOff", (cmd, para) => { return DrainValveOff(); });
  239. OP.Subscribe($"{Module}.VacuumValveOn", (cmd, para) => { return VacuumValveOn(); });
  240. OP.Subscribe($"{Module}.VacuumValveOff", (cmd, para) => { return VacuumValveOff(); });
  241. OP.Subscribe($"{Module}.DisabledAction", DisabledOperation);
  242. OP.Subscribe($"{Module}.ManualAction", ManualOperation);
  243. OP.Subscribe($"{Module}.AutoAction", AutoOperation);
  244. OP.Subscribe($"{Module}.EngineeringModeAction", EngineeringModeOperation);
  245. OP.Subscribe($"{Module}.ProductionModeAction", ProductionModeOperation);
  246. OP.Subscribe($"{Module}.StartRotation", StartRotationAction);
  247. OP.Subscribe($"{Module}.StopRotation", StopRotationAction);
  248. }
  249. #endregion
  250. #region Action
  251. private bool StartRotationAction(string cmd, object[] args)
  252. {
  253. if (args.Length < 2 && (int)args[0] < 0 && (int)args[1] < 0)
  254. {
  255. LOG.WriteLog(eEvent.ERR_VPW, Module, $"Start rotation paramater is wrong");
  256. return false;
  257. }
  258. double targetPostion = (int)args[0] * 6 * (int)args[1];
  259. object[] param = new object[] { "",targetPostion };
  260. int degSpeed = (int)args[0] * 6;
  261. SetRotationSpeed(degSpeed);
  262. return _rotationAxis.JogUpPosition("", param);
  263. }
  264. private bool StopRotationAction(string cmd, object[] args)
  265. {
  266. return _rotationAxis.StopPositionOperation();
  267. }
  268. #region Flow
  269. /// <summary>
  270. /// Flow Drip on
  271. /// </summary>
  272. /// <returns></returns>
  273. public bool FlowDripOn()
  274. {
  275. return WriteVariableValue(FLOW_DRIP, true);
  276. }
  277. /// <summary>
  278. /// Flow Drip Off
  279. /// </summary>
  280. /// <returns></returns>
  281. public bool FlowDripOff()
  282. {
  283. return WriteVariableValue(FLOW_DRIP, false);
  284. }
  285. /// <summary>
  286. /// Flow Small On
  287. /// </summary>
  288. /// <returns></returns>
  289. public bool FlowSmallOn()
  290. {
  291. return WriteVariableValue(FLOW_SMALL, true);
  292. }
  293. /// <summary>
  294. /// Flow Small Off
  295. /// </summary>
  296. /// <returns></returns>
  297. public bool FlowSmallOff()
  298. {
  299. return WriteVariableValue(FLOW_SMALL, false);
  300. }
  301. /// <summary>
  302. /// Flow Large On
  303. /// </summary>
  304. /// <returns></returns>
  305. public bool FlowLargeOn()
  306. {
  307. return WriteVariableValue(FLOW_LARGE, true);
  308. }
  309. /// <summary>
  310. /// Flow Large Off
  311. /// </summary>
  312. /// <returns></returns>
  313. public bool FlowLargeOff()
  314. {
  315. return WriteVariableValue(FLOW_LARGE, false);
  316. }
  317. #endregion
  318. #region Mode Switch
  319. /// <summary>
  320. /// DisabledAction
  321. /// </summary>
  322. /// <param name="cmd"></param>
  323. /// <param name="param"></param>
  324. /// <returns></returns>
  325. private bool DisabledOperation(string cmd, object[] args)
  326. {
  327. string currentOperation = "Disabled";
  328. VpwCellEntity vpwCellEntity = Singleton<RouteManager>.Instance.GetModule<VpwCellEntity>(Module);
  329. if (vpwCellEntity != null && _vpwCellPersistentValue != null && _vpwCellPersistentValue.OperatingMode != currentOperation)
  330. {
  331. string preOperation = _vpwCellPersistentValue.OperatingMode;
  332. if (vpwCellEntity.IsBusy)
  333. {
  334. LOG.WriteLog(eEvent.ERR_VPWMAIN, Module, $"{Module} is Busy, can't switch to Disabled mode");
  335. return false;
  336. }
  337. vpwCellEntity.EnterInit();
  338. _vpwCellPersistentValue.OperatingMode = currentOperation;
  339. LOG.WriteLog(eEvent.INFO_VPWMAIN, Module, $"Operating mode is switched from {preOperation} to {currentOperation}");
  340. }
  341. VpwCellPersistentManager.Instance.UpdatePersistentValue(Module);
  342. return true;
  343. }
  344. /// <summary>
  345. /// ManualAction
  346. /// </summary>
  347. /// <param name="cmd"></param>
  348. /// <param name="param"></param>
  349. /// <returns></returns>
  350. private bool ManualOperation(string cmd, object[] args)
  351. {
  352. string currentOperation = "Manual";
  353. VpwCellEntity vpwCellEntity = Singleton<RouteManager>.Instance.GetModule<VpwCellEntity>(Module);
  354. if (vpwCellEntity != null && _vpwCellPersistentValue != null && _vpwCellPersistentValue.OperatingMode != currentOperation)
  355. {
  356. string preOperation = _vpwCellPersistentValue.OperatingMode;
  357. if (vpwCellEntity.IsBusy)
  358. {
  359. LOG.WriteLog(eEvent.ERR_VPWMAIN, Module, $"{Module} is Busy, can't switch to Manual mode");
  360. return false;
  361. }
  362. vpwCellEntity.EnterInit();
  363. _vpwCellPersistentValue.OperatingMode = currentOperation;
  364. LOG.WriteLog(eEvent.INFO_VPWMAIN, Module, $"Operating mode is switched from {preOperation} to {currentOperation}");
  365. }
  366. VpwCellPersistentManager.Instance.UpdatePersistentValue(Module);
  367. return true;
  368. }
  369. /// <summary>
  370. /// AutoAction
  371. /// </summary>
  372. /// <param name="cmd"></param>
  373. /// <param name="param"></param>
  374. /// <returns></returns>
  375. private bool AutoOperation(string cmd, object[] args)
  376. {
  377. string currentOperation = "Auto";
  378. VpwCellEntity vpwCellEntity = Singleton<RouteManager>.Instance.GetModule<VpwCellEntity>(Module);
  379. if (vpwCellEntity != null && _vpwCellPersistentValue != null && _vpwCellPersistentValue.OperatingMode != currentOperation)
  380. {
  381. string preOperation = _vpwCellPersistentValue.OperatingMode;
  382. if (vpwCellEntity.IsBusy)
  383. {
  384. LOG.WriteLog(eEvent.ERR_VPWMAIN, Module, $"{Module} is Busy, can't switch to Auto mode");
  385. return false;
  386. }
  387. vpwCellEntity.EnterInit();
  388. _vpwCellPersistentValue.OperatingMode = currentOperation;
  389. LOG.WriteLog(eEvent.INFO_VPWMAIN, Module, $"Operating mode is switched from {preOperation} to {currentOperation}");
  390. }
  391. VpwCellPersistentManager.Instance.UpdatePersistentValue(Module);
  392. return true;
  393. }
  394. /// <summary>
  395. /// EngineeringModeAction
  396. /// </summary>
  397. /// <param name="cmd"></param>
  398. /// <param name="param"></param>
  399. /// <returns></returns>
  400. private bool EngineeringModeOperation(string cmd, object[] args)
  401. {
  402. string currentRecipeOperation = "Engineering";
  403. if (_vpwCellPersistentValue != null)
  404. {
  405. _vpwCellPersistentValue.RecipeOperatingMode = currentRecipeOperation;
  406. }
  407. VpwCellPersistentManager.Instance.UpdatePersistentValue(Module);
  408. return true;
  409. }
  410. /// <summary>
  411. /// ProductionAction
  412. /// </summary>
  413. /// <param name="cmd"></param>
  414. /// <param name="param"></param>
  415. /// <returns></returns>
  416. private bool ProductionModeOperation(string cmd, object[] args)
  417. {
  418. string currentRecipeOperation = "Production";
  419. if (_vpwCellPersistentValue != null)
  420. {
  421. _vpwCellPersistentValue.RecipeOperatingMode = currentRecipeOperation;
  422. }
  423. VpwCellPersistentManager.Instance.UpdatePersistentValue(Module);
  424. return true;
  425. }
  426. #endregion
  427. #region Vent Valve
  428. /// <summary>
  429. /// Vent Valve On
  430. /// </summary>
  431. /// <returns></returns>
  432. public bool VentValveOn()
  433. {
  434. return WriteVariableValue(VENT_VALVE, true);
  435. }
  436. /// <summary>
  437. /// Vent Valve Off
  438. /// </summary>
  439. /// <returns></returns>
  440. public bool VentValveOff()
  441. {
  442. return WriteVariableValue(VENT_VALVE, false);
  443. }
  444. #endregion
  445. #region Drain Valve
  446. /// <summary>
  447. /// Drain Valve On
  448. /// </summary>
  449. /// <returns></returns>
  450. public bool DrainValveOn()
  451. {
  452. return WriteVariableValue(DRAIN_VALVE, true);
  453. }
  454. /// <summary>
  455. /// Drain Valve Off
  456. /// </summary>
  457. /// <returns></returns>
  458. public bool DrainValveOff()
  459. {
  460. return WriteVariableValue(DRAIN_VALVE, false);
  461. }
  462. #endregion
  463. #region Vacuum
  464. /// <summary>
  465. /// Vacuum valve on
  466. /// </summary>
  467. /// <returns></returns>
  468. public bool VacuumValveOn()
  469. {
  470. return WriteVariableValue(VACUUM_VALVE, true);
  471. }
  472. /// <summary>
  473. /// Vacuum valve off
  474. /// </summary>
  475. /// <returns></returns>
  476. public bool VacuumValveOff()
  477. {
  478. return WriteVariableValue(VACUUM_VALVE, false);
  479. }
  480. #endregion
  481. /// <summary>
  482. /// 写变量
  483. /// </summary>
  484. /// <param name="variable"></param>
  485. /// <param name="value"></param>
  486. /// <returns></returns>
  487. private bool WriteVariableValue(string variable, object value)
  488. {
  489. string ioName = BeckhoffModuleIOManager.Instance.GetIoNameByInnerModuleName($"{Module}.{variable}");
  490. return IOModuleManager.Instance.WriteIoValue(ioName, value);
  491. }
  492. #endregion
  493. #region Axis
  494. /// <summary>
  495. /// 电机是否上电
  496. /// </summary>
  497. /// <returns></returns>
  498. public bool CheckRotationSwitchOn()
  499. {
  500. return _rotationAxis.IsSwitchOn;
  501. }
  502. /// <summary>
  503. /// Home rotation
  504. /// </summary>
  505. /// <returns></returns>
  506. public bool HomeRotation()
  507. {
  508. return _rotationAxis.Home();
  509. }
  510. /// <summary>
  511. /// 检验Rotation Home结果
  512. /// </summary>
  513. /// <returns></returns>
  514. public bool CheckHomeEndStatus()
  515. {
  516. return CheckRotationEndStatus() && _rotationAxis.IsHomed;
  517. }
  518. /// <summary>
  519. /// 检验Rotation结束状态
  520. /// </summary>
  521. /// <returns></returns>
  522. public bool CheckRotationEndStatus()
  523. {
  524. return _rotationAxis.Status == PunkHPX8_Core.RState.End;
  525. }
  526. /// <summary>
  527. /// 检验Rotation失败状态
  528. /// </summary>
  529. /// <returns></returns>
  530. public bool CheckRotationStopStatus()
  531. {
  532. return _rotationAxis.Status == PunkHPX8_Core.RState.Failed;
  533. }
  534. /// <summary>
  535. /// 设置速度
  536. /// </summary>
  537. /// <param name="speed"></param>
  538. /// <returns></returns>
  539. public bool SetRotationSpeed(int speed)
  540. {
  541. _rotationAxis.SetProfileSpeed(speed);
  542. return true;
  543. }
  544. /// <summary>
  545. /// 改变速度
  546. /// </summary>
  547. /// <param name="speed"></param>
  548. /// <returns></returns>
  549. public bool ChangeRotationSpeed(int speed)
  550. {
  551. return _rotationAxis.ChangeSpeed(speed);
  552. }
  553. /// <summary>
  554. /// 电机运动
  555. /// </summary>
  556. /// <param name="position"></param>
  557. /// <returns></returns>
  558. public bool RotationProfilePosition(double position)
  559. {
  560. return _rotationAxis.ProfilePositionOperation(position);
  561. }
  562. /// <summary>
  563. /// 停止运动
  564. /// </summary>
  565. /// <returns></returns>
  566. public bool StopProfilePosition()
  567. {
  568. return _rotationAxis.StopPositionOperation();
  569. }
  570. /// <summary>
  571. /// 是否Rotation运动
  572. /// </summary>
  573. /// <returns></returns>
  574. public bool CheckRotationRunning()
  575. {
  576. return _rotationAxis.IsRun;
  577. }
  578. #endregion
  579. /// <summary>
  580. /// 定时器
  581. /// </summary>
  582. /// <returns></returns>
  583. public bool OnTimer()
  584. {
  585. if (_rotationAxis != null)
  586. {
  587. _rotationAxis.OnTimer();
  588. }
  589. return true;
  590. }
  591. /// <summary>
  592. /// 监控
  593. /// </summary>
  594. public void Monitor()
  595. {
  596. }
  597. public void Reset()
  598. {
  599. }
  600. public void Terminate()
  601. {
  602. }
  603. }
  604. }