public class ReadCommEventCounterResponse extends ModbusResponse
ModbusResponse.AuxiliaryMessageTypes| Constructor and Description |
|---|
ReadCommEventCounterResponse()
Constructs a new ReportSlaveIDResponse instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getEventCount()
getEvents -- get device's event counter.
|
byte[] |
getMessage()
getMessage -- format the message into a byte array.
|
int |
getStatus()
getStatus -- get the device's status.
|
void |
readData(DataInput din)
readData -- input the Modbus message from din.
|
void |
setEventCount(int count)
setEvents -- set the device's event counter.
|
void |
setStatus(int status)
setStatus -- set the device's status.
|
void |
writeData(DataOutput dout)
writeData -- output the completed Modbus message to dout
|
createModbusResponse, getAuxiliaryType, setAuxiliaryTypegetDataLength, getFunctionCode, getHexMessage, getOutputLength, getProtocolID, getTransactionID, getUnitID, isHeadless, readFrom, setDataLength, setHeadless, setHeadless, setProtocolID, setTransactionID, setUnitID, writeTopublic ReadCommEventCounterResponse()
public int getStatus()
public void setStatus(int status)
status - intpublic int getEventCount()
public void setEventCount(int count)
count - Event countpublic void writeData(DataOutput dout) throws IOException
writeData in class ModbusMessageImpldout - the DataOutput to be written to.IOException - If the data cannot be writtenpublic void readData(DataInput din) throws IOException
readData in class ModbusMessageImpldin - the DataInput to read from.IOException - If the data cannot be readpublic byte[] getMessage()
Copyright © 2025. All Rights Reserved.