Hi,
I've set up a softMotor record that converts between
coordinate systems
according to some user-definable parameters according to
some soft-ioc
ai records using a CALC record. That works all nice and
pretty, however
what I did not get to work is to also set the soft-limits
of the
softMotor dynamically to the corresponding ai record
values.
This is my Soft-Motor and ai-record definition:
record(motor,"$(IOC):$(powerMotor)")
{
field(DTYP,"Soft Channel")
field(OUT,"$(IOC):$(convertPowerToWp).A PP MS")
field(RDBL,"$(IOC):$(convertWpToPower).VAL NPP MS")
field(URIP,"Yes")
field(STOO,"$(IOC):$(wpMotor).STOP PP MS")
field(DINP,"$(IOC):$(wpMotor).DMOV NPP MS")
field(MRES,0.001)
field(RRES,1)
field(PREC,3)
field(DHLM,"$(IOC):$(MaxPower).VAL CP MS")
field(DLLM,"$(IOC):$(MinPower).VAL CP MS")
field(TWV,".1")
field(RTRY,"0")
field(EGU,"W")
}
record(ai,"$(IOC):$(MinPower)")
{
info(autosaveFields, "VAL")
field(DESC,"Minimum Power")
field(VAL,"0")
field(FLNK,"$(IOC):$(convertWpToPower) PP MS")
field(EGU,"W")
}
record(ai,"$(IOC):$(MaxPower)")
{
info(autosaveFields, "VAL")
field(DESC,"Maximum Power")
field(VAL,"1")
field(FLNK,"$(IOC):$(convertWpToPower) PP MS")
field(EGU,"W")
}
And the errors I get:
Can't set "simManip:Pump:Power.DHLM" to
"simManip:Pump:MaxPower.VAL CP
MS" No digits to convert
Can't set "simManip:Pump:Power.DLLM" to
"simManip:Pump:MinPower.VAL CP
MS" No digits to convert
I would appreciate any advice on this.
Thanks, Laurenz
--
Dr. Laurenz Rettig
Fritz Haber Institute of the Max Planck Society
Department of Physical Chemistry
Dynamics of Correlated Materials
Faradayweg 4-6
14195 Berlin, Germany
phone: +49-(0)30-8413 5225
email:
rettig at fhi-berlin.mpg.de