I'm using node-red-contrib-ab for reading plc data.
When PLC is disconnected it shows "Failure (Bad values)" in debug field as msg: String[20],
i want to read this message so than i can know the plc is offline.
I have tried with debug node but no luck.
@nsp For the Catch node to work, the node needs to be reporting the errors using the proper API. If you are only getting a log message and nothing from the Catch node, that means the node needs fixing.
However, the node you mention, node-red-contrib-ab has not been updated for 2 years and has no github link associated with it for reporting issues. You would have to contact the author directly to ask if they can make the change.
Alternatively, I see that node is actually an old fork of https://www.npmjs.com/package/node-red-contrib-s7 which is more widely used and actively maintained. You may want to see if you can switch to that module for your particular PLC.