IIoProvider.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System.Collections.Generic;
  2. using System.Xml;
  3. using Aitex.Core.RT.IOCore;
  4. using MECF.Framework.Common.Event;
  5. namespace MECF.Framework.RT.Core.IoProviders
  6. {
  7. public enum IoProviderStateEnum
  8. {
  9. Uninitialized,
  10. Opening,
  11. Opened,
  12. Error,
  13. Closing,
  14. Closed,
  15. }
  16. public interface IIoProvider
  17. {
  18. string Name { get; set; }
  19. string Module { get; set; }
  20. bool IsOpened { get; }
  21. AlarmEventItem DisconnectAlarm { get; set; }
  22. AlarmEventItem CommunicationErrorAlarm { get; set; }
  23. void Initialize(string module, string name, List<IoBlockItem> lstBuffers, IIoBuffer buffer, XmlElement nodeParameter, Dictionary<int, string> ioMappingPathFile);
  24. void Initialize(string module, string name, List<IoBlockItem> lstBuffers, IIoBuffer buffer, XmlElement nodeParameter, string ioMappingPathFile, string ioModule);
  25. void Start();
  26. void Stop();
  27. void Reset();
  28. bool SetValue(AOAccessor aoItem, short value);
  29. bool SetValueFloat(AOAccessor aoItem, float value);
  30. bool SetValue(DOAccessor doItem, bool value);
  31. }
  32. }