read_multi_vars limitation of 20 tags at once, is at Siemens PLC level or at python snap7 level #461
Answered
by
nikteliy
Rahul14189
asked this question in
Q&A
-
Does 'read_multi_vars' method's limitation of reading 20 addresses (or tags) at once, is because of Siemens PLC or it is in python snap7 only ! |
Beta Was this translation helpful? Give feedback.
Answered by
nikteliy
Aug 16, 2023
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Rahul14189
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is a limitation of
snap7
library.At the
s7comm
protocol level, requests are limited by PDU length, so you need to calculate whether both the request data and the response data fit within the PDU. Additionally, requests should not be long due to the possibility of data changes during the request process.The limitation on the maximum number of variables is a
somewhat lazyelegant way to mitigate risks and simplify the code.