Code Monkey home page Code Monkey logo

Comments (5)

mathiask88 avatar mathiask88 commented on July 29, 2024

Hey, I looked at the code and yes there is a bug that needs to be fixed. I never had the chance to test this function because I only own a S71200/1500. You can use the command until I fixed it if you use var res = s7client.DBGet(100, 65535); The second parameter should be hidden in the lib and describes the maximum size for a DB (AFAIK).

from node-snap7.

tschombe avatar tschombe commented on July 29, 2024

Thanks for your very fast response!!!
I now tried with the second parameter and it seems to work, unfortunately my sps also does not
support that function ;-) (Got an error response #20971520 - CPU : Function not available).

So I will work with DBReads and DBWrites.

from node-snap7.

mathiask88 avatar mathiask88 commented on July 29, 2024

fixed in 4bd69dd

from node-snap7.

flacohenao avatar flacohenao commented on July 29, 2024

Hello, I'm using the same method DBGet(3) but the library is throwing me this:

Function not available (20971520)

wich is preatty much the same case and I do have the latest version of the library.

1.0.6

from node-snap7.

mathiask88 avatar mathiask88 commented on July 29, 2024

Your error is from the PLC itself and not the library. Not all Siemens PLCs support all functions. See http://snap7.sourceforge.net/compatibility.html

from node-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.