I almost forgot, you'll also need to add modbus to your
$TOP/configure/RELEASE file (assuming that you have the modbus module).
This may not be precisely worded, but when adding a module, you need to
define its path in $TOP/configure/RELEASE and then
add the modules (lib / dbd) to the $TOP/xxxApp/src/Makefile.
Cheers,
Pierrick
On 2/14/23 13:02, Pierrick M Hanlet via Tech-talk wrote:
> Hi Christian,
> You will also need to add some things to your xxxApp/src/Makefile:
> - xxx_DBD+=modbusSupport.dbd
> - xxx_DBD+=drvAsynSerialPort.dbd
> - xxx_LIBS+=modbus
>
> I think that this should do it for you.
> Good luck,
> Pierrick
>
>
> On 2/14/23 11:38, Christian Pauly via Tech-talk wrote:
>> 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
>>
>>
>>
>>
>>
--
Pierrick Hanlet
Fermi National Accelerator
Accelerator Front End Controls
+1-630-840-5555 -- lab
+1-312-687-4980 -- mobile
"Whether you think you can or think you can't, you're right" -- Henry Ford
- Replies:
- Re: Help getting modbus module started Christian Pauly via Tech-talk
- References:
- Help getting modbus module started Christian Pauly via Tech-talk
- Re: Help getting modbus module started Pierrick M Hanlet via Tech-talk
- Navigate by Date:
- Prev:
Re: Help getting modbus module started Pierrick M Hanlet via Tech-talk
- Next:
RE: Help getting modbus module started 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
- Navigate by Thread:
- Prev:
Re: Help getting modbus module started Pierrick M Hanlet via Tech-talk
- Next:
Re: Help getting modbus module started Christian Pauly 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
|