Skip to content

Commit

Permalink
fix issues with PREC in direct motor PVs
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed May 23, 2018
1 parent 3310482 commit 7db76cc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion etc/makeIocs/lab-ppmac.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<pmac.pmacDisableLimitsCheck Axis="6" Controller="Brick"/>
<pmac.pmacDisableLimitsCheck Axis="7" Controller="Brick"/>
<pmac.pmacDisableLimitsCheck Axis="8" Controller="Brick"/>
<!--<pmac.autohome GRP2="Axis1" P="PMAC_BRICK_TEST" PLC="10" PORT="Brick" name="HOME"/>-->
<pmac.autohome GRP2="Axis1" GRP3="Axis2" GRP4="Axis3" GRP5="Axes4-8" P="PMAC_BRICK_TEST" PLC="10" PORT="Brick" name="HOME"/>
<pmac.pmacSetCoordStepsPerUnit Axis="1" CS="CS2" Scale="1000"/>
<pmac.pmacSetCoordStepsPerUnit Axis="2" CS="CS2" Scale="100"/>
</components>
4 changes: 4 additions & 0 deletions pmacApp/Db/pmacDirectMotor.template
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
# % macro, ADDR, The asyn address (real or CS axis number)
# % macro, DESC, Description
# % macro, PMAC, PV Prefix for the motor controller
# % macro, P, PV Prefix for direct motors
# % macro, M, Motor PV suffix ('Mx' for real and 'CSx:My' for CS axes)

##############################################################
Expand All @@ -25,6 +26,7 @@
record(ao, "$(P)$(M):DirectDemand")
{
field(FLNK, "$(P)$(M):DirectCountsCalc.PROC")
field(PREC, 4)
}

record(scalcout, "$(P)$(M):DirectCountsCalc")
Expand Down Expand Up @@ -121,6 +123,7 @@ record(scalcout, "$(P)$(M):Mres")
field(VAL, 1)
field(PINI, "YES")
field(OUT, "$(P)$(M):MresDrv PP")
field(PREC, 6)
}

record(ao,"$(P)$(M):MresDrv") {
Expand All @@ -144,6 +147,7 @@ record(scalcout, $(P)$(M):Offset)
field(CALC, "A")
field(PINI, "YES")
field(OUT, "$(P)$(M):OffsetDrv PP")
field(PREC, 4)
}


Expand Down
11 changes: 4 additions & 7 deletions pmacApp/opi/edl/pmacCsAxis.edl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ beginScreenProperties
major 4
minor 0
release 1
x 356
y 287
x 1211
y 591
w 300
h 20
font "arial-bold-r-12.0"
Expand Down Expand Up @@ -35,8 +35,6 @@ y 0
w 85
h 20
controlPv "$(pmac):CS$(CS):M$(axis):Mres"
displayMode "decimal"
precision 6
fgColor index 16
fgAlarm
bgColor index 10
Expand Down Expand Up @@ -72,12 +70,11 @@ beginObjectProperties
major 10
minor 0
release 0
x 220
x 215
y 0
w 70
w 80
h 20
controlPv "$(pmac):CS$(CS):M$(axis):Offset"
displayMode "decimal"
fgColor index 16
fgAlarm
bgColor index 10
Expand Down

0 comments on commit 7db76cc

Please sign in to comment.