Hej Lesley,
Out from the distance it is impossible to see what is wrong,
given the information I have.
_ The key for failing can be seen in this line:
_
_
_
_2023-11-24T19:33:57+0800 Info:connection closed by remote _
And out of my experience, it may be a missing ADS route.
Or a typo somewhere, so that you think that everything is
good, but the PLC does not (and closes the connection)
*From: *Lesley <lesley_0506 at 163.com>
*Date: *Sunday, 26 November 2023 at 16:19
*To: *Torsten Bögershausen <Torsten.Bogershausen at ess.eu>
*Cc: *"tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
*Subject: *Re: Beckhoff ADS to EPICS
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.
- References:
- Beckhoff ADS to EPICS Lesley via Tech-talk
- Re: Beckhoff ADS to EPICS Torsten Bögershausen via Tech-talk
- Re: Beckhoff ADS to EPICS Lesley via Tech-talk
- Navigate by Date:
- Prev:
Re: Beckhoff ADS to EPICS Lesley via Tech-talk
- Next:
Re: PiezosystemJena NV40/3 CLE Kevin Peterson 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: Beckhoff ADS to EPICS Lesley via Tech-talk
- Next:
SoftIoc with Warning: Unable to clear IP_MULTICAST_ALL on Ubunto on WSL Carsten Winkler 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
|