org.lsst.ccs.drivers.modbus
Class ModbusSlave

java.lang.Object
  extended by org.lsst.ccs.drivers.modbus.ModbusSlave

public class ModbusSlave
extends Object

Handles Modbus RTU messages on a serial line

Author:
Owen Saxton

Constructor Summary
ModbusSlave(int index, String serial, String node)
          Constructor
 
Method Summary
static void main(String[] args)
          Main program
 void receive()
          Receives a command on the Modbus and dispatches it
 void setAddress(int addr)
          Sets the Modbus address being used
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModbusSlave

public ModbusSlave(int index,
                   String serial,
                   String node)
            throws ModbusException
Constructor

Throws:
ModbusException
Method Detail

main

public static void main(String[] args)
                 throws ModbusException
Main program

Throws:
ModbusException

setAddress

public void setAddress(int addr)
Sets the Modbus address being used


receive

public void receive()
             throws ModbusException
Receives a command on the Modbus and dispatches it

Throws:
ModbusException


Copyright © 2013 LSST. All Rights Reserved.