305
|
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">
|
|
6 |
<fileHeader companyName="LOLITECH"
|
|
7 |
productName="Beremiz"
|
|
8 |
productVersion="0.0"
|
|
9 |
creationDateTime="2008-12-14 16:21:19"/>
|
|
10 |
<contentHeader name="Beremiz Python Support Tests"
|
|
11 |
modificationDateTime="2009-01-18 18:40:44">
|
|
12 |
<coordinateInfo>
|
|
13 |
<pageSize x="1024" y="1024"/>
|
|
14 |
<fbd>
|
|
15 |
<scaling x="5" y="5"/>
|
|
16 |
</fbd>
|
|
17 |
<ld>
|
|
18 |
<scaling x="5" y="5"/>
|
|
19 |
</ld>
|
|
20 |
<sfc>
|
|
21 |
<scaling x="5" y="5"/>
|
|
22 |
</sfc>
|
|
23 |
</coordinateInfo>
|
|
24 |
</contentHeader>
|
|
25 |
<types>
|
|
26 |
<dataTypes/>
|
|
27 |
<pous>
|
|
28 |
<pou name="main_pytest" pouType="program">
|
|
29 |
<interface>
|
|
30 |
<localVars>
|
|
31 |
<variable name="python1">
|
|
32 |
<type>
|
|
33 |
<derived name="python_poll"/>
|
|
34 |
</type>
|
|
35 |
</variable>
|
|
36 |
<variable name="counter">
|
|
37 |
<type>
|
|
38 |
<INT/>
|
|
39 |
</type>
|
|
40 |
</variable>
|
|
41 |
<variable name="Block1">
|
|
42 |
<type>
|
|
43 |
<derived name="python_poll"/>
|
|
44 |
</type>
|
|
45 |
</variable>
|
|
46 |
</localVars>
|
|
47 |
</interface>
|
|
48 |
<body>
|
|
49 |
<FBD>
|
|
50 |
<block localId="24" width="125" height="90" typeName="python_poll" instanceName="python1">
|
|
51 |
<position x="480" y="115"/>
|
|
52 |
<inputVariables>
|
|
53 |
<variable formalParameter="TRIG">
|
|
54 |
<connectionPointIn>
|
|
55 |
<relPosition x="0" y="35"/>
|
|
56 |
<connection refLocalId="25">
|
|
57 |
<position x="480" y="150"/>
|
|
58 |
<position x="420" y="150"/>
|
|
59 |
</connection>
|
|
60 |
</connectionPointIn>
|
|
61 |
</variable>
|
|
62 |
<variable formalParameter="CODE">
|
|
63 |
<connectionPointIn>
|
|
64 |
<relPosition x="0" y="70"/>
|
|
65 |
<connection refLocalId="26">
|
|
66 |
<position x="480" y="185"/>
|
|
67 |
<position x="420" y="185"/>
|
|
68 |
</connection>
|
|
69 |
</connectionPointIn>
|
|
70 |
</variable>
|
|
71 |
</inputVariables>
|
|
72 |
<inOutVariables/>
|
|
73 |
<outputVariables>
|
|
74 |
<variable formalParameter="ACK">
|
|
75 |
<connectionPointOut>
|
|
76 |
<relPosition x="125" y="35"/>
|
|
77 |
</connectionPointOut>
|
|
78 |
</variable>
|
|
79 |
<variable formalParameter="RESULT">
|
|
80 |
<connectionPointOut>
|
|
81 |
<relPosition x="125" y="70"/>
|
|
82 |
</connectionPointOut>
|
|
83 |
</variable>
|
|
84 |
</outputVariables>
|
|
85 |
</block>
|
|
86 |
<inVariable localId="25" height="30" width="100">
|
|
87 |
<position x="320" y="135"/>
|
|
88 |
<connectionPointOut>
|
|
89 |
<relPosition x="100" y="15"/>
|
|
90 |
</connectionPointOut>
|
|
91 |
<expression>BOOL#TRUE</expression>
|
|
92 |
</inVariable>
|
|
93 |
<inVariable localId="26" height="30" width="400">
|
|
94 |
<position x="20" y="170"/>
|
|
95 |
<connectionPointOut>
|
|
96 |
<relPosition x="400" y="15"/>
|
|
97 |
</connectionPointOut>
|
|
98 |
<expression>'int(HMIFrame.checkbox_1.GetValue())'</expression>
|
|
99 |
</inVariable>
|
|
100 |
<inVariable localId="27" height="30" width="40">
|
|
101 |
<position x="510" y="355"/>
|
|
102 |
<connectionPointOut>
|
|
103 |
<relPosition x="40" y="15"/>
|
|
104 |
</connectionPointOut>
|
|
105 |
<expression>')'</expression>
|
|
106 |
</inVariable>
|
|
107 |
<inVariable localId="28" height="30" width="350">
|
|
108 |
<position x="125" y="265"/>
|
|
109 |
<connectionPointOut>
|
|
110 |
<relPosition x="350" y="15"/>
|
|
111 |
</connectionPointOut>
|
|
112 |
<expression>'HMIFrame.spin_ctrl_1.SetValue('</expression>
|
|
113 |
</inVariable>
|
|
114 |
<block localId="30" width="145" height="60" typeName="STRING_TO_INT">
|
|
115 |
<position x="670" y="135"/>
|
|
116 |
<inputVariables>
|
|
117 |
<variable formalParameter="EN">
|
|
118 |
<connectionPointIn>
|
|
119 |
<relPosition x="0" y="30"/>
|
|
120 |
<connection refLocalId="24" formalParameter="ACK">
|
|
121 |
<position x="670" y="165"/>
|
|
122 |
<position x="640" y="165"/>
|
|
123 |
<position x="640" y="150"/>
|
|
124 |
<position x="605" y="150"/>
|
|
125 |
</connection>
|
|
126 |
</connectionPointIn>
|
|
127 |
</variable>
|
|
128 |
<variable formalParameter="IN">
|
|
129 |
<connectionPointIn>
|
|
130 |
<relPosition x="0" y="50"/>
|
|
131 |
<connection refLocalId="24" formalParameter="RESULT">
|
|
132 |
<position x="670" y="185"/>
|
|
133 |
<position x="605" y="185"/>
|
|
134 |
</connection>
|
|
135 |
</connectionPointIn>
|
|
136 |
</variable>
|
|
137 |
</inputVariables>
|
|
138 |
<inOutVariables/>
|
|
139 |
<outputVariables>
|
|
140 |
<variable formalParameter="ENO">
|
|
141 |
<connectionPointOut>
|
|
142 |
<relPosition x="145" y="30"/>
|
|
143 |
</connectionPointOut>
|
|
144 |
</variable>
|
|
145 |
<variable formalParameter="OUT">
|
|
146 |
<connectionPointOut>
|
|
147 |
<relPosition x="145" y="50"/>
|
|
148 |
</connectionPointOut>
|
|
149 |
</variable>
|
|
150 |
</outputVariables>
|
|
151 |
</block>
|
|
152 |
<block localId="32" width="80" height="80" typeName="ADD">
|
|
153 |
<position x="110" y="300"/>
|
|
154 |
<inputVariables>
|
|
155 |
<variable formalParameter="EN">
|
|
156 |
<connectionPointIn>
|
|
157 |
<relPosition x="0" y="30"/>
|
|
158 |
<connection refLocalId="38" formalParameter="OUT">
|
|
159 |
<position x="110" y="330"/>
|
|
160 |
<position x="100" y="330"/>
|
|
161 |
<position x="100" y="230"/>
|
|
162 |
<position x="1140" y="230"/>
|
|
163 |
<position x="1140" y="165"/>
|
|
164 |
<position x="1130" y="165"/>
|
|
165 |
</connection>
|
|
166 |
</connectionPointIn>
|
|
167 |
</variable>
|
|
168 |
<variable formalParameter="IN1">
|
|
169 |
<connectionPointIn>
|
|
170 |
<relPosition x="0" y="50"/>
|
|
171 |
<connection refLocalId="39">
|
|
172 |
<position x="110" y="350"/>
|
|
173 |
<position x="65" y="350"/>
|
|
174 |
</connection>
|
|
175 |
</connectionPointIn>
|
|
176 |
</variable>
|
|
177 |
<variable formalParameter="IN2">
|
|
178 |
<connectionPointIn>
|
|
179 |
<relPosition x="0" y="70"/>
|
|
180 |
<connection refLocalId="33">
|
|
181 |
<position x="110" y="370"/>
|
|
182 |
<position x="100" y="370"/>
|
|
183 |
<position x="100" y="390"/>
|
|
184 |
<position x="315" y="390"/>
|
|
185 |
<position x="315" y="350"/>
|
|
186 |
<position x="295" y="350"/>
|
|
187 |
</connection>
|
|
188 |
</connectionPointIn>
|
|
189 |
</variable>
|
|
190 |
</inputVariables>
|
|
191 |
<inOutVariables/>
|
|
192 |
<outputVariables>
|
|
193 |
<variable formalParameter="ENO">
|
|
194 |
<connectionPointOut>
|
|
195 |
<relPosition x="80" y="30"/>
|
|
196 |
</connectionPointOut>
|
|
197 |
</variable>
|
|
198 |
<variable formalParameter="OUT">
|
|
199 |
<connectionPointOut>
|
|
200 |
<relPosition x="80" y="50"/>
|
|
201 |
</connectionPointOut>
|
|
202 |
</variable>
|
|
203 |
</outputVariables>
|
|
204 |
</block>
|
|
205 |
<block localId="34" width="80" height="100" typeName="CONCAT">
|
|
206 |
<position x="580" y="280"/>
|
|
207 |
<inputVariables>
|
|
208 |
<variable formalParameter="EN">
|
|
209 |
<connectionPointIn>
|
|
210 |
<relPosition x="0" y="30"/>
|
|
211 |
<connection refLocalId="35" formalParameter="ENO">
|
|
212 |
<position x="580" y="310"/>
|
|
213 |
<position x="495" y="310"/>
|
|
214 |
<position x="495" y="330"/>
|
|
215 |
<position x="475" y="330"/>
|
|
216 |
</connection>
|
|
217 |
</connectionPointIn>
|
|
218 |
</variable>
|
|
219 |
<variable formalParameter="IN1">
|
|
220 |
<connectionPointIn>
|
|
221 |
<relPosition x="0" y="50"/>
|
|
222 |
<connection refLocalId="28">
|
|
223 |
<position x="580" y="330"/>
|
|
224 |
<position x="560" y="330"/>
|
|
225 |
<position x="560" y="280"/>
|
|
226 |
<position x="475" y="280"/>
|
|
227 |
</connection>
|
|
228 |
</connectionPointIn>
|
|
229 |
</variable>
|
|
230 |
<variable formalParameter="IN2">
|
|
231 |
<connectionPointIn>
|
|
232 |
<relPosition x="0" y="70"/>
|
|
233 |
<connection refLocalId="35" formalParameter="OUT">
|
|
234 |
<position x="580" y="350"/>
|
|
235 |
<position x="475" y="350"/>
|
|
236 |
</connection>
|
|
237 |
</connectionPointIn>
|
|
238 |
</variable>
|
|
239 |
<variable formalParameter="IN3">
|
|
240 |
<connectionPointIn>
|
|
241 |
<relPosition x="0" y="90"/>
|
|
242 |
<connection refLocalId="27">
|
|
243 |
<position x="580" y="370"/>
|
|
244 |
<position x="550" y="370"/>
|
|
245 |
</connection>
|
|
246 |
</connectionPointIn>
|
|
247 |
</variable>
|
|
248 |
</inputVariables>
|
|
249 |
<inOutVariables/>
|
|
250 |
<outputVariables>
|
|
251 |
<variable formalParameter="ENO">
|
|
252 |
<connectionPointOut>
|
|
253 |
<relPosition x="80" y="30"/>
|
|
254 |
</connectionPointOut>
|
|
255 |
</variable>
|
|
256 |
<variable formalParameter="OUT">
|
|
257 |
<connectionPointOut>
|
|
258 |
<relPosition x="80" y="50"/>
|
|
259 |
</connectionPointOut>
|
|
260 |
</variable>
|
|
261 |
</outputVariables>
|
|
262 |
</block>
|
|
263 |
<inOutVariable localId="33" height="35" width="85">
|
|
264 |
<position x="210" y="335"/>
|
|
265 |
<connectionPointIn>
|
|
266 |
<relPosition x="0" y="15"/>
|
|
267 |
<connection refLocalId="32" formalParameter="OUT">
|
|
268 |
<position x="210" y="350"/>
|
|
269 |
<position x="190" y="350"/>
|
|
270 |
</connection>
|
|
271 |
</connectionPointIn>
|
|
272 |
<connectionPointOut>
|
|
273 |
<relPosition x="85" y="15"/>
|
|
274 |
</connectionPointOut>
|
|
275 |
<expression>counter</expression>
|
|
276 |
</inOutVariable>
|
|
277 |
<block localId="35" width="145" height="60" typeName="INT_TO_STRING">
|
|
278 |
<position x="330" y="300"/>
|
|
279 |
<inputVariables>
|
|
280 |
<variable formalParameter="EN">
|
|
281 |
<connectionPointIn>
|
|
282 |
<relPosition x="0" y="30"/>
|
|
283 |
<connection refLocalId="32" formalParameter="ENO">
|
|
284 |
<position x="330" y="330"/>
|
|
285 |
<position x="190" y="330"/>
|
|
286 |
</connection>
|
|
287 |
</connectionPointIn>
|
|
288 |
</variable>
|
|
289 |
<variable formalParameter="IN">
|
|
290 |
<connectionPointIn>
|
|
291 |
<relPosition x="0" y="50"/>
|
|
292 |
<connection refLocalId="33">
|
|
293 |
<position x="330" y="350"/>
|
|
294 |
<position x="295" y="350"/>
|
|
295 |
</connection>
|
|
296 |
</connectionPointIn>
|
|
297 |
</variable>
|
|
298 |
</inputVariables>
|
|
299 |
<inOutVariables/>
|
|
300 |
<outputVariables>
|
|
301 |
<variable formalParameter="ENO">
|
|
302 |
<connectionPointOut>
|
|
303 |
<relPosition x="145" y="30"/>
|
|
304 |
</connectionPointOut>
|
|
305 |
</variable>
|
|
306 |
<variable formalParameter="OUT">
|
|
307 |
<connectionPointOut>
|
|
308 |
<relPosition x="145" y="50"/>
|
|
309 |
</connectionPointOut>
|
|
310 |
</variable>
|
|
311 |
</outputVariables>
|
|
312 |
</block>
|
|
313 |
<block localId="36" width="125" height="90" typeName="python_poll" instanceName="Block1">
|
|
314 |
<position x="710" y="275"/>
|
|
315 |
<inputVariables>
|
|
316 |
<variable formalParameter="TRIG">
|
|
317 |
<connectionPointIn>
|
|
318 |
<relPosition x="0" y="35"/>
|
|
319 |
<connection refLocalId="34" formalParameter="ENO">
|
|
320 |
<position x="710" y="310"/>
|
|
321 |
<position x="660" y="310"/>
|
|
322 |
</connection>
|
|
323 |
</connectionPointIn>
|
|
324 |
</variable>
|
|
325 |
<variable formalParameter="CODE">
|
|
326 |
<connectionPointIn>
|
|
327 |
<relPosition x="0" y="70"/>
|
|
328 |
<connection refLocalId="34" formalParameter="OUT">
|
|
329 |
<position x="710" y="345"/>
|
|
330 |
<position x="690" y="345"/>
|
|
331 |
<position x="690" y="330"/>
|
|
332 |
<position x="660" y="330"/>
|
|
333 |
</connection>
|
|
334 |
</connectionPointIn>
|
|
335 |
</variable>
|
|
336 |
</inputVariables>
|
|
337 |
<inOutVariables/>
|
|
338 |
<outputVariables>
|
|
339 |
<variable formalParameter="ACK">
|
|
340 |
<connectionPointOut>
|
|
341 |
<relPosition x="125" y="35"/>
|
|
342 |
</connectionPointOut>
|
|
343 |
</variable>
|
|
344 |
<variable formalParameter="RESULT">
|
|
345 |
<connectionPointOut>
|
|
346 |
<relPosition x="125" y="70"/>
|
|
347 |
</connectionPointOut>
|
|
348 |
</variable>
|
|
349 |
</outputVariables>
|
|
350 |
</block>
|
|
351 |
<block localId="37" width="125" height="45" typeName="INT_TO_BOOL">
|
|
352 |
<position x="870" y="170"/>
|
|
353 |
<inputVariables>
|
|
354 |
<variable formalParameter="IN">
|
|
355 |
<connectionPointIn>
|
|
356 |
<relPosition x="0" y="30"/>
|
|
357 |
<connection refLocalId="30" formalParameter="OUT">
|
|
358 |
<position x="870" y="200"/>
|
|
359 |
<position x="845" y="200"/>
|
|
360 |
<position x="845" y="185"/>
|
|
361 |
<position x="815" y="185"/>
|
|
362 |
</connection>
|
|
363 |
</connectionPointIn>
|
|
364 |
</variable>
|
|
365 |
</inputVariables>
|
|
366 |
<inOutVariables/>
|
|
367 |
<outputVariables>
|
|
368 |
<variable formalParameter="OUT">
|
|
369 |
<connectionPointOut>
|
|
370 |
<relPosition x="125" y="30"/>
|
|
371 |
</connectionPointOut>
|
|
372 |
</variable>
|
|
373 |
</outputVariables>
|
|
374 |
</block>
|
|
375 |
<block localId="38" width="80" height="65" typeName="AND">
|
|
376 |
<position x="1050" y="135"/>
|
|
377 |
<inputVariables>
|
|
378 |
<variable formalParameter="IN1">
|
|
379 |
<connectionPointIn>
|
|
380 |
<relPosition x="0" y="30"/>
|
|
381 |
<connection refLocalId="30" formalParameter="ENO">
|
|
382 |
<position x="1050" y="165"/>
|
|
383 |
<position x="815" y="165"/>
|
|
384 |
</connection>
|
|
385 |
</connectionPointIn>
|
|
386 |
</variable>
|
|
387 |
<variable formalParameter="IN2">
|
|
388 |
<connectionPointIn>
|
|
389 |
<relPosition x="0" y="55"/>
|
|
390 |
<connection refLocalId="37" formalParameter="OUT">
|
|
391 |
<position x="1050" y="190"/>
|
|
392 |
<position x="1025" y="190"/>
|
|
393 |
<position x="1025" y="200"/>
|
|
394 |
<position x="995" y="200"/>
|
|
395 |
</connection>
|
|
396 |
</connectionPointIn>
|
|
397 |
</variable>
|
|
398 |
</inputVariables>
|
|
399 |
<inOutVariables/>
|
|
400 |
<outputVariables>
|
|
401 |
<variable formalParameter="OUT">
|
|
402 |
<connectionPointOut>
|
|
403 |
<relPosition x="80" y="30"/>
|
|
404 |
</connectionPointOut>
|
|
405 |
</variable>
|
|
406 |
</outputVariables>
|
|
407 |
</block>
|
|
408 |
<inVariable localId="39" height="30" width="60">
|
|
409 |
<position x="5" y="335"/>
|
|
410 |
<connectionPointOut>
|
|
411 |
<relPosition x="60" y="15"/>
|
|
412 |
</connectionPointOut>
|
|
413 |
<expression>INT#1</expression>
|
|
414 |
</inVariable>
|
|
415 |
</FBD>
|
|
416 |
</body>
|
|
417 |
</pou>
|
|
418 |
</pous>
|
|
419 |
</types>
|
|
420 |
<instances>
|
|
421 |
<configurations>
|
|
422 |
<configuration name="conf_pytest">
|
|
423 |
<resource name="res_pytest">
|
|
424 |
<task name="pytest_task" interval="00:00:00.100000" priority="0"/>
|
|
425 |
<pouInstance name="pytest_instance" type="main_pytest"/>
|
|
426 |
</resource>
|
|
427 |
</configuration>
|
|
428 |
</configurations>
|
|
429 |
</instances>
|
|
430 |
</project>
|