Skip to content

Commit

Permalink
correct capitals
Browse files Browse the repository at this point in the history
  • Loading branch information
KarlWalther committed Dec 15, 2024
1 parent 7d586c1 commit 7097498
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cdl_plc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ def create_iec_xml(self, debug=False):

# fileTemplateVariable = "templateVariable.xml"
file_template_global = [
"xml_templates/structure/global.xml",
"xml_templates/structure/Global.xml",
"templateVariable.xml",
][0]

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion xml_templates/structure/global.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?xml version='1.0' encoding='utf-8'?><project xmlns="http://www.plcopen.org/xml/tc6_0201" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ns1="http://www.plcopen.org/xml/tc6_0201"><fileHeader companyName="Unknown" productName="Unnamed" productVersion="1" creationDateTime="2024-01-09T16:45:07"/><contentHeader name="Unnamed" modificationDateTime="2024-01-23T14:31:54"><coordinateInfo><fbd><scaling x="0" y="0"/></fbd><ld><scaling x="0" y="0"/></ld><sfc><scaling x="0" y="0"/></sfc></coordinateInfo></contentHeader><types><dataTypes/><pous>{% for program in programs %}{% include "xml_templates/structure/program.xml" %}{% endfor %}{% for cdlBlock in dictCdlBlocks.scalar_inputs %}{{ cdlBlock }}{% endfor %}{% for cdlBlock in dictCdlBlocks.array_inputs %}{{ cdlBlock }}{% endfor %}</pous></types><instances><configurations><configuration name="config"><resource name="resource1"><task name="task0" priority="0" interval="T#20ms"><pouInstance name="instance0" typeName="{{ programs[0] }}"/></task></resource></configuration></configurations></instances></project>
<?xml version='1.0' encoding='utf-8'?><project xmlns="http://www.plcopen.org/xml/tc6_0201" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ns1="http://www.plcopen.org/xml/tc6_0201"><fileHeader companyName="Unknown" productName="Unnamed" productVersion="1" creationDateTime="2024-01-09T16:45:07"/><contentHeader name="Unnamed" modificationDateTime="2024-01-23T14:31:54"><coordinateInfo><fbd><scaling x="0" y="0"/></fbd><ld><scaling x="0" y="0"/></ld><sfc><scaling x="0" y="0"/></sfc></coordinateInfo></contentHeader><types><dataTypes/><pous>{% for program in programs %}{% include "xml_templates/structure/Program.xml" %}{% endfor %}{% for cdlBlock in dictCdlBlocks.scalar_inputs %}{{ cdlBlock }}{% endfor %}{% for cdlBlock in dictCdlBlocks.array_inputs %}{{ cdlBlock }}{% endfor %}</pous></types><instances><configurations><configuration name="config"><resource name="resource1"><task name="task0" priority="0" interval="T#20ms"><pouInstance name="instance0" typeName="{{ programs[0] }}"/></task></resource></configuration></configurations></instances></project>
2 changes: 1 addition & 1 deletion xml_templates/structure/program.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<pou name="{{ program }}" pouType="program"><interface><inputVars>{% for key, values in dictInputVars.items() %}{% include "xml_templates/structure/variable.xml" %}{% endfor %}</inputVars><outputVars>{% for key, values in dictOutputVars.items() %}{% include "xml_templates/structure/variable.xml" %}{% endfor %}</outputVars><localVars>{% for key, values in dictFunctionBlockInstances.items() %}{% include "xml_templates/structure/variable.xml" %}{% endfor %}{% for key, values in dictParameters.items() %}{% include "xml_templates/structure/Parameter.xml" %}{% endfor %}</localVars></interface><body><FBD>{% for key, values in dictInputVars.items() %}{% include "xml_templates/structure/FbdInVar.xml" %}{% endfor %}{% for key, values in dictParameters.items() %}{% include "xml_templates/structure/FbdPar.xml" %}{% endfor %}{% for key, values in dictFunctionBlockInstances.items() %}{% include "xml_templates/structure/block.xml" %}{% endfor %}{% for key, values in dictFunctionBlockInstancesIEC.items() %}{% include "xml_templates/structure/blockIEC.xml" %}{% endfor %}{% for key, values in dictOutputVars.items() %}{% include "xml_templates/structure/FbdOutVar.xml" %}{% endfor %}</FBD></body></pou>
<pou name="{{ program }}" pouType="program"><interface><inputVars>{% for key, values in dictInputVars.items() %}{% include "xml_templates/structure/Variable.xml" %}{% endfor %}</inputVars><outputVars>{% for key, values in dictOutputVars.items() %}{% include "xml_templates/structure/Variable.xml" %}{% endfor %}</outputVars><localVars>{% for key, values in dictFunctionBlockInstances.items() %}{% include "xml_templates/structure/Variable.xml" %}{% endfor %}{% for key, values in dictParameters.items() %}{% include "xml_templates/structure/Parameter.xml" %}{% endfor %}</localVars></interface><body><FBD>{% for key, values in dictInputVars.items() %}{% include "xml_templates/structure/FbdInVar.xml" %}{% endfor %}{% for key, values in dictParameters.items() %}{% include "xml_templates/structure/FbdPar.xml" %}{% endfor %}{% for key, values in dictFunctionBlockInstances.items() %}{% include "xml_templates/structure/Block.xml" %}{% endfor %}{% for key, values in dictFunctionBlockInstancesIEC.items() %}{% include "xml_templates/structure/BlockIEC.xml" %}{% endfor %}{% for key, values in dictOutputVars.items() %}{% include "xml_templates/structure/FbdOutVar.xml" %}{% endfor %}</FBD></body></pou>

0 comments on commit 7097498

Please sign in to comment.