# Catch Com S7 error

**URL:** <https://discourse.nodered.org/t/catch-com-s7-error/43557>\
**Category:** General\
**Created:** [2 April 2021 14:37 UTC](https://discourse.nodered.org/t/catch-com-s7-error/43557 "2021-04-02T14:37:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jolrom](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jolrom/32/40007_2.png) [@jolrom](https://discourse.nodered.org/u/jolrom)\
**Post date:** [2 April 2021 14:37 UTC](https://discourse.nodered.org/t/catch-com-s7-error/43557/1 "2021-04-02T14:37:01Z")

</div>

Hello,

I'm using the palette node-red-contrib-s7 to collect data from a PLC S71500. The communication works nicely but I want to get the error if the connexion fail.  
For example if I unplug my PLC I see the error in the debug sidebar. I want to get this error or at least the information that the connection is lost (to show it on my dashboard). I tried with the catch node but didn't succed to make it work...I just started with node-red.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/b/4bd49204f562f17790cef39b6f340e0c3a18efdf.png)

Thank you in advance

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [2 April 2021 15:46 UTC](https://discourse.nodered.org/t/catch-com-s7-error/43557/2 "2021-04-02T15:46:22Z")

</div>

Hi. In order for the catch node to work, the node must be designed to call node.error with a 2nd parameter.

Have a read of [this issue](https://github.com/st-one-io/node-red-contrib-s7/issues/59) on the GitHub repository - add a comment to it if necessary.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [1 June 2021 15:46 UTC](https://discourse.nodered.org/t/catch-com-s7-error/43557/3 "2021-06-01T15:46:42Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
