Exemplo n.º 1
0
 /// <summary>
 /// 指定服务器地址,端口号,客户端自己的站号来初始化
 /// </summary>
 /// <param name="station">客户端自身的站号</param>
 public ModbusRtu(byte station = 0x01)
 {
     ByteTransform = new HslCommunication.Core.ReverseWordTransform( );
     this.station  = station;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 实例化一个MOdbus-Tcp协议的客户端对象
 /// </summary>
 public ModbusRtu( )
 {
     ByteTransform = new HslCommunication.Core.ReverseWordTransform( );
 }