public class TestPluto
extends org.lsst.ccs.drivers.modbus.TestModbus
| Constructor and Description |
|---|
TestPluto()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
configArea(int area,
int pluto,
int dataId)
Configures a data area.
|
void |
configWrite()
Writes the configuration.
|
void |
open(String node)
Opens connection to a device.
|
void |
readAdditional(int area)
Reads additional data.
|
void |
readAdditional(int area,
int count,
int intvl)
Repeatedly reads additional data.
|
void |
readAdditional(int nodeMask,
int areaMask,
int timeout,
int cycleTime)
Starts a configuration.
|
void |
readGlobal(int pluto)
Reads global data from a Pluto module.
|
void |
readLocal(int pluto,
int type,
int addr)
Reads local data from a Pluto module.
|
void |
readLocal(int pluto,
int type,
int addr,
int count)
Reads local data from a Pluto module.
|
void |
showStatus()
Shows the module status.
|
void |
writeBit(int area,
int bit,
int value)
Writes a bit to a data area.
|
void |
writeRegister(int area,
int reg,
int value)
Writes a register to a data area.
|
@Command(name="open",
description="Open connection to device")
public void open(@Argument(name="node",description="Network node name")
String node)
throws org.lsst.ccs.drivers.commons.DriverException
node - The network node nameorg.lsst.ccs.drivers.commons.DriverException@Command(name="showstatus",
description="Show the module status")
public void showStatus()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="readglobal",
description="Read global data")
public void readGlobal(@Argument(name="pluto",description="Pluto ID")
int pluto)
throws org.lsst.ccs.drivers.commons.DriverException
pluto - The Pluto IDorg.lsst.ccs.drivers.commons.DriverException@Command(name="readadditional",
description="Read additional data")
public void readAdditional(@Argument(name="area",description="Area number")
int area)
throws org.lsst.ccs.drivers.commons.DriverException
area - The data area numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="readadditional",
description="Repeatedly read additional data")
public void readAdditional(@Argument(description="Area number")
int area,
@Argument(description="Number of reads")
int count,
@Argument(description="Interval between reads (ms)")
int intvl)
throws org.lsst.ccs.drivers.commons.DriverException
area - The data area numbercount - The number of reads to dointvl - The interval (ms) between readsorg.lsst.ccs.drivers.commons.DriverException@Command(name="configstart",
description="Start a configuration")
public void readAdditional(@Argument(name="nodemask",description="Bit mask of nodes")
int nodeMask,
@Argument(name="areamask",description="Bit mask of areas")
int areaMask,
@Argument(name="timeout",description="To Pluto timeout (ms)")
int timeout,
@Argument(name="cycletime",description="To Pluto cycle time")
int cycleTime)
nodeMask - Bit mask of nodesareaMask - Bit mask of areastimeout - Timeout (ms)cycleTime - Cycle time (ms)@Command(name="configarea",
description="Configure a data area")
public void configArea(@Argument(name="area",description="Data area number")
int area,
@Argument(name="pluto",description="Pluto number")
int pluto,
@Argument(name="dataid",description="Data ID")
int dataId)
area - Area numberpluto - Pluto numberdataId - Data ID@Command(name="configwrite",
description="Write the configutation")
public void configWrite()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="writebit",
description="Write a bit to an area")
public void writeBit(@Argument(name="area",description="Data area number")
int area,
@Argument(name="bit",description="Bit number")
int bit,
@Argument(name="value",description="Bit value")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
area - The area numberbit - The bit numbervalue - The bit valueorg.lsst.ccs.drivers.commons.DriverException@Command(name="writeregister",
description="Write a register to an area")
public void writeRegister(@Argument(name="area",description="Data area number")
int area,
@Argument(name="register",description="Register number")
int reg,
@Argument(name="value",description="Register value")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
area - The area numberreg - The register numbervalue - The register valueorg.lsst.ccs.drivers.commons.DriverException@Command(name="readlocal",
description="Read local data")
public void readLocal(@Argument(name="pluto",description="Pluto ID")
int pluto,
@Argument(name="type",description="Data type")
int type,
@Argument(name="address",description="Data address")
int addr)
throws org.lsst.ccs.drivers.commons.DriverException
pluto - The Pluto IDtype - The type of dataaddr - The data addressorg.lsst.ccs.drivers.commons.DriverException@Command(name="readlocal",
description="Read local data")
public void readLocal(@Argument(name="pluto",description="Pluto ID")
int pluto,
@Argument(name="type",description="Data type")
int type,
@Argument(name="address",description="Data address")
int addr,
@Argument(name="count",description="Number of addresses")
int count)
throws org.lsst.ccs.drivers.commons.DriverException
pluto - The Pluto IDtype - The type of dataaddr - The first data addresscount - The number of addressesorg.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2021 LSST. All rights reserved.