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

Subject: Help getting modbus module started
From: Christian Pauly via Tech-talk <tech-talk at aps.anl.gov>
To: tech-talk at aps.anl.gov
Date: Tue, 14 Feb 2023 18:38:40 +0100
Hi folks

I am trying hard to set up a Raspberry running an EPICS IOC for a Delta VFD motor driver / frequency inverter. The device is controlled via modbus, using a large set of individual 16bit integer read/write registers for configuration, and few more registers for control. At the moment it is configured to talk Modbus ASCII via RS485, and with a simple Python program using minimalmodbus-lib i can talk to the controller.

Now i started with a fresh EPICS 3.15.7 base, (in ~/EPICS/base) and installed ASYN-R4-43 (~/EPICS/modules/asyn-R4-43) and modbus (~/EPICS/modules/modbus_R3-2).
I initiated a new application ~/EPICS/projects/FUcontrol,
ran "makeBaseApp.pl -t example FUcontrol", "makeBaseApp.pl -i -t example FUcontrol" - and thats basically it.

And now i am stuck how to include modbus (includes / libs / dbd files) into my exampleApp.

I kind of managed to include ASYN already by adding
  ASYN=... to the RELEASE file

and to the Makefile:
  FUcontrol_LIBS += asyn

In my ioc startup st.cmd i can run the commands
drvAsynSerialPortConfigure("RS485", "/dev/ttyUSB0", 0, 0, 0)
to configure the interface.

But if i add
modbusInterposeConfig("RS485",2,1000,0)
i get an error on startup claiming that modnusinterposeconfig can not be found.


So:
Is there any simple step-by-step instructions how to add modbus to an existing ioc application ? I could not find anything "simple" in the documentation. I saw the examples which come with modbus, but all these already look quite complicated to me...

Or any good advise on how to continue from here ?

Thanks for any help !

Christian






Replies:
Re: Help getting modbus module started Pierrick M Hanlet via Tech-talk

Navigate by Date:
Prev: Re: Multiple sequencer instances undesirably sharing information Jure Varlec via Tech-talk
Next: Re: Help getting modbus module started Pierrick M Hanlet 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  <20232024 
Navigate by Thread:
Prev: RE: Archiver appliance sampling buffer overflows after migration from Version 2018 to Version 1.1.0 Wang, Lin via Tech-talk
Next: Re: Help getting modbus module started Pierrick M Hanlet 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  <20232024 
ANJ, 14 Feb 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·