using OpcUaHelper;
using System;
using System.Threading.Tasks;
using TeamAAS_VP.Enums;
using TeamAAS_VP.Interfaces;
using TeamAAS_VP.Models;
namespace TeamAAS_VP.Core.PLCs
{
///
/// 三菱 MC 协议 PLC,封装 并实现 供 PlcService 统一管理。
///
public class MitsubishiMcPLC : IPlc
{
public MitsubishiPLC Client { get; private set; }
public Guid Id { get; private set; }
public CommunicationType CommunicationType { get; private set; }
public string EndpointUrl { get; private set; }
public string Name { get; private set; }
public OpcUaClient OpcUaClient => null;
public bool IsConnected => Client != null && Client.IsConnected;
public event Action