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

Error: S7PLC: CPU : Item not available #23

Open
ElModdy opened this issue May 4, 2020 · 1 comment
Open

Error: S7PLC: CPU : Item not available #23

ElModdy opened this issue May 4, 2020 · 1 comment

Comments

@ElModdy
Copy link

ElModdy commented May 4, 2020

Hi,
with this code I get the following error: Error: S7PLC: CPU : Item not available, what can I do?
I really appraciate any kind of help.

const {S7Client} = require('S7Client');

const plcSettings = {
    host: '192.168.1.15',
    port: 102,
    rack: 0,
    slot: 2
  };
   

let client = new S7Client(plcSettings);
client.on('error', console.error);

(async function() {
    await client.connect()

    const res = await cpuInfo.readVar({area:"pa", type:"BOOL", start:8, bit: 0})
    console.log(res)

    client.disconnect();
})();
@mathiask88
Copy link
Contributor

This error means that the item you requested to read is not available. Are you sure this output (A8.0) is physically available at your PLC?

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

2 participants