ClassicLadder - rmu75/linuxcnc-wiki GitHub Wiki
toc
ClassicLadder is a type of programming language originally implemented on industrial PLC's (it's called LadderProgramming).
It is based on the concept of relay contacts and coils, and can be used to construct logic checks and functions in a manner that is familiar to many systems integrators.
It is important to know how ladder programs are evaluated when running:
It seems natural that each line would be evaluated left to right then the next line down etc-but it doesn't work this way.
For each (6 line) rung, ALL the inputs are read, ALL the logic is figured out, then ALL the outputs are set, then the next rung is evaluated etc.
This can presents a problem in certain circumstance if the output of one line feeds the input of another
Classicladder is the original work of Marc Le Douarain.
The most up-to-date information is in the user manual, search for "classicladder": http://linuxcnc.org/docs/html/
Please go to here for examples:
- ClassicLadderExamples
- Sample_HAL_And_ClassicLadder
Classicladder ver 7.100 (EMC 2.1 - 2.2.8) While specific to version 7.100 much of the info is relevant to later versions of CL.