Closed alex-controlx closed 5 years ago
When reading some tags from custom made Add-On Instruction on PLC.scan() it throws an error.
PLC.scan()
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); }); });
{"generalStatusCode":30,"extendedStatus":[]}" Which says Embedded service error and no more explanation in the protocol literature.
{"generalStatusCode":30,"extendedStatus":[]}"
Can be found here DUTY_CYCLE.L5X
When my code reads test_duty_cycle.EnableIn it's ok, but reading test_duty_cycle.I_RunRequest throws the error.
test_duty_cycle.EnableIn
test_duty_cycle.I_RunRequest
Is it a bug or I am missing something?
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.
When reading some tags from custom made Add-On Instruction on
PLC.scan()
it throws an error.My Code
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 readingtest_duty_cycle.I_RunRequest
throws the error.Question
Is it a bug or I am missing something?
My Environment