davenardella
it would be really interesting (or maybe it's already planned?) to generate "bytecode" code from OpenPLC.
A bit like what happens for S7300 systems.
Once you have a program generated from a generic instruction set, it would be possible to write a VM for any hardware, or (much more fun) create a softcore in an FPGA and run the program at very high speed 😉

Today it is possible to find FPGA cards starting from €15 and use a PLL to have an (internal) clock of even a few hundred MHz.
Apart from Ethernet, which, due to its stack complexity, is generally implemented in SoC systems (System on Chip = ARM/RISC-V + FPGA), the rest of the peripherals, such as RS232/485, I2C, SPI, micro-SD protocol etc. they can be easily synthesized on the chip with low resource consumption.
Reply 0 0
thiagoralves
That’s not the path OpenPLC took. OpenPLC does not have an interpreter runtime, instead the code is compiled for the specific architecture. Going to the interpreter path means that the whole architecture must be redesigned, and also that an Arduino Uno wouldn’t run IEC 61131-3 programs with just 2KB of RAM.
Reply 1 0
Reply