Comments (5)
It seems the connection works fine if I force my laptop to use wifi, if I go through its ethernet card it doesn't work... I have no idea why...
from ads-rs.
Hi, sorry that you got stuck in the TwinCAT routing hell. Been there, done that...
One thing I noticed is that the NetID/address pairs in your two screenshots seem odd. It seems to indicate that the PLC is 138.131.232.36.1.1 (which is also the NetID you use in the code snippet) but at IP 138.131.232. 39 (which is not the IP you use in the code snippet).
from ads-rs.
Ah yes, it was after a long day of debugging and I guess I typo-ed the IP address in my snipet... Eitherways I tested it with the correct IP or just hostname and it made zero difference.
Considering the connection works just fine through wifi, and connecting to another PLC works fine as well, I can only assume it must be some weird router/firewall blocking going on somewhere.
I'll close the issue for now and report back if I ever find something relevant.
from ads-rs.
Ok, thanks for the feedback!
from ads-rs.
I'm still having weird problems with this... the other day I kept having this panic when trying to read a variable after connecting
Io("sending request", Os { code: 10058, kind: Uncategorized, message: "A request to send or receive data was disallowed because the socket had already been shut down in that direction with a previous shutdown call." })'
And seemingly after some time out of nowhere it started working without issue...
Any clue what this error might indicate?
from ads-rs.
Related Issues (18)
- ADS crate HOT 1
- Decoding and flattening of struct array - question HOT 2
- Can you give me an example of read-write structs? HOT 6
- Making ads::client::Client implement the Send and Sync traits by not using RefCell and Cell in it HOT 2
- decode_symbol_info panics when parsing ARRAY with negative indices such as ARRAY[-1..5] OF INT; HOT 1
- Compilation currently broken HOT 2
- Unable to set TC status HOT 6
- silent panic if twincat restarts mid-read HOT 3
- TwinCat 2 Connection issue HOT 4
- Support reading `zerocopy::FromBytes` datatypes directly? HOT 1
- Getting the symbol type of a specific handle HOT 1
- Support for multi requests HOT 1
- Cannot connect to localhost HOT 34
- Reading multiple handles HOT 3
- Reading / writing strings of length 255 HOT 3
- ads::symbol::get_symbol_info breaks on large TwinCAT projects HOT 13
- "Failed to read data" from PLC HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ads-rs.