Comments (8)
Can you email me the exact script you are using and possibly a wireshark of the issue?
Can you give me some context? Like number of tags you are reading, data types, etc. Does this happen every read, or every 10th read or every 100th read, etc. Maybe mention the firmware of your L75 and the model and firmware of the Ethernet module in your CLX chassis.
I don't have a 1768 series but I do have a L73 at work, I'll have access to it Monday.
edit: also, if you reduce the number of tags you are attempting to read each time, does it make a difference?
from pylogix.
Sure, what address should I send it to? Thanks! I'll check on the reduced tags.
from pylogix.
[email protected]. Thanks
from pylogix.
I've sent you a .pcap file. I have not yet had a chance to try again with fewer tags, but I'll let you know when I do. The pcap file is from running the example I posted above in the interactive console. It happens every MultiRead. I have a workaround in my program running right now which is that for those two PLCs, I loop through the tag list with single Reads and it's working fine for now. The data types are ints, floats, and a bool. Thanks for your help!
from pylogix.
Looks like your analysis from our email conversation was correct. So far, I've split all my MultiReads into two sets and the errors haven't recurred.
For others who might be reading, there is a 500 byte limit on tag names in a request, so if you have too many long tag names in one MultiRead, it'll error out. Thanks!
from pylogix.
IIRC, if you either use unconnected messaging or your PLC only supports ForwardOpen, but not ForwarOpenEx, you only get a payload size of ~500 bytes. It might be a few more, but you can only express 511 in the ForwardOpen request.
from pylogix.
Thanks for the update mainsteam.
Just to add a little info on why this appeared to only be an issue on CLX and the L43. Although the UDT was the same structure in all the PLC's, the base tag name was longer in the CLX and L43, which made the packet longer. I'll look at a way to handle this more gracefully.
Kyle, thanks for the input. I'll do some experimenting with unconnected sends.
from pylogix.
I have started experimenting with ForwardOpenEx. At least in some cases you can use packets of about 4000 bytes. I have not tried to see if I can pack a multi-tag request into that.
from pylogix.
Related Issues (20)
- Unknown Error 255 on Multi-Write when including a string HOT 6
- read tag from 80 sets of plc HOT 22
- Double read packets? HOT 6
- cannot import name 'Adapter' from 'pylogix' HOT 23
- Tag Write falsely reports Success HOT 7
- "Forward open failed" when trying to read tags from Berghof PLC HOT 8
- .GetDeviceProperties always returns DeviceType of "None" HOT 5
- Issues connecting to emulate HOT 7
- micro850 connection HOT 5
- Return data gets jumbled up on a multi write when the tags don't exist. HOT 13
- The return value is different when using a multi write compared to a single write for a string. HOT 4
- cannot get a tag list HOT 3
- Is it possible to inhibit a periodic task? HOT 2
- pylogix - returning a tag list as a row of values HOT 7
- PLC REAL values HOT 5
- Pylogix - compare a previously acquired tag list with the current one HOT 5
- Discover does not work while running pylogix in docker HOT 10
- Invalid Continuation Byte HOT 5
- Abnormal code termination. HOT 8
- Do I need to use routing? HOT 20
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 pylogix.