using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace HslCommunication.Profinet.Omron
{
///
/// 欧姆龙PLC的CIP协议的类,支持NJ,NX,NY系列PLC,支持tag名的方式读写数据
///
public class OmronCipNet : HslCommunication.Profinet.AllenBradley.AllenBradleyNet
{
#region Constructor
///
/// Instantiate a communication object for a OmronCipNet PLC protocol
///
public OmronCipNet( ) : base( )
{
}
///
/// Instantiate a communication object for a OmronCipNet PLC protocol
///
/// PLC IpAddress
/// PLC Port
public OmronCipNet( string ipAddress, int port = 44818 ) : base(ipAddress, port )
{
}
#endregion
#region Object Override
///
/// 返回表示当前对象的字符串
///
/// 字符串数据
public override string ToString( )
{
return $"OmronCipNet[{IpAddress}:{Port}]";
}
#endregion
}
}