Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exception with plc_read using pylogix 1.0.5 #257

Open
1 task
ChristopheLaurent opened this issue Nov 28, 2024 · 1 comment
Open
1 task

exception with plc_read using pylogix 1.0.5 #257

ChristopheLaurent opened this issue Nov 28, 2024 · 1 comment

Comments

@ChristopheLaurent
Copy link

Type of issue

  • Bug

Description of issue

I get an exception reading 583 tags in batch
This error occurs with latest 1.0.5 version. Going back to my previous version 0.8.13, it works perfectly well.

Stacktrace

groot-svc | Exception reading 192.168.22.10: unpack_from requires a buffer of at least 49 bytes for unpacking 1 bytes at offset 48 (actual buffer size is 24)
groot-svc | File "/opt/everest/dev-ts-groot/groot_lib.py", line 194, in plc_read
groot-svc | results = comm.Read(batch)
groot-svc | File "/usr/local/lib/python3.10/site-packages/pylogix/eip.py", line 126, in Read
groot-svc | return self._batch_read(tag)
groot-svc | File "/usr/local/lib/python3.10/site-packages/pylogix/eip.py", line 376, in _batch_read
groot-svc | self._get_unknown_types(tags)
groot-svc | File "/usr/local/lib/python3.10/site-packages/pylogix/eip.py", line 1392, in _get_unknown_types
groot-svc | self._multi_read(unk_tags)
groot-svc | File "/usr/local/lib/python3.10/site-packages/pylogix/eip.py", line 428, in _multi_read
groot-svc | status, ret_data = self.conn.send(request)
groot-svc | File "/usr/local/lib/python3.10/site-packages/pylogix/lgx_comm.py", line 69, in send
groot-svc | return self._get_bytes(eip_header, connected)
groot-svc | File "/usr/local/lib/python3.10/site-packages/pylogix/lgx_comm.py", line 177, in _get_bytes
groot-svc | status = unpack_from('<B', ret_data, 48)[0]

Versions

  • pylogix: 1.0.5
  • plc model: ControlLogix
  • python: 3.10
  • OS: Linux alpine
@dmroeder
Copy link
Owner

Thanks, I'll check this out as soon as I can

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants