Exemplo n.º 1
0
 /// <summary>
 /// Конструктор
 /// </summary>
 /// <param name="address"></param>
 /// <param name="function"></param>
 /// <param name="data"></param>
 public Message(byte address, Byte function, Byte[] data)
 {
     _Address      = address;
     _PDU          = new PDU();
     _PDU.Function = function;
     _PDU.AddDataBytesRange(data);
     return;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Конструктор
 /// </summary>
 /// <param name="address"></param>
 /// <param name="function"></param>
 /// <param name="data"></param>
 public Message(byte address, Byte function, Byte[] data)
 {
     _Address = address;
     _PDU = new PDU();
     _PDU.Function = function;
     _PDU.AddDataBytesRange(data);
     return;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Конструктор
 /// </summary>
 /// <param name="address">Адрес ответившего устройства</param>
 /// <param name="frame">PDU-фрайм (код функции + данные)</param>
 public Message(byte address, Modbus.OSIModel.Message.PDU frame)
 {
     _Address = address;
     _PDU     = frame;
     return;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Конструктор
 /// </summary>
 /// <param name="address">Адрес ответившего устройства</param>
 /// <param name="frame">PDU-фрайм (код функции + данные)</param>
 public Message(byte address, Modbus.OSIModel.Message.PDU frame)
 {
     _Address = address;
     _PDU = frame;
     return;
 }