Giter VIP home page Giter VIP logo

Comments (4)

spreeker avatar spreeker commented on June 5, 2024

Read the example code that's out there. You seem to try to run the test code without the test server.

May I suggest you read some data from a test Plc?

from python-snap7.

spreeker avatar spreeker commented on June 5, 2024

Or Python just cannot find the snap package.

from python-snap7.

binmulyadin avatar binmulyadin commented on June 5, 2024

Thanks to the author and thanks to spreeker for quick reply. Let me review again my situation:

  1. I have Install (copy) snap7.dll and snap7.lib
  2. Testing the connection from snap7 to PLC is OK (test using clientDemo.exe from snap7 in rich-demo folder)
    now is the python part:
  3. I have download and install python-snap7 (using setup.py it run without error)
  4. Now then I open test_client.py (from test folder) and I got those above error (I change the ip, rack and slot accordingly in this file).

Now how to know that python is find the snap package? I test by writing (in python shell)

import snap7

and no error

regards

from python-snap7.

binmulyadin avatar binmulyadin commented on June 5, 2024

Thanks all,
it works now, nothings wrong with snap7.dll and also python-snap7 installation. After testing from the "example" folder by typing line by line in python sell is a bit more clear.

from python-snap7.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.