com.eurotech.framework.protocol.modbus
Class ModbusCommEvent
java.lang.Object
com.eurotech.framework.protocol.modbus.ModbusCommEvent
public class ModbusCommEvent
- extends Object
The ModbusCommEvent class contains the values returned by Modbus functions 11(0x0B)
and 12(0x0C).
status : two-bytes status word, 0xFFFF if a busy condition exists, 0 otherwise
eventCount : event counter incremented for each successful message completion
messageCount : quantity of messages processed since last restart
events[] : 0 to 64 bytes, each byte corresponding to the status of one Modbus
send or receive operation, byte 0 is the most recent event.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModbusCommEvent
public ModbusCommEvent()
getStatus
public int getStatus()
setStatus
public void setStatus(int status)
getEventCount
public int getEventCount()
setEventCount
public void setEventCount(int eventCount)
getMessageCount
public int getMessageCount()
setMessageCount
public void setMessageCount(int messageCount)
getEvents
public int[] getEvents()
setEvents
public void setEvents(int[] events)
Copyright © 2013. All Rights Reserved.