OmronCipNet.cs
1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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
}
}