| File | Date | Author | Commit |
|---|---|---|---|
| examples | 2020-02-17 |
|
[9bc435] Initial Commit |
| .gitignore | 2020-02-17 |
|
[9bc435] Initial Commit |
| PlcOpenXmlLadderToAsciiLadder.py | 2020-02-17 |
|
[9bc435] Initial Commit |
| UNLICENSE | 2020-02-17 |
|
[9bc435] Initial Commit |
| readme.md | 2020-02-17 |
|
[9bc435] Initial Commit |
This project is for the ASCII Art Ladder
It converts PLCOpenXML files of ladder POUs exported from CODESYS into a beautiful ASCII Art
It will initially use:
CODESYS Ladder Editor
CODESYS PLCOpenXML Export
CODESYS Scripting Engine / IronPython
Python XML
Some new ASCII Ladder format defined in this project
Step 1: User will create the ladder in CODESYS Ladder Editor.
User will compile the ladder without any errors.
Step 2: User will export just one single ladder routine to PLCOpenXML
Step 3: User will run the PLCOpenXMLLadderToASCIILADDER.py script, with the correct arguments
Step 4: The script will look for a declaration header as plain text and save this
Step 5: The script will read every subelement of <ld>.
Ones it can't understand will be put in an exceptions tag</ld>
Step 6: The script will arrange all of the ladder elements into rows and columns.
This new element array will also list branches in down / in up / out down / out up
Step 7: The script will write each row and column to a text file in ASCII Art Ladder format
Step 8: The script will list all truncated names, and complete all truncated EXECUTE blocks
Example File Output:
//This is a rung comment
(Also a
rung comment)
(**Mabe a nicer