Easier editing of PLC source code
Posted: Mon Mar 11, 2019 5:03 pm
Hey folks,
I got bored last week and wrote a extension for VSCode that makes editing Centroid PLC source code (the .src files for the PLC) a lot easier. If you have to edit the PLC source code, i'd suggest downloading it and giving it a try
(If you install vscode, just click the extension button, type "centroid", and install it, it's very very easy)
It supports:
Syntax highlighting
Hover documentation (If you hover over a variable, it will tell you what it does). I have extracted all system documentation and machine parameter documentation, so hovering over those variables will tell you the same thing the docs/program will.
Code completion of all system variables, etc.
I'll probably make some other small improvements (like trimming the completion suggestions based on context, so that it only completes stage variables when you complete on a JMP, etc) and am open to ideas if people have them.
Pics below.
When i get a chance i'll probably next make a nice G-code extension as well that understands centroid M codes/variable mappings.
I got bored last week and wrote a extension for VSCode that makes editing Centroid PLC source code (the .src files for the PLC) a lot easier. If you have to edit the PLC source code, i'd suggest downloading it and giving it a try
(If you install vscode, just click the extension button, type "centroid", and install it, it's very very easy)
It supports:
Syntax highlighting
Hover documentation (If you hover over a variable, it will tell you what it does). I have extracted all system documentation and machine parameter documentation, so hovering over those variables will tell you the same thing the docs/program will.
Code completion of all system variables, etc.
I'll probably make some other small improvements (like trimming the completion suggestions based on context, so that it only completes stage variables when you complete on a JMP, etc) and am open to ideas if people have them.
Pics below.
When i get a chance i'll probably next make a nice G-code extension as well that understands centroid M codes/variable mappings.