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  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020 
<== Date ==> <== Thread ==>

Subject: Modbus - Beckhoff
From: "Szalata, Zenon M." <zms@slac.stanford.edu>
To: Mark Rivers <rivers@cars.uchicago.edu>
Cc: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Fri, 11 Nov 2011 10:57:33 -0800

Hi Mark,

I am running a test soft IOC which reads from a handful of Beckhoff modules.  Just recently it started to crash with segmentation fault.  Here is some of the gdb output looking at the core dump file:

 

Loaded symbols for /lib/libnss_files.so.2

Core was generated by `../../bin/linux-x86/bkh ./st.cmd'.

Program terminated with signal 11, Segmentation fault.

#0  0x00d5e9bd in writeRead (pasynUser=0x9095664, write_buffer=0x9094dd0 "",

    write_buffer_len=6, read_buffer=0x9095028 "\003 ", read_buffer_len=8,

    timeout=2, nbytesOut=0xb7e091c8, nbytesIn=0xb7e091c4, eomReason=0xb7e091c0)

    at ../../asyn/interfaces/asynOctetSyncIO.c:265

265         status = pioPvt->pasynOctet->flush(pioPvt->octetPvt,pasynUser);

(gdb) bt

#0  0x00d5e9bd in writeRead (pasynUser=0x9095664, write_buffer=0x9094dd0 "",

    write_buffer_len=6, read_buffer=0x9095028 "\003 ", read_buffer_len=8,

    timeout=2, nbytesOut=0xb7e091c8, nbytesIn=0xb7e091c4, eomReason=0xb7e091c0)

    at ../../asyn/interfaces/asynOctetSyncIO.c:265

#1  0x008a4834 in doModbusIO (pPlc=0x9094ca0, slave=0, function=3, start=4106,

    data="" len=3) at ../drvModbusAsyn.c:1439

#2  0x008a33eb in readPoller (pPlc=0x9094ca0) at ../drvModbusAsyn.c:1087

#3  0x00178244 in start_routine (arg=0x9095fb0)

    at ../../../src/libCom/osi/os/posix/osdThread.c:282

#4  0x00c59832 in start_thread () from /lib/libpthread.so.0

#5  0x0075546e in clone () from /lib/libc.so.6

(gdb)

 

Before the crash this was printed in the console:

 

epics> 2011/11/09 05:34:58.852 drvModbusAsyn::doModbusIO port BKH3_3408 error calling writeRead, error=192.168.0.193:502 timeout: Resource temporarily unavailable, nwrite=6/6, nread=0

Segmentation fault (core dumped)

 

I think that this started when I connected a prosilica camera to the same network hub, a private subnet (192.168.0.x).

The camera is running continuously sending image data at 10 frames/s.

At this point I am not sure, how long it runs before crash.

 

I will let you know if I discover anything new.

 

Thanks,

Zen

 


Replies:
RE: Modbus - Beckhoff Mark Rivers

Navigate by Date:
Prev: RE: Allen Bradley VME-AB1771, 6008-SV2R Szalata, Zenon M.
Next: RE: Modbus - Beckhoff Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020 
Navigate by Thread:
Prev: Re: 'Patch' tool for windows Josh Stein
Next: RE: Modbus - Beckhoff Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·