public class Maq20
extends org.lsst.ccs.drivers.modbus.Modbus
| Modifier and Type | Field and Description |
|---|---|
static int |
MOD_TYPE_ID
Public constants.
|
static int |
MOD_TYPE_IS
Public constants.
|
static int |
MOD_TYPE_JTC
Public constants.
|
static int |
MOD_TYPE_KTC
Public constants.
|
static int |
MOD_TYPE_MVD
Public constants.
|
static int |
MOD_TYPE_RSTC
Public constants.
|
static int |
MOD_TYPE_RTD
Public constants.
|
static int |
MOD_TYPE_TTC
Public constants.
|
static int |
MOD_TYPE_UNKNOWN
Public constants.
|
static int |
MOD_TYPE_VD
Public constants.
|
static int |
MOD_TYPE_VS
Public constants.
|
static int |
NUM_MODULES
Public constants.
|
static int |
RANGE_MAMP_0_20
Public constants.
|
static int |
RANGE_MAMP_4_20
Public constants.
|
static int |
RANGE_MVOLT_100
Public constants.
|
static int |
RANGE_MVOLT_1000
Public constants.
|
static int |
RANGE_MVOLT_2000
Public constants.
|
static int |
RANGE_MVOLT_250
Public constants.
|
static int |
RANGE_MVOLT_50
Public constants.
|
static int |
RANGE_RTD_100
Public constants.
|
static int |
RANGE_RTD_200
Public constants.
|
static int |
RANGE_RTD_850
Public constants.
|
static int |
RANGE_TC_J_199
Public constants.
|
static int |
RANGE_TC_J_393
Public constants.
|
static int |
RANGE_TC_J_760
Public constants.
|
static int |
RANGE_TC_K_1350
Public constants.
|
static int |
RANGE_TC_K_332
Public constants.
|
static int |
RANGE_TC_K_651
Public constants.
|
static int |
RANGE_TC_R_1750
Public constants.
|
static int |
RANGE_TC_R_990
Public constants.
|
static int |
RANGE_TC_S_1750
Public constants.
|
static int |
RANGE_TC_S_970
Public constants.
|
static int |
RANGE_TC_T_220
Public constants.
|
static int |
RANGE_TC_T_400
Public constants.
|
static int |
RANGE_VOLT_10
Public constants.
|
static int |
RANGE_VOLT_20
Public constants.
|
static int |
RANGE_VOLT_40
Public constants.
|
static int |
RANGE_VOLT_5
Public constants.
|
static int |
RANGE_VOLT_60
Public constants.
|
| Constructor and Description |
|---|
Maq20() |
| Modifier and Type | Method and Description |
|---|---|
void |
enable(int modId,
int chan,
boolean state)
Enables or disables a channel.
|
String |
getDateCode(int modId)
Gets the date code.
|
String |
getFwRevision(int modId)
Gets the firmware revision number.
|
String |
getIPAddress()
Gets the IP address.
|
int |
getModuleId(String serial)
Gets a module's ID.
|
String |
getModuleName(int modId)
Gets the module name.
|
int |
getModuleType(int modId)
Gets the module type.
|
int |
getNumInputs(int modId)
Gets the number of input channels for a module.
|
int |
getNumRanges(int modId)
Gets the number of ranges for a module.
|
int |
getRange(int modId,
int chan)
Gets the range for a channel.
|
String |
getSerialNumber(int modId)
Gets the serial number.
|
String |
getSubnetMask()
Gets the subnet mask.
|
boolean |
isEnabled(int modId,
int chan)
Gets the enabled state of a channel.
|
boolean |
moduleExists(int modId)
Tests whether a module exists.
|
void |
open(int type,
String ident,
int parm)
Opens a connection to the device.
|
double |
readTemperature()
Reads the board temperature.
|
double[] |
readValue(int modId)
Reads the data values for all channels.
|
double |
readValue(int modId,
int chan)
Reads the data value for a channel.
|
double[] |
readValue(int modId,
int chan,
int count)
Reads the data values for several channels.
|
void |
register(String... serial)
Register the modules.
|
void |
setIPAddress(String ipAddr)
Sets the IP address.
|
void |
setRange(int modId,
int chan,
int range)
Sets the range for a channel.
|
void |
setSubnetMask(String mask)
Sets the subnet mask.
|
public static final int NUM_MODULES
public static final int MOD_TYPE_UNKNOWN
public static final int MOD_TYPE_JTC
public static final int MOD_TYPE_KTC
public static final int MOD_TYPE_TTC
public static final int MOD_TYPE_RSTC
public static final int MOD_TYPE_RTD
public static final int MOD_TYPE_MVD
public static final int MOD_TYPE_VD
public static final int MOD_TYPE_VS
public static final int MOD_TYPE_ID
public static final int MOD_TYPE_IS
public static final int RANGE_TC_T_400
public static final int RANGE_TC_T_220
public static final int RANGE_TC_J_760
public static final int RANGE_TC_J_393
public static final int RANGE_TC_J_199
public static final int RANGE_TC_K_1350
public static final int RANGE_TC_K_651
public static final int RANGE_TC_K_332
public static final int RANGE_TC_R_1750
public static final int RANGE_TC_R_990
public static final int RANGE_TC_S_1750
public static final int RANGE_TC_S_970
public static final int RANGE_RTD_850
public static final int RANGE_RTD_200
public static final int RANGE_RTD_100
public static final int RANGE_VOLT_60
public static final int RANGE_VOLT_40
public static final int RANGE_VOLT_20
public static final int RANGE_VOLT_10
public static final int RANGE_VOLT_5
public static final int RANGE_MVOLT_2000
public static final int RANGE_MVOLT_1000
public static final int RANGE_MVOLT_250
public static final int RANGE_MVOLT_100
public static final int RANGE_MVOLT_50
public static final int RANGE_MAMP_0_20
public static final int RANGE_MAMP_4_20
public void open(int type,
String ident,
int parm)
throws org.lsst.ccs.drivers.commons.DriverException
open in class org.lsst.ccs.drivers.modbus.Modbustype - The type of connection to makeident - The device identifier:
host name or IP address for network;
serial number for FTDI device;parm - The device parameter:
port number for network;
baud rate for FTDIorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean moduleExists(int modId)
modId - The module registration IDpublic String getModuleName(int modId) throws org.lsst.ccs.drivers.commons.DriverException
modId - The module registration IDorg.lsst.ccs.drivers.commons.DriverExceptionpublic int getModuleType(int modId)
throws org.lsst.ccs.drivers.commons.DriverException
modId - The module registration IDorg.lsst.ccs.drivers.commons.DriverExceptionpublic String getSerialNumber(int modId) throws org.lsst.ccs.drivers.commons.DriverException
modId - The module registration IDorg.lsst.ccs.drivers.commons.DriverExceptionpublic String getDateCode(int modId) throws org.lsst.ccs.drivers.commons.DriverException
modId - The module registration IDorg.lsst.ccs.drivers.commons.DriverExceptionpublic String getFwRevision(int modId) throws org.lsst.ccs.drivers.commons.DriverException
modId - The module registration IDorg.lsst.ccs.drivers.commons.DriverExceptionpublic String getIPAddress() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setIPAddress(String ipAddr) throws org.lsst.ccs.drivers.commons.DriverException
ipAddr - The IP address, as an IP stringorg.lsst.ccs.drivers.commons.DriverExceptionpublic String getSubnetMask() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setSubnetMask(String mask) throws org.lsst.ccs.drivers.commons.DriverException
mask - The subnet mask, as an IP stringorg.lsst.ccs.drivers.commons.DriverExceptionpublic double readTemperature()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void register(String... serial) throws org.lsst.ccs.drivers.commons.DriverException
serial - The serial numbers of all the modules, in the desired
orderorg.lsst.ccs.drivers.commons.DriverExceptionpublic int getModuleId(String serial) throws org.lsst.ccs.drivers.commons.DriverException
serial - The module's serial numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic int getNumInputs(int modId)
throws org.lsst.ccs.drivers.commons.DriverException
modId - The module registration IDorg.lsst.ccs.drivers.commons.DriverExceptionpublic int getNumRanges(int modId)
throws org.lsst.ccs.drivers.commons.DriverException
modId - The module registration IDorg.lsst.ccs.drivers.commons.DriverExceptionpublic int getRange(int modId,
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
modId - The module registration IDchan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setRange(int modId,
int chan,
int range)
throws org.lsst.ccs.drivers.commons.DriverException
modId - The module registration IDchan - The channel numberrange - The range numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isEnabled(int modId,
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
modId - The module registration IDchan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic void enable(int modId,
int chan,
boolean state)
throws org.lsst.ccs.drivers.commons.DriverException
modId - The module registration IDchan - The channel numberstate - The enabled state to set: true or falseorg.lsst.ccs.drivers.commons.DriverExceptionpublic double[] readValue(int modId,
int chan,
int count)
throws org.lsst.ccs.drivers.commons.DriverException
modId - The module registration IDchan - The first channel numbercount - The number of channelsorg.lsst.ccs.drivers.commons.DriverExceptionpublic double readValue(int modId,
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
modId - The module registration IDchan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic double[] readValue(int modId)
throws org.lsst.ccs.drivers.commons.DriverException
modId - The module registration IDorg.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2015 LSST. All rights reserved.