1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- using System;
- using System.Xml;
- using Aitex.Core.Common.DeviceData;
- using Aitex.Core.RT.DataCenter;
- using Aitex.Core.RT.Device;
- using Aitex.Core.RT.Event;
- using Aitex.Core.RT.IOCore;
- using Aitex.Core.RT.Log;
- using Aitex.Core.RT.OperationCenter;
- using Aitex.Core.Util;
- namespace Aitex.Core.RT.Device.Unit
- {
- public class IoMessage : BaseDevice, IDevice
- {
- private readonly AIAccessor _ai;
- private readonly AOAccessor _ao;
- public IoMessage(string module, XmlElement node, string ioModule = "")
- {
- base.Module = module;
- base.Name = node.GetAttribute("id");
- base.Display = node.GetAttribute("display");
- base.DeviceID = node.GetAttribute("schematicId");
- _ai = ParseAiNode("ai", node, ioModule);
- _ao = ParseAoNode("ao", node, ioModule);
- }
- public void SetMessager(float fValue)
- {
- _SetRealFloat(_ao, fValue);
- }
- public bool Initialize()
- {
- return true;
- }
- public void Monitor()
- {
- ;
- }
- public void Terminate()
- {
- ;
- }
- public void Reset()
- {
- ;
- }
- }
- }
|