19 <scaling y="0" x="0"/> |
19 <scaling y="0" x="0"/> |
20 </sfc> |
20 </sfc> |
21 </coordinateInfo> |
21 </coordinateInfo> |
22 </contentHeader> |
22 </contentHeader> |
23 <types> |
23 <types> |
24 <dataTypes/> |
24 <dataTypes> |
|
25 <dataType name="MyType"> |
|
26 <baseType> |
|
27 <array> |
|
28 <dimension upper="16" lower="1"/> |
|
29 <dimension upper="2" lower="1"/> |
|
30 <baseType> |
|
31 <INT/> |
|
32 </baseType> |
|
33 </array> |
|
34 </baseType> |
|
35 <initialValue> |
|
36 <arrayValue> |
|
37 <value> |
|
38 <simpleValue value="8([-100"/> |
|
39 </value> |
|
40 <value> |
|
41 <simpleValue value="100])"/> |
|
42 </value> |
|
43 <value> |
|
44 <simpleValue value="8([100"/> |
|
45 </value> |
|
46 <value> |
|
47 <simpleValue value="-100])"/> |
|
48 </value> |
|
49 </arrayValue> |
|
50 </initialValue> |
|
51 </dataType> |
|
52 <dataType name="MyType2"> |
|
53 <baseType> |
|
54 <BYTE/> |
|
55 </baseType> |
|
56 <initialValue> |
|
57 <simpleValue value="0"/> |
|
58 </initialValue> |
|
59 </dataType> |
|
60 <dataType name="MyType3"> |
|
61 <baseType> |
|
62 <enum> |
|
63 <values> |
|
64 <value name="OPEN"/> |
|
65 <value name="CLOSED"/> |
|
66 </values> |
|
67 </enum> |
|
68 </baseType> |
|
69 <initialValue> |
|
70 <simpleValue value="CLOSED"/> |
|
71 </initialValue> |
|
72 </dataType> |
|
73 <dataType name="MyType4"> |
|
74 <baseType> |
|
75 <subrangeSigned> |
|
76 <range upper="4500" lower="-4500"/> |
|
77 <baseType> |
|
78 <DINT/> |
|
79 </baseType> |
|
80 </subrangeSigned> |
|
81 </baseType> |
|
82 <initialValue> |
|
83 <simpleValue value="0"/> |
|
84 </initialValue> |
|
85 </dataType> |
|
86 </dataTypes> |
25 <pous> |
87 <pous> |
26 <pou name="FBDTest" pouType="functionBlock"> |
88 <pou name="FBDTest" pouType="functionBlock"> |
27 <interface> |
89 <interface> |
28 <inputVars> |
90 <inputVars> |
29 <variable name="IN1"> |
91 <variable name="IN1"> |
77 <connectionPointOut> |
139 <connectionPointOut> |
78 <relPosition y="13" x="90"/> |
140 <relPosition y="13" x="90"/> |
79 </connectionPointOut> |
141 </connectionPointOut> |
80 <expression>IN2</expression> |
142 <expression>IN2</expression> |
81 </inVariable> |
143 </inVariable> |
82 <outVariable localId="4" width="95" height="33"> |
144 <outVariable localId="4" width="95" height="33" executionOrderId="2"> |
83 <position y="182" x="587"/> |
145 <position y="182" x="587"/> |
84 <connectionPointIn> |
146 <connectionPointIn> |
85 <relPosition y="16" x="0"/> |
147 <relPosition y="16" x="0"/> |
86 <connection refLocalId="11" formalParameter="Q1"> |
148 <connection refLocalId="11" formalParameter="Q1"> |
87 <position y="198" x="587"/> |
149 <position y="198" x="587"/> |
88 <position y="198" x="523"/> |
150 <position y="198" x="523"/> |
89 </connection> |
151 </connection> |
90 </connectionPointIn> |
152 </connectionPointIn> |
91 <expression>OUT</expression> |
153 <expression>OUT</expression> |
92 </outVariable> |
154 </outVariable> |
93 <block localId="6" height="84" width="99" typeName="AND"> |
155 <block localId="6" height="84" width="99" executionOrderId="3" typeName="AND"> |
94 <position y="105" x="235"/> |
156 <position y="105" x="235"/> |
95 <inputVariables> |
157 <inputVariables> |
96 <variable formalParameter="IN1" edge="rising"> |
158 <variable formalParameter="IN1" edge="rising"> |
97 <connectionPointIn> |
159 <connectionPointIn> |
98 <relPosition y="36" x="0"/> |
160 <relPosition y="36" x="0"/> |
130 <connectionPointOut> |
192 <connectionPointOut> |
131 <relPosition y="14" x="90"/> |
193 <relPosition y="14" x="90"/> |
132 </connectionPointOut> |
194 </connectionPointOut> |
133 <expression>IN3</expression> |
195 <expression>IN3</expression> |
134 </inVariable> |
196 </inVariable> |
135 <block localId="8" height="87" width="99" typeName="OR"> |
197 <block localId="8" height="87" width="99" executionOrderId="4" typeName="OR"> |
136 <position y="246" x="235"/> |
198 <position y="246" x="235"/> |
137 <inputVariables> |
199 <inputVariables> |
138 <variable formalParameter="IN1" negated="true"> |
200 <variable formalParameter="IN1" negated="true"> |
139 <connectionPointIn> |
201 <connectionPointIn> |
140 <relPosition y="36" x="0"/> |
202 <relPosition y="36" x="0"/> |
169 </block> |
231 </block> |
170 <comment localId="10" height="37" width="261"> |
232 <comment localId="10" height="37" width="261"> |
171 <position y="32" x="243"/> |
233 <position y="32" x="243"/> |
172 <content><![CDATA[POU used for testing PLCOpenEditor.]]></content> |
234 <content><![CDATA[POU used for testing PLCOpenEditor.]]></content> |
173 </comment> |
235 </comment> |
174 <block localId="11" height="97" width="105" instanceName="SR1" typeName="SR"> |
236 <block localId="11" height="97" width="105" executionOrderId="1" instanceName="SR1" typeName="SR"> |
175 <position y="159" x="418"/> |
237 <position y="159" x="418"/> |
176 <inputVariables> |
238 <inputVariables> |
177 <variable formalParameter="S1" negated="true"> |
239 <variable formalParameter="S1" negated="true"> |
178 <connectionPointIn> |
240 <connectionPointIn> |
179 <relPosition y="39" x="0"/> |
241 <relPosition y="39" x="0"/> |