Re: Start thinking of a more general concept for query-rewrites

2018-12-20 Thread Christofer Dutz
Hi Julian, I could tie a nice ribbon around it to make it look like a present? Chris Am 20.12.18, 10:49 schrieb "Julian Feinauer" : Hey Chris, thanks for the response. I know there are strict packet size requirements for S7 but what we also should keep in mind is the CPU of

Re: Start thinking of a more general concept for query-rewrites

2018-12-20 Thread Julian Feinauer
Hey Chris, thanks for the response. I know there are strict packet size requirements for S7 but what we also should keep in mind is the CPU of the PLC. We had some situations where we put A LOT of bandwith on the CPU and PLC programmers got angry... __ So I don’t know whats causing this.. is th

Re: Start thinking of a more general concept for query-rewrites

2018-12-20 Thread Christofer Dutz
Hi Julian, well a little explanation on "costs" of requests for S7 Protocol (but some should apply for all): - First of all: Every address I ask for, produces a cost in the amount of bytes for the request (Each address has to be transferred) - Secondly: Every address I ask for, usually produces

Re: Start thinking of a more general concept for query-rewrites

2018-12-19 Thread Julian Feinauer
Hi Greg, I like your approach and in fact we also frequently have the same requirements. Thus, I wrote the scraper module (in the utils submodule) some weeks ago. You give it a config file (currently json or yml) and it starts some background threads to fetch all these values frequently. Below yo

Re: Start thinking of a more general concept for query-rewrites

2018-12-19 Thread Otto Fowler
If the caller can say ‘know’ all the possible addresses ahead of time, maybe there could be conceptually a ‘plan’ built, that would optionally be used by the request builder to build the best request, and cache extra data for some period of time. So I want to read a single byte, the plan could bui

Re: Start thinking of a more general concept for query-rewrites

2018-12-18 Thread Greg Trasuk
Hello all, Years ago I went through implementing an interface to a couple of Allen-Bradley products, and I faced the same question of how to optimize the reading and writing operations. What I settled on, instead of trying to micro-optimize individual operations, was to implement a “scan lis

Start thinking of a more general concept for query-rewrites

2018-12-18 Thread Christofer Dutz
Hi all, right now the S7 driver is the only driver that makes use of dynamically rewriting a message. This is for example needed in order to allow reading of large read requests and having the driver split that up into multiple messages. Ideally it would not only split up the messages, but also