167
|
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 |
companyURL="www.lolitech.com"
|
|
8 |
productName="BREMIZ"
|
|
9 |
productVersion="1"
|
|
10 |
productRelease="1"
|
|
11 |
creationDateTime="2007-07-07 11:58:26"
|
|
12 |
contentDescription="This tests as most as possible IEC standard library"/>
|
|
13 |
<contentHeader name="STD_TEST"
|
|
14 |
modificationDateTime="2008-05-24 01:22:07">
|
|
15 |
<coordinateInfo>
|
|
16 |
<fbd>
|
|
17 |
<scaling x="5" y="5"/>
|
|
18 |
</fbd>
|
|
19 |
<ld>
|
|
20 |
<scaling x="5" y="5"/>
|
|
21 |
</ld>
|
|
22 |
<sfc>
|
|
23 |
<scaling x="5" y="5"/>
|
|
24 |
</sfc>
|
|
25 |
</coordinateInfo>
|
|
26 |
</contentHeader>
|
|
27 |
<types>
|
|
28 |
<dataTypes>
|
|
29 |
<dataType name="MYTYPE">
|
|
30 |
<baseType>
|
|
31 |
<subrangeSigned>
|
|
32 |
<range lower="0" upper="1000"/>
|
|
33 |
<baseType>
|
|
34 |
<INT/>
|
|
35 |
</baseType>
|
|
36 |
</subrangeSigned>
|
|
37 |
</baseType>
|
|
38 |
</dataType>
|
|
39 |
<dataType name="MYTYPE2">
|
|
40 |
<baseType>
|
|
41 |
<enum>
|
|
42 |
<values>
|
|
43 |
<value name="OPEN"/>
|
|
44 |
<value name="CLOSED"/>
|
|
45 |
</values>
|
|
46 |
</enum>
|
|
47 |
</baseType>
|
|
48 |
<initialValue>
|
|
49 |
<simpleValue value="CLOSED"/>
|
|
50 |
</initialValue>
|
|
51 |
</dataType>
|
|
52 |
<dataType name="MYTYPE3">
|
|
53 |
<baseType>
|
|
54 |
<array>
|
|
55 |
<dimension lower="0" upper="7"/>
|
|
56 |
<dimension lower="1" upper="8"/>
|
|
57 |
<baseType>
|
|
58 |
<derived name="MYTYPE5"/>
|
|
59 |
</baseType>
|
|
60 |
</array>
|
|
61 |
</baseType>
|
|
62 |
<initialValue>
|
|
63 |
<arrayValue>
|
|
64 |
<value repetitionValue="32">
|
|
65 |
<simpleValue value="0"/>
|
|
66 |
</value>
|
|
67 |
<value repetitionValue="30">
|
|
68 |
<simpleValue value="1"/>
|
|
69 |
</value>
|
|
70 |
</arrayValue>
|
|
71 |
</initialValue>
|
|
72 |
</dataType>
|
|
73 |
<dataType name="MYTYPE4">
|
|
74 |
<baseType>
|
|
75 |
<subrangeUnsigned>
|
|
76 |
<range lower="1" upper="100"/>
|
|
77 |
<baseType>
|
|
78 |
<UINT/>
|
|
79 |
</baseType>
|
|
80 |
</subrangeUnsigned>
|
|
81 |
</baseType>
|
|
82 |
</dataType>
|
|
83 |
<dataType name="MYTYPE5">
|
|
84 |
<baseType>
|
|
85 |
<derived name="MYTYPE4"/>
|
|
86 |
</baseType>
|
|
87 |
<initialValue>
|
|
88 |
<simpleValue value="10"/>
|
|
89 |
</initialValue>
|
|
90 |
</dataType>
|
|
91 |
</dataTypes>
|
|
92 |
<pous>
|
|
93 |
<pou name="MAIN_TEST" pouType="program">
|
|
94 |
<interface>
|
|
95 |
<localVars>
|
|
96 |
<variable name="DigitalOut" address="%QB0.0.16.25088.1">
|
|
97 |
<type>
|
|
98 |
<BYTE/>
|
|
99 |
</type>
|
|
100 |
</variable>
|
|
101 |
<variable name="DigitalIn" address="%IB0.0.32.24576.1">
|
|
102 |
<type>
|
|
103 |
<BYTE/>
|
|
104 |
</type>
|
|
105 |
</variable>
|
|
106 |
<variable name="AnalogOut1" address="%QW0.0.16.25617.1">
|
|
107 |
<type>
|
|
108 |
<derived name="MYTYPE"/>
|
|
109 |
</type>
|
|
110 |
</variable>
|
|
111 |
<variable name="AnalogOut2" address="%QW0.0.16.25617.2">
|
|
112 |
<type>
|
|
113 |
<derived name="MYTYPE"/>
|
|
114 |
</type>
|
|
115 |
</variable>
|
|
116 |
<variable name="AnalogOut3" address="%QW0.0.16.25617.3">
|
|
117 |
<type>
|
|
118 |
<INT/>
|
|
119 |
</type>
|
|
120 |
</variable>
|
|
121 |
<variable name="AnalogIn1" address="%IW0.0.32.25601.1">
|
|
122 |
<type>
|
|
123 |
<INT/>
|
|
124 |
</type>
|
|
125 |
</variable>
|
|
126 |
<variable name="AnalogIn2" address="%IW0.0.32.25601.2">
|
|
127 |
<type>
|
|
128 |
<INT/>
|
|
129 |
</type>
|
|
130 |
</variable>
|
|
131 |
</localVars>
|
|
132 |
<localVars>
|
|
133 |
<variable name="Test">
|
|
134 |
<type>
|
|
135 |
<derived name="Bitwise_Block"/>
|
|
136 |
</type>
|
|
137 |
</variable>
|
|
138 |
<variable name="Test2">
|
|
139 |
<type>
|
|
140 |
<derived name="Test_SFC"/>
|
|
141 |
</type>
|
|
142 |
</variable>
|
|
143 |
<variable name="t1">
|
|
144 |
<type>
|
|
145 |
<derived name="TOF"/>
|
|
146 |
</type>
|
|
147 |
</variable>
|
|
148 |
<variable name="latch">
|
|
149 |
<type>
|
|
150 |
<derived name="RS"/>
|
|
151 |
</type>
|
|
152 |
</variable>
|
|
153 |
<variable name="t2">
|
|
154 |
<type>
|
|
155 |
<derived name="TOF"/>
|
|
156 |
</type>
|
|
157 |
</variable>
|
|
158 |
<variable name="test1">
|
|
159 |
<type>
|
|
160 |
<derived name="Button"/>
|
|
161 |
</type>
|
|
162 |
</variable>
|
|
163 |
<variable name="test2">
|
|
164 |
<type>
|
|
165 |
<derived name="Button"/>
|
|
166 |
</type>
|
|
167 |
</variable>
|
|
168 |
<variable name="LED1">
|
|
169 |
<type>
|
|
170 |
<derived name="Button"/>
|
|
171 |
</type>
|
|
172 |
</variable>
|
|
173 |
<variable name="LED2">
|
|
174 |
<type>
|
|
175 |
<derived name="Button"/>
|
|
176 |
</type>
|
|
177 |
</variable>
|
|
178 |
<variable name="LED3">
|
|
179 |
<type>
|
|
180 |
<derived name="Button"/>
|
|
181 |
</type>
|
|
182 |
</variable>
|
|
183 |
<variable name="LED4">
|
|
184 |
<type>
|
|
185 |
<derived name="Button"/>
|
|
186 |
</type>
|
|
187 |
</variable>
|
|
188 |
<variable name="counter1">
|
|
189 |
<type>
|
|
190 |
<derived name="RotatingCtrl"/>
|
|
191 |
</type>
|
|
192 |
</variable>
|
|
193 |
<variable name="counter2">
|
|
194 |
<type>
|
|
195 |
<derived name="RotatingCtrl"/>
|
|
196 |
</type>
|
|
197 |
</variable>
|
|
198 |
</localVars>
|
|
199 |
</interface>
|
|
200 |
<body>
|
|
201 |
<FBD>
|
|
202 |
<comment localId="26" height="80" width="475">
|
|
203 |
<position x="25" y="5"/>
|
|
204 |
<content>
|
|
205 |
<![CDATA[Main program]]>
|
|
206 |
</content>
|
|
207 |
</comment>
|
|
208 |
<inVariable localId="40" height="30" width="100">
|
|
209 |
<position x="25" y="155"/>
|
|
210 |
<connectionPointOut>
|
|
211 |
<relPosition x="100" y="15"/>
|
|
212 |
</connectionPointOut>
|
|
213 |
<expression>DigitalOut</expression>
|
|
214 |
</inVariable>
|
|
215 |
<block localId="52" width="127" height="141" typeName="Bitwise_Block" instanceName="Test">
|
|
216 |
<position x="410" y="535"/>
|
|
217 |
<inputVariables>
|
|
218 |
<variable formalParameter="IN1">
|
|
219 |
<connectionPointIn>
|
|
220 |
<relPosition x="0" y="35"/>
|
|
221 |
<connection refLocalId="105" formalParameter="State">
|
|
222 |
<position x="410" y="570"/>
|
|
223 |
<position x="240" y="570"/>
|
|
224 |
</connection>
|
|
225 |
</connectionPointIn>
|
|
226 |
</variable>
|
|
227 |
<variable formalParameter="IN2">
|
|
228 |
<connectionPointIn>
|
|
229 |
<relPosition x="0" y="65"/>
|
|
230 |
<connection refLocalId="106" formalParameter="State">
|
|
231 |
<position x="410" y="600"/>
|
|
232 |
<position x="350" y="600"/>
|
|
233 |
<position x="350" y="710"/>
|
|
234 |
<position x="240" y="710"/>
|
|
235 |
</connection>
|
|
236 |
</connectionPointIn>
|
|
237 |
</variable>
|
|
238 |
</inputVariables>
|
|
239 |
<inOutVariables/>
|
|
240 |
<outputVariables>
|
|
241 |
<variable formalParameter="OUT_AND">
|
|
242 |
<connectionPointOut>
|
|
243 |
<relPosition x="127" y="35"/>
|
|
244 |
</connectionPointOut>
|
|
245 |
</variable>
|
|
246 |
<variable formalParameter="OUT_OR">
|
|
247 |
<connectionPointOut>
|
|
248 |
<relPosition x="127" y="65"/>
|
|
249 |
</connectionPointOut>
|
|
250 |
</variable>
|
|
251 |
<variable formalParameter="OUT_XOR">
|
|
252 |
<connectionPointOut>
|
|
253 |
<relPosition x="127" y="95"/>
|
|
254 |
</connectionPointOut>
|
|
255 |
</variable>
|
|
256 |
<variable formalParameter="OUT_SR">
|
|
257 |
<connectionPointOut>
|
|
258 |
<relPosition x="127" y="125"/>
|
|
259 |
</connectionPointOut>
|
|
260 |
</variable>
|
|
261 |
</outputVariables>
|
|
262 |
</block>
|
|
263 |
<inVariable localId="59" height="30" width="100">
|
|
264 |
<position x="45" y="910"/>
|
|
265 |
<connectionPointOut>
|
|
266 |
<relPosition x="100" y="15"/>
|
|
267 |
</connectionPointOut>
|
|
268 |
<expression>AnalogOut1</expression>
|
|
269 |
</inVariable>
|
|
270 |
<outVariable localId="60" height="30" width="100">
|
|
271 |
<position x="910" y="840"/>
|
|
272 |
<connectionPointIn>
|
|
273 |
<relPosition x="0" y="15"/>
|
|
274 |
<connection refLocalId="69" formalParameter="OUT1">
|
|
275 |
<position x="910" y="855"/>
|
|
276 |
<position x="610" y="855"/>
|
|
277 |
</connection>
|
|
278 |
</connectionPointIn>
|
|
279 |
<expression>AnalogOut1</expression>
|
|
280 |
</outVariable>
|
|
281 |
<inVariable localId="64" height="30" width="95">
|
|
282 |
<position x="45" y="980"/>
|
|
283 |
<connectionPointOut>
|
|
284 |
<relPosition x="95" y="15"/>
|
|
285 |
</connectionPointOut>
|
|
286 |
<expression>AnalogIn1</expression>
|
|
287 |
</inVariable>
|
|
288 |
<block localId="69" width="160" height="230" typeName="Test_SFC" instanceName="Test2">
|
|
289 |
<position x="450" y="820"/>
|
|
290 |
<inputVariables>
|
|
291 |
<variable formalParameter="CNT1">
|
|
292 |
<connectionPointIn>
|
|
293 |
<relPosition x="0" y="35"/>
|
|
294 |
<connection refLocalId="105" formalParameter="State">
|
|
295 |
<position x="450" y="855"/>
|
|
296 |
<position x="380" y="855"/>
|
|
297 |
<position x="380" y="570"/>
|
|
298 |
<position x="240" y="570"/>
|
|
299 |
</connection>
|
|
300 |
</connectionPointIn>
|
|
301 |
</variable>
|
|
302 |
<variable formalParameter="CNT2">
|
|
303 |
<connectionPointIn>
|
|
304 |
<relPosition x="0" y="70"/>
|
|
305 |
<connection refLocalId="106" formalParameter="State">
|
|
306 |
<position x="450" y="890"/>
|
|
307 |
<position x="350" y="890"/>
|
|
308 |
<position x="350" y="710"/>
|
|
309 |
<position x="240" y="710"/>
|
|
310 |
</connection>
|
|
311 |
</connectionPointIn>
|
|
312 |
</variable>
|
|
313 |
<variable formalParameter="IN1">
|
|
314 |
<connectionPointIn>
|
|
315 |
<relPosition x="0" y="105"/>
|
|
316 |
<connection refLocalId="59">
|
|
317 |
<position x="450" y="925"/>
|
|
318 |
<position x="145" y="925"/>
|
|
319 |
</connection>
|
|
320 |
</connectionPointIn>
|
|
321 |
</variable>
|
|
322 |
<variable formalParameter="IN2">
|
|
323 |
<connectionPointIn>
|
|
324 |
<relPosition x="0" y="140"/>
|
|
325 |
<connection refLocalId="71">
|
|
326 |
<position x="450" y="960"/>
|
|
327 |
<position x="145" y="960"/>
|
|
328 |
</connection>
|
|
329 |
</connectionPointIn>
|
|
330 |
</variable>
|
|
331 |
<variable formalParameter="UPPER1">
|
|
332 |
<connectionPointIn>
|
|
333 |
<relPosition x="0" y="175"/>
|
|
334 |
<connection refLocalId="64">
|
|
335 |
<position x="450" y="995"/>
|
|
336 |
<position x="140" y="995"/>
|
|
337 |
</connection>
|
|
338 |
</connectionPointIn>
|
|
339 |
</variable>
|
|
340 |
<variable formalParameter="UPPER2">
|
|
341 |
<connectionPointIn>
|
|
342 |
<relPosition x="0" y="210"/>
|
|
343 |
<connection refLocalId="72">
|
|
344 |
<position x="450" y="1030"/>
|
|
345 |
<position x="140" y="1030"/>
|
|
346 |
</connection>
|
|
347 |
</connectionPointIn>
|
|
348 |
</variable>
|
|
349 |
</inputVariables>
|
|
350 |
<inOutVariables/>
|
|
351 |
<outputVariables>
|
|
352 |
<variable formalParameter="OUT1">
|
|
353 |
<connectionPointOut>
|
|
354 |
<relPosition x="160" y="35"/>
|
|
355 |
</connectionPointOut>
|
|
356 |
</variable>
|
|
357 |
<variable formalParameter="OUT2">
|
|
358 |
<connectionPointOut>
|
|
359 |
<relPosition x="160" y="70"/>
|
|
360 |
</connectionPointOut>
|
|
361 |
</variable>
|
|
362 |
</outputVariables>
|
|
363 |
</block>
|
|
364 |
<outVariable localId="70" height="30" width="100">
|
|
365 |
<position x="910" y="875"/>
|
|
366 |
<connectionPointIn>
|
|
367 |
<relPosition x="0" y="15"/>
|
|
368 |
<connection refLocalId="69" formalParameter="OUT2">
|
|
369 |
<position x="910" y="890"/>
|
|
370 |
<position x="610" y="890"/>
|
|
371 |
</connection>
|
|
372 |
</connectionPointIn>
|
|
373 |
<expression>AnalogOut2</expression>
|
|
374 |
</outVariable>
|
|
375 |
<inVariable localId="71" height="30" width="100">
|
|
376 |
<position x="45" y="945"/>
|
|
377 |
<connectionPointOut>
|
|
378 |
<relPosition x="100" y="15"/>
|
|
379 |
</connectionPointOut>
|
|
380 |
<expression>AnalogOut2</expression>
|
|
381 |
</inVariable>
|
|
382 |
<inVariable localId="72" height="35" width="95">
|
|
383 |
<position x="45" y="1015"/>
|
|
384 |
<connectionPointOut>
|
|
385 |
<relPosition x="95" y="15"/>
|
|
386 |
</connectionPointOut>
|
|
387 |
<expression>AnalogIn2</expression>
|
|
388 |
</inVariable>
|
|
389 |
<block localId="73" width="120" height="80" typeName="SETBIT">
|
|
390 |
<position x="745" y="140"/>
|
|
391 |
<inputVariables>
|
|
392 |
<variable formalParameter="INPUT_BYTE">
|
|
393 |
<connectionPointIn>
|
|
394 |
<relPosition x="0" y="30"/>
|
|
395 |
<connection refLocalId="40">
|
|
396 |
<position x="745" y="170"/>
|
|
397 |
<position x="125" y="170"/>
|
|
398 |
</connection>
|
|
399 |
</connectionPointIn>
|
|
400 |
</variable>
|
|
401 |
<variable formalParameter="INPUT_BIT">
|
|
402 |
<connectionPointIn>
|
|
403 |
<relPosition x="0" y="50"/>
|
|
404 |
<connection refLocalId="77" formalParameter="Q">
|
|
405 |
<position x="745" y="190"/>
|
|
406 |
<position x="526" y="190"/>
|
|
407 |
<position x="526" y="220"/>
|
|
408 |
<position x="507" y="220"/>
|
|
409 |
</connection>
|
|
410 |
</connectionPointIn>
|
|
411 |
</variable>
|
|
412 |
<variable formalParameter="NUM_BIT">
|
|
413 |
<connectionPointIn>
|
|
414 |
<relPosition x="0" y="70"/>
|
|
415 |
<connection refLocalId="74">
|
|
416 |
<position x="745" y="210"/>
|
|
417 |
<position x="540" y="210"/>
|
|
418 |
<position x="540" y="295"/>
|
|
419 |
<position x="95" y="295"/>
|
|
420 |
</connection>
|
|
421 |
</connectionPointIn>
|
|
422 |
</variable>
|
|
423 |
</inputVariables>
|
|
424 |
<inOutVariables/>
|
|
425 |
<outputVariables>
|
|
426 |
<variable formalParameter="">
|
|
427 |
<connectionPointOut>
|
|
428 |
<relPosition x="120" y="30"/>
|
|
429 |
</connectionPointOut>
|
|
430 |
</variable>
|
|
431 |
</outputVariables>
|
|
432 |
</block>
|
|
433 |
<inVariable localId="74" height="30" width="65">
|
|
434 |
<position x="30" y="280"/>
|
|
435 |
<connectionPointOut>
|
|
436 |
<relPosition x="65" y="15"/>
|
|
437 |
</connectionPointOut>
|
|
438 |
<expression>UINT#7</expression>
|
|
439 |
</inVariable>
|
|
440 |
<block localId="75" width="120" height="60" typeName="GETBIT">
|
|
441 |
<position x="170" y="190"/>
|
|
442 |
<inputVariables>
|
|
443 |
<variable formalParameter="INPUT_BYTE">
|
|
444 |
<connectionPointIn>
|
|
445 |
<relPosition x="0" y="30"/>
|
|
446 |
<connection refLocalId="40">
|
|
447 |
<position x="170" y="220"/>
|
|
448 |
<position x="150" y="220"/>
|
|
449 |
<position x="150" y="170"/>
|
|
450 |
<position x="125" y="170"/>
|
|
451 |
</connection>
|
|
452 |
</connectionPointIn>
|
|
453 |
</variable>
|
|
454 |
<variable formalParameter="NUM_BIT">
|
|
455 |
<connectionPointIn>
|
|
456 |
<relPosition x="0" y="50"/>
|
|
457 |
<connection refLocalId="74">
|
|
458 |
<position x="170" y="240"/>
|
|
459 |
<position x="151" y="240"/>
|
|
460 |
<position x="151" y="295"/>
|
|
461 |
<position x="95" y="295"/>
|
|
462 |
</connection>
|
|
463 |
</connectionPointIn>
|
|
464 |
</variable>
|
|
465 |
</inputVariables>
|
|
466 |
<inOutVariables/>
|
|
467 |
<outputVariables>
|
|
468 |
<variable formalParameter="">
|
|
469 |
<connectionPointOut>
|
|
470 |
<relPosition x="120" y="30"/>
|
|
471 |
</connectionPointOut>
|
|
472 |
</variable>
|
|
473 |
</outputVariables>
|
|
474 |
</block>
|
|
475 |
<outVariable localId="76" height="30" width="100">
|
|
476 |
<position x="910" y="155"/>
|
|
477 |
<connectionPointIn>
|
|
478 |
<relPosition x="0" y="15"/>
|
|
479 |
<connection refLocalId="73">
|
|
480 |
<position x="910" y="170"/>
|
|
481 |
<position x="865" y="170"/>
|
|
482 |
</connection>
|
|
483 |
</connectionPointIn>
|
|
484 |
<expression>DigitalOut</expression>
|
|
485 |
</outVariable>
|
|
486 |
<block localId="77" width="57" height="60" typeName="TP" instanceName="t1">
|
|
487 |
<position x="450" y="190"/>
|
|
488 |
<inputVariables>
|
|
489 |
<variable formalParameter="IN" negated="true">
|
|
490 |
<connectionPointIn>
|
|
491 |
<relPosition x="0" y="30"/>
|
|
492 |
<connection refLocalId="85" formalParameter="Q">
|
|
493 |
<position x="450" y="220"/>
|
|
494 |
<position x="400" y="220"/>
|
|
495 |
</connection>
|
|
496 |
</connectionPointIn>
|
|
497 |
</variable>
|
|
498 |
<variable formalParameter="PT">
|
|
499 |
<connectionPointIn>
|
|
500 |
<relPosition x="0" y="50"/>
|
|
501 |
<connection refLocalId="80">
|
|
502 |
<position x="450" y="240"/>
|
|
503 |
<position x="420" y="240"/>
|
|
504 |
<position x="420" y="270"/>
|
|
505 |
<position x="220" y="270"/>
|
|
506 |
</connection>
|
|
507 |
</connectionPointIn>
|
|
508 |
</variable>
|
|
509 |
</inputVariables>
|
|
510 |
<inOutVariables/>
|
|
511 |
<outputVariables>
|
|
512 |
<variable formalParameter="Q">
|
|
513 |
<connectionPointOut>
|
|
514 |
<relPosition x="57" y="30"/>
|
|
515 |
</connectionPointOut>
|
|
516 |
</variable>
|
|
517 |
<variable formalParameter="ET">
|
|
518 |
<connectionPointOut>
|
|
519 |
<relPosition x="57" y="50"/>
|
|
520 |
</connectionPointOut>
|
|
521 |
</variable>
|
|
522 |
</outputVariables>
|
|
523 |
</block>
|
|
524 |
<inVariable localId="80" height="27" width="50">
|
|
525 |
<position x="170" y="255"/>
|
|
526 |
<connectionPointOut>
|
|
527 |
<relPosition x="50" y="15"/>
|
|
528 |
</connectionPointOut>
|
|
529 |
<expression>T#1s</expression>
|
|
530 |
</inVariable>
|
|
531 |
<block localId="85" width="60" height="60" typeName="TOF" instanceName="t2">
|
|
532 |
<position x="340" y="190"/>
|
|
533 |
<inputVariables>
|
|
534 |
<variable formalParameter="IN">
|
|
535 |
<connectionPointIn>
|
|
536 |
<relPosition x="0" y="30"/>
|
|
537 |
<connection refLocalId="75">
|
|
538 |
<position x="340" y="220"/>
|
|
539 |
<position x="290" y="220"/>
|
|
540 |
</connection>
|
|
541 |
</connectionPointIn>
|
|
542 |
</variable>
|
|
543 |
<variable formalParameter="PT">
|
|
544 |
<connectionPointIn>
|
|
545 |
<relPosition x="0" y="50"/>
|
|
546 |
<connection refLocalId="80">
|
|
547 |
<position x="340" y="240"/>
|
|
548 |
<position x="296" y="240"/>
|
|
549 |
<position x="296" y="270"/>
|
|
550 |
<position x="220" y="270"/>
|
|
551 |
</connection>
|
|
552 |
</connectionPointIn>
|
|
553 |
</variable>
|
|
554 |
</inputVariables>
|
|
555 |
<inOutVariables/>
|
|
556 |
<outputVariables>
|
|
557 |
<variable formalParameter="Q">
|
|
558 |
<connectionPointOut>
|
|
559 |
<relPosition x="60" y="30"/>
|
|
560 |
</connectionPointOut>
|
|
561 |
</variable>
|
|
562 |
<variable formalParameter="ET">
|
|
563 |
<connectionPointOut>
|
|
564 |
<relPosition x="60" y="50"/>
|
|
565 |
</connectionPointOut>
|
|
566 |
</variable>
|
|
567 |
</outputVariables>
|
|
568 |
</block>
|
|
569 |
<outVariable localId="86" height="30" width="100">
|
|
570 |
<position x="910" y="330"/>
|
|
571 |
<connectionPointIn>
|
|
572 |
<relPosition x="0" y="15"/>
|
|
573 |
<connection refLocalId="90" formalParameter="OUT">
|
|
574 |
<position x="910" y="345"/>
|
|
575 |
<position x="865" y="345"/>
|
|
576 |
</connection>
|
|
577 |
</connectionPointIn>
|
|
578 |
<expression>AnalogOut3</expression>
|
|
579 |
</outVariable>
|
|
580 |
<block localId="87" width="120" height="40" typeName="TIME_TO_REAL">
|
|
581 |
<position x="455" y="315"/>
|
|
582 |
<inputVariables>
|
|
583 |
<variable formalParameter="IN">
|
|
584 |
<connectionPointIn>
|
|
585 |
<relPosition x="0" y="30"/>
|
|
586 |
<connection refLocalId="77" formalParameter="ET">
|
|
587 |
<position x="455" y="345"/>
|
|
588 |
<position x="445" y="345"/>
|
|
589 |
<position x="445" y="275"/>
|
|
590 |
<position x="517" y="275"/>
|
|
591 |
<position x="517" y="240"/>
|
|
592 |
<position x="507" y="240"/>
|
|
593 |
</connection>
|
|
594 |
</connectionPointIn>
|
|
595 |
</variable>
|
|
596 |
</inputVariables>
|
|
597 |
<inOutVariables/>
|
|
598 |
<outputVariables>
|
|
599 |
<variable formalParameter="OUT">
|
|
600 |
<connectionPointOut>
|
|
601 |
<relPosition x="120" y="30"/>
|
|
602 |
</connectionPointOut>
|
|
603 |
</variable>
|
|
604 |
</outputVariables>
|
|
605 |
</block>
|
|
606 |
<block localId="88" width="80" height="60" typeName="MUL">
|
|
607 |
<position x="630" y="315"/>
|
|
608 |
<inputVariables>
|
|
609 |
<variable formalParameter="IN1">
|
|
610 |
<connectionPointIn>
|
|
611 |
<relPosition x="0" y="30"/>
|
|
612 |
<connection refLocalId="87" formalParameter="OUT">
|
|
613 |
<position x="630" y="345"/>
|
|
614 |
<position x="575" y="345"/>
|
|
615 |
</connection>
|
|
616 |
</connectionPointIn>
|
|
617 |
</variable>
|
|
618 |
<variable formalParameter="IN2">
|
|
619 |
<connectionPointIn>
|
|
620 |
<relPosition x="0" y="50"/>
|
|
621 |
<connection refLocalId="89">
|
|
622 |
<position x="630" y="365"/>
|
|
623 |
<position x="607" y="365"/>
|
|
624 |
<position x="607" y="400"/>
|
|
625 |
<position x="585" y="400"/>
|
|
626 |
</connection>
|
|
627 |
</connectionPointIn>
|
|
628 |
</variable>
|
|
629 |
</inputVariables>
|
|
630 |
<inOutVariables/>
|
|
631 |
<outputVariables>
|
|
632 |
<variable formalParameter="OUT">
|
|
633 |
<connectionPointOut>
|
|
634 |
<relPosition x="80" y="30"/>
|
|
635 |
</connectionPointOut>
|
|
636 |
</variable>
|
|
637 |
</outputVariables>
|
|
638 |
</block>
|
|
639 |
<inVariable localId="89" height="35" width="120">
|
|
640 |
<position x="465" y="385"/>
|
|
641 |
<connectionPointOut>
|
|
642 |
<relPosition x="120" y="15"/>
|
|
643 |
</connectionPointOut>
|
|
644 |
<expression>REAL#10000.0</expression>
|
|
645 |
</inVariable>
|
|
646 |
<block localId="90" width="120" height="40" typeName="REAL_TO_INT">
|
|
647 |
<position x="745" y="315"/>
|
|
648 |
<inputVariables>
|
|
649 |
<variable formalParameter="IN">
|
|
650 |
<connectionPointIn>
|
|
651 |
<relPosition x="0" y="30"/>
|
|
652 |
<connection refLocalId="88" formalParameter="OUT">
|
|
653 |
<position x="745" y="345"/>
|
|
654 |
<position x="710" y="345"/>
|
|
655 |
</connection>
|
|
656 |
</connectionPointIn>
|
|
657 |
</variable>
|
|
658 |
</inputVariables>
|
|
659 |
<inOutVariables/>
|
|
660 |
<outputVariables>
|
|
661 |
<variable formalParameter="OUT">
|
|
662 |
<connectionPointOut>
|
|
663 |
<relPosition x="120" y="30"/>
|
|
664 |
</connectionPointOut>
|
|
665 |
</variable>
|
|
666 |
</outputVariables>
|
|
667 |
</block>
|
|
668 |
<comment localId="100" height="40" width="400">
|
|
669 |
<position x="25" y="100"/>
|
|
670 |
<content>
|
|
671 |
<![CDATA[A simple blinking output (2s period)]]>
|
|
672 |
</content>
|
|
673 |
</comment>
|
|
674 |
<comment localId="102" height="40" width="430">
|
|
675 |
<position x="580" y="255"/>
|
|
676 |
<content>
|
|
677 |
<![CDATA[Output value of TP block as analog output #3]]>
|
|
678 |
</content>
|
|
679 |
</comment>
|
|
680 |
<comment localId="103" height="65" width="420">
|
|
681 |
<position x="25" y="425"/>
|
|
682 |
<content>
|
|
683 |
<![CDATA[Map input and output of bitwise_block test to bits of DigitalIn and Digital out]]>
|
|
684 |
</content>
|
|
685 |
</comment>
|
|
686 |
<comment localId="104" height="85" width="285">
|
|
687 |
<position x="40" y="805"/>
|
|
688 |
<content>
|
|
689 |
<![CDATA[Map AnalogIN #1 #2 and AnalogOUT #1 #2 to SFC test interface]]>
|
|
690 |
</content>
|
|
691 |
</comment>
|
|
692 |
<block localId="105" width="150" height="100" typeName="Button" instanceName="test1">
|
|
693 |
<position x="90" y="535"/>
|
|
694 |
<inputVariables>
|
|
695 |
<variable formalParameter="Show">
|
|
696 |
<connectionPointIn>
|
|
697 |
<relPosition x="0" y="35"/>
|
|
698 |
</connectionPointIn>
|
|
699 |
</variable>
|
|
700 |
<variable formalParameter="Enable">
|
|
701 |
<connectionPointIn>
|
|
702 |
<relPosition x="0" y="60"/>
|
|
703 |
</connectionPointIn>
|
|
704 |
</variable>
|
|
705 |
<variable formalParameter="Toggle">
|
|
706 |
<connectionPointIn>
|
|
707 |
<relPosition x="0" y="85"/>
|
|
708 |
</connectionPointIn>
|
|
709 |
</variable>
|
|
710 |
</inputVariables>
|
|
711 |
<inOutVariables/>
|
|
712 |
<outputVariables>
|
|
713 |
<variable formalParameter="State">
|
|
714 |
<connectionPointOut>
|
|
715 |
<relPosition x="150" y="35"/>
|
|
716 |
</connectionPointOut>
|
|
717 |
</variable>
|
|
718 |
</outputVariables>
|
|
719 |
</block>
|
|
720 |
<block localId="106" width="150" height="100" typeName="Button" instanceName="test2">
|
|
721 |
<position x="90" y="675"/>
|
|
722 |
<inputVariables>
|
|
723 |
<variable formalParameter="Show">
|
|
724 |
<connectionPointIn>
|
|
725 |
<relPosition x="0" y="35"/>
|
|
726 |
</connectionPointIn>
|
|
727 |
</variable>
|
|
728 |
<variable formalParameter="Enable">
|
|
729 |
<connectionPointIn>
|
|
730 |
<relPosition x="0" y="60"/>
|
|
731 |
</connectionPointIn>
|
|
732 |
</variable>
|
|
733 |
<variable formalParameter="Toggle">
|
|
734 |
<connectionPointIn>
|
|
735 |
<relPosition x="0" y="85"/>
|
|
736 |
</connectionPointIn>
|
|
737 |
</variable>
|
|
738 |
</inputVariables>
|
|
739 |
<inOutVariables/>
|
|
740 |
<outputVariables>
|
|
741 |
<variable formalParameter="State">
|
|
742 |
<connectionPointOut>
|
|
743 |
<relPosition x="150" y="35"/>
|
|
744 |
</connectionPointOut>
|
|
745 |
</variable>
|
|
746 |
</outputVariables>
|
|
747 |
</block>
|
|
748 |
<block localId="107" width="150" height="90" typeName="Button" instanceName="LED1">
|
|
749 |
<position x="675" y="405"/>
|
|
750 |
<inputVariables>
|
|
751 |
<variable formalParameter="Show">
|
|
752 |
<connectionPointIn>
|
|
753 |
<relPosition x="0" y="30"/>
|
|
754 |
</connectionPointIn>
|
|
755 |
</variable>
|
|
756 |
<variable formalParameter="Enable">
|
|
757 |
<connectionPointIn>
|
|
758 |
<relPosition x="0" y="55"/>
|
|
759 |
</connectionPointIn>
|
|
760 |
</variable>
|
|
761 |
<variable formalParameter="Toggle">
|
|
762 |
<connectionPointIn>
|
|
763 |
<relPosition x="0" y="75"/>
|
|
764 |
<connection refLocalId="52" formalParameter="OUT_AND">
|
|
765 |
<position x="675" y="480"/>
|
|
766 |
<position x="650" y="480"/>
|
|
767 |
<position x="650" y="570"/>
|
|
768 |
<position x="537" y="570"/>
|
|
769 |
</connection>
|
|
770 |
</connectionPointIn>
|
|
771 |
</variable>
|
|
772 |
</inputVariables>
|
|
773 |
<inOutVariables/>
|
|
774 |
<outputVariables>
|
|
775 |
<variable formalParameter="State">
|
|
776 |
<connectionPointOut>
|
|
777 |
<relPosition x="150" y="30"/>
|
|
778 |
</connectionPointOut>
|
|
779 |
</variable>
|
|
780 |
</outputVariables>
|
|
781 |
</block>
|
|
782 |
<block localId="108" width="150" height="90" typeName="Button" instanceName="LED2">
|
|
783 |
<position x="675" y="525"/>
|
|
784 |
<inputVariables>
|
|
785 |
<variable formalParameter="Show">
|
|
786 |
<connectionPointIn>
|
|
787 |
<relPosition x="0" y="30"/>
|
|
788 |
</connectionPointIn>
|
|
789 |
</variable>
|
|
790 |
<variable formalParameter="Enable">
|
|
791 |
<connectionPointIn>
|
|
792 |
<relPosition x="0" y="55"/>
|
|
793 |
</connectionPointIn>
|
|
794 |
</variable>
|
|
795 |
<variable formalParameter="Toggle">
|
|
796 |
<connectionPointIn>
|
|
797 |
<relPosition x="0" y="75"/>
|
|
798 |
<connection refLocalId="52" formalParameter="OUT_OR">
|
|
799 |
<position x="675" y="600"/>
|
|
800 |
<position x="537" y="600"/>
|
|
801 |
</connection>
|
|
802 |
</connectionPointIn>
|
|
803 |
</variable>
|
|
804 |
</inputVariables>
|
|
805 |
<inOutVariables/>
|
|
806 |
<outputVariables>
|
|
807 |
<variable formalParameter="State">
|
|
808 |
<connectionPointOut>
|
|
809 |
<relPosition x="150" y="30"/>
|
|
810 |
</connectionPointOut>
|
|
811 |
</variable>
|
|
812 |
</outputVariables>
|
|
813 |
</block>
|
|
814 |
<block localId="109" width="150" height="85" typeName="Button" instanceName="LED3">
|
|
815 |
<position x="675" y="640"/>
|
|
816 |
<inputVariables>
|
|
817 |
<variable formalParameter="Show">
|
|
818 |
<connectionPointIn>
|
|
819 |
<relPosition x="0" y="30"/>
|
|
820 |
</connectionPointIn>
|
|
821 |
</variable>
|
|
822 |
<variable formalParameter="Enable">
|
|
823 |
<connectionPointIn>
|
|
824 |
<relPosition x="0" y="50"/>
|
|
825 |
</connectionPointIn>
|
|
826 |
</variable>
|
|
827 |
<variable formalParameter="Toggle">
|
|
828 |
<connectionPointIn>
|
|
829 |
<relPosition x="0" y="70"/>
|
|
830 |
<connection refLocalId="52" formalParameter="OUT_XOR">
|
|
831 |
<position x="675" y="710"/>
|
|
832 |
<position x="650" y="710"/>
|
|
833 |
<position x="650" y="630"/>
|
|
834 |
<position x="537" y="630"/>
|
|
835 |
</connection>
|
|
836 |
</connectionPointIn>
|
|
837 |
</variable>
|
|
838 |
</inputVariables>
|
|
839 |
<inOutVariables/>
|
|
840 |
<outputVariables>
|
|
841 |
<variable formalParameter="State">
|
|
842 |
<connectionPointOut>
|
|
843 |
<relPosition x="150" y="30"/>
|
|
844 |
</connectionPointOut>
|
|
845 |
</variable>
|
|
846 |
</outputVariables>
|
|
847 |
</block>
|
|
848 |
<block localId="110" width="150" height="85" typeName="Button" instanceName="LED4">
|
|
849 |
<position x="675" y="750"/>
|
|
850 |
<inputVariables>
|
|
851 |
<variable formalParameter="Show">
|
|
852 |
<connectionPointIn>
|
|
853 |
<relPosition x="0" y="30"/>
|
|
854 |
</connectionPointIn>
|
|
855 |
</variable>
|
|
856 |
<variable formalParameter="Enable">
|
|
857 |
<connectionPointIn>
|
|
858 |
<relPosition x="0" y="50"/>
|
|
859 |
</connectionPointIn>
|
|
860 |
</variable>
|
|
861 |
<variable formalParameter="Toggle">
|
|
862 |
<connectionPointIn>
|
|
863 |
<relPosition x="0" y="70"/>
|
|
864 |
<connection refLocalId="52" formalParameter="OUT_SR">
|
|
865 |
<position x="675" y="820"/>
|
|
866 |
<position x="630" y="820"/>
|
|
867 |
<position x="630" y="660"/>
|
|
868 |
<position x="537" y="660"/>
|
|
869 |
</connection>
|
|
870 |
</connectionPointIn>
|
|
871 |
</variable>
|
|
872 |
</inputVariables>
|
|
873 |
<inOutVariables/>
|
|
874 |
<outputVariables>
|
|
875 |
<variable formalParameter="State">
|
|
876 |
<connectionPointOut>
|
|
877 |
<relPosition x="150" y="30"/>
|
|
878 |
</connectionPointOut>
|
|
879 |
</variable>
|
|
880 |
</outputVariables>
|
|
881 |
</block>
|
|
882 |
<block localId="111" width="150" height="105" typeName="RotatingCtrl" instanceName="counter1">
|
|
883 |
<position x="1195" y="880"/>
|
|
884 |
<inputVariables>
|
|
885 |
<variable formalParameter="Show">
|
|
886 |
<connectionPointIn>
|
|
887 |
<relPosition x="0" y="35"/>
|
|
888 |
</connectionPointIn>
|
|
889 |
</variable>
|
|
890 |
<variable formalParameter="Enable">
|
|
891 |
<connectionPointIn>
|
|
892 |
<relPosition x="0" y="60"/>
|
|
893 |
</connectionPointIn>
|
|
894 |
</variable>
|
|
895 |
<variable formalParameter="SetAngle">
|
|
896 |
<connectionPointIn>
|
|
897 |
<relPosition x="0" y="90"/>
|
|
898 |
<connection refLocalId="113" formalParameter="OUT">
|
|
899 |
<position x="1195" y="970"/>
|
|
900 |
<position x="1130" y="970"/>
|
|
901 |
</connection>
|
|
902 |
</connectionPointIn>
|
|
903 |
</variable>
|
|
904 |
</inputVariables>
|
|
905 |
<inOutVariables/>
|
|
906 |
<outputVariables>
|
|
907 |
<variable formalParameter="Angle">
|
|
908 |
<connectionPointOut>
|
|
909 |
<relPosition x="150" y="35"/>
|
|
910 |
</connectionPointOut>
|
|
911 |
</variable>
|
|
912 |
</outputVariables>
|
|
913 |
</block>
|
|
914 |
<block localId="112" width="120" height="45" typeName="INT_TO_REAL">
|
|
915 |
<position x="680" y="940"/>
|
|
916 |
<inputVariables>
|
|
917 |
<variable formalParameter="IN">
|
|
918 |
<connectionPointIn>
|
|
919 |
<relPosition x="0" y="30"/>
|
|
920 |
<connection refLocalId="69" formalParameter="OUT1">
|
|
921 |
<position x="680" y="970"/>
|
|
922 |
<position x="645" y="970"/>
|
|
923 |
<position x="645" y="855"/>
|
|
924 |
<position x="610" y="855"/>
|
|
925 |
</connection>
|
|
926 |
</connectionPointIn>
|
|
927 |
</variable>
|
|
928 |
</inputVariables>
|
|
929 |
<inOutVariables/>
|
|
930 |
<outputVariables>
|
|
931 |
<variable formalParameter="OUT">
|
|
932 |
<connectionPointOut>
|
|
933 |
<relPosition x="120" y="30"/>
|
|
934 |
</connectionPointOut>
|
|
935 |
</variable>
|
|
936 |
</outputVariables>
|
|
937 |
</block>
|
|
938 |
<block localId="113" width="100" height="85" typeName="MUL">
|
|
939 |
<position x="1030" y="935"/>
|
|
940 |
<inputVariables>
|
|
941 |
<variable formalParameter="IN1">
|
|
942 |
<connectionPointIn>
|
|
943 |
<relPosition x="0" y="35"/>
|
|
944 |
<connection refLocalId="114" formalParameter="OUT">
|
|
945 |
<position x="1030" y="970"/>
|
|
946 |
<position x="960" y="970"/>
|
|
947 |
</connection>
|
|
948 |
</connectionPointIn>
|
|
949 |
</variable>
|
|
950 |
<variable formalParameter="IN2">
|
|
951 |
<connectionPointIn>
|
|
952 |
<relPosition x="0" y="70"/>
|
|
953 |
<connection refLocalId="116">
|
|
954 |
<position x="1030" y="1005"/>
|
|
955 |
<position x="1002" y="1005"/>
|
|
956 |
<position x="1002" y="1045"/>
|
|
957 |
<position x="975" y="1045"/>
|
|
958 |
</connection>
|
|
959 |
</connectionPointIn>
|
|
960 |
</variable>
|
|
961 |
</inputVariables>
|
|
962 |
<inOutVariables/>
|
|
963 |
<outputVariables>
|
|
964 |
<variable formalParameter="OUT">
|
|
965 |
<connectionPointOut>
|
|
966 |
<relPosition x="100" y="35"/>
|
|
967 |
</connectionPointOut>
|
|
968 |
</variable>
|
|
969 |
</outputVariables>
|
|
970 |
</block>
|
|
971 |
<block localId="114" width="95" height="80" typeName="DIV">
|
|
972 |
<position x="865" y="935"/>
|
|
973 |
<inputVariables>
|
|
974 |
<variable formalParameter="IN1">
|
|
975 |
<connectionPointIn>
|
|
976 |
<relPosition x="0" y="35"/>
|
|
977 |
<connection refLocalId="112" formalParameter="OUT">
|
|
978 |
<position x="865" y="970"/>
|
|
979 |
<position x="800" y="970"/>
|
|
980 |
</connection>
|
|
981 |
</connectionPointIn>
|
|
982 |
</variable>
|
|
983 |
<variable formalParameter="IN2">
|
|
984 |
<connectionPointIn>
|
|
985 |
<relPosition x="0" y="65"/>
|
|
986 |
<connection refLocalId="115">
|
|
987 |
<position x="865" y="1000"/>
|
|
988 |
<position x="830" y="1000"/>
|
|
989 |
<position x="830" y="1025"/>
|
|
990 |
<position x="795" y="1025"/>
|
|
991 |
</connection>
|
|
992 |
</connectionPointIn>
|
|
993 |
</variable>
|
|
994 |
</inputVariables>
|
|
995 |
<inOutVariables/>
|
|
996 |
<outputVariables>
|
|
997 |
<variable formalParameter="OUT">
|
|
998 |
<connectionPointOut>
|
|
999 |
<relPosition x="95" y="35"/>
|
|
1000 |
</connectionPointOut>
|
|
1001 |
</variable>
|
|
1002 |
</outputVariables>
|
|
1003 |
</block>
|
|
1004 |
<inVariable localId="115" height="25" width="110">
|
|
1005 |
<position x="685" y="1015"/>
|
|
1006 |
<connectionPointOut>
|
|
1007 |
<relPosition x="110" y="10"/>
|
|
1008 |
</connectionPointOut>
|
|
1009 |
<expression>REAL#400.0</expression>
|
|
1010 |
</inVariable>
|
|
1011 |
<inVariable localId="116" height="25" width="120">
|
|
1012 |
<position x="855" y="1035"/>
|
|
1013 |
<connectionPointOut>
|
|
1014 |
<relPosition x="120" y="10"/>
|
|
1015 |
</connectionPointOut>
|
|
1016 |
<expression>REAL#-180.0</expression>
|
|
1017 |
</inVariable>
|
|
1018 |
<block localId="117" width="100" height="85" typeName="MUL">
|
|
1019 |
<position x="1035" y="1080"/>
|
|
1020 |
<inputVariables>
|
|
1021 |
<variable formalParameter="IN1">
|
|
1022 |
<connectionPointIn>
|
|
1023 |
<relPosition x="0" y="35"/>
|
|
1024 |
<connection refLocalId="118" formalParameter="OUT">
|
|
1025 |
<position x="1035" y="1115"/>
|
|
1026 |
<position x="965" y="1115"/>
|
|
1027 |
</connection>
|
|
1028 |
</connectionPointIn>
|
|
1029 |
</variable>
|
|
1030 |
<variable formalParameter="IN2">
|
|
1031 |
<connectionPointIn>
|
|
1032 |
<relPosition x="0" y="70"/>
|
|
1033 |
<connection refLocalId="119">
|
|
1034 |
<position x="1035" y="1150"/>
|
|
1035 |
<position x="1007" y="1150"/>
|
|
1036 |
<position x="1007" y="1190"/>
|
|
1037 |
<position x="980" y="1190"/>
|
|
1038 |
</connection>
|
|
1039 |
</connectionPointIn>
|
|
1040 |
</variable>
|
|
1041 |
</inputVariables>
|
|
1042 |
<inOutVariables/>
|
|
1043 |
<outputVariables>
|
|
1044 |
<variable formalParameter="OUT">
|
|
1045 |
<connectionPointOut>
|
|
1046 |
<relPosition x="100" y="35"/>
|
|
1047 |
</connectionPointOut>
|
|
1048 |
</variable>
|
|
1049 |
</outputVariables>
|
|
1050 |
</block>
|
|
1051 |
<block localId="118" width="95" height="80" typeName="DIV">
|
|
1052 |
<position x="870" y="1080"/>
|
|
1053 |
<inputVariables>
|
|
1054 |
<variable formalParameter="IN1">
|
|
1055 |
<connectionPointIn>
|
|
1056 |
<relPosition x="0" y="35"/>
|
|
1057 |
<connection refLocalId="121" formalParameter="OUT">
|
|
1058 |
<position x="870" y="1115"/>
|
|
1059 |
<position x="805" y="1115"/>
|
|
1060 |
</connection>
|
|
1061 |
</connectionPointIn>
|
|
1062 |
</variable>
|
|
1063 |
<variable formalParameter="IN2">
|
|
1064 |
<connectionPointIn>
|
|
1065 |
<relPosition x="0" y="65"/>
|
|
1066 |
<connection refLocalId="120">
|
|
1067 |
<position x="870" y="1145"/>
|
|
1068 |
<position x="835" y="1145"/>
|
|
1069 |
<position x="835" y="1170"/>
|
|
1070 |
<position x="800" y="1170"/>
|
|
1071 |
</connection>
|
|
1072 |
</connectionPointIn>
|
|
1073 |
</variable>
|
|
1074 |
</inputVariables>
|
|
1075 |
<inOutVariables/>
|
|
1076 |
<outputVariables>
|
|
1077 |
<variable formalParameter="OUT">
|
|
1078 |
<connectionPointOut>
|
|
1079 |
<relPosition x="95" y="35"/>
|
|
1080 |
</connectionPointOut>
|
|
1081 |
</variable>
|
|
1082 |
</outputVariables>
|
|
1083 |
</block>
|
|
1084 |
<inVariable localId="119" height="25" width="120">
|
|
1085 |
<position x="860" y="1180"/>
|
|
1086 |
<connectionPointOut>
|
|
1087 |
<relPosition x="120" y="10"/>
|
|
1088 |
</connectionPointOut>
|
|
1089 |
<expression>REAL#-180.0</expression>
|
|
1090 |
</inVariable>
|
|
1091 |
<inVariable localId="120" height="25" width="110">
|
|
1092 |
<position x="690" y="1160"/>
|
|
1093 |
<connectionPointOut>
|
|
1094 |
<relPosition x="110" y="10"/>
|
|
1095 |
</connectionPointOut>
|
|
1096 |
<expression>REAL#400.0</expression>
|
|
1097 |
</inVariable>
|
|
1098 |
<block localId="121" width="120" height="45" typeName="INT_TO_REAL">
|
|
1099 |
<position x="685" y="1085"/>
|
|
1100 |
<inputVariables>
|
|
1101 |
<variable formalParameter="IN">
|
|
1102 |
<connectionPointIn>
|
|
1103 |
<relPosition x="0" y="30"/>
|
|
1104 |
<connection refLocalId="69" formalParameter="OUT2">
|
|
1105 |
<position x="685" y="1115"/>
|
|
1106 |
<position x="630" y="1115"/>
|
|
1107 |
<position x="630" y="890"/>
|
|
1108 |
<position x="610" y="890"/>
|
|
1109 |
</connection>
|
|
1110 |
</connectionPointIn>
|
|
1111 |
</variable>
|
|
1112 |
</inputVariables>
|
|
1113 |
<inOutVariables/>
|
|
1114 |
<outputVariables>
|
|
1115 |
<variable formalParameter="OUT">
|
|
1116 |
<connectionPointOut>
|
|
1117 |
<relPosition x="120" y="30"/>
|
|
1118 |
</connectionPointOut>
|
|
1119 |
</variable>
|
|
1120 |
</outputVariables>
|
|
1121 |
</block>
|
|
1122 |
<block localId="122" width="150" height="105" typeName="RotatingCtrl" instanceName="counter2">
|
|
1123 |
<position x="1195" y="1025"/>
|
|
1124 |
<inputVariables>
|
|
1125 |
<variable formalParameter="Show">
|
|
1126 |
<connectionPointIn>
|
|
1127 |
<relPosition x="0" y="35"/>
|
|
1128 |
</connectionPointIn>
|
|
1129 |
</variable>
|
|
1130 |
<variable formalParameter="Enable">
|
|
1131 |
<connectionPointIn>
|
|
1132 |
<relPosition x="0" y="60"/>
|
|
1133 |
</connectionPointIn>
|
|
1134 |
</variable>
|
|
1135 |
<variable formalParameter="SetAngle">
|
|
1136 |
<connectionPointIn>
|
|
1137 |
<relPosition x="0" y="90"/>
|
|
1138 |
<connection refLocalId="117" formalParameter="OUT">
|
|
1139 |
<position x="1195" y="1115"/>
|
|
1140 |
<position x="1135" y="1115"/>
|
|
1141 |
</connection>
|
|
1142 |
</connectionPointIn>
|
|
1143 |
</variable>
|
|
1144 |
</inputVariables>
|
|
1145 |
<inOutVariables/>
|
|
1146 |
<outputVariables>
|
|
1147 |
<variable formalParameter="Angle">
|
|
1148 |
<connectionPointOut>
|
|
1149 |
<relPosition x="150" y="35"/>
|
|
1150 |
</connectionPointOut>
|
|
1151 |
</variable>
|
|
1152 |
</outputVariables>
|
|
1153 |
</block>
|
|
1154 |
</FBD>
|
|
1155 |
</body>
|
|
1156 |
</pou>
|
|
1157 |
<pou name="GETBIT" pouType="function">
|
|
1158 |
<interface>
|
|
1159 |
<returnType>
|
|
1160 |
<BOOL/>
|
|
1161 |
</returnType>
|
|
1162 |
<inputVars>
|
|
1163 |
<variable name="INPUT_BYTE">
|
|
1164 |
<type>
|
|
1165 |
<BYTE/>
|
|
1166 |
</type>
|
|
1167 |
</variable>
|
|
1168 |
<variable name="NUM_BIT">
|
|
1169 |
<type>
|
|
1170 |
<USINT/>
|
|
1171 |
</type>
|
|
1172 |
</variable>
|
|
1173 |
</inputVars>
|
|
1174 |
</interface>
|
|
1175 |
<body>
|
|
1176 |
<FBD>
|
|
1177 |
<block localId="1" width="70" height="60" typeName="SHR">
|
|
1178 |
<position x="175" y="110"/>
|
|
1179 |
<inputVariables>
|
|
1180 |
<variable formalParameter="IN">
|
|
1181 |
<connectionPointIn>
|
|
1182 |
<relPosition x="0" y="30"/>
|
|
1183 |
<connection refLocalId="2">
|
|
1184 |
<position x="175" y="140"/>
|
|
1185 |
<position x="135" y="140"/>
|
|
1186 |
</connection>
|
|
1187 |
</connectionPointIn>
|
|
1188 |
</variable>
|
|
1189 |
<variable formalParameter="N">
|
|
1190 |
<connectionPointIn>
|
|
1191 |
<relPosition x="0" y="50"/>
|
|
1192 |
<connection refLocalId="3">
|
|
1193 |
<position x="175" y="160"/>
|
|
1194 |
<position x="140" y="160"/>
|
|
1195 |
<position x="140" y="180"/>
|
|
1196 |
<position x="105" y="180"/>
|
|
1197 |
</connection>
|
|
1198 |
</connectionPointIn>
|
|
1199 |
</variable>
|
|
1200 |
</inputVariables>
|
|
1201 |
<inOutVariables/>
|
|
1202 |
<outputVariables>
|
|
1203 |
<variable formalParameter="OUT">
|
|
1204 |
<connectionPointOut>
|
|
1205 |
<relPosition x="70" y="30"/>
|
|
1206 |
</connectionPointOut>
|
|
1207 |
</variable>
|
|
1208 |
</outputVariables>
|
|
1209 |
</block>
|
|
1210 |
<inVariable localId="2" height="30" width="105">
|
|
1211 |
<position x="30" y="125"/>
|
|
1212 |
<connectionPointOut>
|
|
1213 |
<relPosition x="105" y="15"/>
|
|
1214 |
</connectionPointOut>
|
|
1215 |
<expression>INPUT_BYTE</expression>
|
|
1216 |
</inVariable>
|
|
1217 |
<inVariable localId="3" height="30" width="75">
|
|
1218 |
<position x="30" y="165"/>
|
|
1219 |
<connectionPointOut>
|
|
1220 |
<relPosition x="75" y="15"/>
|
|
1221 |
</connectionPointOut>
|
|
1222 |
<expression>NUM_BIT</expression>
|
|
1223 |
</inVariable>
|
|
1224 |
<outVariable localId="4" height="30" width="65">
|
|
1225 |
<position x="555" y="125"/>
|
|
1226 |
<connectionPointIn>
|
|
1227 |
<relPosition x="0" y="15"/>
|
|
1228 |
<connection refLocalId="7" formalParameter="OUT">
|
|
1229 |
<position x="555" y="140"/>
|
|
1230 |
<position x="525" y="140"/>
|
|
1231 |
</connection>
|
|
1232 |
</connectionPointIn>
|
|
1233 |
<expression>GETBIT</expression>
|
|
1234 |
</outVariable>
|
|
1235 |
<block localId="5" width="85" height="60" typeName="AND">
|
|
1236 |
<position x="275" y="110"/>
|
|
1237 |
<inputVariables>
|
|
1238 |
<variable formalParameter="IN1">
|
|
1239 |
<connectionPointIn>
|
|
1240 |
<relPosition x="0" y="30"/>
|
|
1241 |
<connection refLocalId="1" formalParameter="OUT">
|
|
1242 |
<position x="275" y="140"/>
|
|
1243 |
<position x="245" y="140"/>
|
|
1244 |
</connection>
|
|
1245 |
</connectionPointIn>
|
|
1246 |
</variable>
|
|
1247 |
<variable formalParameter="IN2">
|
|
1248 |
<connectionPointIn>
|
|
1249 |
<relPosition x="0" y="50"/>
|
|
1250 |
<connection refLocalId="6">
|
|
1251 |
<position x="275" y="160"/>
|
|
1252 |
<position x="255" y="160"/>
|
|
1253 |
<position x="255" y="195"/>
|
|
1254 |
<position x="240" y="195"/>
|
|
1255 |
</connection>
|
|
1256 |
</connectionPointIn>
|
|
1257 |
</variable>
|
|
1258 |
</inputVariables>
|
|
1259 |
<inOutVariables/>
|
|
1260 |
<outputVariables>
|
|
1261 |
<variable formalParameter="OUT">
|
|
1262 |
<connectionPointOut>
|
|
1263 |
<relPosition x="85" y="30"/>
|
|
1264 |
</connectionPointOut>
|
|
1265 |
</variable>
|
|
1266 |
</outputVariables>
|
|
1267 |
</block>
|
|
1268 |
<inVariable localId="6" height="30" width="65">
|
|
1269 |
<position x="175" y="180"/>
|
|
1270 |
<connectionPointOut>
|
|
1271 |
<relPosition x="65" y="15"/>
|
|
1272 |
</connectionPointOut>
|
|
1273 |
<expression>BYTE#1</expression>
|
|
1274 |
</inVariable>
|
|
1275 |
<block localId="7" width="120" height="40" typeName="BYTE_TO_BOOL">
|
|
1276 |
<position x="405" y="110"/>
|
|
1277 |
<inputVariables>
|
|
1278 |
<variable formalParameter="IN">
|
|
1279 |
<connectionPointIn>
|
|
1280 |
<relPosition x="0" y="30"/>
|
|
1281 |
<connection refLocalId="5" formalParameter="OUT">
|
|
1282 |
<position x="405" y="140"/>
|
|
1283 |
<position x="360" y="140"/>
|
|
1284 |
</connection>
|
|
1285 |
</connectionPointIn>
|
|
1286 |
</variable>
|
|
1287 |
</inputVariables>
|
|
1288 |
<inOutVariables/>
|
|
1289 |
<outputVariables>
|
|
1290 |
<variable formalParameter="OUT">
|
|
1291 |
<connectionPointOut>
|
|
1292 |
<relPosition x="120" y="30"/>
|
|
1293 |
</connectionPointOut>
|
|
1294 |
</variable>
|
|
1295 |
</outputVariables>
|
|
1296 |
</block>
|
|
1297 |
<comment localId="8" height="70" width="545">
|
|
1298 |
<position x="30" y="20"/>
|
|
1299 |
<content>
|
|
1300 |
<![CDATA[Function that return NUM_BIT'th bit value of INPUT_BYTE]]>
|
|
1301 |
</content>
|
|
1302 |
</comment>
|
|
1303 |
</FBD>
|
|
1304 |
</body>
|
|
1305 |
</pou>
|
|
1306 |
<pou name="SETBIT" pouType="function">
|
|
1307 |
<interface>
|
|
1308 |
<returnType>
|
|
1309 |
<BYTE/>
|
|
1310 |
</returnType>
|
|
1311 |
<inputVars>
|
|
1312 |
<variable name="INPUT_BYTE">
|
|
1313 |
<type>
|
|
1314 |
<BYTE/>
|
|
1315 |
</type>
|
|
1316 |
</variable>
|
|
1317 |
<variable name="INPUT_BIT">
|
|
1318 |
<type>
|
|
1319 |
<BOOL/>
|
|
1320 |
</type>
|
|
1321 |
</variable>
|
|
1322 |
<variable name="NUM_BIT">
|
|
1323 |
<type>
|
|
1324 |
<USINT/>
|
|
1325 |
</type>
|
|
1326 |
</variable>
|
|
1327 |
</inputVars>
|
|
1328 |
</interface>
|
|
1329 |
<body>
|
|
1330 |
<FBD>
|
|
1331 |
<inVariable localId="1" height="30" width="100">
|
|
1332 |
<position x="40" y="255"/>
|
|
1333 |
<connectionPointOut>
|
|
1334 |
<relPosition x="100" y="15"/>
|
|
1335 |
</connectionPointOut>
|
|
1336 |
<expression>INPUT_BYTE</expression>
|
|
1337 |
</inVariable>
|
|
1338 |
<inVariable localId="2" height="30" width="95">
|
|
1339 |
<position x="40" y="125"/>
|
|
1340 |
<connectionPointOut>
|
|
1341 |
<relPosition x="95" y="15"/>
|
|
1342 |
</connectionPointOut>
|
|
1343 |
<expression>INPUT_BIT</expression>
|
|
1344 |
</inVariable>
|
|
1345 |
<block localId="3" width="120" height="45" typeName="BOOL_TO_BYTE">
|
|
1346 |
<position x="165" y="110"/>
|
|
1347 |
<inputVariables>
|
|
1348 |
<variable formalParameter="IN">
|
|
1349 |
<connectionPointIn>
|
|
1350 |
<relPosition x="0" y="30"/>
|
|
1351 |
<connection refLocalId="2">
|
|
1352 |
<position x="165" y="140"/>
|
|
1353 |
<position x="135" y="140"/>
|
|
1354 |
</connection>
|
|
1355 |
</connectionPointIn>
|
|
1356 |
</variable>
|
|
1357 |
</inputVariables>
|
|
1358 |
<inOutVariables/>
|
|
1359 |
<outputVariables>
|
|
1360 |
<variable formalParameter="OUT">
|
|
1361 |
<connectionPointOut>
|
|
1362 |
<relPosition x="120" y="30"/>
|
|
1363 |
</connectionPointOut>
|
|
1364 |
</variable>
|
|
1365 |
</outputVariables>
|
|
1366 |
</block>
|
|
1367 |
<block localId="4" width="70" height="60" typeName="SHL">
|
|
1368 |
<position x="335" y="110"/>
|
|
1369 |
<inputVariables>
|
|
1370 |
<variable formalParameter="IN">
|
|
1371 |
<connectionPointIn>
|
|
1372 |
<relPosition x="0" y="30"/>
|
|
1373 |
<connection refLocalId="3" formalParameter="OUT">
|
|
1374 |
<position x="335" y="140"/>
|
|
1375 |
<position x="285" y="140"/>
|
|
1376 |
</connection>
|
|
1377 |
</connectionPointIn>
|
|
1378 |
</variable>
|
|
1379 |
<variable formalParameter="N">
|
|
1380 |
<connectionPointIn>
|
|
1381 |
<relPosition x="0" y="50"/>
|
|
1382 |
<connection refLocalId="5">
|
|
1383 |
<position x="335" y="160"/>
|
|
1384 |
<position x="130" y="160"/>
|
|
1385 |
<position x="130" y="230"/>
|
|
1386 |
<position x="115" y="230"/>
|
|
1387 |
</connection>
|
|
1388 |
</connectionPointIn>
|
|
1389 |
</variable>
|
|
1390 |
</inputVariables>
|
|
1391 |
<inOutVariables/>
|
|
1392 |
<outputVariables>
|
|
1393 |
<variable formalParameter="OUT">
|
|
1394 |
<connectionPointOut>
|
|
1395 |
<relPosition x="70" y="30"/>
|
|
1396 |
</connectionPointOut>
|
|
1397 |
</variable>
|
|
1398 |
</outputVariables>
|
|
1399 |
</block>
|
|
1400 |
<inVariable localId="5" height="30" width="75">
|
|
1401 |
<position x="40" y="215"/>
|
|
1402 |
<connectionPointOut>
|
|
1403 |
<relPosition x="75" y="15"/>
|
|
1404 |
</connectionPointOut>
|
|
1405 |
<expression>NUM_BIT</expression>
|
|
1406 |
</inVariable>
|
|
1407 |
<block localId="7" width="70" height="60" typeName="SHL">
|
|
1408 |
<position x="235" y="180"/>
|
|
1409 |
<inputVariables>
|
|
1410 |
<variable formalParameter="IN">
|
|
1411 |
<connectionPointIn>
|
|
1412 |
<relPosition x="0" y="30"/>
|
|
1413 |
<connection refLocalId="8">
|
|
1414 |
<position x="235" y="210"/>
|
|
1415 |
<position x="215" y="210"/>
|
|
1416 |
<position x="220" y="210"/>
|
|
1417 |
<position x="220" y="210"/>
|
|
1418 |
<position x="220" y="210"/>
|
|
1419 |
<position x="210" y="210"/>
|
|
1420 |
</connection>
|
|
1421 |
</connectionPointIn>
|
|
1422 |
</variable>
|
|
1423 |
<variable formalParameter="N">
|
|
1424 |
<connectionPointIn>
|
|
1425 |
<relPosition x="0" y="50"/>
|
|
1426 |
<connection refLocalId="5">
|
|
1427 |
<position x="235" y="230"/>
|
|
1428 |
<position x="115" y="230"/>
|
|
1429 |
</connection>
|
|
1430 |
</connectionPointIn>
|
|
1431 |
</variable>
|
|
1432 |
</inputVariables>
|
|
1433 |
<inOutVariables/>
|
|
1434 |
<outputVariables>
|
|
1435 |
<variable formalParameter="OUT">
|
|
1436 |
<connectionPointOut>
|
|
1437 |
<relPosition x="70" y="30"/>
|
|
1438 |
</connectionPointOut>
|
|
1439 |
</variable>
|
|
1440 |
</outputVariables>
|
|
1441 |
</block>
|
|
1442 |
<inVariable localId="8" height="30" width="65">
|
|
1443 |
<position x="145" y="195"/>
|
|
1444 |
<connectionPointOut>
|
|
1445 |
<relPosition x="65" y="15"/>
|
|
1446 |
</connectionPointOut>
|
|
1447 |
<expression>BYTE#1</expression>
|
|
1448 |
</inVariable>
|
|
1449 |
<block localId="9" width="70" height="40" typeName="NOT">
|
|
1450 |
<position x="335" y="180"/>
|
|
1451 |
<inputVariables>
|
|
1452 |
<variable formalParameter="IN">
|
|
1453 |
<connectionPointIn>
|
|
1454 |
<relPosition x="0" y="30"/>
|
|
1455 |
<connection refLocalId="7" formalParameter="OUT">
|
|
1456 |
<position x="335" y="210"/>
|
|
1457 |
<position x="305" y="210"/>
|
|
1458 |
</connection>
|
|
1459 |
</connectionPointIn>
|
|
1460 |
</variable>
|
|
1461 |
</inputVariables>
|
|
1462 |
<inOutVariables/>
|
|
1463 |
<outputVariables>
|
|
1464 |
<variable formalParameter="OUT">
|
|
1465 |
<connectionPointOut>
|
|
1466 |
<relPosition x="70" y="30"/>
|
|
1467 |
</connectionPointOut>
|
|
1468 |
</variable>
|
|
1469 |
</outputVariables>
|
|
1470 |
</block>
|
|
1471 |
<block localId="10" width="80" height="60" typeName="AND">
|
|
1472 |
<position x="440" y="180"/>
|
|
1473 |
<inputVariables>
|
|
1474 |
<variable formalParameter="IN1">
|
|
1475 |
<connectionPointIn>
|
|
1476 |
<relPosition x="0" y="30"/>
|
|
1477 |
<connection refLocalId="9" formalParameter="OUT">
|
|
1478 |
<position x="440" y="210"/>
|
|
1479 |
<position x="405" y="210"/>
|
|
1480 |
</connection>
|
|
1481 |
</connectionPointIn>
|
|
1482 |
</variable>
|
|
1483 |
<variable formalParameter="IN2">
|
|
1484 |
<connectionPointIn>
|
|
1485 |
<relPosition x="0" y="50"/>
|
|
1486 |
<connection refLocalId="1">
|
|
1487 |
<position x="440" y="230"/>
|
|
1488 |
<position x="320" y="230"/>
|
|
1489 |
<position x="320" y="270"/>
|
|
1490 |
<position x="140" y="270"/>
|
|
1491 |
</connection>
|
|
1492 |
</connectionPointIn>
|
|
1493 |
</variable>
|
|
1494 |
</inputVariables>
|
|
1495 |
<inOutVariables/>
|
|
1496 |
<outputVariables>
|
|
1497 |
<variable formalParameter="OUT">
|
|
1498 |
<connectionPointOut>
|
|
1499 |
<relPosition x="80" y="30"/>
|
|
1500 |
</connectionPointOut>
|
|
1501 |
</variable>
|
|
1502 |
</outputVariables>
|
|
1503 |
</block>
|
|
1504 |
<block localId="11" width="80" height="60" typeName="OR">
|
|
1505 |
<position x="565" y="110"/>
|
|
1506 |
<inputVariables>
|
|
1507 |
<variable formalParameter="IN1">
|
|
1508 |
<connectionPointIn>
|
|
1509 |
<relPosition x="0" y="30"/>
|
|
1510 |
<connection refLocalId="4" formalParameter="OUT">
|
|
1511 |
<position x="565" y="140"/>
|
|
1512 |
<position x="405" y="140"/>
|
|
1513 |
</connection>
|
|
1514 |
</connectionPointIn>
|
|
1515 |
</variable>
|
|
1516 |
<variable formalParameter="IN2">
|
|
1517 |
<connectionPointIn>
|
|
1518 |
<relPosition x="0" y="50"/>
|
|
1519 |
<connection refLocalId="10" formalParameter="OUT">
|
|
1520 |
<position x="565" y="160"/>
|
|
1521 |
<position x="545" y="160"/>
|
|
1522 |
<position x="545" y="210"/>
|
|
1523 |
<position x="520" y="210"/>
|
|
1524 |
</connection>
|
|
1525 |
</connectionPointIn>
|
|
1526 |
</variable>
|
|
1527 |
</inputVariables>
|
|
1528 |
<inOutVariables/>
|
|
1529 |
<outputVariables>
|
|
1530 |
<variable formalParameter="OUT">
|
|
1531 |
<connectionPointOut>
|
|
1532 |
<relPosition x="80" y="30"/>
|
|
1533 |
</connectionPointOut>
|
|
1534 |
</variable>
|
|
1535 |
</outputVariables>
|
|
1536 |
</block>
|
|
1537 |
<outVariable localId="12" height="30" width="70">
|
|
1538 |
<position x="695" y="125"/>
|
|
1539 |
<connectionPointIn>
|
|
1540 |
<relPosition x="0" y="15"/>
|
|
1541 |
<connection refLocalId="11" formalParameter="OUT">
|
|
1542 |
<position x="695" y="140"/>
|
|
1543 |
<position x="645" y="140"/>
|
|
1544 |
</connection>
|
|
1545 |
</connectionPointIn>
|
|
1546 |
<expression>SETBIT</expression>
|
|
1547 |
</outVariable>
|
|
1548 |
<comment localId="13" height="75" width="435">
|
|
1549 |
<position x="35" y="15"/>
|
|
1550 |
<content>
|
|
1551 |
<![CDATA[Function that return INPUT_BYTE with NUM_BIT'th bit set to INPUT_BIT value]]>
|
|
1552 |
</content>
|
|
1553 |
</comment>
|
|
1554 |
</FBD>
|
|
1555 |
</body>
|
|
1556 |
</pou>
|
|
1557 |
<pou name="Bitwise_Block" pouType="functionBlock">
|
|
1558 |
<interface>
|
|
1559 |
<inputVars>
|
|
1560 |
<variable name="IN1">
|
|
1561 |
<type>
|
|
1562 |
<BOOL/>
|
|
1563 |
</type>
|
|
1564 |
</variable>
|
|
1565 |
<variable name="IN2">
|
|
1566 |
<type>
|
|
1567 |
<BOOL/>
|
|
1568 |
</type>
|
|
1569 |
</variable>
|
|
1570 |
</inputVars>
|
|
1571 |
<outputVars>
|
|
1572 |
<variable name="OUT_AND">
|
|
1573 |
<type>
|
|
1574 |
<BOOL/>
|
|
1575 |
</type>
|
|
1576 |
</variable>
|
|
1577 |
<variable name="OUT_OR">
|
|
1578 |
<type>
|
|
1579 |
<BOOL/>
|
|
1580 |
</type>
|
|
1581 |
</variable>
|
|
1582 |
<variable name="OUT_XOR">
|
|
1583 |
<type>
|
|
1584 |
<BOOL/>
|
|
1585 |
</type>
|
|
1586 |
</variable>
|
|
1587 |
<variable name="OUT_SR">
|
|
1588 |
<type>
|
|
1589 |
<BOOL/>
|
|
1590 |
</type>
|
|
1591 |
</variable>
|
|
1592 |
</outputVars>
|
|
1593 |
<localVars>
|
|
1594 |
<variable name="SR1">
|
|
1595 |
<type>
|
|
1596 |
<derived name="SR"/>
|
|
1597 |
</type>
|
|
1598 |
</variable>
|
|
1599 |
</localVars>
|
|
1600 |
</interface>
|
|
1601 |
<body>
|
|
1602 |
<LD>
|
|
1603 |
<leftPowerRail localId="1" height="80" width="3">
|
|
1604 |
<position x="40" y="180"/>
|
|
1605 |
<connectionPointOut formalParameter="">
|
|
1606 |
<relPosition x="3" y="20"/>
|
|
1607 |
</connectionPointOut>
|
|
1608 |
<connectionPointOut formalParameter="">
|
|
1609 |
<relPosition x="3" y="55"/>
|
|
1610 |
</connectionPointOut>
|
|
1611 |
</leftPowerRail>
|
|
1612 |
<contact localId="2" height="15" width="25">
|
|
1613 |
<position x="90" y="190"/>
|
|
1614 |
<connectionPointIn>
|
|
1615 |
<relPosition x="0" y="10"/>
|
|
1616 |
<connection refLocalId="1">
|
|
1617 |
<position x="90" y="200"/>
|
|
1618 |
<position x="43" y="200"/>
|
|
1619 |
</connection>
|
|
1620 |
</connectionPointIn>
|
|
1621 |
<connectionPointOut>
|
|
1622 |
<relPosition x="25" y="10"/>
|
|
1623 |
</connectionPointOut>
|
|
1624 |
<variable>IN1</variable>
|
|
1625 |
</contact>
|
|
1626 |
<contact localId="3" height="20" width="25">
|
|
1627 |
<position x="90" y="225"/>
|
|
1628 |
<connectionPointIn>
|
|
1629 |
<relPosition x="0" y="10"/>
|
|
1630 |
<connection refLocalId="1">
|
|
1631 |
<position x="90" y="235"/>
|
|
1632 |
<position x="43" y="235"/>
|
|
1633 |
</connection>
|
|
1634 |
</connectionPointIn>
|
|
1635 |
<connectionPointOut>
|
|
1636 |
<relPosition x="25" y="10"/>
|
|
1637 |
</connectionPointOut>
|
|
1638 |
<variable>IN2</variable>
|
|
1639 |
</contact>
|
|
1640 |
<coil localId="4" height="20" width="25">
|
|
1641 |
<position x="225" y="190"/>
|
|
1642 |
<connectionPointIn>
|
|
1643 |
<relPosition x="0" y="10"/>
|
|
1644 |
<connection refLocalId="2">
|
|
1645 |
<position x="225" y="200"/>
|
|
1646 |
<position x="115" y="200"/>
|
|
1647 |
</connection>
|
|
1648 |
<connection refLocalId="3">
|
|
1649 |
<position x="225" y="200"/>
|
|
1650 |
<position x="189" y="200"/>
|
|
1651 |
<position x="189" y="235"/>
|
|
1652 |
<position x="115" y="235"/>
|
|
1653 |
</connection>
|
|
1654 |
</connectionPointIn>
|
|
1655 |
<connectionPointOut>
|
|
1656 |
<relPosition x="25" y="10"/>
|
|
1657 |
</connectionPointOut>
|
|
1658 |
<variable>OUT_OR</variable>
|
|
1659 |
</coil>
|
|
1660 |
<rightPowerRail localId="5" height="40" width="3">
|
|
1661 |
<position x="350" y="180"/>
|
|
1662 |
<connectionPointIn>
|
|
1663 |
<relPosition x="0" y="20"/>
|
|
1664 |
<connection refLocalId="4">
|
|
1665 |
<position x="350" y="200"/>
|
|
1666 |
<position x="250" y="200"/>
|
|
1667 |
</connection>
|
|
1668 |
</connectionPointIn>
|
|
1669 |
</rightPowerRail>
|
|
1670 |
<leftPowerRail localId="6" height="40" width="3">
|
|
1671 |
<position x="40" y="315"/>
|
|
1672 |
<connectionPointOut formalParameter="">
|
|
1673 |
<relPosition x="3" y="20"/>
|
|
1674 |
</connectionPointOut>
|
|
1675 |
</leftPowerRail>
|
|
1676 |
<contact localId="7" height="20" width="25">
|
|
1677 |
<position x="100" y="325"/>
|
|
1678 |
<connectionPointIn>
|
|
1679 |
<relPosition x="0" y="10"/>
|
|
1680 |
<connection refLocalId="6">
|
|
1681 |
<position x="100" y="335"/>
|
|
1682 |
<position x="43" y="335"/>
|
|
1683 |
</connection>
|
|
1684 |
</connectionPointIn>
|
|
1685 |
<connectionPointOut>
|
|
1686 |
<relPosition x="25" y="10"/>
|
|
1687 |
</connectionPointOut>
|
|
1688 |
<variable>IN1</variable>
|
|
1689 |
</contact>
|
|
1690 |
<contact localId="8" height="20" width="25">
|
|
1691 |
<position x="185" y="325"/>
|
|
1692 |
<connectionPointIn>
|
|
1693 |
<relPosition x="0" y="10"/>
|
|
1694 |
<connection refLocalId="7">
|
|
1695 |
<position x="185" y="335"/>
|
|
1696 |
<position x="125" y="335"/>
|
|
1697 |
</connection>
|
|
1698 |
</connectionPointIn>
|
|
1699 |
<connectionPointOut>
|
|
1700 |
<relPosition x="25" y="10"/>
|
|
1701 |
</connectionPointOut>
|
|
1702 |
<variable>IN2</variable>
|
|
1703 |
</contact>
|
|
1704 |
<coil localId="9" height="20" width="25">
|
|
1705 |
<position x="275" y="325"/>
|
|
1706 |
<connectionPointIn>
|
|
1707 |
<relPosition x="0" y="10"/>
|
|
1708 |
<connection refLocalId="8">
|
|
1709 |
<position x="275" y="335"/>
|
|
1710 |
<position x="210" y="335"/>
|
|
1711 |
</connection>
|
|
1712 |
</connectionPointIn>
|
|
1713 |
<connectionPointOut>
|
|
1714 |
<relPosition x="25" y="10"/>
|
|
1715 |
</connectionPointOut>
|
|
1716 |
<variable>OUT_AND</variable>
|
|
1717 |
</coil>
|
|
1718 |
<rightPowerRail localId="10" height="40" width="3">
|
|
1719 |
<position x="350" y="315"/>
|
|
1720 |
<connectionPointIn>
|
|
1721 |
<relPosition x="0" y="20"/>
|
|
1722 |
<connection refLocalId="9">
|
|
1723 |
<position x="350" y="335"/>
|
|
1724 |
<position x="300" y="335"/>
|
|
1725 |
</connection>
|
|
1726 |
</connectionPointIn>
|
|
1727 |
</rightPowerRail>
|
|
1728 |
<leftPowerRail localId="11" height="80" width="3">
|
|
1729 |
<position x="40" y="415"/>
|
|
1730 |
<connectionPointOut formalParameter="">
|
|
1731 |
<relPosition x="3" y="20"/>
|
|
1732 |
</connectionPointOut>
|
|
1733 |
<connectionPointOut formalParameter="">
|
|
1734 |
<relPosition x="3" y="60"/>
|
|
1735 |
</connectionPointOut>
|
|
1736 |
</leftPowerRail>
|
|
1737 |
<contact localId="12" height="20" width="25">
|
|
1738 |
<position x="100" y="425"/>
|
|
1739 |
<connectionPointIn>
|
|
1740 |
<relPosition x="0" y="10"/>
|
|
1741 |
<connection refLocalId="11">
|
|
1742 |
<position x="100" y="435"/>
|
|
1743 |
<position x="43" y="435"/>
|
|
1744 |
</connection>
|
|
1745 |
</connectionPointIn>
|
|
1746 |
<connectionPointOut>
|
|
1747 |
<relPosition x="25" y="10"/>
|
|
1748 |
</connectionPointOut>
|
|
1749 |
<variable>IN1</variable>
|
|
1750 |
</contact>
|
|
1751 |
<contact localId="13" height="20" width="25" negated="true">
|
|
1752 |
<position x="100" y="465"/>
|
|
1753 |
<connectionPointIn>
|
|
1754 |
<relPosition x="0" y="10"/>
|
|
1755 |
<connection refLocalId="11">
|
|
1756 |
<position x="100" y="475"/>
|
|
1757 |
<position x="43" y="475"/>
|
|
1758 |
</connection>
|
|
1759 |
</connectionPointIn>
|
|
1760 |
<connectionPointOut>
|
|
1761 |
<relPosition x="25" y="10"/>
|
|
1762 |
</connectionPointOut>
|
|
1763 |
<variable>IN1</variable>
|
|
1764 |
</contact>
|
|
1765 |
<contact localId="14" height="20" width="25" negated="true">
|
|
1766 |
<position x="190" y="425"/>
|
|
1767 |
<connectionPointIn>
|
|
1768 |
<relPosition x="0" y="10"/>
|
|
1769 |
<connection refLocalId="12">
|
|
1770 |
<position x="190" y="435"/>
|
|
1771 |
<position x="125" y="435"/>
|
|
1772 |
</connection>
|
|
1773 |
</connectionPointIn>
|
|
1774 |
<connectionPointOut>
|
|
1775 |
<relPosition x="25" y="10"/>
|
|
1776 |
</connectionPointOut>
|
|
1777 |
<variable>IN2</variable>
|
|
1778 |
</contact>
|
|
1779 |
<contact localId="15" height="20" width="25">
|
|
1780 |
<position x="190" y="465"/>
|
|
1781 |
<connectionPointIn>
|
|
1782 |
<relPosition x="0" y="10"/>
|
|
1783 |
<connection refLocalId="13">
|
|
1784 |
<position x="190" y="475"/>
|
|
1785 |
<position x="125" y="475"/>
|
|
1786 |
</connection>
|
|
1787 |
</connectionPointIn>
|
|
1788 |
<connectionPointOut>
|
|
1789 |
<relPosition x="25" y="10"/>
|
|
1790 |
</connectionPointOut>
|
|
1791 |
<variable>IN2</variable>
|
|
1792 |
</contact>
|
|
1793 |
<coil localId="16" height="20" width="30">
|
|
1794 |
<position x="295" y="425"/>
|
|
1795 |
<connectionPointIn>
|
|
1796 |
<relPosition x="0" y="10"/>
|
|
1797 |
<connection refLocalId="14">
|
|
1798 |
<position x="295" y="435"/>
|
|
1799 |
<position x="215" y="435"/>
|
|
1800 |
</connection>
|
|
1801 |
<connection refLocalId="15">
|
|
1802 |
<position x="295" y="435"/>
|
|
1803 |
<position x="270" y="435"/>
|
|
1804 |
<position x="270" y="475"/>
|
|
1805 |
<position x="215" y="475"/>
|
|
1806 |
</connection>
|
|
1807 |
</connectionPointIn>
|
|
1808 |
<connectionPointOut>
|
|
1809 |
<relPosition x="30" y="10"/>
|
|
1810 |
</connectionPointOut>
|
|
1811 |
<variable>OUT_XOR</variable>
|
|
1812 |
</coil>
|
|
1813 |
<rightPowerRail localId="17" height="40" width="3">
|
|
1814 |
<position x="350" y="415"/>
|
|
1815 |
<connectionPointIn>
|
|
1816 |
<relPosition x="0" y="20"/>
|
|
1817 |
<connection refLocalId="16">
|
|
1818 |
<position x="350" y="435"/>
|
|
1819 |
<position x="325" y="435"/>
|
|
1820 |
</connection>
|
|
1821 |
</connectionPointIn>
|
|
1822 |
</rightPowerRail>
|
|
1823 |
<leftPowerRail localId="18" height="80" width="3">
|
|
1824 |
<position x="40" y="550"/>
|
|
1825 |
<connectionPointOut formalParameter="">
|
|
1826 |
<relPosition x="3" y="20"/>
|
|
1827 |
</connectionPointOut>
|
|
1828 |
<connectionPointOut formalParameter="">
|
|
1829 |
<relPosition x="3" y="60"/>
|
|
1830 |
</connectionPointOut>
|
|
1831 |
</leftPowerRail>
|
|
1832 |
<contact localId="19" height="20" width="25">
|
|
1833 |
<position x="100" y="560"/>
|
|
1834 |
<connectionPointIn>
|
|
1835 |
<relPosition x="0" y="10"/>
|
|
1836 |
<connection refLocalId="18">
|
|
1837 |
<position x="100" y="570"/>
|
|
1838 |
<position x="43" y="570"/>
|
|
1839 |
</connection>
|
|
1840 |
</connectionPointIn>
|
|
1841 |
<connectionPointOut>
|
|
1842 |
<relPosition x="25" y="10"/>
|
|
1843 |
</connectionPointOut>
|
|
1844 |
<variable>IN1</variable>
|
|
1845 |
</contact>
|
|
1846 |
<contact localId="21" height="20" width="25">
|
|
1847 |
<position x="100" y="600"/>
|
|
1848 |
<connectionPointIn>
|
|
1849 |
<relPosition x="0" y="10"/>
|
|
1850 |
<connection refLocalId="18">
|
|
1851 |
<position x="100" y="610"/>
|
|
1852 |
<position x="43" y="610"/>
|
|
1853 |
</connection>
|
|
1854 |
</connectionPointIn>
|
|
1855 |
<connectionPointOut>
|
|
1856 |
<relPosition x="25" y="10"/>
|
|
1857 |
</connectionPointOut>
|
|
1858 |
<variable>IN2</variable>
|
|
1859 |
</contact>
|
|
1860 |
<block localId="22" width="60" height="100" typeName="SR" instanceName="SR1">
|
|
1861 |
<position x="170" y="530"/>
|
|
1862 |
<inputVariables>
|
|
1863 |
<variable formalParameter="S1">
|
|
1864 |
<connectionPointIn>
|
|
1865 |
<relPosition x="0" y="40"/>
|
|
1866 |
<connection refLocalId="19">
|
|
1867 |
<position x="170" y="570"/>
|
|
1868 |
<position x="125" y="570"/>
|
|
1869 |
</connection>
|
|
1870 |
</connectionPointIn>
|
|
1871 |
</variable>
|
|
1872 |
<variable formalParameter="R">
|
|
1873 |
<connectionPointIn>
|
|
1874 |
<relPosition x="0" y="80"/>
|
|
1875 |
<connection refLocalId="21">
|
|
1876 |
<position x="170" y="610"/>
|
|
1877 |
<position x="125" y="610"/>
|
|
1878 |
</connection>
|
|
1879 |
</connectionPointIn>
|
|
1880 |
</variable>
|
|
1881 |
</inputVariables>
|
|
1882 |
<inOutVariables/>
|
|
1883 |
<outputVariables>
|
|
1884 |
<variable formalParameter="Q1">
|
|
1885 |
<connectionPointOut>
|
|
1886 |
<relPosition x="60" y="40"/>
|
|
1887 |
</connectionPointOut>
|
|
1888 |
</variable>
|
|
1889 |
</outputVariables>
|
|
1890 |
</block>
|
|
1891 |
<coil localId="24" height="20" width="25">
|
|
1892 |
<position x="295" y="560"/>
|
|
1893 |
<connectionPointIn>
|
|
1894 |
<relPosition x="0" y="10"/>
|
|
1895 |
<connection refLocalId="22" formalParameter="Q1">
|
|
1896 |
<position x="295" y="570"/>
|
|
1897 |
<position x="230" y="570"/>
|
|
1898 |
</connection>
|
|
1899 |
</connectionPointIn>
|
|
1900 |
<connectionPointOut>
|
|
1901 |
<relPosition x="25" y="10"/>
|
|
1902 |
</connectionPointOut>
|
|
1903 |
<variable>OUT_SR</variable>
|
|
1904 |
</coil>
|
|
1905 |
<rightPowerRail localId="25" height="40" width="3">
|
|
1906 |
<position x="350" y="550"/>
|
|
1907 |
<connectionPointIn>
|
|
1908 |
<relPosition x="0" y="20"/>
|
|
1909 |
<connection refLocalId="24">
|
|
1910 |
<position x="350" y="570"/>
|
|
1911 |
<position x="320" y="570"/>
|
|
1912 |
</connection>
|
|
1913 |
</connectionPointIn>
|
|
1914 |
</rightPowerRail>
|
|
1915 |
<comment localId="26" height="85" width="385">
|
|
1916 |
<position x="25" y="35"/>
|
|
1917 |
<content>
|
|
1918 |
<![CDATA[A LD function block that embeds some FB and check basic LD]]>
|
|
1919 |
</content>
|
|
1920 |
</comment>
|
|
1921 |
</LD>
|
|
1922 |
</body>
|
|
1923 |
</pou>
|
|
1924 |
<pou name="Test_SFC" pouType="functionBlock">
|
|
1925 |
<interface>
|
|
1926 |
<inputVars>
|
|
1927 |
<variable name="CNT1">
|
|
1928 |
<type>
|
|
1929 |
<BOOL/>
|
|
1930 |
</type>
|
|
1931 |
</variable>
|
|
1932 |
<variable name="CNT2">
|
|
1933 |
<type>
|
|
1934 |
<BOOL/>
|
|
1935 |
</type>
|
|
1936 |
</variable>
|
|
1937 |
<variable name="IN1">
|
|
1938 |
<type>
|
|
1939 |
<derived name="MYTYPE"/>
|
|
1940 |
</type>
|
|
1941 |
</variable>
|
|
1942 |
<variable name="IN2">
|
|
1943 |
<type>
|
|
1944 |
<derived name="MYTYPE"/>
|
|
1945 |
</type>
|
|
1946 |
</variable>
|
|
1947 |
<variable name="UPPER1">
|
|
1948 |
<type>
|
|
1949 |
<INT/>
|
|
1950 |
</type>
|
|
1951 |
</variable>
|
|
1952 |
<variable name="UPPER2">
|
|
1953 |
<type>
|
|
1954 |
<INT/>
|
|
1955 |
</type>
|
|
1956 |
</variable>
|
|
1957 |
</inputVars>
|
|
1958 |
<outputVars>
|
|
1959 |
<variable name="OUT1">
|
|
1960 |
<type>
|
|
1961 |
<derived name="MYTYPE"/>
|
|
1962 |
</type>
|
|
1963 |
</variable>
|
|
1964 |
<variable name="OUT2">
|
|
1965 |
<type>
|
|
1966 |
<derived name="MYTYPE"/>
|
|
1967 |
</type>
|
|
1968 |
</variable>
|
|
1969 |
</outputVars>
|
|
1970 |
<localVars>
|
|
1971 |
<variable name="TEST_ENUM">
|
|
1972 |
<type>
|
|
1973 |
<derived name="MYTYPE2"/>
|
|
1974 |
</type>
|
|
1975 |
</variable>
|
|
1976 |
<variable name="TEST_ARRAY">
|
|
1977 |
<type>
|
|
1978 |
<derived name="MYTYPE3"/>
|
|
1979 |
</type>
|
|
1980 |
</variable>
|
|
1981 |
</localVars>
|
|
1982 |
</interface>
|
|
1983 |
<actions>
|
|
1984 |
<action name="COUNT1">
|
|
1985 |
<body>
|
|
1986 |
<ST>
|
|
1987 |
<![CDATA[OUT1 := IN1 + 1;
|
|
1988 |
TEST_ENUM := OPEN;
|
|
1989 |
]]>
|
|
1990 |
</ST>
|
|
1991 |
</body>
|
|
1992 |
</action>
|
|
1993 |
<action name="COUNT2">
|
|
1994 |
<body>
|
|
1995 |
<ST>
|
|
1996 |
<![CDATA[OUT2 := IN2 + 1;
|
|
1997 |
TEST_ARRAY[0,1] := TEST_ARRAY[0,2] + 50;
|
|
1998 |
]]>
|
|
1999 |
</ST>
|
|
2000 |
</body>
|
|
2001 |
</action>
|
|
2002 |
</actions>
|
|
2003 |
<transitions>
|
|
2004 |
<transition name="REACH_UPPER1">
|
|
2005 |
<body>
|
|
2006 |
<ST>
|
|
2007 |
<![CDATA[:= OUT1 >= UPPER1;]]>
|
|
2008 |
</ST>
|
|
2009 |
</body>
|
|
2010 |
</transition>
|
|
2011 |
<transition name="REACH_UPPER2">
|
|
2012 |
<body>
|
|
2013 |
<ST>
|
|
2014 |
<![CDATA[:= OUT2 >= UPPER2;]]>
|
|
2015 |
</ST>
|
|
2016 |
</body>
|
|
2017 |
</transition>
|
|
2018 |
</transitions>
|
|
2019 |
<body>
|
|
2020 |
<SFC>
|
|
2021 |
<step localId="1" height="31" width="55" name="Start" initialStep="true">
|
|
2022 |
<position x="125" y="170"/>
|
|
2023 |
<connectionPointOut formalParameter="">
|
|
2024 |
<relPosition x="25" y="31"/>
|
|
2025 |
</connectionPointOut>
|
|
2026 |
<connectionPointOutAction formalParameter="">
|
|
2027 |
<relPosition x="55" y="15"/>
|
|
2028 |
</connectionPointOutAction>
|
|
2029 |
</step>
|
|
2030 |
<step localId="4" height="30" width="55" name="Step3">
|
|
2031 |
<position x="440" y="370"/>
|
|
2032 |
<connectionPointIn>
|
|
2033 |
<relPosition x="25" y="0"/>
|
|
2034 |
<connection refLocalId="22">
|
|
2035 |
<position x="465" y="370"/>
|
|
2036 |
<position x="465" y="348"/>
|
|
2037 |
</connection>
|
|
2038 |
</connectionPointIn>
|
|
2039 |
<connectionPointOut formalParameter="">
|
|
2040 |
<relPosition x="25" y="30"/>
|
|
2041 |
</connectionPointOut>
|
|
2042 |
<connectionPointOutAction formalParameter="">
|
|
2043 |
<relPosition x="55" y="15"/>
|
|
2044 |
</connectionPointOutAction>
|
|
2045 |
</step>
|
|
2046 |
<jumpStep localId="5" height="13" width="20" targetName="Start">
|
|
2047 |
<position x="205" y="630"/>
|
|
2048 |
<connectionPointIn>
|
|
2049 |
<relPosition x="10" y="0"/>
|
|
2050 |
<connection refLocalId="12">
|
|
2051 |
<position x="215" y="630"/>
|
|
2052 |
<position x="215" y="601"/>
|
|
2053 |
</connection>
|
|
2054 |
</connectionPointIn>
|
|
2055 |
</jumpStep>
|
|
2056 |
<transition localId="8" height="2" width="20">
|
|
2057 |
<position x="560" y="565"/>
|
|
2058 |
<connectionPointIn>
|
|
2059 |
<relPosition x="10" y="0"/>
|
|
2060 |
<connection refLocalId="25">
|
|
2061 |
<position x="570" y="565"/>
|
|
2062 |
<position x="570" y="523"/>
|
|
2063 |
</connection>
|
|
2064 |
</connectionPointIn>
|
|
2065 |
<connectionPointOut>
|
|
2066 |
<relPosition x="10" y="2"/>
|
|
2067 |
</connectionPointOut>
|
|
2068 |
<condition>
|
|
2069 |
<inline name="">
|
|
2070 |
<ST>
|
|
2071 |
<![CDATA[TRUE]]>
|
|
2072 |
</ST>
|
|
2073 |
</inline>
|
|
2074 |
</condition>
|
|
2075 |
</transition>
|
|
2076 |
<actionBlock localId="9" height="30" width="90">
|
|
2077 |
<position x="325" y="375"/>
|
|
2078 |
<connectionPointIn>
|
|
2079 |
<relPosition x="0" y="15"/>
|
|
2080 |
<connection refLocalId="13">
|
|
2081 |
<position x="325" y="390"/>
|
|
2082 |
<position x="300" y="390"/>
|
|
2083 |
</connection>
|
|
2084 |
</connectionPointIn>
|
|
2085 |
<action>
|
|
2086 |
<reference name="COUNT1"/>
|
|
2087 |
</action>
|
|
2088 |
</actionBlock>
|
|
2089 |
<actionBlock localId="10" height="30" width="90">
|
|
2090 |
<position x="520" y="370"/>
|
|
2091 |
<connectionPointIn>
|
|
2092 |
<relPosition x="0" y="15"/>
|
|
2093 |
<connection refLocalId="4">
|
|
2094 |
<position x="520" y="385"/>
|
|
2095 |
<position x="495" y="385"/>
|
|
2096 |
</connection>
|
|
2097 |
</connectionPointIn>
|
|
2098 |
<action>
|
|
2099 |
<reference name="COUNT1"/>
|
|
2100 |
</action>
|
|
2101 |
</actionBlock>
|
|
2102 |
<selectionDivergence localId="11" height="1" width="530">
|
|
2103 |
<position x="45" y="230"/>
|
|
2104 |
<connectionPointIn>
|
|
2105 |
<relPosition x="105" y="0"/>
|
|
2106 |
<connection refLocalId="1">
|
|
2107 |
<position x="150" y="230"/>
|
|
2108 |
<position x="150" y="201"/>
|
|
2109 |
</connection>
|
|
2110 |
</connectionPointIn>
|
|
2111 |
<connectionPointOut formalParameter="">
|
|
2112 |
<relPosition x="0" y="1"/>
|
|
2113 |
</connectionPointOut>
|
|
2114 |
<connectionPointOut formalParameter="">
|
|
2115 |
<relPosition x="225" y="1"/>
|
|
2116 |
</connectionPointOut>
|
|
2117 |
<connectionPointOut formalParameter="">
|
|
2118 |
<relPosition x="530" y="1"/>
|
|
2119 |
</connectionPointOut>
|
|
2120 |
</selectionDivergence>
|
|
2121 |
<selectionConvergence localId="12" height="1" width="525">
|
|
2122 |
<position x="45" y="600"/>
|
|
2123 |
<connectionPointIn>
|
|
2124 |
<relPosition x="0" y="0"/>
|
|
2125 |
<connection refLocalId="38">
|
|
2126 |
<position x="45" y="600"/>
|
|
2127 |
<position x="45" y="472"/>
|
|
2128 |
</connection>
|
|
2129 |
</connectionPointIn>
|
|
2130 |
<connectionPointIn>
|
|
2131 |
<relPosition x="225" y="0"/>
|
|
2132 |
<connection refLocalId="15">
|
|
2133 |
<position x="270" y="600"/>
|
|
2134 |
<position x="270" y="472"/>
|
|
2135 |
</connection>
|
|
2136 |
</connectionPointIn>
|
|
2137 |
<connectionPointIn>
|
|
2138 |
<relPosition x="525" y="0"/>
|
|
2139 |
<connection refLocalId="8">
|
|
2140 |
<position x="570" y="600"/>
|
|
2141 |
<position x="570" y="567"/>
|
|
2142 |
</connection>
|
|
2143 |
</connectionPointIn>
|
|
2144 |
<connectionPointOut>
|
|
2145 |
<relPosition x="170" y="1"/>
|
|
2146 |
</connectionPointOut>
|
|
2147 |
</selectionConvergence>
|
|
2148 |
<step localId="13" height="30" width="55" name="Step1">
|
|
2149 |
<position x="245" y="375"/>
|
|
2150 |
<connectionPointIn>
|
|
2151 |
<relPosition x="25" y="0"/>
|
|
2152 |
<connection refLocalId="44">
|
|
2153 |
<position x="270" y="375"/>
|
|
2154 |
<position x="270" y="280"/>
|
|
2155 |
</connection>
|
|
2156 |
</connectionPointIn>
|
|
2157 |
<connectionPointOut formalParameter="">
|
|
2158 |
<relPosition x="25" y="30"/>
|
|
2159 |
</connectionPointOut>
|
|
2160 |
<connectionPointOutAction formalParameter="">
|
|
2161 |
<relPosition x="55" y="15"/>
|
|
2162 |
</connectionPointOutAction>
|
|
2163 |
</step>
|
|
2164 |
<transition localId="15" height="2" width="20">
|
|
2165 |
<position x="260" y="470"/>
|
|
2166 |
<connectionPointIn>
|
|
2167 |
<relPosition x="10" y="0"/>
|
|
2168 |
<connection refLocalId="13">
|
|
2169 |
<position x="270" y="470"/>
|
|
2170 |
<position x="270" y="405"/>
|
|
2171 |
</connection>
|
|
2172 |
</connectionPointIn>
|
|
2173 |
<connectionPointOut>
|
|
2174 |
<relPosition x="10" y="2"/>
|
|
2175 |
</connectionPointOut>
|
|
2176 |
<condition>
|
|
2177 |
<reference name="REACH_UPPER1"/>
|
|
2178 |
</condition>
|
|
2179 |
</transition>
|
|
2180 |
<simultaneousDivergence localId="22" height="3" width="210">
|
|
2181 |
<position x="465" y="345"/>
|
|
2182 |
<connectionPointIn>
|
|
2183 |
<relPosition x="110" y="0"/>
|
|
2184 |
<connection refLocalId="45">
|
|
2185 |
<position x="575" y="345"/>
|
|
2186 |
<position x="575" y="280"/>
|
|
2187 |
</connection>
|
|
2188 |
</connectionPointIn>
|
|
2189 |
<connectionPointOut formalParameter="">
|
|
2190 |
<relPosition x="0" y="3"/>
|
|
2191 |
</connectionPointOut>
|
|
2192 |
<connectionPointOut formalParameter="">
|
|
2193 |
<relPosition x="210" y="3"/>
|
|
2194 |
</connectionPointOut>
|
|
2195 |
</simultaneousDivergence>
|
|
2196 |
<transition localId="23" height="2" width="20">
|
|
2197 |
<position x="455" y="430"/>
|
|
2198 |
<connectionPointIn>
|
|
2199 |
<relPosition x="10" y="0"/>
|
|
2200 |
<connection refLocalId="4">
|
|
2201 |
<position x="465" y="430"/>
|
|
2202 |
<position x="465" y="400"/>
|
|
2203 |
</connection>
|
|
2204 |
</connectionPointIn>
|
|
2205 |
<connectionPointOut>
|
|
2206 |
<relPosition x="10" y="2"/>
|
|
2207 |
</connectionPointOut>
|
|
2208 |
<condition>
|
|
2209 |
<reference name="REACH_UPPER1"/>
|
|
2210 |
</condition>
|
|
2211 |
</transition>
|
|
2212 |
<step localId="24" height="27" width="55" name="WAIT1">
|
|
2213 |
<position x="440" y="465"/>
|
|
2214 |
<connectionPointIn>
|
|
2215 |
<relPosition x="25" y="0"/>
|
|
2216 |
<connection refLocalId="23">
|
|
2217 |
<position x="465" y="465"/>
|
|
2218 |
<position x="465" y="432"/>
|
|
2219 |
</connection>
|
|
2220 |
</connectionPointIn>
|
|
2221 |
<connectionPointOut formalParameter="">
|
|
2222 |
<relPosition x="25" y="27"/>
|
|
2223 |
</connectionPointOut>
|
|
2224 |
</step>
|
|
2225 |
<simultaneousConvergence localId="25" height="3" width="210">
|
|
2226 |
<position x="465" y="520"/>
|
|
2227 |
<connectionPointIn>
|
|
2228 |
<relPosition x="0" y="0"/>
|
|
2229 |
<connection refLocalId="24">
|
|
2230 |
<position x="465" y="520"/>
|
|
2231 |
<position x="465" y="492"/>
|
|
2232 |
</connection>
|
|
2233 |
</connectionPointIn>
|
|
2234 |
<connectionPointIn>
|
|
2235 |
<relPosition x="210" y="0"/>
|
|
2236 |
<connection refLocalId="29">
|
|
2237 |
<position x="675" y="520"/>
|
|
2238 |
<position x="675" y="492"/>
|
|
2239 |
</connection>
|
|
2240 |
</connectionPointIn>
|
|
2241 |
<connectionPointOut>
|
|
2242 |
<relPosition x="105" y="3"/>
|
|
2243 |
</connectionPointOut>
|
|
2244 |
</simultaneousConvergence>
|
|
2245 |
<step localId="26" height="30" width="55" name="Step4">
|
|
2246 |
<position x="650" y="370"/>
|
|
2247 |
<connectionPointIn>
|
|
2248 |
<relPosition x="25" y="0"/>
|
|
2249 |
<connection refLocalId="22">
|
|
2250 |
<position x="675" y="370"/>
|
|
2251 |
<position x="675" y="348"/>
|
|
2252 |
</connection>
|
|
2253 |
</connectionPointIn>
|
|
2254 |
<connectionPointOut formalParameter="">
|
|
2255 |
<relPosition x="25" y="30"/>
|
|
2256 |
</connectionPointOut>
|
|
2257 |
<connectionPointOutAction formalParameter="">
|
|
2258 |
<relPosition x="55" y="15"/>
|
|
2259 |
</connectionPointOutAction>
|
|
2260 |
</step>
|
|
2261 |
<transition localId="28" height="2" width="20">
|
|
2262 |
<position x="665" y="430"/>
|
|
2263 |
<connectionPointIn>
|
|
2264 |
<relPosition x="10" y="0"/>
|
|
2265 |
<connection refLocalId="26">
|
|
2266 |
<position x="675" y="430"/>
|
|
2267 |
<position x="675" y="400"/>
|
|
2268 |
</connection>
|
|
2269 |
</connectionPointIn>
|
|
2270 |
<connectionPointOut>
|
|
2271 |
<relPosition x="10" y="2"/>
|
|
2272 |
</connectionPointOut>
|
|
2273 |
<condition>
|
|
2274 |
<reference name="REACH_UPPER2"/>
|
|
2275 |
</condition>
|
|
2276 |
</transition>
|
|
2277 |
<step localId="29" height="27" width="55" name="WAIT2">
|
|
2278 |
<position x="650" y="465"/>
|
|
2279 |
<connectionPointIn>
|
|
2280 |
<relPosition x="25" y="0"/>
|
|
2281 |
<connection refLocalId="28">
|
|
2282 |
<position x="675" y="465"/>
|
|
2283 |
<position x="675" y="432"/>
|
|
2284 |
</connection>
|
|
2285 |
</connectionPointIn>
|
|
2286 |
<connectionPointOut formalParameter="">
|
|
2287 |
<relPosition x="25" y="27"/>
|
|
2288 |
</connectionPointOut>
|
|
2289 |
</step>
|
|
2290 |
<actionBlock localId="31" height="30" width="90">
|
|
2291 |
<position x="730" y="370"/>
|
|
2292 |
<connectionPointIn>
|
|
2293 |
<relPosition x="0" y="15"/>
|
|
2294 |
<connection refLocalId="26">
|
|
2295 |
<position x="730" y="385"/>
|
|
2296 |
<position x="705" y="385"/>
|
|
2297 |
</connection>
|
|
2298 |
</connectionPointIn>
|
|
2299 |
<action>
|
|
2300 |
<reference name="COUNT2"/>
|
|
2301 |
</action>
|
|
2302 |
</actionBlock>
|
|
2303 |
<actionBlock localId="32" height="30" width="235">
|
|
2304 |
<position x="200" y="170"/>
|
|
2305 |
<connectionPointIn>
|
|
2306 |
<relPosition x="0" y="15"/>
|
|
2307 |
<connection refLocalId="1">
|
|
2308 |
<position x="200" y="185"/>
|
|
2309 |
<position x="180" y="185"/>
|
|
2310 |
</connection>
|
|
2311 |
</connectionPointIn>
|
|
2312 |
<action>
|
|
2313 |
<inline>
|
|
2314 |
<ST>
|
|
2315 |
<![CDATA[OUT1 := 0;OUT2 := 0;]]>
|
|
2316 |
</ST>
|
|
2317 |
</inline>
|
|
2318 |
</action>
|
|
2319 |
</actionBlock>
|
|
2320 |
<transition localId="33" height="2" width="20">
|
|
2321 |
<position x="35" y="325"/>
|
|
2322 |
<connectionPointIn>
|
|
2323 |
<relPosition x="10" y="0"/>
|
|
2324 |
<connection refLocalId="11">
|
|
2325 |
<position x="45" y="325"/>
|
|
2326 |
<position x="45" y="231"/>
|
|
2327 |
</connection>
|
|
2328 |
</connectionPointIn>
|
|
2329 |
<connectionPointOut>
|
|
2330 |
<relPosition x="10" y="2"/>
|
|
2331 |
</connectionPointOut>
|
|
2332 |
<condition>
|
|
2333 |
<inline name="">
|
|
2334 |
<ST>
|
|
2335 |
<![CDATA[CNT2 AND NOT CNT1]]>
|
|
2336 |
</ST>
|
|
2337 |
</inline>
|
|
2338 |
</condition>
|
|
2339 |
</transition>
|
|
2340 |
<block localId="34" width="80" height="90" typeName="AND">
|
|
2341 |
<position x="435" y="240"/>
|
|
2342 |
<inputVariables>
|
|
2343 |
<variable formalParameter="IN1">
|
|
2344 |
<connectionPointIn>
|
|
2345 |
<relPosition x="0" y="35"/>
|
|
2346 |
<connection refLocalId="35">
|
|
2347 |
<position x="435" y="275"/>
|
|
2348 |
<position x="410" y="275"/>
|
|
2349 |
</connection>
|
|
2350 |
</connectionPointIn>
|
|
2351 |
</variable>
|
|
2352 |
<variable formalParameter="IN2">
|
|
2353 |
<connectionPointIn>
|
|
2354 |
<relPosition x="0" y="70"/>
|
|
2355 |
<connection refLocalId="39">
|
|
2356 |
<position x="435" y="310"/>
|
|
2357 |
<position x="410" y="310"/>
|
|
2358 |
</connection>
|
|
2359 |
</connectionPointIn>
|
|
2360 |
</variable>
|
|
2361 |
</inputVariables>
|
|
2362 |
<inOutVariables/>
|
|
2363 |
<outputVariables>
|
|
2364 |
<variable formalParameter="OUT">
|
|
2365 |
<connectionPointOut>
|
|
2366 |
<relPosition x="80" y="35"/>
|
|
2367 |
</connectionPointOut>
|
|
2368 |
</variable>
|
|
2369 |
</outputVariables>
|
|
2370 |
</block>
|
|
2371 |
<inVariable localId="35" height="30" width="50">
|
|
2372 |
<position x="360" y="260"/>
|
|
2373 |
<connectionPointOut>
|
|
2374 |
<relPosition x="50" y="15"/>
|
|
2375 |
</connectionPointOut>
|
|
2376 |
<expression>CNT1</expression>
|
|
2377 |
</inVariable>
|
|
2378 |
<step localId="36" height="27" width="60" name="Step2">
|
|
2379 |
<position x="15" y="375"/>
|
|
2380 |
<connectionPointIn>
|
|
2381 |
<relPosition x="30" y="0"/>
|
|
2382 |
<connection refLocalId="33">
|
|
2383 |
<position x="45" y="375"/>
|
|
2384 |
<position x="45" y="327"/>
|
|
2385 |
</connection>
|
|
2386 |
</connectionPointIn>
|
|
2387 |
<connectionPointOut formalParameter="">
|
|
2388 |
<relPosition x="30" y="27"/>
|
|
2389 |
</connectionPointOut>
|
|
2390 |
<connectionPointOutAction formalParameter="">
|
|
2391 |
<relPosition x="60" y="15"/>
|
|
2392 |
</connectionPointOutAction>
|
|
2393 |
</step>
|
|
2394 |
<actionBlock localId="37" height="30" width="90">
|
|
2395 |
<position x="100" y="375"/>
|
|
2396 |
<connectionPointIn>
|
|
2397 |
<relPosition x="0" y="15"/>
|
|
2398 |
<connection refLocalId="36">
|
|
2399 |
<position x="100" y="390"/>
|
|
2400 |
<position x="75" y="390"/>
|
|
2401 |
</connection>
|
|
2402 |
</connectionPointIn>
|
|
2403 |
<action>
|
|
2404 |
<reference name="COUNT2"/>
|
|
2405 |
</action>
|
|
2406 |
</actionBlock>
|
|
2407 |
<transition localId="38" height="2" width="20">
|
|
2408 |
<position x="35" y="470"/>
|
|
2409 |
<connectionPointIn>
|
|
2410 |
<relPosition x="10" y="0"/>
|
|
2411 |
<connection refLocalId="36">
|
|
2412 |
<position x="45" y="470"/>
|
|
2413 |
<position x="45" y="402"/>
|
|
2414 |
</connection>
|
|
2415 |
</connectionPointIn>
|
|
2416 |
<connectionPointOut>
|
|
2417 |
<relPosition x="10" y="2"/>
|
|
2418 |
</connectionPointOut>
|
|
2419 |
<condition>
|
|
2420 |
<reference name="REACH_UPPER2"/>
|
|
2421 |
</condition>
|
|
2422 |
</transition>
|
|
2423 |
<inVariable localId="39" height="30" width="50">
|
|
2424 |
<position x="360" y="295"/>
|
|
2425 |
<connectionPointOut>
|
|
2426 |
<relPosition x="50" y="15"/>
|
|
2427 |
</connectionPointOut>
|
|
2428 |
<expression>CNT2</expression>
|
|
2429 |
</inVariable>
|
|
2430 |
<leftPowerRail localId="40" height="40" width="3">
|
|
2431 |
<position x="70" y="255"/>
|
|
2432 |
<connectionPointOut formalParameter="">
|
|
2433 |
<relPosition x="3" y="20"/>
|
|
2434 |
</connectionPointOut>
|
|
2435 |
</leftPowerRail>
|
|
2436 |
<contact localId="41" height="20" width="25">
|
|
2437 |
<position x="110" y="265"/>
|
|
2438 |
<connectionPointIn>
|
|
2439 |
<relPosition x="0" y="10"/>
|
|
2440 |
<connection refLocalId="40">
|
|
2441 |
<position x="110" y="275"/>
|
|
2442 |
<position x="73" y="275"/>
|
|
2443 |
</connection>
|
|
2444 |
</connectionPointIn>
|
|
2445 |
<connectionPointOut>
|
|
2446 |
<relPosition x="25" y="10"/>
|
|
2447 |
</connectionPointOut>
|
|
2448 |
<variable>CNT1</variable>
|
|
2449 |
</contact>
|
|
2450 |
<contact localId="42" height="20" width="25" negated="true">
|
|
2451 |
<position x="190" y="265"/>
|
|
2452 |
<connectionPointIn>
|
|
2453 |
<relPosition x="0" y="10"/>
|
|
2454 |
<connection refLocalId="41">
|
|
2455 |
<position x="190" y="275"/>
|
|
2456 |
<position x="135" y="275"/>
|
|
2457 |
</connection>
|
|
2458 |
</connectionPointIn>
|
|
2459 |
<connectionPointOut>
|
|
2460 |
<relPosition x="25" y="10"/>
|
|
2461 |
</connectionPointOut>
|
|
2462 |
<variable>CNT2</variable>
|
|
2463 |
</contact>
|
|
2464 |
<transition localId="44" height="10" width="20">
|
|
2465 |
<position x="260" y="270"/>
|
|
2466 |
<connectionPointIn>
|
|
2467 |
<relPosition x="10" y="0"/>
|
|
2468 |
<connection refLocalId="11">
|
|
2469 |
<position x="270" y="270"/>
|
|
2470 |
<position x="270" y="231"/>
|
|
2471 |
</connection>
|
|
2472 |
</connectionPointIn>
|
|
2473 |
<connectionPointOut>
|
|
2474 |
<relPosition x="10" y="10"/>
|
|
2475 |
</connectionPointOut>
|
|
2476 |
<condition>
|
|
2477 |
<connection refLocalId="42">
|
|
2478 |
<position x="260" y="275"/>
|
|
2479 |
<position x="215" y="275"/>
|
|
2480 |
</connection>
|
|
2481 |
</condition>
|
|
2482 |
</transition>
|
|
2483 |
<transition localId="45" height="10" width="20">
|
|
2484 |
<position x="565" y="270"/>
|
|
2485 |
<connectionPointIn>
|
|
2486 |
<relPosition x="10" y="0"/>
|
|
2487 |
<connection refLocalId="11">
|
|
2488 |
<position x="575" y="270"/>
|
|
2489 |
<position x="575" y="231"/>
|
|
2490 |
</connection>
|
|
2491 |
</connectionPointIn>
|
|
2492 |
<connectionPointOut>
|
|
2493 |
<relPosition x="10" y="10"/>
|
|
2494 |
</connectionPointOut>
|
|
2495 |
<condition>
|
|
2496 |
<connection refLocalId="34" formalParameter="OUT">
|
|
2497 |
<position x="565" y="275"/>
|
|
2498 |
<position x="515" y="275"/>
|
|
2499 |
</connection>
|
|
2500 |
</condition>
|
|
2501 |
</transition>
|
|
2502 |
<comment localId="46" height="120" width="785">
|
|
2503 |
<position x="15" y="25"/>
|
|
2504 |
<content>
|
|
2505 |
<![CDATA[A SFC that make use of different kinds of divergences, and mix LD and FBD and inline transitions.
|
|
2506 |
It is supposed to increment OUT1 and OUT2 according CNT1 and CNT2, and untill UPPER1 and UPPER2 limits are reached.]]>
|
|
2507 |
</content>
|
|
2508 |
</comment>
|
|
2509 |
<step localId="47" height="45" width="75" name="Start2" initialStep="true">
|
|
2510 |
<position x="1010" y="215"/>
|
|
2511 |
<connectionPointOut formalParameter="">
|
|
2512 |
<relPosition x="35" y="45"/>
|
|
2513 |
</connectionPointOut>
|
|
2514 |
</step>
|
|
2515 |
<transition localId="48" height="10" width="20">
|
|
2516 |
<position x="1035" y="285"/>
|
|
2517 |
<connectionPointIn>
|
|
2518 |
<relPosition x="10" y="0"/>
|
|
2519 |
<connection refLocalId="47">
|
|
2520 |
<position x="1045" y="285"/>
|
|
2521 |
<position x="1045" y="260"/>
|
|
2522 |
</connection>
|
|
2523 |
</connectionPointIn>
|
|
2524 |
<connectionPointOut>
|
|
2525 |
<relPosition x="10" y="10"/>
|
|
2526 |
</connectionPointOut>
|
|
2527 |
<condition>
|
|
2528 |
<connection refLocalId="54" formalParameter="OUT">
|
|
2529 |
<position x="1035" y="290"/>
|
|
2530 |
<position x="1000" y="290"/>
|
|
2531 |
</connection>
|
|
2532 |
</condition>
|
|
2533 |
</transition>
|
|
2534 |
<transition localId="49" height="5" width="20">
|
|
2535 |
<position x="1035" y="380"/>
|
|
2536 |
<connectionPointIn>
|
|
2537 |
<relPosition x="10" y="0"/>
|
|
2538 |
<connection refLocalId="50">
|
|
2539 |
<position x="1045" y="380"/>
|
|
2540 |
<position x="1045" y="355"/>
|
|
2541 |
</connection>
|
|
2542 |
</connectionPointIn>
|
|
2543 |
<connectionPointOut>
|
|
2544 |
<relPosition x="10" y="5"/>
|
|
2545 |
</connectionPointOut>
|
|
2546 |
<condition>
|
|
2547 |
<inline name="">
|
|
2548 |
<ST>
|
|
2549 |
<![CDATA[CNT2]]>
|
|
2550 |
</ST>
|
|
2551 |
</inline>
|
|
2552 |
</condition>
|
|
2553 |
</transition>
|
|
2554 |
<step localId="50" height="35" width="60" name="WAIT3">
|
|
2555 |
<position x="1015" y="320"/>
|
|
2556 |
<connectionPointIn>
|
|
2557 |
<relPosition x="30" y="0"/>
|
|
2558 |
<connection refLocalId="48">
|
|
2559 |
<position x="1045" y="320"/>
|
|
2560 |
<position x="1045" y="310"/>
|
|
2561 |
<position x="1045" y="310"/>
|
|
2562 |
<position x="1045" y="295"/>
|
|
2563 |
</connection>
|
|
2564 |
</connectionPointIn>
|
|
2565 |
<connectionPointOut formalParameter="">
|
|
2566 |
<relPosition x="30" y="35"/>
|
|
2567 |
</connectionPointOut>
|
|
2568 |
</step>
|
|
2569 |
<jumpStep localId="51" height="15" width="20" targetName="Start2">
|
|
2570 |
<position x="1035" y="415"/>
|
|
2571 |
<connectionPointIn>
|
|
2572 |
<relPosition x="10" y="0"/>
|
|
2573 |
<connection refLocalId="49">
|
|
2574 |
<position x="1045" y="415"/>
|
|
2575 |
<position x="1045" y="385"/>
|
|
2576 |
</connection>
|
|
2577 |
</connectionPointIn>
|
|
2578 |
</jumpStep>
|
|
2579 |
<inVariable localId="52" height="30" width="170">
|
|
2580 |
<position x="700" y="245"/>
|
|
2581 |
<connectionPointOut>
|
|
2582 |
<relPosition x="170" y="15"/>
|
|
2583 |
</connectionPointOut>
|
|
2584 |
<expression>TEST_ARRAY[0, 1]</expression>
|
|
2585 |
</inVariable>
|
|
2586 |
<inVariable localId="53" height="30" width="70">
|
|
2587 |
<position x="800" y="320"/>
|
|
2588 |
<connectionPointOut>
|
|
2589 |
<relPosition x="70" y="15"/>
|
|
2590 |
</connectionPointOut>
|
|
2591 |
<expression>UINT#0</expression>
|
|
2592 |
</inVariable>
|
|
2593 |
<block localId="54" width="75" height="70" typeName="GT">
|
|
2594 |
<position x="925" y="260"/>
|
|
2595 |
<inputVariables>
|
|
2596 |
<variable formalParameter="IN1">
|
|
2597 |
<connectionPointIn>
|
|
2598 |
<relPosition x="0" y="30"/>
|
|
2599 |
<connection refLocalId="52">
|
|
2600 |
<position x="925" y="290"/>
|
|
2601 |
<position x="900" y="290"/>
|
|
2602 |
<position x="900" y="260"/>
|
|
2603 |
<position x="870" y="260"/>
|
|
2604 |
</connection>
|
|
2605 |
</connectionPointIn>
|
|
2606 |
</variable>
|
|
2607 |
<variable formalParameter="IN2">
|
|
2608 |
<connectionPointIn>
|
|
2609 |
<relPosition x="0" y="55"/>
|
|
2610 |
<connection refLocalId="53">
|
|
2611 |
<position x="925" y="315"/>
|
|
2612 |
<position x="900" y="315"/>
|
|
2613 |
<position x="900" y="335"/>
|
|
2614 |
<position x="870" y="335"/>
|
|
2615 |
</connection>
|
|
2616 |
</connectionPointIn>
|
|
2617 |
</variable>
|
|
2618 |
</inputVariables>
|
|
2619 |
<inOutVariables/>
|
|
2620 |
<outputVariables>
|
|
2621 |
<variable formalParameter="OUT">
|
|
2622 |
<connectionPointOut>
|
|
2623 |
<relPosition x="75" y="30"/>
|
|
2624 |
</connectionPointOut>
|
|
2625 |
</variable>
|
|
2626 |
</outputVariables>
|
|
2627 |
</block>
|
|
2628 |
</SFC>
|
|
2629 |
</body>
|
|
2630 |
</pou>
|
|
2631 |
</pous>
|
|
2632 |
</types>
|
|
2633 |
<instances>
|
|
2634 |
<configurations>
|
|
2635 |
<configuration name="STD_CONF">
|
|
2636 |
<resource name="STD_RESSOURCE">
|
|
2637 |
<task name="STD_TASK" interval="00:00:00.100000" priority="0">
|
|
2638 |
<pouInstance name="MAIN_INSTANCE" type="MAIN_TEST"/>
|
|
2639 |
</task>
|
|
2640 |
</resource>
|
|
2641 |
</configuration>
|
|
2642 |
</configurations>
|
|
2643 |
</instances>
|
|
2644 |
</project>
|