cmseaton42 / node-ethernet-ip

A Lightweight Ethernet/IP API written to interface with Rockwell ControlLogix/CompactLogix Controllers.
MIT License
263 stars 105 forks source link

Reading of some AOI tags throws a generalStatusCode:30 error #57

Closed alex-controlx closed 4 years ago

alex-controlx commented 4 years ago

When reading some tags from custom made Add-On Instruction on PLC.scan() it throws an error.

My Code

const PLC = new Controller();

const tags = [
    new Tag("test_duty_cycle.EnableIn"),
    new Tag("test_duty_cycle.I_RunRequest")
];

PLC.connect("192.168.98.1", 0).then(() => {
    for (let t of tags) {
        PLC.subscribe(t);
    }
    PLC.scan().catch((err) => {
         console.log(err);
    });
});

Error

{"generalStatusCode":30,"extendedStatus":[]}" Which says Embedded service error and no more explanation in the protocol literature.

My AOI

Can be found here DUTY_CYCLE.L5X

Current Behaviour

When my code reads test_duty_cycle.EnableIn it's ok, but reading test_duty_cycle.I_RunRequest throws the error.

Question

Is it a bug or I am missing something?

My Environment

alex-controlx commented 4 years ago

Just found out that my AOI had wrong properties of parameters. All of Input/Output tags had External Access set to None.

Sorry my bad, closing the issue.