Skip to content

PLC.foreach() doesn't work #95

@planetixin

Description

@planetixin

Current Behavior

function doesn't work inside PLC.foreach()

Expected Behavior

PLC.foreach() should work.

Possible Solution (Optional)

Context

const PLC = new Controller();
var number = 0;

PLC.connect('ip adress', 0).then(async () => {
PLC.forEach(tag =>{
number++;
});
console.log(number);

});

Steps to Reproduce (for bugs only)

Your Environment

  • Package version (Use npm list - e.g. 1.0.6):
  • Node Version (Use node --version - e.g. 9.8.0):
  • Operating System and version: windows 7
  • Controller Type (eg 1756-L83E/B):
  • Controller Firmware (eg 30.11):

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions