IPlc.cs 738 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. using OpcUaHelper;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using TeamAAS_VP.Enums;
  8. using TouchSocket.Sockets;
  9. namespace TeamAAS_VP.Interfaces
  10. {
  11. public interface IPlc : IDisposable
  12. {
  13. Guid Id { get;}
  14. /// <summary>
  15. /// 编号
  16. /// </summary>
  17. int Index { get; set; }
  18. CommunicationType CommunicationType { get;}
  19. string EndpointUrl { get; }
  20. string Name { get; }
  21. OpcUaClient OpcUaClient { get; }
  22. bool IsConnected { get; }
  23. event Action<object, bool> ConnectChangedEvent;
  24. void Connect();
  25. Task ConnectAsync();
  26. void Disconnect();
  27. }
  28. }