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: Re: Beckhoff ADS to EPICS
From: Lesley via Tech-talk <tech-talk at aps.anl.gov>
To: Torsten Bögershausen <Torsten.Bogershausen at ess.eu>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Sun, 26 Nov 2023 23:18:55 +0800 (CST)
Yes, I set up an ADS route on " another Beckhoff PLC " as follows.
First of all  I used BeckhoffADS module (https://github.com/EuropeanSpallationSource/epics-twincat-ads/BeckhoffADS)to test the connected PLC. I set up the new ADS route in the following file in this module.

BeckhoffADS/PLC-TestProject/NotificationTest.tsproj
BeckhoffADS/example/example.cpp

Then I execute make test and the following error occurs.

./example.bin

2023-11-24T19:33:57+0800 Info: Connected to 192.168.3.10 

Running step 1

2023-11-24T19:33:57+0800 Error: read frame failed with error: 104

2023-11-24T19:33:57+0800 Info:connection closed by remote 

Add device port: 0x851

Add device notification failed with: 1861 

Running step 2

notificationByNameExample(): 

make: *** [test] Broken pipe


What is the cause of this error?

Also, for the IOC, I changed the AmsId and IP of another PLC in the file "startup/adsOnlyIO.cmd".



At 2023-11-24 23:44:55, "Torsten Bögershausen" <Torsten.Bogershausen at ess.eu> wrote:

Hej Lesley,

 

Did you set up an ADS route on “another Beckhoff PLC “ (towards your IOC ?)

 

/Torsten

 

From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Lesley via Tech-talk <tech-talk at aps.anl.gov>
Reply to: Lesley <lesley_0506 at 163.com>
Date: Friday, 24 November 2023 at 16:21
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Subject: Beckhoff ADS to EPICS

 

Hello!

I previously used the EPICS Module to communicate with TwinCAT controllers over ADS protocol (https://github.com/EuropeanSpallationSource/epics-twincat-ads). The programme runs correctly.

  When I switched to another Beckhoff PLC, I then used BeckhoffADS module (https://github.com/EuropeanSpallationSource/epics-twincat-ads/BeckhoffADS)to test the connected PLC as follows:

 

# Authorise my ADS client for the TwinCAT target by adding an AMS route.

# Switching directories

cd example/

 

# build

make

 

# and run the example

make test

 

The following error occurs:

[newuser@localhost example]$ make test

./example.bin

2023-11-24T19:33:57+0800 Info: Connected to 192.168.3.10 

Running step 1

2023-11-24T19:33:57+0800 Error: read frame failed with error: 104

2023-11-24T19:33:57+0800 Info:connection closed by remote 

Add device port: 0x851

Add device notification failed with: 1861 

Running step 2

notificationByNameExample(): 

make: *** [test] Broken pipe

 

What can I do to fix this?Thank you for your time.


Replies:
Re: Beckhoff ADS to EPICS Torsten Bögershausen via Tech-talk
References:
Beckhoff ADS to EPICS Lesley via Tech-talk
Re: Beckhoff ADS to EPICS Torsten Bögershausen via Tech-talk

Navigate by Date:
Prev: Don't use epics-base with WSL 1 (Re: SoftIoc with Warning: Unable to clear IP_MULTICAST_ALL on Ubunto on WSL) Michael Davidsaver via Tech-talk
Next: Re: Beckhoff ADS to EPICS Torsten Bögershausen 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: Beckhoff ADS to EPICS Torsten Bögershausen via Tech-talk
Next: Re: Beckhoff ADS to EPICS Torsten Bögershausen 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, 26 Nov 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·