
public class CanOpenTTC580 extends CanOpenDevice implements TTC580Interface
| Modifier and Type | Field and Description |
|---|---|
protected int |
cobid1 |
protected int |
cobid2 |
static String |
FILTERPRESENCE |
static String |
LOCKSENSOR |
protected long |
pdo1
PDO1 represents sensors value for socket at STANDBY.
|
protected long |
pdo2
PDO2 represents the same data than PDO1 but for another socket, not at
standby.
|
protected Map<String,SensorPluggedOnTTC580> |
sensorsMap
map of sensors attached to this device.
|
static String |
SLAVE_MODULE_SENSOR |
static String |
XMINUS |
static String |
XPLUS |
booted, dataProviderDictionaryService, errorHistory, errorRegister, inError, initialized, lastErrorCode, lastErrorName, name, nodeID, serialNB, subs, tcpProxyalertSeparator| Constructor and Description |
|---|
CanOpenTTC580(int nodeID,
String serialNB) |
| Modifier and Type | Method and Description |
|---|---|
void |
build() |
StatusDataPublishedByHYTTC580 |
createStatusDataPublishedByHYTTC580()
Creates an object to be published on the STATUS bus by an hyttc580 device.
|
String |
displayError(int error)
read an error table to return an error name corresponding to the error code
given as argument.
|
void |
doInitializePDOs()
Do nothing if this device doesn't send PDOs except log for debug purpose.
|
int |
getCobid1() |
int |
getCobid2() |
int |
getOffset1Xminus(byte sid)
for tests
|
int |
getOffset1Xplus(byte sid)
for tests
|
int |
getOffset2Xminus(byte sid)
for tests
|
int |
getOffset2Xplus(byte sid)
for tests
|
long |
getPdo1() |
long |
getPdo2() |
short |
getSocketId(long pdo)
return socketId from PDO value socket identification are the first 3 bits
(reading from left to right).
|
void |
init() |
String |
printSensorsValues()
for tests
|
void |
publishData()
Publish Data on status bus for trending data base and GUIs.
|
long |
readInterlocksSDO()
read SDO which contains OUT interlocks for autochanger (OUT signals CS,
CFC, CF1, CF0)
|
long |
readOffset1SDO(byte socketID)
read SDO which holds offsets for presence sensors of clampXminus and
clampXplus
|
long |
readOffset2SDO(byte socketID)
read SDO which holds offsets for lock sensors of clampXminus and clampXplus
|
void |
setPdo1(long pdoVal) |
void |
setPdo2(long pdo2) |
String |
toString()
end of ERRORS
**********************************************************************************
|
void |
updateFromPDO(org.lsst.ccs.drivers.canopenjni.PDOData pdo)
process PDOData to retrieve data from this device.
|
protected void |
updateSocketSensors(short socketID,
long pdoValue)
update
|
configAsHeartbeatConsumer, configAsHeartbeatProducer, createStatusDataPublishedByCanOpenDevice, displayErrorHistory, displayErrorRegister, getAlertService, getErrorHistory, getErrorHistoryNB, getErrorRegister, getLastErrorCode, getLastErrorName, getName, getNodeID, getSerialNB, getSubsystem, getTcpProxy, initializeAndCheckHardware, isBooted, isInError, isInitialized, onEmergencyMessage, printSerialNumber, readErrorRegister, readNumberOfErrors, readSDO, resetError, saveParameters, setBooted, updateDeviceInfo, updateErrorHistory, writeSDO, writeTransmissionTypeToDeviceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcheckBooted, checkId, checkInitialized, createStatusDataPublishedByHardware, getName, getNodeID, getSerialNB, initializeAndCheckHardware, initializePDOs, isBooted, isInitialized, printState, raiseAlarmIfMissing, raiseWarningIfMissing, setBooted, updateDeviceInfoonEmergencyMessage, onFault, onFaultResetclearAlarm, getAlertSeparator, getAlertService, getSubsystem, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarmOnlyIfNew, raiseAlertOnlyEveryTenMinutes, raiseAlertOnlyEveryTenMinutes, raiseAlertOnlyIfNew, raiseWarning, raiseWarning, raiseWarningOnlyEveryTenMinutes, raiseWarningOnlyIfNewpublic static final String LOCKSENSOR
public static final String FILTERPRESENCE
public static final String SLAVE_MODULE_SENSOR
public static final String XMINUS
public static final String XPLUS
protected int cobid1
protected int cobid2
@LookupField(strategy=TREE) protected Map<String,SensorPluggedOnTTC580> sensorsMap
protected long pdo1
protected long pdo2
public CanOpenTTC580(int nodeID,
String serialNB)
public int getCobid1()
public int getCobid2()
public void build()
build in interface org.lsst.ccs.framework.HasLifecyclebuild in class CanOpenDevicepublic void init()
init in interface org.lsst.ccs.framework.HasLifecyclepublic long getPdo1()
getPdo1 in interface TTC580Interfacepublic void setPdo1(long pdoVal)
pdoVal - public long getPdo2()
getPdo2 in interface TTC580Interfacepublic void setPdo2(long pdo2)
public void doInitializePDOs()
throws org.lsst.ccs.drivers.commons.DriverException
CanOpenDevicedoInitializePDOs in interface PieceOfHardwaredoInitializePDOs in class CanOpenDeviceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void updateFromPDO(org.lsst.ccs.drivers.canopenjni.PDOData pdo)
updateFromPDO in interface PieceOfHardwareupdateFromPDO in class CanOpenDevicepdo - protected void updateSocketSensors(short socketID,
long pdoValue)
socketID - pdoValue - public short getSocketId(long pdo)
getSocketId in interface TTC580Interfacepdo - @Command(type=QUERY, level=1, description="test and debug") public long readOffset1SDO(byte socketID)
TTC580InterfacereadOffset1SDO in interface TTC580Interface@Command(type=QUERY, level=1, description="test and debug") public long readOffset2SDO(byte socketID)
TTC580InterfacereadOffset2SDO in interface TTC580Interface@Command(type=QUERY, level=1, description="for test and debug") public long readInterlocksSDO()
TTC580InterfacereadInterlocksSDO in interface TTC580Interface@Command(type=QUERY, level=1, description="test and debug") public int getOffset1Xplus(byte sid)
sid - @Command(type=QUERY, level=1, description="test and debug") public int getOffset1Xminus(byte sid)
sid - @Command(type=QUERY, level=1, description="test and debug") public int getOffset2Xminus(byte sid)
sid - @Command(type=QUERY, level=1, description="test and debug") public int getOffset2Xplus(byte sid)
sid - public String displayError(int error)
CanOpenDevicedisplayError in class CanOpenDeviceerror - @Command(type=QUERY, level=1, description="Return the string representation of the PDOs") public String toString()
toString in class CanOpenDevice@Command(type=QUERY, level=1, description="for tests and debug.") public String printSensorsValues()
public StatusDataPublishedByHYTTC580 createStatusDataPublishedByHYTTC580()
public void publishData()
publishData in interface PieceOfHardwarepublishData in class CanOpenDeviceCopyright © 2021 LSST. All rights reserved.