epics-modules / xxx

APS BCDA synApps module: xxx
http://epics-modules.github.io/xxx
Other
5 stars 6 forks source link

define soft asynMotor HLS value #47

Open prjemian opened 3 years ago

prjemian commented 3 years ago

FIX #46

Found the missing HIGH_LIM specification to be a problem while building a new docker image with synApps 6.2 and motor 7-2-2. See https://github.com/prjemian/epics-docker/issues/23#issuecomment-774990195

prjemian commented 3 years ago

not convinced this is a fix yet ... still testing

prjemian commented 3 years ago

Still not fixed:

In [4]: !caget ioc:m45.{VAL,RBV,MRES,HLM,HLS}
ioc:m45.VAL                    0.46714
ioc:m45.RBV                    0.32
ioc:m45.MRES                   1e-05
ioc:m45.HLM                    32000
ioc:m45.HLS                    1
# Motors
#dbLoadTemplate("substitutions/motor.substitutions", "P=$(PREFIX)")
#dbLoadTemplate("substitutions/softMotor.substitutions", "P=$(PREFIX)")
#dbLoadTemplate("substitutions/pseudoMotor.substitutions", "P=$(PREFIX)")

iocshLoad("$(MOTOR)/iocsh/motorSim.iocsh", "INSTANCE=motorSim, HOME_POS=0, NUM_AXES=48, HIGH_LIM=32000, LOW_LIM=-32000, SUB=substitutions/motorSim.substitutions")

# Allstop, alldone
iocshLoad("$(MOTOR)/iocsh/allstop.iocsh", "P=$(PREFIX)")

# trajectory scan
#dbLoadRecords("$(MOTOR)/motorApp/Db/trajectoryScan.db","P=$(PREFIX),R=traj1:,NAXES=2,NELM=300,NPULSE=300")
#doAfterIocInit("seq &MAX_trajectoryScan, 'P=$(PREFIX),R=traj1:,M1=m1,M2=m2,M3=m3,M4=m4,M5=m5,M6=m6,M7=m7,M8=m8,PORT=none'")
MarkRivers commented 3 years ago

That change looks correct to me.

Note that Travis is failing with an unrelated error in caPutRecorder. It looks like a duplicate structure definition in base 7.0?