IPlc.cs 643 B

123456789101112131415161718192021222324252627282930313233343536
  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. CommunicationType CommunicationType { get;}
  15. string EndpointUrl { get; }
  16. string Name { get; }
  17. OpcUaClient OpcUaClient { get; }
  18. bool IsConnected { get; }
  19. event Action<object, bool> ConnectChangedEvent;
  20. void Connect();
  21. Task ConnectAsync();
  22. void Disconnect();
  23. }
  24. }