com.eurotech.framework.protocol.modbus
Class ModbusCommEvent

java.lang.Object
  extended by 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.


    Constructor Summary
    ModbusCommEvent()
               
     
    Method Summary
     int getEventCount()
               
     int[] getEvents()
               
     int getMessageCount()
               
     int getStatus()
               
     void setEventCount(int eventCount)
               
     void setEvents(int[] events)
               
     void setMessageCount(int messageCount)
               
     void setStatus(int status)
               
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    ModbusCommEvent

    public ModbusCommEvent()
    Method Detail

    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.