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  <20252026  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  <20252026 
<== Date ==> <== Thread ==>

Subject: About errors in controlling the motor controller.
From: White via Tech-talk <[email protected]>
To: [email protected]
Date: Fri, 28 Nov 2025 17:17:36 +0800 (CST)

Hi

I am using EPICS to remotely control a stepper motor controller (IP: 192.168.0.11), which supports the Modbus-TCP protocol. I want to use the homing trigger function for axis 0. My st.cmd file and db file are as follows, and it runs without errors. but the PV does not connect successfully. The same situation applies to relative motion and absolute motion commands.the Modbus addresses are in the attachment, ( the vendor said that the addresses need to be incremented by one)

 

drvAsynIPPortConfigure(CAT2,192.168.0.11:502,0,0,0)

modbusInterposeConfig("CAT2",0,2000,0)

drvModbusAsynConfigure("0X1R","CAT2",1,5,1,10,0,100,"CAT2")

 

record(bo, "$(DEVNAME):HOMING_TRIGGER")

{

field(DTYP, "asynUInt32Digital")

field(OUT, "@asynMask(0X1R 1 0x1)")

field(ZNAM,"0")

field(ONAM,"1")

field(SCAN, "I/O Intr")

}

When I enter dbpr, it displays as follows:

epics> dbpr FMC01:HOMING_TRIGGER

ASG :               DESC:               DISA: 0             DISP: 0             

DISV: 1             NAME: FMC01:SEARCH_0_TRIGGER            RBV : 0             

RVAL: 0             SEVR: INVALID       STAT: UDF           TPRO: 0             

VAL : 0

 

 Did I make a mistake somewhere?

 

Thanks

White

Attachment: modbus address.xlsx
Description: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet


Replies:
Re: About errors in controlling the motor controller. Mark Rivers via Tech-talk

Navigate by Date:
Prev: EPICS codeathon at Diamond Mercado, Ronaldo (DLSLtd, RAL, TEC) via Tech-talk
Next: Re: About errors in controlling the motor controller. Mark Rivers 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  <20252026 
Navigate by Thread:
Prev: EPICS codeathon at Diamond Mercado, Ronaldo (DLSLtd, RAL, TEC) via Tech-talk
Next: Re: About errors in controlling the motor controller. Mark Rivers 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  <20252026 
ANJ, 19 Mar 2026 · Home · News · About · Talk · Base · Modules · Extensions ·
· Distributions · Download · Documents · Links · Licensing ·