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