gijzelaerr / python-snap7

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

I Can't run the example.py #5

Closed dmalisani closed 10 years ago

dmalisani commented 10 years ago

It shows a valueError: Procedure called with not enogh arguments (16 bytes missing) or wrong calling convention.

It raised by client.connect(PLC_ip, 0,0)

test under S7-1200

spreeker commented 10 years ago

client.connect(PLC_ip, 0,1) probably works. There is no slot 0 like ever, they start counting at 1.

You can't run example.py since it works with my plc setup and data i have put in the PLC it is example code that works for me. It also show's of a way to make a ditionary mapping of DB block's in a plc.