This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Frekvens1's profile picture

Ladder Diagram in CC

Started by Frekvens1, 17 October 2018 - 07:36 PM
Frekvens1 #1
Posted 17 October 2018 - 09:36 PM
Ladder Diagram in ComputerCraft

Why? I wanted a little challenge.

https://youtu.be/8b9IFxwNYe4


What is ladder diagram?
It is a form of coding for real life PLCs used in automating heavy machinery.
The goal was making a program in ComputerCraft which could draw such code like the real deal.
Since I managed to make it look somewhat good in the end, I threw in I/O support for it aswell.

The end goal of this program was to make it behave like a real life PLC, realistic simulation.
The program uses Instruction List (IL) to draw the components and handle the logic.

Code please?
Unless someone requests it and really want it, I won't post it.
It is a coding nightmare consisting of 750 lines of bad code.

If anyone really wants this functionality, I will rewrite it from scratch (With proper screen buffer etc).
Lyqyd #2
Posted 18 October 2018 - 01:58 AM
Moved to Media. Posts in Programs require code.
Frekvens1 #3
Posted 18 October 2018 - 03:09 AM
Moved to Media. Posts in Programs require code.

Thanks. I didn't have access to post here.