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

Subject: Re: abdf1 driver that logs with logMsg? - I know this is a real long shot
From: Mark Rivers via Tech-talk <tech-talk at aps.anl.gov>
To: Maren Purves <m.purves at eaobservatory.org>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Sat, 21 Jan 2023 15:47:02 +0000
Hi Maren,

I assume you don't have access to the source code for the abdf1 driver, so you can't change the printf() to logMsg()?

We log the console output on all of our vxWorks systems as follows:
  • Connect the console serial port to an Ethernet terminal server.
  • Run the procServ program on a Linux machine.  Here is an example of the command used to start one of them:
/usr/local/bin/procServ --logstamp -n "13IDA_IOC" -L /home/epics/logs/13IDA.log 20024 /usr/bin/telnet gsets2.cars.aps.anl.gov 4004

That does the following:
  • Connects to the terminal server gsets2 via telnet on port 4004
  • Logs all of the console output to the file /home/epics/logs/13IDA.log
  • Allows multiple users on the Linux system to connect to the console port at the same time using the command:
telnet localhost 20024

The log file has a timestamp on every line, so you can see when error messages were generated.  Here is an example:

[Fri Jan 20 09:17:14 2023] sevr=minor Motor motion timeout ERROR on card: 2, signal: 0

This solution won't put the log output in the same place that logMsg would, but at least it will be on your Linux server where you can search it.

Mark







From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Maren Purves via Tech-talk <tech-talk at aps.anl.gov>
Sent: Saturday, January 21, 2023 2:59 AM
To: EPICS tech-talk <tech-talk at aps.anl.gov>
Subject: abdf1 driver that logs with logMsg? - I know this is a real long shot
 
Hi all,

we have an EPICS ioc (ppc604, mvme5100 to be exact) that connects to an Alle Bradley PLC using the abdf1 driver. We have some errors recorded from state notation language but that only goes into the buffer of the console switch. We use logMsg (not sure exactly where that comes from) to write to a nightly EPICS.log which is much easier to access than the console switch that only allows one connection at a time.

The abdf1 version used dates back to 2011, and we're still running EPICS 3.13.8 on VxWorks 5.5. While I'd like to upgrade to EPICS 7 and for many (at least the monitoring) things softIocs we don't have the effort to do that in a more than very piecemeal way, if at all.

TIA,
Maren Purves
Head of Instrument and Telescope Software
East Asian Observatory / JCMT


Replies:
Re: abdf1 driver that logs with logMsg? - I know this is a real long shot Maren Purves via Tech-talk
References:
abdf1 driver that logs with logMsg? - I know this is a real long shot Maren Purves via Tech-talk

Navigate by Date:
Prev: abdf1 driver that logs with logMsg? - I know this is a real long shot Maren Purves via Tech-talk
Next: Re: abdf1 driver that logs with logMsg? - I know this is a real long shot Maren Purves 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  2025 
Navigate by Thread:
Prev: abdf1 driver that logs with logMsg? - I know this is a real long shot Maren Purves via Tech-talk
Next: Re: abdf1 driver that logs with logMsg? - I know this is a real long shot Maren Purves 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  2025 
ANJ, 21 Jan 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·