You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.2 KiB
C#

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