IDataBuffer.cs 650 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using Aitex.Core.RT.IOCore;
  6. namespace Aitex.Core.RT.PLC
  7. {
  8. /// <summary>
  9. /// The interfaces isn't common, depends on plc design
  10. /// </summary>
  11. /// <typeparam name="T"></typeparam>
  12. /// <typeparam name="V"></typeparam>
  13. public interface IDataBuffer<T, V> where T : struct
  14. where V : struct
  15. {
  16. T Input { get; set; }
  17. V Output { get; set; }
  18. void UpdateDI(bool[] values);
  19. void UpdateAI(float[] values);
  20. void UpdateDO(bool[] values);
  21. void UpdateAO(float[] values);
  22. }
  23. }