Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - Inspired by the LDMicro and PLC Ladder Simulator

(you are viewing a thread; or go back to list of threads)

Inspired by the LDMicro and PLC Ladder Simulator (by Andre (Brazil))
Built from scratch using Python and AI
Fri Jul 17 2026, 19:21:55, download attachment Captura de tela 2026-07-17 191442.png
(no subject) (by Andre (Brazil))
Compressed screenshot, since the chat only allows one attachment
Fri Jul 17 2026, 19:23:49, download attachment Screenshots.zip
(no subject) (by MGP)
Man, that looks really good, nice work.

The new LDmicro standard?? ;-)
Sat Jul 18 2026, 02:56:11
(no subject) (by Alex)
wow, those are good news, I can´t wait to use it :)
Sat Jul 18 2026, 10:11:57
(no subject) (by Andre (Brazil))
Hello LDmicro community,

I want to start by saying that LDmicro has been a huge inspiration to me. However, as things evolved, I decided to create LadderStudio (LDS) to make the process of adding new components much easier.

I’d like to share an update on the current status of the project. I am attaching two compressed files: one showing the components currently available in LDS, and another with the list of chips I am actively working on (these are the physical chips I currently have on hand).

Right now, my main focus is on finalizing LDS for 8-bit PIC microcontrollers. Support for PIC24 and other families is only partial at the moment. Since there are so many different MCU families, porting to all of them is quite a challenge.

For the 8-bit PICs, the code generation was developed with a strict focus on maximum RAM and ROM economy. Also, please note that some components are configured directly within the pin assignment module (Pin Manager) of LDS.

So far, I have only performed software-based testing, and I haven't been able to test everything yet. At this stage, I have mainly verified that the generated code compiles successfully using the XC8 compiler.

Finally, I want to clarify that I am not a professional Ladder, C, or Python programmer; I consider myself to be at a beginner or junior level. The project may contain errors and bugs since it has only been tested in software so far. Also, because I am not an experienced software developer, it is entirely possible that my initial approach to building this was flawed. Feedback is welcome!
Sat Jul 18 2026, 20:56:02, download attachment blocks_chips.zip
(no subject) (by Caique Gabriel)
Opa André, tudo bem?

Cara, achei teu post aqui no fórum. Tô passando exatamente pelo mesmo inferno que você provavelmente passou kkkkk.

Tô desenvolvendo um compilador Ladder em C# e consegui gerar o .ld, mas travei completamente na geração do .int do LDmicro.

Li praticamente todos os tópicos do fórum sobre bytecode, vasculhei o intcode.cpp, o interpreted.cpp, conversei com meu chefe e ainda não consegui entender o fluxo de geração desse backend.

Vi que você comentou que desenvolveu toda a parte de geração de código do LadderStudio.

Fiquei curioso: você chegou a implementar compatibilidade com o .int do LDmicro ou fez um backend totalmente próprio?

Não tô nem pedindo código nem nada, queria só entender qual caminho você seguiu, porque tô começando a achar que reimplementar o backend do LDmicro é inviável sem documentação kkkkk.
Thu Jul 23 2026, 13:47:39
(no subject) (by Andre Luoz (Brasil))
I actually edited ldmicro and even had the workflow set up, but I ended up doing everything from scratch in Python, as you can see in the images, and here’s the list of chips I’ve added so far. I’m refining the PIC and AVR cores so I can finish the others later, and I’m still translating the main program so others can understand it.
Yesterday, 18:50:48
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):