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  <20222023  2024  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  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: Modbus module duplicating definitions
From: "Marco A. Barra Montevechi Filho via Tech-talk" <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Sat, 26 Mar 2022 14:24:37 +0000
Hello!

Im compiling an old IOC which uses modbus-R2-11, asyn-R4-33 and base R3.15.6 to talk to an equipment. The old IOC version didnt have a EquipmentInclude.dbd file in src, so i tried adding it.
Compiling the IOC will result, with or without the Include file, in:

perl -CSD /usr/local/epics-nfs/base/R3.15.6/bin/linux-x86_64/dbdExpand.pl   -I. -I.. -I../O.Common -I../../../dbd -I/usr/local/epics-nfs/base/R3.15.6/dbd -I/usr/local/epics-nfs/modules/R3.15.6/synApps/R6.0/support/asyn-R4-33//dbd -I/usr/local/epics-nfs/modules/R3.15.6/synApps/R6.0/support/stream-R2-7-7c//dbd -I/usr/local/epics-nfs/modules/R3.15.6/synApps/R6.0/support/modbus-R2-11/dbd -o Eurotherm.dbd base.dbd stream.dbd drvAsynSerialPort.dbd modbus.dbd modbusSupport.dbd
dbdExpand.pl: Duplicate definition of record type 'mbboDirect'
Context: recordtype(mbboDirect) in file '/usr/local/epics-nfs/modules/R3.15.6/synApps/R6.0/support/modbus-R2-11/dbd/modbus.dbd'
  while reading 'modbus.dbd' to create 'Eurotherm.dbd'
dbdExpand.pl: Exiting due to errors

Then if i create the include file and add

include "base.dbd"
include "asyn.dbd"
include "drvAsynIPPort.dbd"
include "drvAsynSerialPort.dbd"
include "stream.dbd"
include "modbus.dbd"
include "modbusSupport.dbd"

it will generate the same error. Removing only the lines about modbus from the Include file lets the IOC compile, but starting the st.cmd file will return me things like:
st.cmd line 34: Command modbusInterposeConfig not found
st.cmd line 47: Command drvModbusAsynConfigure not found.

Etc. So i figure if i want to use the module i need to find the duplicate definition and remove it? Does anyone have any suggestions or tips?

Thanks in advance and good morning,

Marco



Aviso Legal: Esta mensagem e seus anexos podem conter informações confidenciais e/ou de uso restrito. Observe atentamente seu conteúdo e considere eventual consulta ao remetente antes de copiá-la, divulgá-la ou distribuí-la. Se você recebeu esta mensagem por engano, por favor avise o remetente e apague-a imediatamente.

Disclaimer: This email and its attachments may contain confidential and/or privileged information. Observe its content carefully and consider possible querying to the sender before copying, disclosing or distributing it. If you have received this email by mistake, please notify the sender and delete it immediately.


Replies:
RE: Modbus module duplicating definitions Mark Rivers via Tech-talk

Navigate by Date:
Prev: Re: About checksum error Ralph Lange via Tech-talk
Next: RE: Modbus module duplicating definitions 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  <20222023  2024 
Navigate by Thread:
Prev: Re: [EXTERNAL] phoebus 4.6.6 in windows can't start editor Kasemir, Kay via Tech-talk
Next: RE: Modbus module duplicating definitions 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  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·