public class CanOpenTTC580 extends CanOpenDevice implements TTC580Interface
| Modifier and Type | Field and Description |
|---|---|
protected int |
cobid1 |
protected int |
cobid2 |
protected int |
cobid4 |
static String |
FILTERPRESENCE |
static String |
IO_MODULE_SENSOR |
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 long |
pdo4 |
protected Map<String,CarouselPLCSensor> |
plcSensorsMap |
protected Map<String,SensorPluggedOnTTC580> |
sensorsMap
map of sensors attached to this device.
|
static String |
XMINUS |
static String |
XPLUS |
booted, dataProviderDictionaryService, errorHistory, errorRegister, inError, initialized, lastErrorCode, lastErrorName, name, nodeID, path, serialNB, subs, tcpProxyalertSeparator| Constructor and Description |
|---|
CanOpenTTC580() |
| 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() |
long |
getPdo4() |
short |
getSocketId(long pdo)
return socketId from PDO value socket identification are the first 3 bits
(reading from left to right).
|
void |
init() |
void |
interlockShutterDisable() |
void |
interlockShutterEnable() |
String |
printSensorsValues()
for tests
|
void |
publishData()
Publish Data on status bus for trending data base and GUIs.
|
long |
readInterlocksSDO()
Deprecated.
|
long |
readLockSensorMinLocked()
read lockSensorMinLocked : lock threshold which depends on ambient
temperature.
|
long |
readMeanClampsTemperature()
The mean of the temperatures on the 10 clamps can be read on hyttc580 os
SDO 6404 index 4.
|
long |
readOffset1SDO(byte socketID)
Read offset1 for 2 clamps of socketID given as argument.
|
long |
readOffset2SDO(byte socketID)
Read offset2 for 2 clamps of socketID given as argument.
|
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 the clamps sensors from pdoValue for a carousel socket given by its id.
|
configAsHeartbeatConsumer, configAsHeartbeatProducer, createStatusDataPublishedByCanOpenDevice, displayErrorHistory, displayErrorRegister, getAlertService, getErrorHistory, getErrorHistoryNB, getErrorRegister, getLastErrorCode, getLastErrorName, getName, getNodeID, getPath, getSerialNB, getSubsystem, getTcpProxy, initializeAndCheckHardware, isBooted, isInError, isInitialized, onEmergencyMessage, printSerialNumber, readDeviceType, readErrorRegister, readNumberOfErrors, readSDO, resetError, saveParameters, setBooted, updateDeviceInfo, updateErrorHistory, writeSDO, writeTransmissionTypeToDeviceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcheckBooted, checkId, checkInitialized, createStatusDataPublishedByHardware, getName, getNodeID, getPath, getSerialNB, initializeAndCheckHardware, initializePDOs, isBooted, isInitialized, printState, raiseAlarmIfMissing, raiseWarningIfMissing, readDeviceType, setBooted, updateDeviceInfoonEmergencyMessage, onFault, onFaultResetclearAlarm, getAlertSeparator, getAlertService, getSubsystem, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarmOnlyIfNew, raiseAlertOnlyEveryTenMinutes, raiseAlertOnlyEveryTenMinutes, raiseAlertOnlyIfNew, raiseWarning, raiseWarning, raiseWarning, raiseWarning, raiseWarningOnlyEveryTenMinutes, raiseWarningOnlyIfNewpublic static final String LOCKSENSOR
public static final String FILTERPRESENCE
public static final String IO_MODULE_SENSOR
public static final String XMINUS
public static final String XPLUS
protected int cobid1
protected int cobid2
protected int cobid4
@LookupField(strategy=TREE) protected Map<String,SensorPluggedOnTTC580> sensorsMap
protected Map<String,CarouselPLCSensor> plcSensorsMap
protected long pdo1
protected long pdo2
protected long pdo4
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.HasLifecycleinit in class CanOpenDevicepublic long getPdo1()
getPdo1 in interface TTC580Interfacepublic void setPdo1(long pdoVal)
pdoVal - public long getPdo2()
getPdo2 in interface TTC580Interfacepublic void setPdo2(long pdo2)
public long getPdo4()
getPdo4 in interface TTC580Interfacepublic void doInitializePDOs()
throws org.lsst.ccs.drivers.commons.DriverException
CanOpenDevicedoInitializePDOs in interface PieceOfHardwaredoInitializePDOs in class CanOpenDeviceorg.lsst.ccs.drivers.commons.DriverException@Command(type=ACTION, level=3, description="Disable interlock shutter. Do it only if you understand what you are doing.") public void interlockShutterDisable()
interlockShutterDisable in interface TTC580Interface@Command(type=ACTION, level=3, description="Enable interlock shutter. Do it only if you understand what you are doing.") public void interlockShutterEnable()
interlockShutterEnable in interface TTC580Interfacepublic 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="read lockSensorMinLocked : lock threshold for all clamps") public long readLockSensorMinLocked()
readLockSensorMinLocked in interface TTC580Interfacepublic long readMeanClampsTemperature()
TTC580InterfacereadMeanClampsTemperature in interface TTC580Interface@Command(type=QUERY, level=1, description="read offset1 (balluff) for clamp presence sensors") public long readOffset1SDO(byte socketID)
readOffset1SDO in interface TTC580InterfacesocketID - @Command(type=QUERY, level=1, description="read offset2 (baumer) for clamp lock sensors") public long readOffset2SDO(byte socketID)
readOffset2SDO in interface TTC580InterfacesocketID - @Deprecated @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 © 2023 LSST. All rights reserved.