The Monolitix extension enables development and programming of Monolitix compact PLCs directly from Visual Studio Code.
It provides tools for writing Structured Text programs, building projects, and downloading programs into Monolitix controllers.
Key Features
Check Syntax: Run MatIEC syntax check in the offline project. If there are errors in the code, the project cannot execute Build;
Go Online: Go Online with the PLC, without disrupting PLC functionality (Check -> Build -> Verify match between offline and running project -> Enable Online Debug);
Download Project: Overwrite the currently loaded project in the PLC with the offline project (Check -> Build -> Download -> Enable Online Debug);
Live debug: While online, the variables are continously read and their actual values are displayed. Their values can also be written from VSC;
Disconnect: Disconnect from the PLC (same effect as if the physical USB cable is disconnected).
Getting Started
Install the Monolitix extension from the VS Code Marketplace.
Install the Structured Text language Support (by Sergey Romanov) extension from the VS Code Marketplace.
Create a new folder and add a text file with .st extension.
Write PLC logic in Structured Text language, in the files that are part of the PLC project.