Siemens S7 plc connection status

Hi,
I want to capture the Siemens S7 PLC connection status in case of connection failure and generate some message in case of failure. I have tried using the status node but that not worked. Please help.

If a node has a status dot/text underneath it, you can use the status node to listen for changes. Use a debug node set to show full msg to see what the status node outputs.

A simple and effective way to monitor PLC connection is using a “heartbeat” flip-flop. It lets the PLC know Node-RED is online (you can trigger an alarm if not), and Node-RED can detect if the PLC goes offline—so you can log downtime, send alerts, etc.