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