Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readmultivars #56

Closed
jandekock opened this issue May 17, 2019 · 2 comments
Closed

readmultivars #56

jandekock opened this issue May 17, 2019 · 2 comments

Comments

@jandekock
Copy link

jandekock commented May 17, 2019

can somebody share a working readmultivars ?

this one is not working:

var snap7 = require('node-snap7');
let res = this.client.ReadMultiVars([{"Area": snap7.S7AreaDB, "WordLen": snap7.S7WLByte,"DBNumber": 14, "Start": 46, "Amount": 1}]);
@mathiask88
Copy link
Owner

@jandekock Sorry for responding that late. What is not working? What error do you get?

@mariolazzari
Copy link

mariolazzari commented Jun 25, 2019

This one is working on my project. I do not use "" in field names.

 const vars = [
    {
      Area: s7client.S7AreaDB,
      WordLen: s7client.S7WLBit,
      DBNumber: 185,
      Start: 0,
      Amount: 1
    },
    {
      Area: s7client.S7AreaDB,
      WordLen: s7client.S7WLBit,
      DBNumber: 185,
      Start: 6,
      Amount: 1
    }
  ];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants