public class TestMaq20
extends org.lsst.ccs.drivers.modbus.TestModbus
| Constructor and Description |
|---|
TestMaq20()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
readValue(int modId)
Shows all channels' data values.
|
void |
readValue(int modId,
int chan)
Shows one channel's data value.
|
void |
readValue(int modId,
int chan,
int count)
Shows selected channels' data values.
|
void |
register(String... serial)
Registers a set of modules.
|
void |
setEnabled(int modId,
int chan,
org.lsst.ccs.drivers.modbus.TestModbus.OnOff state)
Sets a channel's enabled state.
|
void |
setIPAddress(String ipAddr)
Sets the IP address.
|
void |
setRange(int modId,
int chan,
int range)
Sets a channel's range number.
|
void |
setSubnetMask(String mask)
Sets the subnet mask.
|
void |
showDate(int modId)
Shows a module's date code.
|
void |
showEnabled(int modId,
int chan)
Shows a channel's enabled state.
|
void |
showFwRevision(int modId)
Shows a module's firmware revision number.
|
void |
showId(String serial)
Shows a module's ID given it's serial number.
|
void |
showIPAddress()
Shows the IP address.
|
void |
showName(int modId)
Shows a module's name.
|
void |
showRange(int modId,
int chan)
Shows a channel's range number.
|
void |
showSerial(int modId)
Shows a module's serial number.
|
void |
showSubnetMask()
Shows the subnet mask.
|
void |
showTemperature()
Shows the temperature.
|
@Command(name="register",
description="Register modules")
public void register(@Argument(name="serial",description="Serial numbers")
String... serial)
throws org.lsst.ccs.drivers.commons.DriverException
serial - The serial numbers of the modules to be registeredorg.lsst.ccs.drivers.commons.DriverException@Command(name="showipaddress",
description="Show the IP address")
public void showIPAddress()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setipaddress",
description="Set the IP address")
public void setIPAddress(@Argument(name="ipaddr",description="IP address")
String ipAddr)
throws org.lsst.ccs.drivers.commons.DriverException
ipAddr - The IP address stringorg.lsst.ccs.drivers.commons.DriverException@Command(name="showsubnet",
description="Show the subnet mask")
public void showSubnetMask()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setsubnet",
description="Set the subnet mask")
public void setSubnetMask(@Argument(name="mask",description="subnet mask")
String mask)
throws org.lsst.ccs.drivers.commons.DriverException
mask - The subnet maskorg.lsst.ccs.drivers.commons.DriverException@Command(name="showtemperature",
description="Show the temperature")
public void showTemperature()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showid",
description="Show module\'s ID")
public void showId(@Argument(name="serial",description="Serial number")
String serial)
throws org.lsst.ccs.drivers.commons.DriverException
serial - The module's serial numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="showname",
description="Show module\'s name")
public void showName(@Argument(name="modid",description="Module ID")
int modId)
throws org.lsst.ccs.drivers.commons.DriverException
modId - The module IDorg.lsst.ccs.drivers.commons.DriverException@Command(name="showserial",
description="Show module\'s serial number")
public void showSerial(@Argument(name="modid",description="Module ID")
int modId)
throws org.lsst.ccs.drivers.commons.DriverException
modId - The module IDorg.lsst.ccs.drivers.commons.DriverException@Command(name="showrevision",
description="Show module\'s FW revision")
public void showFwRevision(@Argument(name="modid",description="Module ID")
int modId)
throws org.lsst.ccs.drivers.commons.DriverException
modId - The module IDorg.lsst.ccs.drivers.commons.DriverException@Command(name="showdate",
description="Show module\'s date code")
public void showDate(@Argument(name="modid",description="Module ID")
int modId)
throws org.lsst.ccs.drivers.commons.DriverException
modId - The module IDorg.lsst.ccs.drivers.commons.DriverException@Command(name="showrange",
description="Show channel\'s range")
public void showRange(@Argument(name="modid",description="Module ID")
int modId,
@Argument(name="chan",description="Channel number")
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
modId - The module IDchan - The channel numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="setrange",
description="Set channel\'s range")
public void setRange(@Argument(name="modid",description="Module ID")
int modId,
@Argument(name="chan",description="Channel number")
int chan,
@Argument(name="range",description="Range number")
int range)
throws org.lsst.ccs.drivers.commons.DriverException
modId - The module IDchan - The channel numberrange - The range numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="showenabled",
description="Show channel\'s enabled state")
public void showEnabled(@Argument(name="modid",description="Module ID")
int modId,
@Argument(name="chan",description="Channel number")
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
modId - The module IDchan - The channel numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="setenabled",
description="Set channel\'s enabled state")
public void setEnabled(@Argument(name="modid",description="Module ID")
int modId,
@Argument(name="chan",description="Channel number")
int chan,
@Argument(name="state",description="Enabled state")
org.lsst.ccs.drivers.modbus.TestModbus.OnOff state)
throws org.lsst.ccs.drivers.commons.DriverException
modId - The module IDchan - The channel numberstate - The enabled stateorg.lsst.ccs.drivers.commons.DriverException@Command(name="readvalue",
description="Show channels\' data values")
public void readValue(@Argument(name="modid",description="Module ID")
int modId,
@Argument(name="chan",description="Channel number")
int chan,
@Argument(name="count",description="Number of channels")
int count)
throws org.lsst.ccs.drivers.commons.DriverException
modId - The module IDchan - The first channel numbercount - The number of channelsorg.lsst.ccs.drivers.commons.DriverException@Command(name="readvalue",
description="Show channel\'s data value")
public void readValue(@Argument(name="modid",description="Module ID")
int modId,
@Argument(name="chan",description="Channel number")
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
modId - The module IDchan - The channel numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="readvalue",
description="Show all channels\' data values")
public void readValue(@Argument(name="modid",description="Module ID")
int modId)
throws org.lsst.ccs.drivers.commons.DriverException
modId - The module IDorg.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2015 LSST. All rights reserved.