| 123456789101112131415161718192021222324252627282930313233343536373839 |
- using OpcUaHelper;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using TeamAAS_VP.Enums;
- using TouchSocket.Sockets;
- namespace TeamAAS_VP.Interfaces
- {
- public interface IPlc : IDisposable
- {
- Guid Id { get;}
- /// <summary>
- /// 编号
- /// </summary>
- int Index { get; set; }
- CommunicationType CommunicationType { get;}
- string EndpointUrl { get; }
- string Name { get; }
- OpcUaClient OpcUaClient { get; }
- bool IsConnected { get; }
- event Action<object, bool> ConnectChangedEvent;
- void Connect();
- Task ConnectAsync();
- void Disconnect();
- }
- }
|