Generate warning or error for SVG input declarations when generating code
I encountered a student model that failed to execute on a digital twin using code generated for Beckhoff TWinCAT via the command cif2plc("merged.cif", "-o dh_dtwin.xml", "-t plc-open-xml")
. The controller did run properly via a merge with the plant model via SVG vizualisation.
On inspection of the controller, I noticed that it included an svgfile
statement and an svgin
statement. Obviously this was an erroneous CIF model, because the SVG statements should have been in the plant instead of the controller.
What surprises me is that the dh_twin.xml
file was generated without error or warning. I don't know if there is any use of having SVG statements in a file for which PLC code is generated?