EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  2025  <2026 Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  2025  <2026
<== Date ==> <== Thread ==>

Subject: RE: Motor control IOC: Delta Tau GeoBrick register (Y:) access from EPICS
From: "Mercado, Ronaldo \(DLSLtd, RAL, TEC\) via Tech-talk" <tech-talk at aps.anl.gov>
To: "Ha, Kiman" <kha at bnl.gov>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Tue, 3 Mar 2026 11:28:29 +0000

Hi,

 

The typical way to achieve this is to map the address to an M variable in the controller and read the M variable from EPICS.

 

I think that for your case the mapping would be

 

M5000 -> Y:$78B20

M5001 -> Y:$78B21

M5002 -> Y:$78B24

M5003 -> Y:$78B25

 

Assuming the “M” variables in that range are available.

 

Reading the M variables depends on the driver that you are using.

 

Some of my systems still use the old tpmac (*) and some newer systems use the pmac driver (**).

 

Do you know which one you are using?

 

This is an example record reading an M variable using pmac

 

record(ai, "example-record:RBV") {

  field(SCAN, "I/O Intr")

  field(PINI, "NO")

  field(DTYP, "asynInt32")

  field(INP, "@asyn(BRICK1,0)PMAC_VIF_M1")

  field(PREC, "0")

  field(EGU, "")

}

 

The corresponding entries in the startup script are

# Create IP Port (PortName, IPAddr)

pmacAsynIPConfigure("BRICK1port", "<ip-address>:1025")

 

# Configure Model 3 Controller Driver (ControlerPort, LowLevelDriverPort, Address, Axes, MovingPoll, IdlePoll)

pmacCreateController("BRICK1", "BRICK1port", 0, 4, 100, 200)

 

This is an example record reading an M variable when using asyn + tpmac

 

record(ai, "example-record:no2") {

  field(DTYP, "stream")

  field(INP, "@pmac.proto getIntVar(M5035) BRICK1port")

}

 

The corresponding entry in the startup script was

 

# Create IP Port (PortName, IPAddr)

pmacAsynIPConfigure("BRICK1port", "<ip-address>:1025")

 

The protocol file pmac.proto comes from the pmacUtil module (+++)

 

 

Regards,

Ronaldo

 

Diamond

 

* https://www.gmca.aps.anl.gov/makarov/TPMAC2/

 

**  https://github.com/DiamondLightSource/pmac/

 

+++ https://github.com/DiamondLightSource/pmacUtil

 

From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Ha, Kiman via Tech-talk
Sent: 28 February 2026 23:30
To: tech-talk at aps.anl.gov
Subject: Motor control IOC: Delta Tau GeoBrick register (Y:) access from EPICS

 

Hello all,

 

I’m working with a Delta Tau GeoBrick (Turbo PMAC2 family) controlled by an EPICS IOC using a motor record with DTYP=asynMotor.

 

My purpose is to sniff/verify the EIB1512 EnDat2 encoder protocol for a PandABox interface, so I’d like to read the encoder input raw EnDat2 register words directly from the controller, for example:

• Y:$78B20 (EnDat Data A, Ch1)
• Y:$78B21 (EnDat Data B, Ch1)
• Y:$78B24 (EnDat Data A, Ch2)
• Y:$78B25 (EnDat Data B, Ch2)

 

From the motor record I see:
• XF:23ID2-OP{Mono-Ax}Mtr.DTYP = asynMotor
• XF:23ID2-OP{Mono-Ax}Mtr.OUT = @asyn(motor,2)

 

Any suggestions on the recommended way to read these Y: registers as raw words from the IOC (e.g., via an asynOctet port/asynRecord, or a standard PMAC/GeoBrick register PV template).

 

Thanks,

Kiman

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.

References:
Motor control IOC: Delta Tau GeoBrick register (Y:) access from EPICS Ha, Kiman via Tech-talk

Navigate by Date:
Prev: Re: AreaDetector Collaboration Meeting - March 5th Érico Nogueira Rolim via Tech-talk
Next: New 2.3.1 release of EPICS Archiver Appliance Sky Brewer via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  2025  <2026
Navigate by Thread:
Prev: Motor control IOC: Delta Tau GeoBrick register (Y:) access from EPICS Ha, Kiman via Tech-talk
Next: New 2.3.1 release of EPICS Archiver Appliance Sky Brewer via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  2025  <2026
ANJ, 19 Mar 2026 · Home · News · About · Talk · Base · Modules · Extensions ·
· Distributions · Download · Documents · Links · Licensing ·