Skip to content

Commit

Permalink
Add motor records to pmac device (#259)
Browse files Browse the repository at this point in the history
* Add motor record to pmac

* Add method to home stages to pmac

* Rething home method

* Use epicsmotors

* Use put instead of set
  • Loading branch information
noemifrisina authored Jan 23, 2024
1 parent 15fc272 commit 0c0a5e4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/dodal/devices/i24/pmac.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from ophyd import Component as Cpt
from ophyd import (
Device,
EpicsMotor,
EpicsSignal,
)

Expand All @@ -9,3 +10,10 @@ class PMAC(Device):
"""Device to control the chip stage on I24."""

pmac_string = Cpt(EpicsSignal, "PMAC_STRING")

x = Cpt(EpicsMotor, "X")
y = Cpt(EpicsMotor, "Y")
z = Cpt(EpicsMotor, "Z")

def home_stages(self):
self.pmac_string.put(r"\#1hmz\#2hmz\#3hmz", wait=True)

0 comments on commit 0c0a5e4

Please sign in to comment.