HL-EM
HL-EM

Reputation: 41

Program Beckhoff PLC in VS Code

Since Beckhoffs TwinCAT3 Shell is missing basic function that are considered standard in other IDEs im trying to switch to VS Code to do the job.

There is an extension that enables syntax highlighting for ST (Structured Text) which is great. But im not satisfied how the TcPOU files (xml formatted) are displayed.

I'm used to the window layout of TwinCAT3 and am wondering if it is somehow possible to have a similar layout with VS Code.

In Beckhoffs TwinCAT3 Shell, which is based on Visual Studio, the decleration of variables and the code are seperated by a horizontal bar. Furthermore the header of the xml file is not displayed in TwinCAT3.

So basically what im asking is if i can make VS Code display

    <Declaration><![CDATA[

         ]]></Declaration>

as a horizontal line and hide the xml header.

VS Code Beckhoff TwinCAT3

Upvotes: 4

Views: 3089

Answers (1)

Mihai G&#238;nța
Mihai G&#238;nța

Reputation: 1

You can use this tool: https://github.com/Zeugwerk/vscode-plaincat it should allow you to convert TwinCAT XML files to standard .st files.

It allows TwinCAT XML to plain text file conversion and vice versa.

Upvotes: 0

Related Questions