author | greg |
Tue, 15 Jan 2008 10:51:18 +0100 | |
changeset 148 | a083d4a94bd3 |
parent 145 | 4fb225afddf4 |
child 151 | aaa80b48bead |
permissions | -rw-r--r-- |
0 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 |
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
3 |
xmlns="http://www.plcopen.org/xml/tc6.xsd" |
|
4 |
xmlns:xhtml="http://www.w3.org/1999/xhtml" |
|
5 |
xsi:schemaLocation="http://www.plcopen.org/xml/tc6.xsd http://www.plcopen.org/xml/tc6.xsd"> |
|
145 | 6 |
<fileHeader contentDescription="Example of PLCOpenEditor usage" |
7 |
companyName="Lolitech" |
|
8 |
companyURL="www.lolitech.net" |
|
0 | 9 |
productName="PLCOpenEditorExample" |
145 | 10 |
productRelease="rc1" |
0 | 11 |
productVersion="1.0" |
12 |
creationDateTime="2006-09-07 18:52:43"/> |
|
145 | 13 |
<contentHeader name="Test" |
14 |
language="en-US" |
|
15 |
author="Laurent Bessard" |
|
16 |
modificationDateTime="2008-01-10 17:33:58" |
|
17 |
version="1"> |
|
0 | 18 |
<coordinateInfo> |
145 | 19 |
<pageSize y="2000" x="1000"/> |
0 | 20 |
<fbd> |
145 | 21 |
<scaling y="8" x="8"/> |
0 | 22 |
</fbd> |
23 |
<ld> |
|
24 |
<scaling y="0" x="0"/> |
|
25 |
</ld> |
|
26 |
<sfc> |
|
27 |
<scaling y="0" x="0"/> |
|
28 |
</sfc> |
|
29 |
</coordinateInfo> |
|
30 |
</contentHeader> |
|
31 |
<types> |
|
126 | 32 |
<dataTypes> |
33 |
<dataType name="MyType"> |
|
34 |
<baseType> |
|
35 |
<array> |
|
36 |
<dimension upper="16" lower="1"/> |
|
37 |
<dimension upper="2" lower="1"/> |
|
38 |
<baseType> |
|
39 |
<INT/> |
|
40 |
</baseType> |
|
41 |
</array> |
|
42 |
</baseType> |
|
43 |
<initialValue> |
|
44 |
<arrayValue> |
|
145 | 45 |
<value repetitionValue="8"> |
46 |
<arrayValue> |
|
47 |
<value> |
|
48 |
<simpleValue value="-100"/> |
|
49 |
</value> |
|
50 |
<value> |
|
51 |
<simpleValue value="100"/> |
|
52 |
</value> |
|
53 |
</arrayValue> |
|
126 | 54 |
</value> |
145 | 55 |
<value repetitionValue="8"> |
56 |
<arrayValue> |
|
57 |
<value> |
|
58 |
<simpleValue value="100"/> |
|
59 |
</value> |
|
60 |
<value> |
|
61 |
<simpleValue value="-100"/> |
|
62 |
</value> |
|
63 |
</arrayValue> |
|
126 | 64 |
</value> |
65 |
</arrayValue> |
|
66 |
</initialValue> |
|
67 |
</dataType> |
|
68 |
<dataType name="MyType2"> |
|
69 |
<baseType> |
|
70 |
<BYTE/> |
|
71 |
</baseType> |
|
72 |
<initialValue> |
|
73 |
<simpleValue value="0"/> |
|
74 |
</initialValue> |
|
75 |
</dataType> |
|
76 |
<dataType name="MyType3"> |
|
77 |
<baseType> |
|
78 |
<enum> |
|
79 |
<values> |
|
80 |
<value name="OPEN"/> |
|
81 |
<value name="CLOSED"/> |
|
82 |
</values> |
|
83 |
</enum> |
|
84 |
</baseType> |
|
85 |
<initialValue> |
|
86 |
<simpleValue value="CLOSED"/> |
|
87 |
</initialValue> |
|
88 |
</dataType> |
|
89 |
<dataType name="MyType4"> |
|
90 |
<baseType> |
|
91 |
<subrangeSigned> |
|
92 |
<range upper="4500" lower="-4500"/> |
|
93 |
<baseType> |
|
94 |
<DINT/> |
|
95 |
</baseType> |
|
96 |
</subrangeSigned> |
|
97 |
</baseType> |
|
98 |
<initialValue> |
|
99 |
<simpleValue value="0"/> |
|
100 |
</initialValue> |
|
101 |
</dataType> |
|
102 |
</dataTypes> |
|
0 | 103 |
<pous> |
13
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
104 |
<pou name="FBDTest" pouType="functionBlock"> |
0 | 105 |
<interface> |
106 |
<inputVars> |
|
107 |
<variable name="IN1"> |
|
108 |
<type> |
|
109 |
<BOOL/> |
|
110 |
</type> |
|
111 |
<initialValue> |
|
112 |
<simpleValue value="false"/> |
|
113 |
</initialValue> |
|
114 |
</variable> |
|
115 |
<variable name="IN2"> |
|
116 |
<type> |
|
117 |
<BOOL/> |
|
118 |
</type> |
|
119 |
<initialValue> |
|
58 | 120 |
<simpleValue value="true"/> |
0 | 121 |
</initialValue> |
122 |
</variable> |
|
123 |
<variable name="IN3"> |
|
124 |
<type> |
|
125 |
<BOOL/> |
|
126 |
</type> |
|
127 |
</variable> |
|
128 |
</inputVars> |
|
13
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
129 |
<outputVars> |
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
130 |
<variable name="OUT"> |
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
131 |
<type> |
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
132 |
<BOOL/> |
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
133 |
</type> |
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
134 |
</variable> |
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
135 |
</outputVars> |
67
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
136 |
<localVars> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
137 |
<variable name="SR1"> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
138 |
<type> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
139 |
<derived name="SR"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
140 |
</type> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
141 |
</variable> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
142 |
</localVars> |
0 | 143 |
</interface> |
144 |
<body> |
|
145 |
<FBD> |
|
145 | 146 |
<inVariable localId="2" width="88" height="32" executionOrderId="0"> |
147 |
<position y="80" x="64"/> |
|
148 |
<connectionPointOut> |
|
149 |
<relPosition y="16" x="88"/> |
|
0 | 150 |
</connectionPointOut> |
151 |
<expression>IN1</expression> |
|
152 |
</inVariable> |
|
145 | 153 |
<inVariable localId="3" width="88" height="32" executionOrderId="0"> |
154 |
<position y="200" x="64"/> |
|
155 |
<connectionPointOut> |
|
156 |
<relPosition y="16" x="88"/> |
|
0 | 157 |
</connectionPointOut> |
158 |
<expression>IN2</expression> |
|
159 |
</inVariable> |
|
145 | 160 |
<outVariable localId="4" width="96" height="32" executionOrderId="2"> |
161 |
<position y="176" x="584"/> |
|
0 | 162 |
<connectionPointIn> |
163 |
<relPosition y="16" x="0"/> |
|
27 | 164 |
<connection refLocalId="11" formalParameter="Q1"> |
145 | 165 |
<position y="192" x="584"/> |
166 |
<position y="192" x="528"/> |
|
0 | 167 |
</connection> |
168 |
</connectionPointIn> |
|
13
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
169 |
<expression>OUT</expression> |
0 | 170 |
</outVariable> |
145 | 171 |
<block localId="6" height="88" width="104" executionOrderId="3" instanceName="" typeName="AND"> |
172 |
<position y="104" x="232"/> |
|
0 | 173 |
<inputVariables> |
67
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
174 |
<variable formalParameter="IN1" edge="rising"> |
0 | 175 |
<connectionPointIn> |
145 | 176 |
<relPosition y="40" x="0"/> |
0 | 177 |
<connection refLocalId="2"> |
145 | 178 |
<position y="144" x="232"/> |
179 |
<position y="144" x="192"/> |
|
180 |
<position y="96" x="192"/> |
|
181 |
<position y="96" x="152"/> |
|
0 | 182 |
</connection> |
183 |
</connectionPointIn> |
|
184 |
</variable> |
|
67
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
185 |
<variable formalParameter="IN2"> |
0 | 186 |
<connectionPointIn> |
145 | 187 |
<relPosition y="72" x="0"/> |
0 | 188 |
<connection refLocalId="3"> |
145 | 189 |
<position y="176" x="232"/> |
190 |
<position y="176" x="192"/> |
|
191 |
<position y="216" x="192"/> |
|
192 |
<position y="216" x="152"/> |
|
0 | 193 |
</connection> |
194 |
</connectionPointIn> |
|
195 |
</variable> |
|
196 |
</inputVariables> |
|
197 |
<inOutVariables/> |
|
198 |
<outputVariables> |
|
80 | 199 |
<variable formalParameter="OUT"> |
0 | 200 |
<connectionPointOut> |
145 | 201 |
<relPosition y="40" x="104"/> |
0 | 202 |
</connectionPointOut> |
203 |
</variable> |
|
204 |
</outputVariables> |
|
205 |
</block> |
|
145 | 206 |
<inVariable localId="7" width="88" height="32" executionOrderId="0"> |
207 |
<position y="336" x="64"/> |
|
208 |
<connectionPointOut> |
|
209 |
<relPosition y="16" x="88"/> |
|
0 | 210 |
</connectionPointOut> |
211 |
<expression>IN3</expression> |
|
212 |
</inVariable> |
|
145 | 213 |
<block localId="8" height="88" width="104" executionOrderId="4" instanceName="" typeName="OR"> |
214 |
<position y="240" x="232"/> |
|
0 | 215 |
<inputVariables> |
216 |
<variable formalParameter="IN1" negated="true"> |
|
217 |
<connectionPointIn> |
|
145 | 218 |
<relPosition y="40" x="0"/> |
0 | 219 |
<connection refLocalId="3"> |
145 | 220 |
<position y="280" x="232"/> |
221 |
<position y="280" x="192"/> |
|
222 |
<position y="216" x="192"/> |
|
223 |
<position y="216" x="152"/> |
|
0 | 224 |
</connection> |
225 |
</connectionPointIn> |
|
226 |
</variable> |
|
227 |
<variable formalParameter="IN2"> |
|
228 |
<connectionPointIn> |
|
145 | 229 |
<relPosition y="72" x="0"/> |
0 | 230 |
<connection refLocalId="7"> |
145 | 231 |
<position y="312" x="232"/> |
232 |
<position y="312" x="192"/> |
|
233 |
<position y="352" x="192"/> |
|
234 |
<position y="352" x="152"/> |
|
0 | 235 |
</connection> |
236 |
</connectionPointIn> |
|
237 |
</variable> |
|
238 |
</inputVariables> |
|
239 |
<inOutVariables/> |
|
240 |
<outputVariables> |
|
241 |
<variable formalParameter="OUT"> |
|
242 |
<connectionPointOut> |
|
145 | 243 |
<relPosition y="40" x="104"/> |
0 | 244 |
</connectionPointOut> |
245 |
</variable> |
|
246 |
</outputVariables> |
|
247 |
</block> |
|
145 | 248 |
<comment localId="10" height="40" width="272"> |
249 |
<position y="24" x="240"/> |
|
67
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
250 |
<content><![CDATA[POU used for testing PLCOpenEditor.]]></content> |
0 | 251 |
</comment> |
145 | 252 |
<block localId="11" height="96" width="104" executionOrderId="1" instanceName="SR1" typeName="SR"> |
253 |
<position y="152" x="424"/> |
|
0 | 254 |
<inputVariables> |
80 | 255 |
<variable formalParameter="S1" negated="true"> |
0 | 256 |
<connectionPointIn> |
145 | 257 |
<relPosition y="40" x="0"/> |
27 | 258 |
<connection refLocalId="6" formalParameter="OUT"> |
145 | 259 |
<position y="192" x="424"/> |
260 |
<position y="192" x="376"/> |
|
261 |
<position y="144" x="376"/> |
|
262 |
<position y="144" x="336"/> |
|
0 | 263 |
</connection> |
264 |
</connectionPointIn> |
|
265 |
</variable> |
|
266 |
<variable formalParameter="R"> |
|
267 |
<connectionPointIn> |
|
145 | 268 |
<relPosition y="80" x="0"/> |
27 | 269 |
<connection refLocalId="8" formalParameter="OUT"> |
145 | 270 |
<position y="232" x="424"/> |
271 |
<position y="232" x="376"/> |
|
272 |
<position y="280" x="376"/> |
|
273 |
<position y="280" x="336"/> |
|
0 | 274 |
</connection> |
275 |
</connectionPointIn> |
|
276 |
</variable> |
|
277 |
</inputVariables> |
|
278 |
<inOutVariables/> |
|
279 |
<outputVariables> |
|
280 |
<variable formalParameter="Q1"> |
|
281 |
<connectionPointOut> |
|
145 | 282 |
<relPosition y="40" x="104"/> |
0 | 283 |
</connectionPointOut> |
284 |
</variable> |
|
285 |
</outputVariables> |
|
286 |
</block> |
|
287 |
</FBD> |
|
288 |
</body> |
|
289 |
</pou> |
|
290 |
<pou name="LDTest" pouType="function"> |
|
291 |
<interface> |
|
292 |
<returnType> |
|
293 |
<BOOL/> |
|
294 |
</returnType> |
|
295 |
<inputVars> |
|
296 |
<variable name="IN1"> |
|
297 |
<type> |
|
298 |
<BOOL/> |
|
299 |
</type> |
|
300 |
</variable> |
|
301 |
<variable name="IN2"> |
|
302 |
<type> |
|
303 |
<BOOL/> |
|
304 |
</type> |
|
305 |
</variable> |
|
306 |
<variable name="IN3"> |
|
307 |
<type> |
|
308 |
<BOOL/> |
|
309 |
</type> |
|
310 |
</variable> |
|
311 |
<variable name="IN4"> |
|
312 |
<type> |
|
313 |
<BOOL/> |
|
314 |
</type> |
|
315 |
</variable> |
|
316 |
</inputVars> |
|
317 |
</interface> |
|
318 |
<body> |
|
319 |
<LD> |
|
320 |
<comment localId="1" height="40" width="600"> |
|
321 |
<position y="10" x="10"/> |
|
67
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
322 |
<content><![CDATA[Comment]]></content> |
0 | 323 |
</comment> |
142 | 324 |
<leftPowerRail localId="2" height="80" width="3"> |
0 | 325 |
<position y="60" x="10"/> |
142 | 326 |
<connectionPointOut formalParameter=""> |
327 |
<relPosition y="20" x="3"/> |
|
328 |
</connectionPointOut> |
|
329 |
<connectionPointOut formalParameter=""> |
|
330 |
<relPosition y="60" x="3"/> |
|
0 | 331 |
</connectionPointOut> |
332 |
</leftPowerRail> |
|
116
58b9b84e385f
Adding support in xmlclass for timezone in datetime and for not paying attention to xml comments
lbessard
parents:
80
diff
changeset
|
333 |
<coil localId="3" width="21" height="15"> |
0 | 334 |
<position y="72" x="265"/> |
335 |
<connectionPointIn> |
|
336 |
<relPosition y="8" x="0"/> |
|
337 |
<connection refLocalId="7"> |
|
338 |
<position y="80" x="265"/> |
|
339 |
<position y="80" x="195"/> |
|
340 |
</connection> |
|
341 |
</connectionPointIn> |
|
342 |
<connectionPointOut> |
|
343 |
<relPosition y="8" x="21"/> |
|
344 |
</connectionPointOut> |
|
345 |
<variable>LDTest</variable> |
|
346 |
</coil> |
|
142 | 347 |
<rightPowerRail localId="4" height="40" width="3"> |
348 |
<position y="60" x="323"/> |
|
0 | 349 |
<connectionPointIn> |
350 |
<relPosition y="20" x="0"/> |
|
351 |
<connection refLocalId="3"> |
|
142 | 352 |
<position y="80" x="323"/> |
0 | 353 |
<position y="80" x="286"/> |
354 |
</connection> |
|
355 |
</connectionPointIn> |
|
356 |
</rightPowerRail> |
|
116
58b9b84e385f
Adding support in xmlclass for timezone in datetime and for not paying attention to xml comments
lbessard
parents:
80
diff
changeset
|
357 |
<contact localId="5" width="21" height="15" negated="true"> |
0 | 358 |
<position y="72" x="42"/> |
359 |
<connectionPointIn> |
|
360 |
<relPosition y="8" x="0"/> |
|
361 |
<connection refLocalId="2"> |
|
362 |
<position y="80" x="42"/> |
|
142 | 363 |
<position y="80" x="13"/> |
0 | 364 |
</connection> |
365 |
</connectionPointIn> |
|
366 |
<connectionPointOut> |
|
367 |
<relPosition y="8" x="21"/> |
|
368 |
</connectionPointOut> |
|
369 |
<variable>IN1</variable> |
|
370 |
</contact> |
|
116
58b9b84e385f
Adding support in xmlclass for timezone in datetime and for not paying attention to xml comments
lbessard
parents:
80
diff
changeset
|
371 |
<contact localId="7" width="21" height="15"> |
0 | 372 |
<position y="72" x="174"/> |
373 |
<connectionPointIn> |
|
374 |
<relPosition y="8" x="0"/> |
|
375 |
<connection refLocalId="5"> |
|
376 |
<position y="80" x="174"/> |
|
377 |
<position y="80" x="63"/> |
|
378 |
</connection> |
|
379 |
<connection refLocalId="9"> |
|
380 |
<position y="80" x="174"/> |
|
381 |
<position y="80" x="144"/> |
|
382 |
<position y="120" x="144"/> |
|
383 |
<position y="120" x="114"/> |
|
384 |
</connection> |
|
385 |
</connectionPointIn> |
|
386 |
<connectionPointOut> |
|
387 |
<relPosition y="8" x="21"/> |
|
388 |
</connectionPointOut> |
|
389 |
<variable>IN2</variable> |
|
390 |
</contact> |
|
116
58b9b84e385f
Adding support in xmlclass for timezone in datetime and for not paying attention to xml comments
lbessard
parents:
80
diff
changeset
|
391 |
<contact localId="8" width="21" height="15"> |
0 | 392 |
<position y="112" x="42"/> |
393 |
<connectionPointIn> |
|
394 |
<relPosition y="8" x="0"/> |
|
395 |
<connection refLocalId="2"> |
|
396 |
<position y="120" x="42"/> |
|
142 | 397 |
<position y="120" x="13"/> |
0 | 398 |
</connection> |
399 |
</connectionPointIn> |
|
400 |
<connectionPointOut> |
|
401 |
<relPosition y="8" x="21"/> |
|
402 |
</connectionPointOut> |
|
403 |
<variable>IN3</variable> |
|
404 |
</contact> |
|
116
58b9b84e385f
Adding support in xmlclass for timezone in datetime and for not paying attention to xml comments
lbessard
parents:
80
diff
changeset
|
405 |
<contact localId="9" width="21" height="15" negated="true"> |
0 | 406 |
<position y="112" x="93"/> |
407 |
<connectionPointIn> |
|
408 |
<relPosition y="8" x="0"/> |
|
409 |
<connection refLocalId="8"> |
|
410 |
<position y="120" x="93"/> |
|
411 |
<position y="120" x="63"/> |
|
412 |
</connection> |
|
413 |
</connectionPointIn> |
|
414 |
<connectionPointOut> |
|
415 |
<relPosition y="8" x="21"/> |
|
416 |
</connectionPointOut> |
|
417 |
<variable>IN4</variable> |
|
418 |
</contact> |
|
419 |
</LD> |
|
420 |
</body> |
|
421 |
</pou> |
|
422 |
<pou name="ILTest" pouType="function"> |
|
423 |
<interface> |
|
424 |
<returnType> |
|
425 |
<REAL/> |
|
426 |
</returnType> |
|
1 | 427 |
<inputVars> |
70 | 428 |
<variable name="X1"> |
1 | 429 |
<type> |
430 |
<REAL/> |
|
431 |
</type> |
|
432 |
</variable> |
|
433 |
</inputVars> |
|
0 | 434 |
<localVars> |
435 |
<variable name="Temp"> |
|
436 |
<type> |
|
437 |
<REAL/> |
|
438 |
</type> |
|
439 |
</variable> |
|
440 |
</localVars> |
|
441 |
<inputVars> |
|
442 |
<variable name="X2"> |
|
443 |
<type> |
|
444 |
<REAL/> |
|
445 |
</type> |
|
446 |
</variable> |
|
447 |
<variable name="Y1"> |
|
448 |
<type> |
|
449 |
<REAL/> |
|
450 |
</type> |
|
451 |
</variable> |
|
452 |
<variable name="Y2"> |
|
453 |
<type> |
|
454 |
<REAL/> |
|
455 |
</type> |
|
456 |
</variable> |
|
457 |
<variable name="TMax"> |
|
458 |
<type> |
|
459 |
<REAL/> |
|
460 |
</type> |
|
461 |
</variable> |
|
462 |
</inputVars> |
|
463 |
<outputVars> |
|
13
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
464 |
<variable name="ERROR"> |
0 | 465 |
<type> |
466 |
<BOOL/> |
|
467 |
</type> |
|
468 |
</variable> |
|
469 |
</outputVars> |
|
470 |
</interface> |
|
471 |
<body> |
|
472 |
<IL> |
|
67
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
473 |
<![CDATA[ |
13
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
474 |
LD Y1 |
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
475 |
SUB Y2 (* Substract Y2 from Y1 *) |
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
476 |
ST Temp (* Store Y1-Y2 in Temp *) |
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
477 |
MUL Temp (* Multiply by Temp to square *) |
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
478 |
ADD( X1 (* Defer ADD *) |
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
479 |
SUB X2 (* Substract X1 from X2 *) |
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
480 |
ST Temp (* Store X1-X2 in Temp *) |
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
481 |
MUL Temp (* Multiply by Temp to square *) |
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
482 |
) |
17 | 483 |
SQRT (* Call Square root fun *) |
13
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
484 |
ST ILTest (* Setup function result *) |
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
485 |
GT TMax (* Greater than TMax ? *) |
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
486 |
JMPC ERR (* Yes, Jump to Error *) |
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
487 |
S ERROR (* Set ERROR *) |
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
488 |
RET (* Normal return *) |
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
489 |
ERR: RET (* Error return, ENO not set *) |
67
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
490 |
]]> |
0 | 491 |
</IL> |
492 |
</body> |
|
493 |
</pou> |
|
494 |
<pou name="SFCTest" pouType="program"> |
|
495 |
<interface> |
|
496 |
<inputVars> |
|
497 |
<variable name="IN1"> |
|
498 |
<type> |
|
499 |
<BOOL/> |
|
500 |
</type> |
|
501 |
</variable> |
|
502 |
<variable name="IN2"> |
|
503 |
<type> |
|
504 |
<BOOL/> |
|
505 |
</type> |
|
506 |
</variable> |
|
507 |
<variable name="IN3"> |
|
508 |
<type> |
|
509 |
<BOOL/> |
|
510 |
</type> |
|
511 |
</variable> |
|
512 |
<variable name="IN4"> |
|
513 |
<type> |
|
514 |
<BOOL/> |
|
515 |
</type> |
|
516 |
</variable> |
|
517 |
<variable name="IN5"> |
|
518 |
<type> |
|
519 |
<BOOL/> |
|
520 |
</type> |
|
521 |
</variable> |
|
522 |
</inputVars> |
|
68
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
523 |
<localVars> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
524 |
<variable name="SR1"> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
525 |
<type> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
526 |
<derived name="SR"/> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
527 |
</type> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
528 |
</variable> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
529 |
</localVars> |
0 | 530 |
</interface> |
531 |
<actions> |
|
532 |
<action name="ACT1"> |
|
533 |
<body> |
|
534 |
<ST> |
|
67
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
535 |
<![CDATA[ |
1 | 536 |
IF IN1 THEN |
2 | 537 |
IN2 := 1; |
1 | 538 |
ELSE |
2 | 539 |
IN3 := 1; |
1 | 540 |
END_IF; |
67
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
541 |
]]> |
0 | 542 |
</ST> |
543 |
</body> |
|
544 |
</action> |
|
545 |
</actions> |
|
546 |
<transitions> |
|
547 |
<transition name="TR1"> |
|
548 |
<body> |
|
67
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
549 |
<ST><![CDATA[:= AND(IN1, IN2, IN3);]]></ST> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
550 |
</body> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
551 |
</transition> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
552 |
<transition name="TR2"> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
553 |
<body> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
554 |
<FBD> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
555 |
<inVariable localId="2" width="54" height="27"> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
556 |
<position y="59" x="27"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
557 |
<connectionPointOut> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
558 |
<relPosition y="13" x="54"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
559 |
</connectionPointOut> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
560 |
<expression>IN1</expression> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
561 |
</inVariable> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
562 |
<inVariable localId="3" width="53" height="27"> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
563 |
<position y="140" x="28"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
564 |
<connectionPointOut> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
565 |
<relPosition y="13" x="53"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
566 |
</connectionPointOut> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
567 |
<expression>IN2</expression> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
568 |
</inVariable> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
569 |
<outVariable localId="4" width="57" height="27"> |
68
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
570 |
<position y="82" x="340"/> |
67
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
571 |
<connectionPointIn> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
572 |
<relPosition y="13" x="0"/> |
68
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
573 |
<connection refLocalId="5" formalParameter="Q1"> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
574 |
<position y="95" x="340"/> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
575 |
<position y="95" x="261"/> |
67
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
576 |
</connection> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
577 |
</connectionPointIn> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
578 |
<expression>TR2</expression> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
579 |
</outVariable> |
68
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
580 |
<block localId="5" height="70" width="100" instanceName="SR1" typeName="SR"> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
581 |
<position y="63" x="161"/> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
582 |
<inputVariables> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
583 |
<variable formalParameter="S1"> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
584 |
<connectionPointIn> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
585 |
<relPosition y="32" x="0"/> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
586 |
<connection refLocalId="2"> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
587 |
<position y="95" x="161"/> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
588 |
<position y="95" x="121"/> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
589 |
<position y="72" x="121"/> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
590 |
<position y="72" x="81"/> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
591 |
</connection> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
592 |
</connectionPointIn> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
593 |
</variable> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
594 |
<variable formalParameter="R"> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
595 |
<connectionPointIn> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
596 |
<relPosition y="57" x="0"/> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
597 |
<connection refLocalId="3"> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
598 |
<position y="120" x="161"/> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
599 |
<position y="120" x="121"/> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
600 |
<position y="153" x="121"/> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
601 |
<position y="153" x="81"/> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
602 |
</connection> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
603 |
</connectionPointIn> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
604 |
</variable> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
605 |
</inputVariables> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
606 |
<inOutVariables/> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
607 |
<outputVariables> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
608 |
<variable formalParameter="Q1"> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
609 |
<connectionPointOut> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
610 |
<relPosition y="32" x="100"/> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
611 |
</connectionPointOut> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
612 |
</variable> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
613 |
</outputVariables> |
66308e07402c
Adding support for allowing declarations of function block into POU interface
lbessard
parents:
67
diff
changeset
|
614 |
</block> |
67
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
615 |
</FBD> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
616 |
</body> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
617 |
</transition> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
618 |
<transition name="TR3"> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
619 |
<body> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
620 |
<LD> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
621 |
<leftPowerRail localId="1" height="98" width="2"> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
622 |
<position y="20" x="31"/> |
80 | 623 |
<connectionPointOut formalParameter="None"> |
67
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
624 |
<relPosition y="20" x="2"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
625 |
</connectionPointOut> |
80 | 626 |
<connectionPointOut formalParameter="None"> |
67
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
627 |
<relPosition y="64" x="2"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
628 |
</connectionPointOut> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
629 |
</leftPowerRail> |
116
58b9b84e385f
Adding support in xmlclass for timezone in datetime and for not paying attention to xml comments
lbessard
parents:
80
diff
changeset
|
630 |
<contact localId="2" width="21" height="15"> |
67
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
631 |
<position y="32" x="72"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
632 |
<connectionPointIn> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
633 |
<relPosition y="8" x="0"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
634 |
<connection refLocalId="1"> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
635 |
<position y="40" x="72"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
636 |
<position y="40" x="33"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
637 |
</connection> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
638 |
</connectionPointIn> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
639 |
<connectionPointOut> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
640 |
<relPosition y="8" x="21"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
641 |
</connectionPointOut> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
642 |
<variable>IN2</variable> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
643 |
</contact> |
116
58b9b84e385f
Adding support in xmlclass for timezone in datetime and for not paying attention to xml comments
lbessard
parents:
80
diff
changeset
|
644 |
<contact localId="3" width="21" height="15" edge="rising"> |
67
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
645 |
<position y="76" x="72"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
646 |
<connectionPointIn> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
647 |
<relPosition y="8" x="0"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
648 |
<connection refLocalId="1"> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
649 |
<position y="84" x="72"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
650 |
<position y="84" x="33"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
651 |
</connection> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
652 |
</connectionPointIn> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
653 |
<connectionPointOut> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
654 |
<relPosition y="8" x="21"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
655 |
</connectionPointOut> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
656 |
<variable>IN5</variable> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
657 |
</contact> |
116
58b9b84e385f
Adding support in xmlclass for timezone in datetime and for not paying attention to xml comments
lbessard
parents:
80
diff
changeset
|
658 |
<coil localId="4" width="21" height="15" negated="true"> |
67
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
659 |
<position y="32" x="208"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
660 |
<connectionPointIn> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
661 |
<relPosition y="8" x="0"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
662 |
<connection refLocalId="2"> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
663 |
<position y="40" x="208"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
664 |
<position y="40" x="93"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
665 |
</connection> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
666 |
<connection refLocalId="3"> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
667 |
<position y="40" x="208"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
668 |
<position y="40" x="131"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
669 |
<position y="84" x="131"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
670 |
<position y="84" x="93"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
671 |
</connection> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
672 |
</connectionPointIn> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
673 |
<connectionPointOut> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
674 |
<relPosition y="8" x="21"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
675 |
</connectionPointOut> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
676 |
<variable>TR3</variable> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
677 |
</coil> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
678 |
<rightPowerRail localId="5" height="40" width="2"> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
679 |
<position y="19" x="271"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
680 |
<connectionPointIn> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
681 |
<relPosition y="21" x="0"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
682 |
<connection refLocalId="4"> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
683 |
<position y="40" x="271"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
684 |
<position y="40" x="229"/> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
685 |
</connection> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
686 |
</connectionPointIn> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
687 |
</rightPowerRail> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
688 |
</LD> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
689 |
</body> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
690 |
</transition> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
691 |
<transition name="TR4"> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
692 |
<body> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
693 |
<IL> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
694 |
<![CDATA[ |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
695 |
LD IN3 |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
696 |
AND IN4 |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
697 |
]]> |
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
698 |
</IL> |
0 | 699 |
</body> |
700 |
</transition> |
|
701 |
</transitions> |
|
702 |
<body> |
|
703 |
<SFC> |
|
704 |
<step localId="1" height="31" width="46" initialStep="true" name="Start"> |
|
705 |
<position y="46" x="82"/> |
|
80 | 706 |
<connectionPointOut formalParameter="None"> |
0 | 707 |
<relPosition y="31" x="23"/> |
708 |
</connectionPointOut> |
|
709 |
</step> |
|
710 |
<transition localId="2" height="2" width="20"> |
|
711 |
<position y="102" x="95"/> |
|
712 |
<connectionPointIn> |
|
713 |
<relPosition y="0" x="10"/> |
|
714 |
<connection refLocalId="1"> |
|
715 |
<position y="102" x="105"/> |
|
716 |
<position y="77" x="105"/> |
|
717 |
</connection> |
|
718 |
</connectionPointIn> |
|
719 |
<connectionPointOut> |
|
720 |
<relPosition y="2" x="10"/> |
|
721 |
</connectionPointOut> |
|
722 |
<condition> |
|
723 |
<reference name="TR1"/> |
|
724 |
</condition> |
|
725 |
</transition> |
|
116
58b9b84e385f
Adding support in xmlclass for timezone in datetime and for not paying attention to xml comments
lbessard
parents:
80
diff
changeset
|
726 |
<step localId="3" height="27" width="29" name="Init"> |
0 | 727 |
<position y="129" x="91"/> |
728 |
<connectionPointIn> |
|
729 |
<relPosition y="0" x="14"/> |
|
730 |
<connection refLocalId="2"> |
|
731 |
<position y="129" x="105"/> |
|
732 |
<position y="104" x="105"/> |
|
733 |
</connection> |
|
734 |
</connectionPointIn> |
|
80 | 735 |
<connectionPointOut formalParameter="None"> |
0 | 736 |
<relPosition y="27" x="14"/> |
737 |
</connectionPointOut> |
|
80 | 738 |
<connectionPointOutAction formalParameter="None"> |
0 | 739 |
<relPosition y="13" x="29"/> |
740 |
</connectionPointOutAction> |
|
741 |
</step> |
|
2 | 742 |
<selectionDivergence localId="4" height="1" width="391"> |
0 | 743 |
<position y="181" x="105"/> |
744 |
<connectionPointIn> |
|
745 |
<relPosition y="0" x="0"/> |
|
746 |
<connection refLocalId="3"> |
|
747 |
<position y="181" x="105"/> |
|
748 |
<position y="156" x="105"/> |
|
749 |
</connection> |
|
750 |
</connectionPointIn> |
|
80 | 751 |
<connectionPointOut formalParameter="None"> |
0 | 752 |
<relPosition y="1" x="0"/> |
753 |
</connectionPointOut> |
|
80 | 754 |
<connectionPointOut formalParameter="None"> |
2 | 755 |
<relPosition y="1" x="228"/> |
756 |
</connectionPointOut> |
|
80 | 757 |
<connectionPointOut formalParameter="None"> |
2 | 758 |
<relPosition y="1" x="391"/> |
0 | 759 |
</connectionPointOut> |
760 |
</selectionDivergence> |
|
761 |
<transition localId="5" height="2" width="20"> |
|
762 |
<position y="207" x="95"/> |
|
763 |
<connectionPointIn> |
|
764 |
<relPosition y="0" x="10"/> |
|
765 |
<connection refLocalId="4"> |
|
766 |
<position y="207" x="105"/> |
|
767 |
<position y="182" x="105"/> |
|
768 |
</connection> |
|
769 |
</connectionPointIn> |
|
770 |
<connectionPointOut> |
|
771 |
<relPosition y="2" x="10"/> |
|
772 |
</connectionPointOut> |
|
773 |
<condition> |
|
80 | 774 |
<inline name="None"> |
67
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
775 |
<ST><![CDATA[IN2 AND IN3]]></ST> |
0 | 776 |
</inline> |
777 |
</condition> |
|
778 |
</transition> |
|
116
58b9b84e385f
Adding support in xmlclass for timezone in datetime and for not paying attention to xml comments
lbessard
parents:
80
diff
changeset
|
779 |
<step localId="6" height="27" width="48" name="Step1"> |
2 | 780 |
<position y="262" x="81"/> |
0 | 781 |
<connectionPointIn> |
782 |
<relPosition y="0" x="24"/> |
|
2 | 783 |
<connection refLocalId="21"> |
784 |
<position y="262" x="105"/> |
|
785 |
<position y="237" x="105"/> |
|
0 | 786 |
</connection> |
787 |
</connectionPointIn> |
|
80 | 788 |
<connectionPointOut formalParameter="None"> |
0 | 789 |
<relPosition y="27" x="24"/> |
790 |
</connectionPointOut> |
|
791 |
</step> |
|
80 | 792 |
<transition localId="7" height="2" priority="1" width="20"> |
2 | 793 |
<position y="207" x="323"/> |
0 | 794 |
<connectionPointIn> |
795 |
<relPosition y="0" x="10"/> |
|
796 |
<connection refLocalId="4"> |
|
2 | 797 |
<position y="207" x="333"/> |
798 |
<position y="182" x="333"/> |
|
0 | 799 |
</connection> |
800 |
</connectionPointIn> |
|
801 |
<connectionPointOut> |
|
802 |
<relPosition y="2" x="10"/> |
|
803 |
</connectionPointOut> |
|
804 |
<condition> |
|
67
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
805 |
<reference name="TR2"/> |
0 | 806 |
</condition> |
807 |
</transition> |
|
116
58b9b84e385f
Adding support in xmlclass for timezone in datetime and for not paying attention to xml comments
lbessard
parents:
80
diff
changeset
|
808 |
<step localId="8" height="27" width="48" name="Step2"> |
2 | 809 |
<position y="234" x="309"/> |
0 | 810 |
<connectionPointIn> |
811 |
<relPosition y="0" x="24"/> |
|
812 |
<connection refLocalId="7"> |
|
2 | 813 |
<position y="234" x="333"/> |
814 |
<position y="209" x="333"/> |
|
0 | 815 |
</connection> |
816 |
</connectionPointIn> |
|
80 | 817 |
<connectionPointOut formalParameter="None"> |
0 | 818 |
<relPosition y="27" x="24"/> |
819 |
</connectionPointOut> |
|
820 |
</step> |
|
821 |
<transition localId="9" height="2" width="20"> |
|
2 | 822 |
<position y="207" x="486"/> |
0 | 823 |
<connectionPointIn> |
824 |
<relPosition y="0" x="10"/> |
|
825 |
<connection refLocalId="4"> |
|
2 | 826 |
<position y="207" x="496"/> |
827 |
<position y="182" x="496"/> |
|
0 | 828 |
</connection> |
829 |
</connectionPointIn> |
|
830 |
<connectionPointOut> |
|
831 |
<relPosition y="2" x="10"/> |
|
832 |
</connectionPointOut> |
|
833 |
<condition> |
|
67
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
834 |
<reference name="TR4"/> |
0 | 835 |
</condition> |
836 |
</transition> |
|
116
58b9b84e385f
Adding support in xmlclass for timezone in datetime and for not paying attention to xml comments
lbessard
parents:
80
diff
changeset
|
837 |
<step localId="10" height="27" width="48" name="Step3"> |
2 | 838 |
<position y="234" x="472"/> |
0 | 839 |
<connectionPointIn> |
840 |
<relPosition y="0" x="24"/> |
|
841 |
<connection refLocalId="9"> |
|
2 | 842 |
<position y="234" x="496"/> |
843 |
<position y="209" x="496"/> |
|
0 | 844 |
</connection> |
845 |
</connectionPointIn> |
|
80 | 846 |
<connectionPointOut formalParameter="None"> |
0 | 847 |
<relPosition y="27" x="24"/> |
848 |
</connectionPointOut> |
|
80 | 849 |
<connectionPointOutAction formalParameter="None"> |
0 | 850 |
<relPosition y="13" x="48"/> |
851 |
</connectionPointOutAction> |
|
852 |
</step> |
|
853 |
<transition localId="11" height="2" width="20"> |
|
2 | 854 |
<position y="342" x="95"/> |
0 | 855 |
<connectionPointIn> |
856 |
<relPosition y="0" x="10"/> |
|
2 | 857 |
<connection refLocalId="23"> |
858 |
<position y="342" x="105"/> |
|
859 |
<position y="317" x="105"/> |
|
0 | 860 |
</connection> |
861 |
</connectionPointIn> |
|
862 |
<connectionPointOut> |
|
863 |
<relPosition y="2" x="10"/> |
|
864 |
</connectionPointOut> |
|
865 |
<condition> |
|
67
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
866 |
<reference name="TR3"/> |
0 | 867 |
</condition> |
868 |
</transition> |
|
869 |
<jumpStep localId="12" height="13" width="12" targetName="Start"> |
|
2 | 870 |
<position y="369" x="99"/> |
0 | 871 |
<connectionPointIn> |
872 |
<relPosition y="0" x="6"/> |
|
873 |
<connection refLocalId="11"> |
|
2 | 874 |
<position y="369" x="105"/> |
875 |
<position y="344" x="105"/> |
|
0 | 876 |
</connection> |
877 |
</connectionPointIn> |
|
878 |
</jumpStep> |
|
879 |
<actionBlock localId="13" height="30" width="100"> |
|
880 |
<position y="127" x="145"/> |
|
881 |
<connectionPointIn> |
|
882 |
<relPosition y="15" x="0"/> |
|
883 |
<connection refLocalId="3"> |
|
884 |
<position y="142" x="145"/> |
|
885 |
<position y="142" x="120"/> |
|
886 |
</connection> |
|
887 |
</connectionPointIn> |
|
116
58b9b84e385f
Adding support in xmlclass for timezone in datetime and for not paying attention to xml comments
lbessard
parents:
80
diff
changeset
|
888 |
<action> |
0 | 889 |
<reference name="ACT1"/> |
890 |
</action> |
|
891 |
</actionBlock> |
|
892 |
<transition localId="14" height="2" width="20"> |
|
2 | 893 |
<position y="286" x="323"/> |
0 | 894 |
<connectionPointIn> |
895 |
<relPosition y="0" x="10"/> |
|
896 |
<connection refLocalId="8"> |
|
2 | 897 |
<position y="286" x="333"/> |
898 |
<position y="261" x="333"/> |
|
0 | 899 |
</connection> |
900 |
</connectionPointIn> |
|
901 |
<connectionPointOut> |
|
902 |
<relPosition y="2" x="10"/> |
|
903 |
</connectionPointOut> |
|
904 |
<condition> |
|
80 | 905 |
<inline name="None"> |
67
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
906 |
<ST><![CDATA[IN5]]></ST> |
0 | 907 |
</inline> |
908 |
</condition> |
|
909 |
</transition> |
|
910 |
<transition localId="15" height="2" width="20"> |
|
46 | 911 |
<position y="346" x="486"/> |
0 | 912 |
<connectionPointIn> |
913 |
<relPosition y="0" x="10"/> |
|
914 |
<connection refLocalId="10"> |
|
46 | 915 |
<position y="346" x="496"/> |
2 | 916 |
<position y="261" x="496"/> |
0 | 917 |
</connection> |
918 |
</connectionPointIn> |
|
919 |
<connectionPointOut> |
|
920 |
<relPosition y="2" x="10"/> |
|
921 |
</connectionPointOut> |
|
922 |
<condition> |
|
80 | 923 |
<inline name="None"> |
67
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
924 |
<ST><![CDATA[IN5]]></ST> |
0 | 925 |
</inline> |
926 |
</condition> |
|
927 |
</transition> |
|
2 | 928 |
<selectionConvergence localId="16" height="1" width="163"> |
46 | 929 |
<position y="373" x="333"/> |
0 | 930 |
<connectionPointIn> |
931 |
<relPosition y="0" x="0"/> |
|
932 |
<connection refLocalId="14"> |
|
46 | 933 |
<position y="373" x="333"/> |
2 | 934 |
<position y="288" x="333"/> |
935 |
</connection> |
|
936 |
</connectionPointIn> |
|
937 |
<connectionPointIn> |
|
938 |
<relPosition y="0" x="163"/> |
|
0 | 939 |
<connection refLocalId="15"> |
46 | 940 |
<position y="373" x="496"/> |
941 |
<position y="348" x="496"/> |
|
2 | 942 |
</connection> |
943 |
</connectionPointIn> |
|
944 |
<connectionPointOut> |
|
945 |
<relPosition y="1" x="80"/> |
|
0 | 946 |
</connectionPointOut> |
947 |
</selectionConvergence> |
|
948 |
<jumpStep localId="19" height="13" width="12" targetName="Init"> |
|
46 | 949 |
<position y="399" x="407"/> |
0 | 950 |
<connectionPointIn> |
951 |
<relPosition y="0" x="6"/> |
|
952 |
<connection refLocalId="16"> |
|
46 | 953 |
<position y="399" x="413"/> |
954 |
<position y="374" x="413"/> |
|
0 | 955 |
</connection> |
956 |
</connectionPointIn> |
|
957 |
</jumpStep> |
|
46 | 958 |
<actionBlock localId="20" height="90" width="173"> |
2 | 959 |
<position y="232" x="545"/> |
0 | 960 |
<connectionPointIn> |
961 |
<relPosition y="15" x="0"/> |
|
962 |
<connection refLocalId="10"> |
|
2 | 963 |
<position y="247" x="545"/> |
964 |
<position y="247" x="520"/> |
|
0 | 965 |
</connection> |
966 |
</connectionPointIn> |
|
116
58b9b84e385f
Adding support in xmlclass for timezone in datetime and for not paying attention to xml comments
lbessard
parents:
80
diff
changeset
|
967 |
<action indicator="IN5"> |
0 | 968 |
<reference name="ACT1"/> |
969 |
</action> |
|
2 | 970 |
<action qualifier="D" duration="T#10s"> |
0 | 971 |
<reference name="IN1"/> |
972 |
</action> |
|
46 | 973 |
<action qualifier="P"> |
974 |
<inline> |
|
67
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
975 |
<ST><![CDATA[IN2 := TRUE;]]></ST> |
46 | 976 |
</inline> |
977 |
</action> |
|
0 | 978 |
</actionBlock> |
2 | 979 |
<simultaneousDivergence localId="21" height="3" width="118"> |
980 |
<position y="234" x="105"/> |
|
981 |
<connectionPointIn> |
|
982 |
<relPosition y="0" x="0"/> |
|
983 |
<connection refLocalId="5"> |
|
984 |
<position y="234" x="105"/> |
|
985 |
<position y="209" x="105"/> |
|
986 |
</connection> |
|
987 |
</connectionPointIn> |
|
80 | 988 |
<connectionPointOut formalParameter="None"> |
2 | 989 |
<relPosition y="3" x="0"/> |
990 |
</connectionPointOut> |
|
80 | 991 |
<connectionPointOut formalParameter="None"> |
2 | 992 |
<relPosition y="3" x="118"/> |
993 |
</connectionPointOut> |
|
994 |
</simultaneousDivergence> |
|
116
58b9b84e385f
Adding support in xmlclass for timezone in datetime and for not paying attention to xml comments
lbessard
parents:
80
diff
changeset
|
995 |
<step localId="22" height="27" width="48" name="Step4"> |
2 | 996 |
<position y="262" x="199"/> |
997 |
<connectionPointIn> |
|
998 |
<relPosition y="0" x="24"/> |
|
999 |
<connection refLocalId="21"> |
|
1000 |
<position y="262" x="223"/> |
|
1001 |
<position y="237" x="223"/> |
|
1002 |
</connection> |
|
1003 |
</connectionPointIn> |
|
80 | 1004 |
<connectionPointOut formalParameter="None"> |
2 | 1005 |
<relPosition y="27" x="24"/> |
1006 |
</connectionPointOut> |
|
1007 |
</step> |
|
1008 |
<simultaneousConvergence localId="23" height="3" width="118"> |
|
1009 |
<position y="314" x="105"/> |
|
1010 |
<connectionPointIn> |
|
1011 |
<relPosition y="0" x="0"/> |
|
1012 |
<connection refLocalId="6"> |
|
1013 |
<position y="314" x="105"/> |
|
1014 |
<position y="289" x="105"/> |
|
1015 |
</connection> |
|
1016 |
</connectionPointIn> |
|
1017 |
<connectionPointIn> |
|
1018 |
<relPosition y="0" x="118"/> |
|
1019 |
<connection refLocalId="22"> |
|
1020 |
<position y="314" x="223"/> |
|
1021 |
<position y="289" x="223"/> |
|
1022 |
</connection> |
|
1023 |
</connectionPointIn> |
|
1024 |
<connectionPointOut> |
|
1025 |
<relPosition y="3" x="0"/> |
|
1026 |
</connectionPointOut> |
|
1027 |
</simultaneousConvergence> |
|
0 | 1028 |
</SFC> |
1029 |
</body> |
|
1030 |
</pou> |
|
1031 |
<pou name="STTest" pouType="functionBlock"> |
|
1032 |
<interface> |
|
1033 |
<inputVars> |
|
1034 |
<variable name="Collision"> |
|
1035 |
<type> |
|
1036 |
<BOOL/> |
|
1037 |
</type> |
|
1038 |
</variable> |
|
1039 |
<variable name="Gate"> |
|
1040 |
<type> |
|
1041 |
<BOOL/> |
|
1042 |
</type> |
|
1043 |
</variable> |
|
1044 |
<variable name="Pump"> |
|
1045 |
<type> |
|
1046 |
<BOOL/> |
|
1047 |
</type> |
|
1048 |
</variable> |
|
1049 |
<variable name="Temp"> |
|
1050 |
<type> |
|
17 | 1051 |
<REAL/> |
0 | 1052 |
</type> |
1053 |
</variable> |
|
1054 |
</inputVars> |
|
1055 |
<outputVars> |
|
1056 |
<variable name="Speed"> |
|
1057 |
<type> |
|
1058 |
<INT/> |
|
1059 |
</type> |
|
1060 |
</variable> |
|
1061 |
<variable name="PumpSpeed"> |
|
1062 |
<type> |
|
1063 |
<INT/> |
|
1064 |
</type> |
|
1065 |
</variable> |
|
1066 |
<variable name="Brakes"> |
|
1067 |
<type> |
|
1068 |
<BOOL/> |
|
1069 |
</type> |
|
1070 |
</variable> |
|
1071 |
<variable name="Control_State"> |
|
1072 |
<type> |
|
1073 |
<BOOL/> |
|
1074 |
</type> |
|
1075 |
</variable> |
|
1076 |
</outputVars> |
|
1077 |
</interface> |
|
1078 |
<body> |
|
1079 |
<ST> |
|
67
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
1080 |
<![CDATA[ |
1 | 1081 |
IF Collision THEN |
2 | 1082 |
Speed := 0; |
13
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
1083 |
Brakes := TRUE; |
1 | 1084 |
END_IF; |
0 | 1085 |
|
126 | 1086 |
IF (Gate = open) AND |
13
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
1087 |
(Pump = TRUE) AND (Temp > 200.0) THEN |
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
1088 |
Control_State := TRUE; |
1 | 1089 |
ELSE |
13
69075340d6a9
Adding support for forbidding insertion of function block into function
lbessard
parents:
2
diff
changeset
|
1090 |
Control_State := FALSE; |
56
7187e1c00975
Adding support for Undo/Redo and Unsaved File On Close detection
lbessard
parents:
47
diff
changeset
|
1091 |
|
2 | 1092 |
PumpSpeed := 10.0; |
1 | 1093 |
END_IF; |
67
3a1b0afdaf84
Adding support for automatically generate function blocks in interface when a block is added
lbessard
parents:
58
diff
changeset
|
1094 |
]]> |
0 | 1095 |
</ST> |
1096 |
</body> |
|
1097 |
</pou> |
|
1098 |
</pous> |
|
1099 |
</types> |
|
1100 |
<instances> |
|
1101 |
<configurations> |
|
1102 |
<configuration name="ConfigTest"> |
|
1103 |
<resource name="ResourceTest"> |
|
58 | 1104 |
<task name="Toto" priority="6" single="Tutu"> |
0 | 1105 |
<pouInstance type="SFCTest" name="Program1"/> |
1106 |
</task> |
|
1107 |
<globalVars> |
|
56
7187e1c00975
Adding support for Undo/Redo and Unsaved File On Close detection
lbessard
parents:
47
diff
changeset
|
1108 |
<variable name="Titi" address="%MW30"> |
0 | 1109 |
<type> |
1110 |
<INT/> |
|
1111 |
</type> |
|
1112 |
</variable> |
|
1113 |
</globalVars> |
|
1114 |
</resource> |
|
1115 |
<globalVars> |
|
56
7187e1c00975
Adding support for Undo/Redo and Unsaved File On Close detection
lbessard
parents:
47
diff
changeset
|
1116 |
<variable name="Toto" address="%MW10"> |
0 | 1117 |
<type> |
1118 |
<INT/> |
|
1119 |
</type> |
|
1120 |
</variable> |
|
56
7187e1c00975
Adding support for Undo/Redo and Unsaved File On Close detection
lbessard
parents:
47
diff
changeset
|
1121 |
<variable name="Tutu" address="%MX20"> |
0 | 1122 |
<type> |
1123 |
<BOOL/> |
|
1124 |
</type> |
|
1125 |
</variable> |
|
1126 |
</globalVars> |
|
1127 |
</configuration> |
|
1128 |
</configurations> |
|
1129 |
</instances> |
|
1130 |
</project> |