Ejemplo n.º 1
0
        /// <summary>
        /// 实例化一个默认的对象,并指定IP地址和端口号,端口号通常为8008
        /// </summary>
        /// <param name="ipAddress">Ip地址</param>
        /// <param name="port">端口号</param>
        public ER7BC10(string ipAddress, int port)
        {
            IpAddress = ipAddress;
            Port      = port;

            softIncrementCount = new SoftIncrementCount(ushort.MaxValue);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 指定服务器地址,端口号,客户端自己的站号来初始化
 /// </summary>
 /// <param name="ipAddress">服务器的Ip地址</param>
 /// <param name="port">服务器的端口号</param>
 /// <param name="station">客户端自身的站号</param>
 public ModbusTcpNet(string ipAddress, int port = 502, byte station = 0x01)
 {
     softIncrementCount = new SoftIncrementCount(ushort.MaxValue);
     IpAddress          = ipAddress;
     Port         = port;
     this.station = station;
 }
Ejemplo n.º 3
0
        /// <summary>
        /// 实例化一个默认的Kuka机器人对象,并指定IP地址和端口号,端口号通常为7000
        /// </summary>
        /// <param name="ipAddress">Ip地址</param>
        /// <param name="port">端口号</param>
        public KukaAvarProxyNet(string ipAddress, int port)
        {
            IpAddress = ipAddress;
            Port      = port;

            softIncrementCount = new SoftIncrementCount(ushort.MaxValue);
        }
Ejemplo n.º 4
0
 /// <summary>
 /// 实例化一个MOdbus-Tcp协议的客户端对象
 /// </summary>
 public ModbusTcpNet( )
 {
     softIncrementCount = new SoftIncrementCount(ushort.MaxValue);
     WordLength         = 1;
     station            = 1;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// 实例化一个MOdbus-Tcp协议的客户端对象
 /// </summary>
 public ModbusTcpNet( )
 {
     softIncrementCount = new SoftIncrementCount(ushort.MaxValue);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// 实例化一个默认的对象
 /// </summary>
 public KukaAvarProxyNet( )
 {
     softIncrementCount = new SoftIncrementCount(ushort.MaxValue);
 }