1 <?xml version='1.0' encoding='utf-8'?> |
|
2 <project xmlns:ns1="http://www.plcopen.org/xml/tc6_0201" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.plcopen.org/xml/tc6_0201"> |
|
3 <fileHeader companyName="Unknown" productName="Unnamed" productVersion="1" creationDateTime="2019-08-06T14:23:42"/> |
|
4 <contentHeader name="Unnamed" modificationDateTime="2020-09-30T13:04:27"> |
|
5 <coordinateInfo> |
|
6 <fbd> |
|
7 <scaling x="5" y="5"/> |
|
8 </fbd> |
|
9 <ld> |
|
10 <scaling x="0" y="0"/> |
|
11 </ld> |
|
12 <sfc> |
|
13 <scaling x="0" y="0"/> |
|
14 </sfc> |
|
15 </coordinateInfo> |
|
16 </contentHeader> |
|
17 <types> |
|
18 <dataTypes/> |
|
19 <pous> |
|
20 <pou name="MainStuff" pouType="program"> |
|
21 <interface> |
|
22 <localVars> |
|
23 <variable name="TargetPressure"> |
|
24 <type> |
|
25 <derived name="HMI_INT"/> |
|
26 </type> |
|
27 </variable> |
|
28 <variable name="selection"> |
|
29 <type> |
|
30 <derived name="HMI_INT"/> |
|
31 </type> |
|
32 </variable> |
|
33 <variable name="Pump0"> |
|
34 <type> |
|
35 <derived name="PumpControl"/> |
|
36 </type> |
|
37 </variable> |
|
38 <variable name="TestButton"> |
|
39 <type> |
|
40 <derived name="HMI_BOOL"/> |
|
41 </type> |
|
42 </variable> |
|
43 <variable name="TestLocal"> |
|
44 <type> |
|
45 <BOOL/> |
|
46 </type> |
|
47 </variable> |
|
48 <variable name="Multistate"> |
|
49 <type> |
|
50 <derived name="HMI_INT"/> |
|
51 </type> |
|
52 </variable> |
|
53 <variable name="Radiostate"> |
|
54 <type> |
|
55 <derived name="HMI_INT"/> |
|
56 </type> |
|
57 </variable> |
|
58 <variable name="Toggle"> |
|
59 <type> |
|
60 <derived name="HMI_BOOL"/> |
|
61 </type> |
|
62 </variable> |
|
63 <variable name="Toggle1"> |
|
64 <type> |
|
65 <derived name="HMI_BOOL"/> |
|
66 </type> |
|
67 </variable> |
|
68 <variable name="Toggle2"> |
|
69 <type> |
|
70 <derived name="HMI_BOOL"/> |
|
71 </type> |
|
72 </variable> |
|
73 <variable name="MultistateExt"> |
|
74 <type> |
|
75 <INT/> |
|
76 </type> |
|
77 </variable> |
|
78 <variable name="Speed"> |
|
79 <type> |
|
80 <derived name="HMI_INT"/> |
|
81 </type> |
|
82 </variable> |
|
83 </localVars> |
|
84 </interface> |
|
85 <body> |
|
86 <FBD> |
|
87 <block localId="4" typeName="PumpControl" instanceName="Pump0" executionOrderId="0" height="40" width="127"> |
|
88 <position x="595" y="50"/> |
|
89 <inputVariables> |
|
90 <variable formalParameter="TargetPressure"> |
|
91 <connectionPointIn> |
|
92 <relPosition x="0" y="30"/> |
|
93 <connection refLocalId="5"> |
|
94 <position x="595" y="80"/> |
|
95 <position x="570" y="80"/> |
|
96 </connection> |
|
97 </connectionPointIn> |
|
98 </variable> |
|
99 </inputVariables> |
|
100 <inOutVariables/> |
|
101 <outputVariables/> |
|
102 </block> |
|
103 <inVariable localId="5" executionOrderId="0" height="30" width="125" negated="false"> |
|
104 <position x="445" y="65"/> |
|
105 <connectionPointOut> |
|
106 <relPosition x="125" y="15"/> |
|
107 </connectionPointOut> |
|
108 <expression>TargetPressure</expression> |
|
109 </inVariable> |
|
110 <inVariable localId="6" executionOrderId="0" height="25" width="90" negated="false"> |
|
111 <position x="130" y="60"/> |
|
112 <connectionPointOut> |
|
113 <relPosition x="90" y="10"/> |
|
114 </connectionPointOut> |
|
115 <expression>TestButton</expression> |
|
116 </inVariable> |
|
117 <outVariable localId="7" executionOrderId="0" height="25" width="85" negated="false"> |
|
118 <position x="495" y="220"/> |
|
119 <connectionPointIn> |
|
120 <relPosition x="0" y="10"/> |
|
121 <connection refLocalId="6"> |
|
122 <position x="495" y="230"/> |
|
123 <position x="367" y="230"/> |
|
124 <position x="367" y="70"/> |
|
125 <position x="220" y="70"/> |
|
126 </connection> |
|
127 </connectionPointIn> |
|
128 <expression>TestLocal</expression> |
|
129 </outVariable> |
|
130 <inVariable localId="1" executionOrderId="0" height="25" width="115" negated="false"> |
|
131 <position x="175" y="355"/> |
|
132 <connectionPointOut> |
|
133 <relPosition x="115" y="10"/> |
|
134 </connectionPointOut> |
|
135 <expression>Multistate</expression> |
|
136 </inVariable> |
|
137 <outVariable localId="8" executionOrderId="0" height="25" width="115" negated="false"> |
|
138 <position x="495" y="355"/> |
|
139 <connectionPointIn> |
|
140 <relPosition x="0" y="10"/> |
|
141 <connection refLocalId="1"> |
|
142 <position x="495" y="365"/> |
|
143 <position x="290" y="365"/> |
|
144 </connection> |
|
145 </connectionPointIn> |
|
146 <expression>MultistateExt</expression> |
|
147 </outVariable> |
|
148 </FBD> |
|
149 </body> |
|
150 </pou> |
|
151 <pou name="PumpControl" pouType="functionBlock"> |
|
152 <interface> |
|
153 <localVars> |
|
154 <variable name="Pump"> |
|
155 <type> |
|
156 <derived name="HMI_NODE"/> |
|
157 </type> |
|
158 </variable> |
|
159 <variable name="Pressure"> |
|
160 <type> |
|
161 <derived name="HMI_INT"/> |
|
162 </type> |
|
163 </variable> |
|
164 </localVars> |
|
165 <inputVars> |
|
166 <variable name="TargetPressure"> |
|
167 <type> |
|
168 <INT/> |
|
169 </type> |
|
170 </variable> |
|
171 </inputVars> |
|
172 <localVars> |
|
173 <variable name="Sloth"> |
|
174 <type> |
|
175 <derived name="HMI_INT"/> |
|
176 </type> |
|
177 </variable> |
|
178 <variable name="boolout"> |
|
179 <type> |
|
180 <derived name="HMI_BOOL"/> |
|
181 </type> |
|
182 </variable> |
|
183 <variable name="boolin"> |
|
184 <type> |
|
185 <derived name="HMI_BOOL"/> |
|
186 </type> |
|
187 <initialValue> |
|
188 <simpleValue value="True"/> |
|
189 </initialValue> |
|
190 </variable> |
|
191 <variable name="strout"> |
|
192 <type> |
|
193 <derived name="HMI_STRING"/> |
|
194 </type> |
|
195 </variable> |
|
196 <variable name="strin"> |
|
197 <type> |
|
198 <derived name="HMI_STRING"/> |
|
199 </type> |
|
200 <initialValue> |
|
201 <simpleValue value="blup"/> |
|
202 </initialValue> |
|
203 </variable> |
|
204 </localVars> |
|
205 </interface> |
|
206 <body> |
|
207 <FBD> |
|
208 <inVariable localId="5" executionOrderId="0" height="30" width="125" negated="false"> |
|
209 <position x="150" y="100"/> |
|
210 <connectionPointOut> |
|
211 <relPosition x="125" y="15"/> |
|
212 </connectionPointOut> |
|
213 <expression>TargetPressure</expression> |
|
214 </inVariable> |
|
215 <block localId="6" typeName="ADD" executionOrderId="0" height="60" width="65"> |
|
216 <position x="405" y="65"/> |
|
217 <inputVariables> |
|
218 <variable formalParameter="IN1"> |
|
219 <connectionPointIn> |
|
220 <relPosition x="0" y="30"/> |
|
221 </connectionPointIn> |
|
222 </variable> |
|
223 <variable formalParameter="IN2"> |
|
224 <connectionPointIn> |
|
225 <relPosition x="0" y="50"/> |
|
226 <connection refLocalId="7" formalParameter="OUT"> |
|
227 <position x="405" y="115"/> |
|
228 <position x="360" y="115"/> |
|
229 </connection> |
|
230 </connectionPointIn> |
|
231 </variable> |
|
232 </inputVariables> |
|
233 <inOutVariables/> |
|
234 <outputVariables> |
|
235 <variable formalParameter="OUT"> |
|
236 <connectionPointOut> |
|
237 <relPosition x="65" y="30"/> |
|
238 </connectionPointOut> |
|
239 </variable> |
|
240 </outputVariables> |
|
241 </block> |
|
242 <inVariable localId="1" executionOrderId="0" height="30" width="75" negated="false"> |
|
243 <position x="150" y="135"/> |
|
244 <connectionPointOut> |
|
245 <relPosition x="75" y="15"/> |
|
246 </connectionPointOut> |
|
247 <expression>Pressure</expression> |
|
248 </inVariable> |
|
249 <block localId="7" typeName="SUB" executionOrderId="0" height="60" width="65"> |
|
250 <position x="295" y="85"/> |
|
251 <inputVariables> |
|
252 <variable formalParameter="IN1"> |
|
253 <connectionPointIn> |
|
254 <relPosition x="0" y="30"/> |
|
255 <connection refLocalId="5"> |
|
256 <position x="295" y="115"/> |
|
257 <position x="275" y="115"/> |
|
258 </connection> |
|
259 </connectionPointIn> |
|
260 </variable> |
|
261 <variable formalParameter="IN2"> |
|
262 <connectionPointIn> |
|
263 <relPosition x="0" y="50"/> |
|
264 <connection refLocalId="1"> |
|
265 <position x="295" y="135"/> |
|
266 <position x="285" y="135"/> |
|
267 <position x="285" y="150"/> |
|
268 <position x="225" y="150"/> |
|
269 </connection> |
|
270 </connectionPointIn> |
|
271 </variable> |
|
272 </inputVariables> |
|
273 <inOutVariables/> |
|
274 <outputVariables> |
|
275 <variable formalParameter="OUT"> |
|
276 <connectionPointOut> |
|
277 <relPosition x="65" y="30"/> |
|
278 </connectionPointOut> |
|
279 </variable> |
|
280 </outputVariables> |
|
281 </block> |
|
282 <inVariable localId="2" executionOrderId="0" height="30" width="60" negated="false"> |
|
283 <position x="240" y="190"/> |
|
284 <connectionPointOut> |
|
285 <relPosition x="60" y="15"/> |
|
286 </connectionPointOut> |
|
287 <expression>Sloth</expression> |
|
288 </inVariable> |
|
289 <outVariable localId="3" executionOrderId="0" height="30" width="75" negated="false"> |
|
290 <position x="435" y="205"/> |
|
291 <connectionPointIn> |
|
292 <relPosition x="0" y="15"/> |
|
293 <connection refLocalId="8" formalParameter="OUT"> |
|
294 <position x="435" y="220"/> |
|
295 <position x="410" y="220"/> |
|
296 </connection> |
|
297 </connectionPointIn> |
|
298 <expression>Pressure</expression> |
|
299 </outVariable> |
|
300 <block localId="8" typeName="DIV" executionOrderId="0" height="60" width="65"> |
|
301 <position x="345" y="190"/> |
|
302 <inputVariables> |
|
303 <variable formalParameter="IN1"> |
|
304 <connectionPointIn> |
|
305 <relPosition x="0" y="30"/> |
|
306 <connection refLocalId="2"> |
|
307 <position x="345" y="220"/> |
|
308 <position x="335" y="220"/> |
|
309 <position x="335" y="205"/> |
|
310 <position x="300" y="205"/> |
|
311 </connection> |
|
312 </connectionPointIn> |
|
313 </variable> |
|
314 <variable formalParameter="IN2"> |
|
315 <connectionPointIn> |
|
316 <relPosition x="0" y="50"/> |
|
317 <connection refLocalId="9"> |
|
318 <position x="345" y="240"/> |
|
319 <position x="300" y="240"/> |
|
320 </connection> |
|
321 </connectionPointIn> |
|
322 </variable> |
|
323 </inputVariables> |
|
324 <inOutVariables/> |
|
325 <outputVariables> |
|
326 <variable formalParameter="OUT"> |
|
327 <connectionPointOut> |
|
328 <relPosition x="65" y="30"/> |
|
329 </connectionPointOut> |
|
330 </variable> |
|
331 </outputVariables> |
|
332 </block> |
|
333 <inVariable localId="9" executionOrderId="0" height="30" width="60" negated="false"> |
|
334 <position x="240" y="225"/> |
|
335 <connectionPointOut> |
|
336 <relPosition x="60" y="15"/> |
|
337 </connectionPointOut> |
|
338 <expression>100</expression> |
|
339 </inVariable> |
|
340 <block localId="10" typeName="CONCAT" executionOrderId="0" height="60" width="65"> |
|
341 <position x="360" y="345"/> |
|
342 <inputVariables> |
|
343 <variable formalParameter="IN1"> |
|
344 <connectionPointIn> |
|
345 <relPosition x="0" y="30"/> |
|
346 <connection refLocalId="13" formalParameter="OUT"> |
|
347 <position x="360" y="375"/> |
|
348 <position x="330" y="375"/> |
|
349 <position x="330" y="332"/> |
|
350 <position x="440" y="332"/> |
|
351 <position x="440" y="300"/> |
|
352 <position x="430" y="300"/> |
|
353 </connection> |
|
354 </connectionPointIn> |
|
355 </variable> |
|
356 <variable formalParameter="IN2"> |
|
357 <connectionPointIn> |
|
358 <relPosition x="0" y="50"/> |
|
359 <connection refLocalId="14"> |
|
360 <position x="360" y="395"/> |
|
361 <position x="322" y="395"/> |
|
362 <position x="322" y="400"/> |
|
363 <position x="285" y="400"/> |
|
364 </connection> |
|
365 </connectionPointIn> |
|
366 </variable> |
|
367 </inputVariables> |
|
368 <inOutVariables/> |
|
369 <outputVariables> |
|
370 <variable formalParameter="OUT"> |
|
371 <connectionPointOut> |
|
372 <relPosition x="65" y="30"/> |
|
373 </connectionPointOut> |
|
374 </variable> |
|
375 </outputVariables> |
|
376 </block> |
|
377 <outVariable localId="11" executionOrderId="0" height="30" width="58" negated="false"> |
|
378 <position x="495" y="355"/> |
|
379 <connectionPointIn> |
|
380 <relPosition x="0" y="15"/> |
|
381 <connection refLocalId="10" formalParameter="OUT"> |
|
382 <position x="495" y="370"/> |
|
383 <position x="450" y="370"/> |
|
384 <position x="450" y="375"/> |
|
385 <position x="425" y="375"/> |
|
386 </connection> |
|
387 </connectionPointIn> |
|
388 <expression>strout</expression> |
|
389 </outVariable> |
|
390 <inVariable localId="12" executionOrderId="0" height="30" width="125" negated="false"> |
|
391 <position x="145" y="285"/> |
|
392 <connectionPointOut> |
|
393 <relPosition x="125" y="15"/> |
|
394 </connectionPointOut> |
|
395 <expression>TargetPressure</expression> |
|
396 </inVariable> |
|
397 <block localId="13" typeName="INT_TO_STRING" executionOrderId="0" height="40" width="115"> |
|
398 <position x="315" y="270"/> |
|
399 <inputVariables> |
|
400 <variable formalParameter="IN"> |
|
401 <connectionPointIn> |
|
402 <relPosition x="0" y="30"/> |
|
403 <connection refLocalId="12"> |
|
404 <position x="315" y="300"/> |
|
405 <position x="270" y="300"/> |
|
406 </connection> |
|
407 </connectionPointIn> |
|
408 </variable> |
|
409 </inputVariables> |
|
410 <inOutVariables/> |
|
411 <outputVariables> |
|
412 <variable formalParameter="OUT"> |
|
413 <connectionPointOut> |
|
414 <relPosition x="115" y="30"/> |
|
415 </connectionPointOut> |
|
416 </variable> |
|
417 </outputVariables> |
|
418 </block> |
|
419 <inVariable localId="14" executionOrderId="0" height="30" width="50" negated="false"> |
|
420 <position x="235" y="385"/> |
|
421 <connectionPointOut> |
|
422 <relPosition x="50" y="15"/> |
|
423 </connectionPointOut> |
|
424 <expression>strin</expression> |
|
425 </inVariable> |
|
426 <inVariable localId="15" executionOrderId="0" height="30" width="60" negated="false"> |
|
427 <position x="690" y="210"/> |
|
428 <connectionPointOut> |
|
429 <relPosition x="60" y="15"/> |
|
430 </connectionPointOut> |
|
431 <expression>boolin</expression> |
|
432 </inVariable> |
|
433 <outVariable localId="16" executionOrderId="0" height="30" width="70" negated="false"> |
|
434 <position x="915" y="240"/> |
|
435 <connectionPointIn> |
|
436 <relPosition x="0" y="15"/> |
|
437 <connection refLocalId="17" formalParameter="OUT"> |
|
438 <position x="915" y="255"/> |
|
439 <position x="880" y="255"/> |
|
440 </connection> |
|
441 </connectionPointIn> |
|
442 <expression>boolout</expression> |
|
443 </outVariable> |
|
444 <block localId="17" typeName="AND" executionOrderId="0" height="60" width="65"> |
|
445 <position x="815" y="225"/> |
|
446 <inputVariables> |
|
447 <variable formalParameter="IN1"> |
|
448 <connectionPointIn> |
|
449 <relPosition x="0" y="30"/> |
|
450 <connection refLocalId="15"> |
|
451 <position x="815" y="255"/> |
|
452 <position x="762" y="255"/> |
|
453 <position x="762" y="225"/> |
|
454 <position x="750" y="225"/> |
|
455 </connection> |
|
456 </connectionPointIn> |
|
457 </variable> |
|
458 <variable formalParameter="IN2"> |
|
459 <connectionPointIn> |
|
460 <relPosition x="0" y="50"/> |
|
461 <connection refLocalId="21" formalParameter="OUT"> |
|
462 <position x="815" y="275"/> |
|
463 <position x="750" y="275"/> |
|
464 </connection> |
|
465 </connectionPointIn> |
|
466 </variable> |
|
467 </inputVariables> |
|
468 <inOutVariables/> |
|
469 <outputVariables> |
|
470 <variable formalParameter="OUT"> |
|
471 <connectionPointOut> |
|
472 <relPosition x="65" y="30"/> |
|
473 </connectionPointOut> |
|
474 </variable> |
|
475 </outputVariables> |
|
476 </block> |
|
477 <inVariable localId="18" executionOrderId="0" height="30" width="75" negated="false"> |
|
478 <position x="455" y="260"/> |
|
479 <connectionPointOut> |
|
480 <relPosition x="75" y="15"/> |
|
481 </connectionPointOut> |
|
482 <expression>Pressure</expression> |
|
483 </inVariable> |
|
484 <block localId="19" typeName="MOD" executionOrderId="0" height="60" width="65"> |
|
485 <position x="585" y="245"/> |
|
486 <inputVariables> |
|
487 <variable formalParameter="IN1"> |
|
488 <connectionPointIn> |
|
489 <relPosition x="0" y="30"/> |
|
490 <connection refLocalId="18"> |
|
491 <position x="585" y="275"/> |
|
492 <position x="530" y="275"/> |
|
493 </connection> |
|
494 </connectionPointIn> |
|
495 </variable> |
|
496 <variable formalParameter="IN2"> |
|
497 <connectionPointIn> |
|
498 <relPosition x="0" y="50"/> |
|
499 <connection refLocalId="20"> |
|
500 <position x="585" y="295"/> |
|
501 <position x="555" y="295"/> |
|
502 </connection> |
|
503 </connectionPointIn> |
|
504 </variable> |
|
505 </inputVariables> |
|
506 <inOutVariables/> |
|
507 <outputVariables> |
|
508 <variable formalParameter="OUT"> |
|
509 <connectionPointOut> |
|
510 <relPosition x="65" y="30"/> |
|
511 </connectionPointOut> |
|
512 </variable> |
|
513 </outputVariables> |
|
514 </block> |
|
515 <inVariable localId="20" executionOrderId="0" height="30" width="20" negated="false"> |
|
516 <position x="535" y="280"/> |
|
517 <connectionPointOut> |
|
518 <relPosition x="20" y="15"/> |
|
519 </connectionPointOut> |
|
520 <expression>2</expression> |
|
521 </inVariable> |
|
522 <block localId="21" typeName="EQ" executionOrderId="0" height="60" width="65"> |
|
523 <position x="685" y="245"/> |
|
524 <inputVariables> |
|
525 <variable formalParameter="IN1"> |
|
526 <connectionPointIn> |
|
527 <relPosition x="0" y="30"/> |
|
528 <connection refLocalId="19" formalParameter="OUT"> |
|
529 <position x="685" y="275"/> |
|
530 <position x="650" y="275"/> |
|
531 </connection> |
|
532 </connectionPointIn> |
|
533 </variable> |
|
534 <variable formalParameter="IN2"> |
|
535 <connectionPointIn> |
|
536 <relPosition x="0" y="50"/> |
|
537 <connection refLocalId="22"> |
|
538 <position x="685" y="295"/> |
|
539 <position x="670" y="295"/> |
|
540 <position x="670" y="330"/> |
|
541 <position x="650" y="330"/> |
|
542 </connection> |
|
543 </connectionPointIn> |
|
544 </variable> |
|
545 </inputVariables> |
|
546 <inOutVariables/> |
|
547 <outputVariables> |
|
548 <variable formalParameter="OUT"> |
|
549 <connectionPointOut> |
|
550 <relPosition x="65" y="30"/> |
|
551 </connectionPointOut> |
|
552 </variable> |
|
553 </outputVariables> |
|
554 </block> |
|
555 <inVariable localId="22" executionOrderId="0" height="30" width="20" negated="false"> |
|
556 <position x="630" y="315"/> |
|
557 <connectionPointOut> |
|
558 <relPosition x="20" y="15"/> |
|
559 </connectionPointOut> |
|
560 <expression>0</expression> |
|
561 </inVariable> |
|
562 <inVariable localId="4" executionOrderId="0" height="30" width="60" negated="false"> |
|
563 <position x="510" y="80"/> |
|
564 <connectionPointOut> |
|
565 <relPosition x="60" y="15"/> |
|
566 </connectionPointOut> |
|
567 <expression>Sloth</expression> |
|
568 </inVariable> |
|
569 </FBD> |
|
570 </body> |
|
571 </pou> |
|
572 </pous> |
|
573 </types> |
|
574 <instances> |
|
575 <configurations> |
|
576 <configuration name="config"> |
|
577 <resource name="resource1"> |
|
578 <task name="task0" priority="0" interval="T#20ms"> |
|
579 <pouInstance name="instance0" typeName="MainStuff"/> |
|
580 </task> |
|
581 </resource> |
|
582 </configuration> |
|
583 </configurations> |
|
584 </instances> |
|
585 </project> |
|