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