public class TestCms
extends org.lsst.ccs.drivers.modbus.TestModbus
| Constructor and Description |
|---|
TestCms()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
open(org.lsst.ccs.drivers.modbus.Modbus.ConnType type,
String ident,
int baud)
Opens a connection to the device.
|
double |
readAC(int bAddr,
int sensor)
Shows an AC current.
|
Map |
readAllAC(int bAddr,
int sensor)
Shows all AC currents.
|
Map |
readAllDC(int bAddr,
int sensor)
Shows all DC currents.
|
Map |
readAllRMS(int bAddr,
int sensor)
Shows all RMS currents.
|
double |
readDC(int bAddr,
int sensor)
Shows a DC current.
|
double |
readHeldAC(int bAddr,
int sensor)
Shows the held AC current.
|
double |
readHeldDC(int bAddr,
int sensor)
Shows the held DC current.
|
double |
readHeldRMS(int bAddr,
int sensor)
Shows the held RMS current.
|
double |
readMaxAC(int bAddr,
int sensor)
Shows the maximum of an AC current.
|
double |
readMaxDC(int bAddr,
int sensor)
Shows the maximum of a DC current.
|
double |
readMaxRMS(int bAddr,
int sensor)
Shows the maximum of an RMS current.
|
double |
readMinAC(int bAddr,
int sensor)
Shows the minimum of an AC current.
|
double |
readMinDC(int bAddr,
int sensor)
Shows the minimum of a DC current.
|
double |
readMinRMS(int bAddr,
int sensor)
Shows the minimum of an RMS current.
|
double |
readRMS(int bAddr,
int sensor)
Shows an RMS current.
|
void |
resetExtrema(int bAddr)
Resets minimum and maximum values.
|
void |
showSensor(int bAddr,
int sensor,
boolean show)
Sets the show state of a sensor.
|
void |
triggerHold(int bAddr)
Triggers a hold operation.
|
@Command(name="open",
description="Open connection to device")
public void open(@Argument(name="type",description="Connection type")
org.lsst.ccs.drivers.modbus.Modbus.ConnType type,
@Argument(name="ident",description="Device identifier")
String ident,
@Argument(name="baud",description="Baud rate")
int baud)
throws org.lsst.ccs.drivers.commons.DriverException
open in class org.lsst.ccs.drivers.modbus.TestModbustype - The type of connection to makeident - The device identifier:
serial number for FTDI device;
port name for serialbaud - The baud rate, or 0 for default (19200)org.lsst.ccs.drivers.commons.DriverException@Command(name="readDC",
description="Show DC current")
public double readDC(@Argument(name="baddr",description="Modbus address")
int bAddr,
@Argument(name="sensor",description="Sensor number")
int sensor)
throws org.lsst.ccs.drivers.commons.DriverException
bAddr - The Modbus addresssensor - The sensor numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="readAC",
description="Show AC current")
public double readAC(@Argument(name="baddr",description="Modbus address")
int bAddr,
@Argument(name="sensor",description="Sensor number")
int sensor)
throws org.lsst.ccs.drivers.commons.DriverException
bAddr - The Modbus addresssensor - The sensor numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="readRMS",
description="Show RMS current")
public double readRMS(@Argument(name="baddr",description="Modbus address")
int bAddr,
@Argument(name="sensor",description="Sensor number")
int sensor)
throws org.lsst.ccs.drivers.commons.DriverException
bAddr - The Modbus addresssensor - The sensor numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="readMaxDC",
description="Show maximum DC current")
public double readMaxDC(@Argument(name="baddr",description="Modbus address")
int bAddr,
@Argument(name="sensor",description="Sensor number")
int sensor)
throws org.lsst.ccs.drivers.commons.DriverException
bAddr - The Modbus addresssensor - The sensor numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="readMaxAC",
description="Show maximum AC current")
public double readMaxAC(@Argument(name="baddr",description="Modbus address")
int bAddr,
@Argument(name="sensor",description="Sensor number")
int sensor)
throws org.lsst.ccs.drivers.commons.DriverException
bAddr - The Modbus addresssensor - The sensor numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="readMaxRMS",
description="Show maximum RMS current")
public double readMaxRMS(@Argument(name="baddr",description="Modbus address")
int bAddr,
@Argument(name="sensor",description="Sensor number")
int sensor)
throws org.lsst.ccs.drivers.commons.DriverException
bAddr - The Modbus addresssensor - The sensor numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="readMinDC",
description="Show minimum DC current")
public double readMinDC(@Argument(name="baddr",description="Modbus address")
int bAddr,
@Argument(name="sensor",description="Sensor number")
int sensor)
throws org.lsst.ccs.drivers.commons.DriverException
bAddr - The Modbus addresssensor - The sensor numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="readMinAC",
description="Show minimum AC current")
public double readMinAC(@Argument(name="baddr",description="Modbus address")
int bAddr,
@Argument(name="sensor",description="Sensor number")
int sensor)
throws org.lsst.ccs.drivers.commons.DriverException
bAddr - The Modbus addresssensor - The sensor numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="readMinRMS",
description="Show minimum RMS current")
public double readMinRMS(@Argument(name="baddr",description="Modbus address")
int bAddr,
@Argument(name="sensor",description="Sensor number")
int sensor)
throws org.lsst.ccs.drivers.commons.DriverException
bAddr - The Modbus addresssensor - The sensor numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="readHeldDC",
description="Show held DC current")
public double readHeldDC(@Argument(name="baddr",description="Modbus address")
int bAddr,
@Argument(name="sensor",description="Sensor number")
int sensor)
throws org.lsst.ccs.drivers.commons.DriverException
bAddr - The Modbus addresssensor - The sensor numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="readHeldAC",
description="Show held AC current")
public double readHeldAC(@Argument(name="baddr",description="Modbus address")
int bAddr,
@Argument(name="sensor",description="Sensor number")
int sensor)
throws org.lsst.ccs.drivers.commons.DriverException
bAddr - The Modbus addresssensor - The sensor numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="readHeldRMS",
description="Show held RMS current")
public double readHeldRMS(@Argument(name="baddr",description="Modbus address")
int bAddr,
@Argument(name="sensor",description="Sensor number")
int sensor)
throws org.lsst.ccs.drivers.commons.DriverException
bAddr - The Modbus addresssensor - The sensor numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="readAllDC",
description="Show all DC currents")
public Map readAllDC(@Argument(name="baddr",description="Modbus address")
int bAddr,
@Argument(name="sensor",description="Sensor number")
int sensor)
throws org.lsst.ccs.drivers.commons.DriverException
bAddr - The Modbus addresssensor - The sensor numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="readAllAC",
description="Show all AC currents")
public Map readAllAC(@Argument(name="baddr",description="Modbus address")
int bAddr,
@Argument(name="sensor",description="Sensor number")
int sensor)
throws org.lsst.ccs.drivers.commons.DriverException
bAddr - The Modbus addresssensor - The sensor numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="readAllRMS",
description="Show all RMS currents")
public Map readAllRMS(@Argument(name="baddr",description="Modbus address")
int bAddr,
@Argument(name="sensor",description="Sensor number")
int sensor)
throws org.lsst.ccs.drivers.commons.DriverException
bAddr - The Modbus addresssensor - The sensor numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="showSensor",
description="Set whether sensor shows itself")
public void showSensor(@Argument(name="baddr",description="Modbus address")
int bAddr,
@Argument(name="sensor",description="Sensor number")
int sensor,
@Argument(name="show",description="Whether to show")
boolean show)
throws org.lsst.ccs.drivers.commons.DriverException
bAddr - The Modbus addresssensor - The sensor numbershow - Whether to show the sensororg.lsst.ccs.drivers.commons.DriverException@Command(name="triggerHold",
description="Trigger hold operation")
public void triggerHold(@Argument(name="baddr",description="Modbus address")
int bAddr)
throws org.lsst.ccs.drivers.commons.DriverException
bAddr - The Modbus addressorg.lsst.ccs.drivers.commons.DriverException@Command(name="resetExtrema",
description="Reset minima and maxima")
public void resetExtrema(@Argument(name="baddr",description="Modbus address")
int bAddr)
throws org.lsst.ccs.drivers.commons.DriverException
bAddr - The Modbus addressorg.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2020 LSST. All rights reserved.