gos7 icon indicating copy to clipboard operation
gos7 copied to clipboard

AGReadMulti - limited to 20 items

Open led0nk opened this issue 8 months ago • 4 comments

Hey, i recently stumbled across this here:

https://github.com/robinson/gos7/blob/7ea1d6fb9d204138a117f1255763ad7b37a05e33/multi.go#L140-L147

Is there any reason for this limitation of max. amount of items set to 20?

I'm curious if this is due to some cpu-limitation of Siemens, or if it's possible to increase this. Otherwise i would create a PR for this. And if you don't want that i need to build a wrapper at our repository. But therefore i would love to get some experience by yours.

led0nk avatar Apr 22 '25 21:04 led0nk

Hey @led0nk as far as I remember it correctly, the max variable for multi read is 20 vars, mainly from s7 standard. I have to look at again some documents in Doku folder. VG

robinson avatar Apr 23 '25 12:04 robinson

okay thanks, would be very nice to know also if this is some time-dependant multiRead, otherwise I'm thinking of doing queued requests there. Let me know if you find sth there

led0nk avatar Apr 23 '25 14:04 led0nk

Hello @robinson Is it possible to make this limit configurable by the client with default at 20 ? Thanks

younes199511 avatar Aug 28 '25 13:08 younes199511