sandip1181
Hello Team,
I hope this email finds you well.
We are currently using the STM32H7 series microcontroller in our product, which includes multiple digital inputs/outputs (DI/DO), analog inputs/outputs (AI/AO), Modbus TCP, 4G communication, and Ethernet connectivity.

Objective:

We aim to implement IEC 61131-3 standard PLC programming (Ladder Logic and other languages) with the following workflow:
  1. Users will develop PLC logic using the OpenPLC Development Environment (or a similar tool).
  2. The compiled output (e.g., .bin or .st files) will be transferred to the STM32H7 controller via OTA, Ethernet, or USB.

Key Questions:

  1. Is this approach feasible using the OpenPLC Runtime?
  2. If yes, what modifications or integrations are required on the STM32H7-based controller to support the OpenPLC Runtime?
  3. Do you provide any reference source code or runtime libraries for STM32H7 to execute logic generated by the OpenPLC IDE?
  4. Are there alternative solutions within the OpenPLC ecosystem that may be better suited to our hardware and workflow?
We would greatly appreciate any documentation, hardware support packages (HSP), or step-by-step guidance to help us move forward with this integration. Additionally, please let us know if there are any licensing terms or technical prerequisites for deploying OpenPLC on custom STM32-based hardware.
Thank you for your time and support. We look forward to your response.
Reply 0 0
thiagoralves
  1. Yes if your hardware is compatible with Arduino
  2. See this and this
  3. The logic generated by the OpenPLC Editor is a full runtime that runs on target. You can't run it as a library along with something else.
  4. Not that I know of.
Reply 0 0
fg71
Any Arduino compatible board could be used with OpenPLC, that doesn't mean that everything is supported like everything else in Arduino API.
The variants make platform to be compatible but that doesn't mean the libraries are.
STM32H7 is a family of MCU and it would be difficult to answer if that is supported by Arduino when your information is not enough.
 
Arduino have Giga r1 and this board use STM32H7 family (it use STM32H747IX) in other words that board is not supported by STMicroelectronics.
And the reason is STMicroelectronics Arduino core do not provide a variants for that microcontroller. So the only way to supported is to use
Arduino's core packages for STM3247 that use mbed OS, and STMicroelectronics STM32duino is bare-metal implementation that do not use OS.
That doesn't mean you couldn't use FreeRTOS as libraries from Richard Barry.
 
The only way to understand anything of all this is to study the source code if you like to support a variants that is not supported.
Reply 0 0
Reply