Integrating ESP32 with PLC for Advanced Control – Need Advice on Circuit Design and Code

I'm currently working on a project to integrate an ESP32 with a PLC system for controlling multiple inputs and outputs, including 8 digital inputs, 4 analog inputs, and 10 relay outputs. I came across this project https://www.pcbway.com/project/shar..._4_ANALOG_INPUT_10_RELAY_OUTPUT_43f2ed33.html that seems to closely match my design objectives.

I have a few questions:

  1. How would you recommend handling the communication between the ESP32 and the PLC for reading analog and digital signals?
  2. What are some key considerations when designing the relay output stages, especially for controlling high-power devices?
 
Top