
kipj2 (Customer) asked a question.
Please add the ability to import and export ASCII text files that symbolically represent ladder logic programming. Each file should be able to contain either a single procedure or a combination of procedures.
This capability would support development workflows using VS Code, Codex, ChatGPT, and other AI coding agents. Instead of manually retyping ladder logic changes into the CLICK Programming Software, users could export existing procedures, modify or generate logic externally, and then import the updated procedures back into CLICK.
The current print output already appears to use a symbolic representation of procedures, which may provide a practical starting point for defining the import/export format. This feature would reduce manual entry, minimize transcription errors, and make AI-assisted ladder logic development more efficient.
Here's how to do it: How to Display Ladder Logic in Text Format Without Attachments – Industrial Monitor Direct
Please take a look at this post, I have this already working for Click: https://community.automationdirect.com/s/question/0D5RQ00000xzCSC0A2/importexport-and-version-control-for-click-ladder-logic
In maybe a week or two I'll finish up the next phase of this - how to specifically work directly with a AI coding agent and Click - it reads the pyrung generated code, makes changes, can run it to make sure it works (click simulator), and then proposes diffs that popup and you can paste them in - either a rung at a time, or the whole main or subroutine.
Allowing the AI to run the scan cycle itself catches so many problems than just 'make changes for me'.
For your two functions -> decode_to_csv and encode_csv, you need -> decode_to_ascii_ladder_notation and encode_ascii_ladder_notation
Here's how to do it: How to Display Ladder Logic in Text Format Without Attachments – Industrial Monitor Direct
I don't intend on adding those functions - encoding/decoding to a stylistic notation (for me) has little additional benefit. Thanks for the suggestion.
CODEX inside VSCode and it is AWSOME!!! I'm coding Python and Reaper Lua script now with it. You could probably plug this github repository you have into VSCode and Codex and add these two new functions in two seconds.