diff --git a/generate.py b/generate.py index c12f53d..b69db15 100755 --- a/generate.py +++ b/generate.py @@ -165,18 +165,13 @@ epicsEnvSet("LOCATION", "{loc}") # smarActMot PSI templates and other files require motorSmarAct require smarActMot -require ESB_MX zamofing_t +require ESB_MX ###### initialize device ############ drvAsynIPPortConfigure("asyn{port}", "{host}:5000", 0, 0, 0) -# PORT, MCS_PORT, number of axes, active poll period (sec), idle poll period (sec) -smarActMCSCreateController("{port}", "asyn{port}", {num_ax}, 0.1, 1.0) +#ctrlPort, asynPort, number of axes, active poll period (ms), idle poll period ms), [default debug lvl] +MCSCreateController("{port}", "asyn{port}", {num_ax}, 100, 1000, 0x00) -###### initialize axes ############ -''' - - tplMcsAxis='''\ -smarActMCSCreateAxis({PORT}, {ADDR}, {ADDR}) ''' mcsSubsHdr='''\ @@ -383,12 +378,9 @@ file PPMACMotor.template fh_sb.close() - - - def genSmarActIOC(self): tplCtrl=Generate.tplMcsCtrl - tplAxis=Generate.tplMcsAxis + #tplAxis=Generate.tplMcsAxis #tplAxSR=Generate.tplMcsAxisSaveRestore subsHdr=Generate.mcsSubsHdr lutPSENS=Generate.lutPSENS @@ -443,7 +435,7 @@ file PPMACMotor.template motPar['VELO']=2 motPar['RTRY']=1 fh_sb.write(fmt.format(**motPar)) - fh_ss.write(tplAxis.format(**motPar)) + #fh_ss.write(tplAxis.format(**motPar)) #fh_sr.write(tplAxSR.format(**motPar)) fh_sb.write('}\n\n') fh_ss.close()