ModbusFrameObject
Class Definition
ModbusFrameObject is class to storage and decode modbus frames.
public class ModbusFrameObject;
Constructors
public ModbusFrameObject(byte[] frame)
Frame of bytes in Modbus protocole style, object in constructore decode the most important things about frame.
Properites
Cover all information about given frame.
byte[] orginalFrame
int transactionId
int protocolId
int amountBytesOfPDU
int unitId
int functionCode
int dataBytesAmount
string dataType
List<int> registers
List<bool> oneStateValuesList
Methods
DecodeBits()
Return type: List<bool>
Decode bits for reading coils and discrete inputs, On/Off values.
DecodeRegisters()
Return type: List<int>
Decode registers holding or input.
CombineBytes(byte firstByte, byte secondByte)
Return type: int
Decode order of bytes in response.