Add PMAC V3
- limit switches: use PXX37, PXX38 insteam of MXX21, MXX22 - if the motor is running query for axis position (QXX10) and status (PXX00) - else query also error status (PXX01) and limit switches (PXX37-8) - make the requests in 1+1 transactions
This commit is contained in:
@@ -843,6 +843,18 @@ static void configLiftAxisCallFunc(const iocshArgBuf *args)
|
||||
LiftCreateAxis(args[0].sval, args[1].ival);
|
||||
}
|
||||
|
||||
/* pmacV3CreateAxis */
|
||||
static const iocshArg pmacV3CreateAxisArg0 = {"Controller port name",
|
||||
iocshArgString};
|
||||
static const iocshArg pmacV3CreateAxisArg1 = {"Axis number", iocshArgInt};
|
||||
static const iocshArg *const pmacV3CreateAxisArgs[] = {&pmacV3CreateAxisArg0,
|
||||
&pmacV3CreateAxisArg1};
|
||||
static const iocshFuncDef configpmacV3Axis = {"pmacV3CreateAxis", 2,
|
||||
pmacV3CreateAxisArgs};
|
||||
|
||||
static void configpmacV3AxisCallFunc(const iocshArgBuf *args) {
|
||||
pmacV3CreateAxis(args[0].sval, args[1].ival);
|
||||
}
|
||||
|
||||
/* pmacCreateAxes */
|
||||
static const iocshArg pmacCreateAxesArg0 = {"Controller port name", iocshArgString};
|
||||
|
||||
Reference in New Issue
Block a user