gijzelaerr / python-snap7

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

How to read and write values of type bool using snap7 module? #468

Closed TianSong1991 closed 12 months ago

TianSong1991 commented 12 months ago

In Python, snap7 does not have a direct API to read and write bool type values. How to implement this? Snap7 needs to convert bool type values to read. Is there a direct solution to solve it? Use another method. How should snap7 write a bool type value, thank you.