Send command, receive respose using EPICS string records
Add the ability to send any PMAC command from a stringout record and read the response in a stringin record. Previously, the response was thrown away. Needed for I24 (at least)!
It would be nice to have the record in the pmacController.template.
Probably, just after the SendCmd
##############################################################
# Send arbitrary command to the geobrick controller
##############################################################
record(waveform, "$(P):SendCmd")
{
field(DTYP, "asynOctetWrite")
field(FTVL, "CHAR")
field(INP, "@asyn($(PORT),0,$(TIMEOUT=4))PMAC_C_WRITE_CMD")
field(NELM, "100")
field(SCAN, "Passive")
}
Hi Leandro,
Yes, I agree!
Cheers, Andy
From: Leandro Martins @.> Sent: 11 August 2025 15:07 To: DiamondLightSource/pmac @.> Cc: Foster, Andrew (-,RAL,TEC) @.>; Author @.> Subject: Re: [DiamondLightSource/pmac] Send command, receive respose using EPICS string records (PR #135)
[https://avatars.githubusercontent.com/u/26493439?s=20&v=4]LeandroMartinsdS left a comment (DiamondLightSource/pmac#135)https://github.com/DiamondLightSource/pmac/pull/135#issuecomment-3175005129
It would be nice to have the record in the pmacController.template. Probably, just after the SendCmd
##############################################################
Send arbitrary command to the geobrick controller
##############################################################
record(waveform, "$(P):SendCmd")
{
field(DTYP, "asynOctetWrite")
field(FTVL, "CHAR")
field(INP, ***@***.***($(PORT),0,$(TIMEOUT=4))PMAC_C_WRITE_CMD")
field(NELM, "100")
field(SCAN, "Passive")
}
Reply to this email directly, view it on GitHubhttps://github.com/DiamondLightSource/pmac/pull/135#issuecomment-3175005129, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AD35WPRX65KOHZZ7J5HB2KT3NCPQBAVCNFSM6AAAAABVP76NQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTCNZVGAYDKMJSHE. You are receiving this because you authored the thread.Message ID: @.@.>>
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.