# Database for converter positions # record(ao,"$(pref)$(MOTOR):motionCondit"){ field(DTYP,"Soft Channel") field(VAL,"0.1") field(SCAN, "Passive") } record(ao,"$(pref)$(MOTOR):home"){ field(DTYP,"Soft Channel") field(VAL,"0.") field(PINI, "YES") field(SCAN, "Passive") } record(ao,"$(pref)$(MOTOR):home:proc"){ field(DTYP,"Soft Channel") field(DOL,"$(pref)$(MOTOR):home") field(OMSL,"closed_loop") field(OUT,"$(MOTOR):motor.VAL PP NMS") field(SCAN, "Passive") } record(calc, "$(pref)$(MOTOR)_at_home") { field(INPA, "$(MOTOR):motor.RBV") field(INPB, "$(pref)$(MOTOR):home") field(INPC, "$(MOTOR):motor.DMOV") field(INPE, "$(pref)$(MOTOR):motionCondit") field(SCAN, ".2 second") field(CALC, "(ABS(A-B)