fg71
I got a idea that I think is very useful when you do a project and later return to it.
 
There are many ways to build a visual connection for a Arduino compatible board like Wokwi (screenshot) or use Circuit Designer IDE to export a project as PNG or SVG.
 
What if you could display this directly inside the new OpenPLC as part to the project files. This approach would simplify the plc project when you return to it and have forgot how everything was connected to make a plc program work as it should. You could directly show the connection inside the OpenPLC IDE without using other image viewer.
 
It become a part of your workflow and it also simplify any project if you could share everything for someone else to build in compressed file format. Meaning OpenPLC could also include a way to archive a project directly inside OpenPLC IDE.
 
In other words be able to display PNG and maybe SVG in the UI and also archive the project files without build directory.
 
All this could be done outside the OpenPLC IDE but a picture tell more and 1000 words, I think 😉
Reply 1 0
thiagoralves
Yeah, this is a good point. We do have something similar planned for the web version of the editor. Stay tuned 🙂
Reply 1 0
FutureHorizon
Maybe support for importing/exporting the PLCOpen XML format?
Reply 0 0
thiagoralves
Maybe support for importing/exporting the PLCOpen XML format?
Exporting to PLCOpen is already there. Just hit file -> export to PLCOpen and it will create a .xml file on the /build folder inside your project folder. This XML even works with the old OpenPLC Editor based on Python, so you can transfer programs created on the new editor to the old one.
Reply 0 0
fg71
Make sure you have this correct project xmlns="http://www.plcopen.org/xml/tc6_0201"
 
Codesys the last time I try use project xmlns="http://www.plcopen.org/xml/tc6_0200" and that is not working.
I'm not sure there is a standard for the PLCOpen XML and how well it work between the application.
 
Beckhoff and Codesys maybe work well together but I'm not sure Siemens Tia Portal does.
 
The last time I try to export from Codesys to OpenPLC didn't work so well but after changing tc6_0200 to tc6_0201 OpenPLC gave me the correct variable names 🙂
 
Any block I didn't get, more and that I have not try or doing more research.
Reply 0 0
thiagoralves
The level of compatibility will be the same one that exists on the current "classic" editor, as both use the same PLCopen engine.
Reply 0 0
FutureHorizon
Thanks for your replies!
 
Where can I find the exporter source code?
Reply 0 0
fg71
I believe this file is the destination for OpenPLC's PLCOpen XML format OpenPLC_Editor\editor\plcopen\tc6_xml_v201.xsd
 
Is that correct @thiagoralves ??
Reply 0 0
thiagoralves
I believe this file is the destination for OpenPLC's PLCOpen XML format OpenPLC_Editor\editor\plcopen\tc6_xml_v201.xsd
 
Is that correct @thiagoralves ??
Yes. The editor (v4) generates the XML inside the build folder of your project
Reply 0 0
Reply