Converting a Ladder .ld file into a C program ! (by José)
I'm working on a program designed to convert a .ld file into an equivalent C source file, with the help of a few external libraries.
Some may say that ldmicro still does the job... YES... except that C files generated by ldmicro are absolutely ugly, unreadable and unusable by human beings.
The C files I generate are easy to read and reflect the structure of the ladder. But there's a price to pay : resulting C files, and also hex files, will probably be bigger than the original ones.
As a compensation, this approach may easily enable the use of long variables, floating point ones, arrays of variables... in a ladder.
For the time being I'm testing it with my favorite STM32F4 target (with Jtag emulator), but then I'll deal with AVRs and PICs.
Let me know if ever you're interested in this project ?
José
(no subject) (by OnosTech)
Hi José,
This is a great idea. At least the STM32 has enough memory to handle the bigger hex files.
I think this will be a very good improvement on LDmicro. I am very much interested in any improvement on LDmicro.
Onos
(no subject) (by Paulino (Calubert))
Hola Jose parece bien si necesitas cualquier ayuda estoy disponible.
Saludos Paulino.
Hi Jose seems fine if you need any help I am available.
Greetings Paulino.
Salut Jose semble bien si vous avez besoin d'aide, je suis disponible.
Salutations Paulino
(no subject) (by Ihor Nehrutsa)
to José
Dia José. Please tell me which STM32F4xx you are using.
I am trying to simulate STM32F401VE in Proteus(it has only stm32f103 and stm32f401) and have an issue with
MCU frequency.
stm32f401 max frequency is 84MHz(not 100MHz).
I comment
//SystemInit(); // initialize system clock at 100 MHz (F4) or 72 Mhz (F1)
and use default frequency 16MHz. In this case, I get the right PLC cycle period.
[email protected]