gijzelaerr / python-snap7

A Python wrapper for the snap7 PLC communication library
http://python-snap7.readthedocs.org/
MIT License
643 stars 246 forks source link

Error while reading chars string from s7 200 smart #418

Closed Diptee24 closed 1 year ago

Diptee24 commented 1 year ago

hi sir, i am reading 6-7 address at a time using below format to read string. but i am getting error : b' ISO : Bad PDU format'. each plc address contains 15 byte. client.read_area(snap7.types.Areas.DB,1,3200,15).decode()

also if i use snap7.util.get_string(buffer1,3172,15) it gives me an error. please suggest some solution. thank you.