Skip to content

Error: S7PLC: CPU : Item not available #23

@ElModdy

Description

@ElModdy

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();
})();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions