public class ReadCommEventLogResponse extends ModbusResponse
ModbusResponse.AuxiliaryMessageTypes| Constructor and Description |
|---|
ReadCommEventLogResponse()
Constructs a new ReadCommEventLogResponse instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getEvent(int index)
getEvent -- get an event from the event log.
|
int |
getEventCount()
getEvents -- get device's event counter.
|
byte[] |
getEvents() |
byte[] |
getMessage()
getMessage -- format the message into a byte array.
|
int |
getMessageCount()
getMessageCount -- get device's message counter.
|
int |
getStatus()
getStatus -- get the device's status.
|
void |
readData(DataInput din)
readData -- input the Modbus message from din.
|
void |
setEvent(int index,
int event)
setEvent -- store an event number in the event log
|
void |
setEventCount(int count)
setEventCount -- set the device's event counter.
|
void |
setEvents(byte[] events) |
void |
setEvents(int count) |
void |
setMessageCount(int count)
setMessageCount -- set device's message 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 ReadCommEventLogResponse()
public int getStatus()
public void setStatus(int status)
status - Status to setpublic int getEventCount()
public void setEventCount(int count)
count - Set the event countpublic int getMessageCount()
public void setMessageCount(int count)
count - Number of messagespublic int getEvent(int index)
index - Index of the eventpublic byte[] getEvents()
public void setEvents(byte[] events)
public void setEvents(int count)
public void setEvent(int index,
int event)
index - Event positionevent - Event IDpublic 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.