Digital input not reading: NPN or PNP, step by step
129 Views •4-20 mA input reading wrong: check it step by step
126 Views •RS-485: how to check a bus step by step
116 Views •Relay or transistor output: which one and how to check it
111 Views •Scaling a 4-20 mA signal in the PLC: formula, constants and code
81 Views •Upload fails: 6 checks before blaming the code
20 Views •Modbus RTU timeout: 6 checks before blaming the wiring
19 Views •Upload fails: 6 checks before blaming the code
Short answer: when the upload fails with "not in sync" or "Failed to connect", the code is rarely the cause. Check the cable, the port, the USB driver, the boards, the ESP32 boot sequence and any program holding the port, in this order.
Download the checklist (PDF, 2 pages)
Descarga la lista de comprobación (PDF, 2 páginas)
These checks apply to Arduino PLCs (M-Duino, Ardbox) and ESP32 PLCs programmed over USB with the Arduino IDE.
Six checks, in this order
| Check | What to do | Good result |
|---|---|---|
| 1. Cable | Some USB cables only charge. Use one you know carries data. | A new port appears in Tools > Port when you plug in the PLC. |
| 2. Port | Unplug the PLC, see which port disappears, plug it back in and select that one. | The selected port is the PLC. |
| 3. Driver | No port at all? Install the USB driver your PLC needs. Its manual says which one. | The port appears after the installation. |
| 4. Boards | Install the Industrial Shields boards in the Boards Manager (industrialshields-avr for Arduino PLCs, industrialshields-esp32 for ESP32 PLCs) and select your exact model in Tools > Board. | Your model appears in the list and is selected. |
| 5. ESP32 boot | On an ESP32 PLC, if the upload does not start, follow the boot sequence in its manual. | The upload starts and finishes. |
| 6. Port busy | Close anything else using the port: another Serial Monitor, Node-RED, a terminal. | The IDE can open the port. |
Power
The USB connection is enough to upload the program. To use the inputs and outputs, power the PLC with 12-24 Vdc, as its datasheet states.
¿La carga a un PLC Arduino o ESP32 falla con not in sync o Failed to connect? Revisa el cable, el puerto, el driver, las boards, el arranque del ESP32 y el puerto ocupado.
Commenting is not enabled on this course.