kunal-pinetics - 12 hours ago

Hello everyone,

I am currently working on a PLC device based on the STM32H series MCU, running CODESYS.

At the moment, I can:

  • Change the Ethernet IP address
  • Update/download the PLC application

via Ethernet without any issues.

However, I would like to implement the same functionality over USB (or Serial via USB) instead of Ethernet.

My goals are:

  1. Change the device’s Ethernet IP address via USB
  2. Download/update the PLC application via USB communication

Possibly use USB as a service/programming interface

The hardware platform is based on STM32H series, and I am looking for guidance on:

  • Whether CODESYS supports USB device communication for runtime download
  • If a custom USB CDC (Virtual COM Port) implementation is required
  • Whether a specific CODESYS runtime configuration is needed
  • If a bootloader approach is recommended for application updates via USB

If anyone has experience implementing USB communication for runtime download or device configuration on an STM32-based PLC, I would really appreciate your guidance.

Thank you in advance for your help.