Hi,
I can comment that you don’t need pmacAsynCoord any longer when using the pmac driver.
pmacAsynCoord was a separate module from tpmac, but pmac supports coordinate systems using the built-in
pmacCreateCS and pmacCreateCSAxes
I would be pleased to give you an example that I tested only a few weeks ago – excerpt below:
# Create CS (CSPortName, ControllerPort, CSNumber, ProgramNumber)
pmacCreateCS("PPMAC_1_CS_2", "pwbrick", 2, 10)
# Configure Model 3 CS Axes Driver (CSPortName, CSAxisCount)
pmacCreateCSAxes("PPMAC_1_CS_2", 9)
Thanks,
Ronaldo
Greetings EPICS Experts,
I’m currently trying to use pmacAsynCoord with the power pmac (pmac-2-5-20 from
https://github.com/dls-controls/pmac), which I’ve used successfully on the turbo many times. When calling pmacAsynCoordCreate() I get a spew of errors of the form:
2023/08/16 08:45:37.298 drvPmacAxisGetStatus: not all status values returned. Status: 0
Command :&2??
Response:
$0000780000060001
$0000780000060001
This is the same output as I get from the controller. I’m not so experienced with the Power version and am wondering if I may just be missing some pmac setting
or if there is something else I may be misconfiguring. Any advice is much appreciated. My st.cmd is below.
Best Regards,
-Dean Hidas
#!../../bin/linux-x86_64/IVU18
< envPaths
epicsEnvSet("PMAC1_IP", "192.168.0.200")
epicsEnvSet("sys", "SR:C09-ID:G1")
epicsEnvSet("dev", "IVU18:1")
epicsEnvSet("STREAM_PROTOCOL_PATH", "/usr/lib/epics/protocol:$(TOP)/proto")
cd "${TOP}"
## Register all support components
dbLoadDatabase "dbd/IVU18.dbd"
IVU18_registerRecordDeviceDriver pdbbase
# Create SSH Port (PortName, IPAddress, Username, Password, Priority, DisableAutoConnect, noProcessEos)
drvAsynPowerPMACPortConfigure("BRICK1port", $(PMAC1_IP), "root", "deltatau", "0", "0", "0")
# Configure Model 3 Controller Driver (ControlerPort, LowLevelDriverPort, Address, Axes, MovingPoll, IdlePoll)
pmacCreateController("Brick", "BRICK1port", 0, 8, 100, 1000)
# Configure Model 3 Axes Driver (Controler Port, Axis Count)
pmacCreateAxes("Brick", 8)
# Create CS (ControllerPort, Addr, CSNumber, CSRef, Prog)
# Gap: Coordinate System 2 | PROG 2
pmacAsynCoordCreate("BRICK1port", 0, 2, 0, 2)
# Configure CS (PortName, DriverName, CSRef, NAxes)
drvAsynMotorConfigure("BrickCS2", "pmacAsynCoord", 0, 4)
cd "${TOP}/iocBoot/${IOC}"
iocInit
--
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt
by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom