|
1 <?xml version='1.0' encoding='utf-8'?> |
|
2 <project xmlns="http://www.plcopen.org/xml/tc6_0201" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xhtml="http://www.w3.org/1999/xhtml" xsi:schemaLocation="http://www.plcopen.org/xml/tc6_0201"> |
|
3 <fileHeader companyName="Unknown" productName="Unnamed" productVersion="1" creationDateTime="2012-09-12T23:30:19"/> |
|
4 <contentHeader name="Unnamed" modificationDateTime="2015-06-18T11:28:47"> |
|
5 <coordinateInfo> |
|
6 <pageSize x="1050" y="1485"/> |
|
7 <fbd> |
|
8 <scaling x="5" y="5"/> |
|
9 </fbd> |
|
10 <ld> |
|
11 <scaling x="0" y="0"/> |
|
12 </ld> |
|
13 <sfc> |
|
14 <scaling x="0" y="0"/> |
|
15 </sfc> |
|
16 </coordinateInfo> |
|
17 </contentHeader> |
|
18 <types> |
|
19 <dataTypes/> |
|
20 <pous> |
|
21 <pou name="main" pouType="program"> |
|
22 <interface> |
|
23 <externalVars> |
|
24 <variable name="Power_ON"> |
|
25 <type> |
|
26 <BOOL/> |
|
27 </type> |
|
28 </variable> |
|
29 <variable name="Power_OFF"> |
|
30 <type> |
|
31 <BOOL/> |
|
32 </type> |
|
33 </variable> |
|
34 <variable name="power"> |
|
35 <type> |
|
36 <BOOL/> |
|
37 </type> |
|
38 </variable> |
|
39 <variable name="DrawTest"> |
|
40 <type> |
|
41 <BOOL/> |
|
42 </type> |
|
43 </variable> |
|
44 <variable name="DrawLogo"> |
|
45 <type> |
|
46 <BOOL/> |
|
47 </type> |
|
48 </variable> |
|
49 <variable name="DrawEscher"> |
|
50 <type> |
|
51 <BOOL/> |
|
52 </type> |
|
53 </variable> |
|
54 <variable name="Detect_Circle"> |
|
55 <type> |
|
56 <BOOL/> |
|
57 </type> |
|
58 </variable> |
|
59 </externalVars> |
|
60 <localVars> |
|
61 <variable name="RS0"> |
|
62 <type> |
|
63 <derived name="RS"/> |
|
64 </type> |
|
65 </variable> |
|
66 </localVars> |
|
67 </interface> |
|
68 <body> |
|
69 <FBD> |
|
70 <inVariable localId="286" executionOrderId="0" height="25" width="65" negated="false"> |
|
71 <position x="170" y="155"/> |
|
72 <connectionPointOut> |
|
73 <relPosition x="65" y="10"/> |
|
74 </connectionPointOut> |
|
75 <expression>Power_ON</expression> |
|
76 </inVariable> |
|
77 <block localId="287" typeName="RS" instanceName="RS0" executionOrderId="0" height="65" width="45"> |
|
78 <position x="395" y="190"/> |
|
79 <inputVariables> |
|
80 <variable formalParameter="S"> |
|
81 <connectionPointIn> |
|
82 <relPosition x="0" y="30"/> |
|
83 <connection refLocalId="286"> |
|
84 <position x="395" y="220"/> |
|
85 <position x="315" y="220"/> |
|
86 <position x="315" y="165"/> |
|
87 <position x="235" y="165"/> |
|
88 </connection> |
|
89 </connectionPointIn> |
|
90 </variable> |
|
91 <variable formalParameter="R1"> |
|
92 <connectionPointIn> |
|
93 <relPosition x="0" y="55"/> |
|
94 <connection refLocalId="288"> |
|
95 <position x="395" y="245"/> |
|
96 <position x="315" y="245"/> |
|
97 <position x="315" y="265"/> |
|
98 <position x="235" y="265"/> |
|
99 </connection> |
|
100 </connectionPointIn> |
|
101 </variable> |
|
102 </inputVariables> |
|
103 <inOutVariables/> |
|
104 <outputVariables> |
|
105 <variable formalParameter="Q1"> |
|
106 <connectionPointOut> |
|
107 <relPosition x="45" y="30"/> |
|
108 </connectionPointOut> |
|
109 </variable> |
|
110 </outputVariables> |
|
111 </block> |
|
112 <inVariable localId="288" executionOrderId="0" height="25" width="70" negated="false"> |
|
113 <position x="165" y="255"/> |
|
114 <connectionPointOut> |
|
115 <relPosition x="70" y="10"/> |
|
116 </connectionPointOut> |
|
117 <expression>Power_OFF</expression> |
|
118 </inVariable> |
|
119 <outVariable localId="289" executionOrderId="0" height="25" width="45" negated="false"> |
|
120 <position x="510" y="220"/> |
|
121 <connectionPointIn> |
|
122 <relPosition x="0" y="10"/> |
|
123 <connection refLocalId="287" formalParameter="Q1"> |
|
124 <position x="510" y="230"/> |
|
125 <position x="475" y="230"/> |
|
126 <position x="475" y="220"/> |
|
127 <position x="440" y="220"/> |
|
128 </connection> |
|
129 </connectionPointIn> |
|
130 <expression>power</expression> |
|
131 </outVariable> |
|
132 </FBD> |
|
133 </body> |
|
134 <documentation> |
|
135 <xhtml:p><![CDATA[]]></xhtml:p> |
|
136 </documentation> |
|
137 </pou> |
|
138 <pou name="ReadGUIdata" pouType="program"> |
|
139 <interface> |
|
140 <localVars> |
|
141 <variable name="tmp"> |
|
142 <type> |
|
143 <INT/> |
|
144 </type> |
|
145 </variable> |
|
146 </localVars> |
|
147 <externalVars> |
|
148 <variable name="power"> |
|
149 <type> |
|
150 <BOOL/> |
|
151 </type> |
|
152 </variable> |
|
153 <variable name="XaxisPos"> |
|
154 <type> |
|
155 <INT/> |
|
156 </type> |
|
157 </variable> |
|
158 <variable name="YaxisPos"> |
|
159 <type> |
|
160 <INT/> |
|
161 </type> |
|
162 </variable> |
|
163 <variable name="ZaxisPos"> |
|
164 <type> |
|
165 <INT/> |
|
166 </type> |
|
167 </variable> |
|
168 <variable name="TaxisPos"> |
|
169 <type> |
|
170 <INT/> |
|
171 </type> |
|
172 </variable> |
|
173 </externalVars> |
|
174 </interface> |
|
175 <body> |
|
176 <FBD> |
|
177 <outVariable localId="211" executionOrderId="0" height="25" width="60" negated="false"> |
|
178 <position x="565" y="195"/> |
|
179 <connectionPointIn> |
|
180 <relPosition x="0" y="10"/> |
|
181 <connection refLocalId="215"> |
|
182 <position x="565" y="205"/> |
|
183 <position x="370" y="205"/> |
|
184 <position x="370" y="195"/> |
|
185 <position x="330" y="195"/> |
|
186 </connection> |
|
187 </connectionPointIn> |
|
188 <expression>XaxisPos</expression> |
|
189 </outVariable> |
|
190 <block localId="213" typeName="ADD" executionOrderId="0" height="65" width="60"> |
|
191 <position x="220" y="295"/> |
|
192 <inputVariables> |
|
193 <variable formalParameter="IN1"> |
|
194 <connectionPointIn> |
|
195 <relPosition x="0" y="30"/> |
|
196 <connection refLocalId="212"> |
|
197 <position x="220" y="325"/> |
|
198 <position x="210" y="325"/> |
|
199 <position x="210" y="270"/> |
|
200 <position x="380" y="270"/> |
|
201 <position x="380" y="325"/> |
|
202 <position x="365" y="325"/> |
|
203 </connection> |
|
204 </connectionPointIn> |
|
205 </variable> |
|
206 <variable formalParameter="IN2"> |
|
207 <connectionPointIn> |
|
208 <relPosition x="0" y="55"/> |
|
209 <connection refLocalId="217" formalParameter="OUT"> |
|
210 <position x="220" y="350"/> |
|
211 <position x="180" y="350"/> |
|
212 </connection> |
|
213 </connectionPointIn> |
|
214 </variable> |
|
215 </inputVariables> |
|
216 <inOutVariables/> |
|
217 <outputVariables> |
|
218 <variable formalParameter="OUT"> |
|
219 <connectionPointOut> |
|
220 <relPosition x="60" y="30"/> |
|
221 </connectionPointOut> |
|
222 </variable> |
|
223 </outputVariables> |
|
224 </block> |
|
225 <inOutVariable localId="212" executionOrderId="0" height="25" width="30" negatedOut="false" negatedIn="false"> |
|
226 <position x="335" y="315"/> |
|
227 <connectionPointIn> |
|
228 <relPosition x="0" y="10"/> |
|
229 <connection refLocalId="213" formalParameter="OUT"> |
|
230 <position x="335" y="325"/> |
|
231 <position x="280" y="325"/> |
|
232 </connection> |
|
233 </connectionPointIn> |
|
234 <connectionPointOut> |
|
235 <relPosition x="30" y="10"/> |
|
236 </connectionPointOut> |
|
237 <expression>tmp</expression> |
|
238 </inOutVariable> |
|
239 <inVariable localId="214" executionOrderId="0" height="25" width="20" negated="false"> |
|
240 <position x="65" y="385"/> |
|
241 <connectionPointOut> |
|
242 <relPosition x="20" y="10"/> |
|
243 </connectionPointOut> |
|
244 <expression>1</expression> |
|
245 </inVariable> |
|
246 <inVariable localId="215" executionOrderId="0" height="25" width="30" negated="false"> |
|
247 <position x="300" y="185"/> |
|
248 <connectionPointOut> |
|
249 <relPosition x="30" y="10"/> |
|
250 </connectionPointOut> |
|
251 <expression>tmp</expression> |
|
252 </inVariable> |
|
253 <outVariable localId="216" executionOrderId="0" height="25" width="60" negated="false"> |
|
254 <position x="540" y="310"/> |
|
255 <connectionPointIn> |
|
256 <relPosition x="0" y="10"/> |
|
257 <connection refLocalId="215"> |
|
258 <position x="540" y="320"/> |
|
259 <position x="435" y="320"/> |
|
260 <position x="435" y="195"/> |
|
261 <position x="330" y="195"/> |
|
262 </connection> |
|
263 </connectionPointIn> |
|
264 <expression>YaxisPos</expression> |
|
265 </outVariable> |
|
266 <block localId="217" typeName="SEL" executionOrderId="0" height="85" width="60"> |
|
267 <position x="120" y="320"/> |
|
268 <inputVariables> |
|
269 <variable formalParameter="G"> |
|
270 <connectionPointIn> |
|
271 <relPosition x="0" y="30"/> |
|
272 <connection refLocalId="219"> |
|
273 <position x="120" y="350"/> |
|
274 <position x="97" y="350"/> |
|
275 <position x="97" y="345"/> |
|
276 <position x="85" y="345"/> |
|
277 </connection> |
|
278 </connectionPointIn> |
|
279 </variable> |
|
280 <variable formalParameter="IN0"> |
|
281 <connectionPointIn> |
|
282 <relPosition x="0" y="50"/> |
|
283 <connection refLocalId="218"> |
|
284 <position x="120" y="370"/> |
|
285 <position x="85" y="370"/> |
|
286 </connection> |
|
287 </connectionPointIn> |
|
288 </variable> |
|
289 <variable formalParameter="IN1"> |
|
290 <connectionPointIn> |
|
291 <relPosition x="0" y="70"/> |
|
292 <connection refLocalId="214"> |
|
293 <position x="120" y="390"/> |
|
294 <position x="102" y="390"/> |
|
295 <position x="102" y="395"/> |
|
296 <position x="85" y="395"/> |
|
297 </connection> |
|
298 </connectionPointIn> |
|
299 </variable> |
|
300 </inputVariables> |
|
301 <inOutVariables/> |
|
302 <outputVariables> |
|
303 <variable formalParameter="OUT"> |
|
304 <connectionPointOut> |
|
305 <relPosition x="60" y="30"/> |
|
306 </connectionPointOut> |
|
307 </variable> |
|
308 </outputVariables> |
|
309 </block> |
|
310 <inVariable localId="218" executionOrderId="0" height="25" width="20" negated="false"> |
|
311 <position x="65" y="360"/> |
|
312 <connectionPointOut> |
|
313 <relPosition x="20" y="10"/> |
|
314 </connectionPointOut> |
|
315 <expression>0</expression> |
|
316 </inVariable> |
|
317 <inVariable localId="219" executionOrderId="0" height="25" width="45" negated="false"> |
|
318 <position x="40" y="335"/> |
|
319 <connectionPointOut> |
|
320 <relPosition x="45" y="10"/> |
|
321 </connectionPointOut> |
|
322 <expression>power</expression> |
|
323 </inVariable> |
|
324 </FBD> |
|
325 </body> |
|
326 <documentation> |
|
327 <xhtml:p><![CDATA[]]></xhtml:p> |
|
328 </documentation> |
|
329 </pou> |
|
330 <pou name="Declarations" pouType="program"> |
|
331 <interface> |
|
332 <localVars> |
|
333 <variable name="LocalVar0"> |
|
334 <type> |
|
335 <DINT/> |
|
336 </type> |
|
337 </variable> |
|
338 <variable name="LocalVar1"> |
|
339 <type> |
|
340 <DINT/> |
|
341 </type> |
|
342 </variable> |
|
343 </localVars> |
|
344 </interface> |
|
345 <body> |
|
346 <FBD> |
|
347 <inVariable localId="127" executionOrderId="0" height="25" width="60" negated="false"> |
|
348 <position x="235" y="205"/> |
|
349 <connectionPointOut> |
|
350 <relPosition x="60" y="10"/> |
|
351 </connectionPointOut> |
|
352 <expression>LocalVar0</expression> |
|
353 </inVariable> |
|
354 <outVariable localId="128" executionOrderId="0" height="25" width="60" negated="false"> |
|
355 <position x="450" y="190"/> |
|
356 <connectionPointIn> |
|
357 <relPosition x="0" y="10"/> |
|
358 <connection refLocalId="127"> |
|
359 <position x="450" y="200"/> |
|
360 <position x="372" y="200"/> |
|
361 <position x="372" y="215"/> |
|
362 <position x="295" y="215"/> |
|
363 </connection> |
|
364 </connectionPointIn> |
|
365 <expression>LocalVar1</expression> |
|
366 </outVariable> |
|
367 </FBD> |
|
368 </body> |
|
369 <documentation> |
|
370 <xhtml:p><![CDATA[]]></xhtml:p> |
|
371 </documentation> |
|
372 </pou> |
|
373 </pous> |
|
374 </types> |
|
375 <instances> |
|
376 <configurations> |
|
377 <configuration name="config"> |
|
378 <resource name="resource1"> |
|
379 <task name="InitOneShot" priority="0" single="Initialize"> |
|
380 <pouInstance name="Initializer" typeName="Declarations"/> |
|
381 </task> |
|
382 <task name="ControlTask" priority="0" interval="T#2ms"> |
|
383 <pouInstance name="MainInstance" typeName="main"/> |
|
384 </task> |
|
385 <task name="GUIupdate" priority="0" interval="T#40ms"> |
|
386 <pouInstance name="PosReader" typeName="ReadGUIdata"/> |
|
387 </task> |
|
388 <globalVars> |
|
389 <variable name="Initialize"> |
|
390 <type> |
|
391 <BOOL/> |
|
392 </type> |
|
393 <initialValue> |
|
394 <simpleValue value="TRUE"/> |
|
395 </initialValue> |
|
396 </variable> |
|
397 <variable name="power"> |
|
398 <type> |
|
399 <BOOL/> |
|
400 </type> |
|
401 <initialValue> |
|
402 <simpleValue value="TRUE"/> |
|
403 </initialValue> |
|
404 </variable> |
|
405 </globalVars> |
|
406 </resource> |
|
407 </configuration> |
|
408 </configurations> |
|
409 </instances> |
|
410 </project> |