HOW TO RESET A PLC USING THE ETHERNET SHIELD

In this post it will be seen how to configure the Ethernet Shield to allow the user sending a reset via Ethernet, instead of pressing the button manually. This configuration is useful in order to upload an sketch using the Ethernet shield instead of the USB. Tipically the upload is made via USB, in this case the Arduino IDE sends an order to the Arduino shield to reset it. When it is via Ethernet this is not possible by default. I mean that you have to send a command which the Ethernet shield will accept in order to reset. This is why it has to be configured.

This configuration is made using the own software of the sketch. This means that in the sketch you need to add some configuration telling that when you talk with the PLC via Ethernet using a certain port, it will reset automatically.

Using this sketch we will be configuring the shield to give it a name in order to talk to the PLC using Ethernet. Now the PLC is able to reset by the time you send a single character (“a”) after stablishing conexion using the IP 192.168.1.211 and the port 2000.