How do I import an XML generated by PLC coder into TwinCAT 3 / Visual Studio 2015?
Show older comments
I am generating an XML using PLC Coder, and would like to import this XML into Beckhoff TwinCAT 3/Visual Studio 2015 (TwinCAT 3 is an add-on I have installed for Visual Studio, as shown in the image below).

Although I have my own model, I am currently working with a MathWorks example model, "plcdemo_external_symbols". I changed the "PLC Code Generation" configuration parameters of the model to have a Target IDE of "Beckhoff TwinCAT 3". I then generate the XML by right-clicking on the subsystem, and selecting "PLC Code > Generate Code for Subsystem". This generates "plcdemo_external_symbols.xml". When I try to import the XML, I am getting an error message saying it "cannot consume the specified XML. The XML content has no meaning for the tree item...".
How can I import my generated XML file into TwinCAT?
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with Simulink PLC Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!