Added some flags for NICOS and refactored some records from pmacv3 to
sinqMotor
This commit is contained in:
@@ -55,7 +55,7 @@ class epicsShareClass sinqController : public asynMotorController {
|
||||
* @param value New value
|
||||
* @return asynStatus
|
||||
*/
|
||||
asynStatus writeInt32(asynUser *pasynUser, epicsInt32 value);
|
||||
virtual asynStatus writeInt32(asynUser *pasynUser, epicsInt32 value);
|
||||
|
||||
/**
|
||||
* @brief Overloaded function of asynMotorController
|
||||
@@ -67,7 +67,7 @@ class epicsShareClass sinqController : public asynMotorController {
|
||||
* @param value Read-out value
|
||||
* @return asynStatus
|
||||
*/
|
||||
asynStatus readInt32(asynUser *pasynUser, epicsInt32 *value);
|
||||
virtual asynStatus readInt32(asynUser *pasynUser, epicsInt32 *value);
|
||||
|
||||
/**
|
||||
* @brief Error handling in case accessing the parameter library failed.
|
||||
@@ -107,7 +107,7 @@ class epicsShareClass sinqController : public asynMotorController {
|
||||
* @return asynStatus Returns asynError.
|
||||
*/
|
||||
asynStatus errMsgCouldNotParseResponse(const char *command,
|
||||
const char *response, int axisNo_,
|
||||
const char *response, int axisNo,
|
||||
const char *functionName,
|
||||
int lineNumber);
|
||||
|
||||
@@ -127,18 +127,23 @@ class epicsShareClass sinqController : public asynMotorController {
|
||||
#define FIRST_SINQMOTOR_PARAM motorMessageText_
|
||||
int motorMessageText_;
|
||||
int motorTargetPosition_;
|
||||
int enableMotor_;
|
||||
int enableMotorRBV_;
|
||||
int enableMovWatchdog_;
|
||||
int motorEnable_;
|
||||
int motorEnableRBV_;
|
||||
int motorCanDisable_;
|
||||
int motorEnableMovWatchdog_;
|
||||
int motorCanSetSpeed_;
|
||||
int motorLimitsOffset_;
|
||||
|
||||
/*
|
||||
These parameters are here to write the high and low limits from the MCU to
|
||||
the EPICS motor record. Using motorHighLimit_ / motorLowLimit_ does not
|
||||
work: https://epics.anl.gov/tech-talk/2023/msg00576.php.
|
||||
Therefore, some additional records are introduced which read from these
|
||||
parameters and write into the motor record. See the sinq_asyn_motor.db file.
|
||||
These parameters are here to write values from the hardware to the EPICS
|
||||
motor record. Using motorHighLimit_ / motorLowLimit_ does not work:
|
||||
https://epics.anl.gov/tech-talk/2023/msg00576.php. Therefore, some
|
||||
additional records are introduced which read from these parameters and write
|
||||
into the motor record.
|
||||
*/
|
||||
int motorVeloFromDriver_;
|
||||
int motorVbasFromDriver_;
|
||||
int motorVmaxFromDriver_;
|
||||
int motorAcclFromDriver_;
|
||||
int motorHighLimitFromDriver_;
|
||||
int motorLowLimitFromDriver_;
|
||||
#define LAST_SINQMOTOR_PARAM motorLowLimitFromDriver_
|
||||
|
||||
Reference in New Issue
Block a user