2045
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2050
|
2 |
<project xmlns="http://www.plcopen.org/xml/tc6.xsd"
|
|
3 |
xsi:schemaLocation="http://www.plcopen.org/xml/tc6.xsd"
|
|
4 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
5 |
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
2045
|
6 |
<fileHeader companyName="Laurent BESSARD"
|
|
7 |
productName="test_ethercat"
|
|
8 |
productVersion="1.0"
|
|
9 |
creationDateTime="2011-10-20T19:01:52"/>
|
|
10 |
<contentHeader name="test_ethercat"
|
2050
|
11 |
modificationDateTime="2012-05-20T19:25:58">
|
2045
|
12 |
<coordinateInfo>
|
|
13 |
<fbd>
|
|
14 |
<scaling x="0" y="0"/>
|
|
15 |
</fbd>
|
|
16 |
<ld>
|
|
17 |
<scaling x="0" y="0"/>
|
|
18 |
</ld>
|
|
19 |
<sfc>
|
|
20 |
<scaling x="0" y="0"/>
|
|
21 |
</sfc>
|
|
22 |
</coordinateInfo>
|
|
23 |
</contentHeader>
|
|
24 |
<types>
|
|
25 |
<dataTypes/>
|
|
26 |
<pous>
|
|
27 |
<pou name="Prog" pouType="program">
|
|
28 |
<interface>
|
|
29 |
<localVars>
|
|
30 |
<variable name="CLOCK" address="%QX0.0.2.28672.1">
|
|
31 |
<type>
|
|
32 |
<BOOL/>
|
|
33 |
</type>
|
|
34 |
</variable>
|
2050
|
35 |
<variable name="GREENLED" address="%QX0.0.2.28688.1">
|
2045
|
36 |
<type>
|
|
37 |
<BOOL/>
|
|
38 |
</type>
|
|
39 |
<initialValue>
|
|
40 |
<simpleValue value="TRUE"/>
|
|
41 |
</initialValue>
|
|
42 |
</variable>
|
|
43 |
<variable name="ControlWord" address="%QW0.0.3.24640.0">
|
|
44 |
<type>
|
|
45 |
<UINT/>
|
|
46 |
</type>
|
|
47 |
</variable>
|
|
48 |
<variable name="StatusWord" address="%IW0.0.3.24641.0">
|
|
49 |
<type>
|
|
50 |
<UINT/>
|
|
51 |
</type>
|
|
52 |
</variable>
|
|
53 |
<variable name="ModeDisplay" address="%IB0.0.3.24673.0">
|
|
54 |
<type>
|
|
55 |
<SINT/>
|
|
56 |
</type>
|
|
57 |
</variable>
|
|
58 |
<variable name="ActualPosition" address="%ID0.0.3.24676.0">
|
|
59 |
<type>
|
|
60 |
<DINT/>
|
|
61 |
</type>
|
|
62 |
</variable>
|
|
63 |
<variable name="TargetPosition" address="%QD0.0.3.24698.0">
|
|
64 |
<type>
|
|
65 |
<DINT/>
|
|
66 |
</type>
|
|
67 |
</variable>
|
|
68 |
</localVars>
|
|
69 |
</interface>
|
|
70 |
<body>
|
|
71 |
<ST>
|
|
72 |
<![CDATA[CLOCK := NOT CLOCK;]]>
|
|
73 |
</ST>
|
|
74 |
</body>
|
|
75 |
</pou>
|
|
76 |
<pou name="test_MCL" pouType="program">
|
|
77 |
<interface>
|
|
78 |
<localVars>
|
|
79 |
<variable name="CLOCK">
|
|
80 |
<type>
|
|
81 |
<UDINT/>
|
|
82 |
</type>
|
|
83 |
</variable>
|
|
84 |
</localVars>
|
|
85 |
<localVars>
|
|
86 |
<variable name="Axis" address="%IW0.0.3.0">
|
|
87 |
<type>
|
|
88 |
<derived name="AXIS_REF"/>
|
|
89 |
</type>
|
|
90 |
</variable>
|
|
91 |
</localVars>
|
|
92 |
<localVars>
|
|
93 |
<variable name="switch">
|
|
94 |
<type>
|
|
95 |
<derived name="MC_Power"/>
|
|
96 |
</type>
|
|
97 |
</variable>
|
|
98 |
<variable name="move1">
|
|
99 |
<type>
|
|
100 |
<derived name="MC_MoveAbsolute"/>
|
|
101 |
</type>
|
|
102 |
</variable>
|
|
103 |
</localVars>
|
|
104 |
</interface>
|
|
105 |
<body>
|
|
106 |
<FBD>
|
|
107 |
<inVariable localId="1" height="27" width="53">
|
|
108 |
<position x="45" y="36"/>
|
|
109 |
<connectionPointOut>
|
|
110 |
<relPosition x="53" y="13"/>
|
|
111 |
</connectionPointOut>
|
|
112 |
<expression>CLOCK</expression>
|
|
113 |
</inVariable>
|
|
114 |
<block localId="2" width="111" height="116" typeName="ADD">
|
|
115 |
<position x="149" y="5"/>
|
|
116 |
<inputVariables>
|
|
117 |
<variable formalParameter="IN1">
|
|
118 |
<connectionPointIn>
|
|
119 |
<relPosition x="0" y="44"/>
|
|
120 |
<connection refLocalId="1">
|
|
121 |
<position x="149" y="49"/>
|
|
122 |
<position x="98" y="49"/>
|
|
123 |
</connection>
|
|
124 |
</connectionPointIn>
|
|
125 |
</variable>
|
|
126 |
<variable formalParameter="IN2">
|
|
127 |
<connectionPointIn>
|
|
128 |
<relPosition x="0" y="92"/>
|
|
129 |
<connection refLocalId="3">
|
|
130 |
<position x="149" y="97"/>
|
|
131 |
<position x="98" y="97"/>
|
|
132 |
</connection>
|
|
133 |
</connectionPointIn>
|
|
134 |
</variable>
|
|
135 |
</inputVariables>
|
|
136 |
<inOutVariables/>
|
|
137 |
<outputVariables>
|
|
138 |
<variable formalParameter="OUT">
|
|
139 |
<connectionPointOut>
|
|
140 |
<relPosition x="111" y="44"/>
|
|
141 |
</connectionPointOut>
|
|
142 |
</variable>
|
|
143 |
</outputVariables>
|
|
144 |
</block>
|
|
145 |
<inVariable localId="3" height="27" width="18">
|
|
146 |
<position x="80" y="84"/>
|
|
147 |
<connectionPointOut>
|
|
148 |
<relPosition x="18" y="13"/>
|
|
149 |
</connectionPointOut>
|
|
150 |
<expression>1</expression>
|
|
151 |
</inVariable>
|
|
152 |
<outVariable localId="4" height="27" width="53">
|
|
153 |
<position x="302" y="36"/>
|
|
154 |
<connectionPointIn>
|
|
155 |
<relPosition x="0" y="13"/>
|
|
156 |
<connection refLocalId="2" formalParameter="OUT">
|
|
157 |
<position x="302" y="49"/>
|
|
158 |
<position x="260" y="49"/>
|
|
159 |
</connection>
|
|
160 |
</connectionPointIn>
|
|
161 |
<expression>CLOCK</expression>
|
|
162 |
</outVariable>
|
|
163 |
<inVariable localId="5" height="27" width="53">
|
|
164 |
<position x="46" y="234"/>
|
|
165 |
<connectionPointOut>
|
|
166 |
<relPosition x="53" y="13"/>
|
|
167 |
</connectionPointOut>
|
|
168 |
<expression>CLOCK</expression>
|
|
169 |
</inVariable>
|
|
170 |
<inVariable localId="6" height="27" width="50">
|
|
171 |
<position x="49" y="268"/>
|
|
172 |
<connectionPointOut>
|
|
173 |
<relPosition x="50" y="13"/>
|
|
174 |
</connectionPointOut>
|
|
175 |
<expression>4000</expression>
|
|
176 |
</inVariable>
|
|
177 |
<block localId="7" width="99" height="89" typeName="GT">
|
|
178 |
<position x="155" y="210"/>
|
|
179 |
<inputVariables>
|
|
180 |
<variable formalParameter="IN1">
|
|
181 |
<connectionPointIn>
|
|
182 |
<relPosition x="0" y="37"/>
|
|
183 |
<connection refLocalId="5">
|
|
184 |
<position x="155" y="247"/>
|
|
185 |
<position x="99" y="247"/>
|
|
186 |
</connection>
|
|
187 |
</connectionPointIn>
|
|
188 |
</variable>
|
|
189 |
<variable formalParameter="IN2">
|
|
190 |
<connectionPointIn>
|
|
191 |
<relPosition x="0" y="71"/>
|
|
192 |
<connection refLocalId="6">
|
|
193 |
<position x="155" y="281"/>
|
|
194 |
<position x="99" y="281"/>
|
|
195 |
</connection>
|
|
196 |
</connectionPointIn>
|
|
197 |
</variable>
|
|
198 |
</inputVariables>
|
|
199 |
<inOutVariables/>
|
|
200 |
<outputVariables>
|
|
201 |
<variable formalParameter="OUT">
|
|
202 |
<connectionPointOut>
|
|
203 |
<relPosition x="99" y="37"/>
|
|
204 |
</connectionPointOut>
|
|
205 |
</variable>
|
|
206 |
</outputVariables>
|
|
207 |
</block>
|
|
208 |
<block localId="8" width="159" height="204" typeName="MC_Power" instanceName="switch">
|
|
209 |
<position x="398" y="173"/>
|
|
210 |
<inputVariables>
|
|
211 |
<variable formalParameter="Axis">
|
|
212 |
<connectionPointIn>
|
|
213 |
<relPosition x="0" y="38"/>
|
|
214 |
<connection refLocalId="9">
|
|
215 |
<position x="398" y="211"/>
|
|
216 |
<position x="344" y="211"/>
|
|
217 |
</connection>
|
|
218 |
</connectionPointIn>
|
|
219 |
</variable>
|
|
220 |
<variable formalParameter="Enable">
|
|
221 |
<connectionPointIn>
|
|
222 |
<relPosition x="0" y="74"/>
|
|
223 |
<connection refLocalId="7" formalParameter="OUT">
|
|
224 |
<position x="398" y="247"/>
|
|
225 |
<position x="254" y="247"/>
|
|
226 |
</connection>
|
|
227 |
</connectionPointIn>
|
|
228 |
</variable>
|
|
229 |
<variable formalParameter="EnablePositive">
|
|
230 |
<connectionPointIn>
|
|
231 |
<relPosition x="0" y="110"/>
|
|
232 |
</connectionPointIn>
|
|
233 |
</variable>
|
|
234 |
<variable formalParameter="EnableNegative">
|
|
235 |
<connectionPointIn>
|
|
236 |
<relPosition x="0" y="146"/>
|
|
237 |
</connectionPointIn>
|
|
238 |
</variable>
|
|
239 |
</inputVariables>
|
|
240 |
<inOutVariables/>
|
|
241 |
<outputVariables>
|
|
242 |
<variable formalParameter="Axis">
|
|
243 |
<connectionPointOut>
|
|
244 |
<relPosition x="159" y="38"/>
|
|
245 |
</connectionPointOut>
|
|
246 |
</variable>
|
|
247 |
<variable formalParameter="Status">
|
|
248 |
<connectionPointOut>
|
|
249 |
<relPosition x="159" y="74"/>
|
|
250 |
</connectionPointOut>
|
|
251 |
</variable>
|
|
252 |
<variable formalParameter="Valid">
|
|
253 |
<connectionPointOut>
|
|
254 |
<relPosition x="159" y="110"/>
|
|
255 |
</connectionPointOut>
|
|
256 |
</variable>
|
|
257 |
<variable formalParameter="Error">
|
|
258 |
<connectionPointOut>
|
|
259 |
<relPosition x="159" y="146"/>
|
|
260 |
</connectionPointOut>
|
|
261 |
</variable>
|
|
262 |
<variable formalParameter="ErrorID">
|
|
263 |
<connectionPointOut>
|
|
264 |
<relPosition x="159" y="182"/>
|
|
265 |
</connectionPointOut>
|
|
266 |
</variable>
|
|
267 |
</outputVariables>
|
|
268 |
</block>
|
|
269 |
<inVariable localId="9" height="27" width="36">
|
|
270 |
<position x="308" y="198"/>
|
|
271 |
<connectionPointOut>
|
|
272 |
<relPosition x="36" y="13"/>
|
|
273 |
</connectionPointOut>
|
|
274 |
<expression>Axis</expression>
|
|
275 |
</inVariable>
|
|
276 |
<block localId="10" width="252" height="389" typeName="MC_MoveAbsolute" instanceName="move1">
|
|
277 |
<position x="744" y="173"/>
|
|
278 |
<inputVariables>
|
|
279 |
<variable formalParameter="Axis">
|
|
280 |
<connectionPointIn>
|
|
281 |
<relPosition x="0" y="38"/>
|
|
282 |
<connection refLocalId="8" formalParameter="Axis">
|
|
283 |
<position x="744" y="211"/>
|
|
284 |
<position x="557" y="211"/>
|
|
285 |
</connection>
|
|
286 |
</connectionPointIn>
|
|
287 |
</variable>
|
|
288 |
<variable formalParameter="Execute">
|
|
289 |
<connectionPointIn>
|
|
290 |
<relPosition x="0" y="74"/>
|
|
291 |
<connection refLocalId="8" formalParameter="Status">
|
|
292 |
<position x="744" y="247"/>
|
|
293 |
<position x="557" y="247"/>
|
|
294 |
</connection>
|
|
295 |
</connectionPointIn>
|
|
296 |
</variable>
|
|
297 |
<variable formalParameter="ContinuousUpdate">
|
|
298 |
<connectionPointIn>
|
|
299 |
<relPosition x="0" y="110"/>
|
|
300 |
</connectionPointIn>
|
|
301 |
</variable>
|
|
302 |
<variable formalParameter="Position">
|
|
303 |
<connectionPointIn>
|
|
304 |
<relPosition x="0" y="146"/>
|
|
305 |
<connection refLocalId="11">
|
|
306 |
<position x="744" y="319"/>
|
|
307 |
<position x="672" y="319"/>
|
|
308 |
</connection>
|
|
309 |
</connectionPointIn>
|
|
310 |
</variable>
|
|
311 |
<variable formalParameter="Velocity">
|
|
312 |
<connectionPointIn>
|
|
313 |
<relPosition x="0" y="182"/>
|
|
314 |
<connection refLocalId="12">
|
|
315 |
<position x="744" y="355"/>
|
|
316 |
<position x="671" y="355"/>
|
|
317 |
</connection>
|
|
318 |
</connectionPointIn>
|
|
319 |
</variable>
|
|
320 |
<variable formalParameter="Acceleration">
|
|
321 |
<connectionPointIn>
|
|
322 |
<relPosition x="0" y="218"/>
|
|
323 |
<connection refLocalId="12">
|
|
324 |
<position x="744" y="391"/>
|
|
325 |
<position x="707" y="391"/>
|
|
326 |
<position x="707" y="355"/>
|
|
327 |
<position x="671" y="355"/>
|
|
328 |
</connection>
|
|
329 |
</connectionPointIn>
|
|
330 |
</variable>
|
|
331 |
<variable formalParameter="Deceleration">
|
|
332 |
<connectionPointIn>
|
|
333 |
<relPosition x="0" y="254"/>
|
|
334 |
<connection refLocalId="12">
|
|
335 |
<position x="744" y="427"/>
|
|
336 |
<position x="707" y="427"/>
|
|
337 |
<position x="707" y="355"/>
|
|
338 |
<position x="671" y="355"/>
|
|
339 |
</connection>
|
|
340 |
</connectionPointIn>
|
|
341 |
</variable>
|
|
342 |
<variable formalParameter="Jerk">
|
|
343 |
<connectionPointIn>
|
|
344 |
<relPosition x="0" y="290"/>
|
|
345 |
</connectionPointIn>
|
|
346 |
</variable>
|
|
347 |
<variable formalParameter="Direction">
|
|
348 |
<connectionPointIn>
|
|
349 |
<relPosition x="0" y="326"/>
|
|
350 |
</connectionPointIn>
|
|
351 |
</variable>
|
|
352 |
<variable formalParameter="BufferMode">
|
|
353 |
<connectionPointIn>
|
|
354 |
<relPosition x="0" y="362"/>
|
|
355 |
</connectionPointIn>
|
|
356 |
</variable>
|
|
357 |
</inputVariables>
|
|
358 |
<inOutVariables/>
|
|
359 |
<outputVariables>
|
|
360 |
<variable formalParameter="Axis">
|
|
361 |
<connectionPointOut>
|
|
362 |
<relPosition x="252" y="38"/>
|
|
363 |
</connectionPointOut>
|
|
364 |
</variable>
|
|
365 |
<variable formalParameter="Done">
|
|
366 |
<connectionPointOut>
|
|
367 |
<relPosition x="252" y="74"/>
|
|
368 |
</connectionPointOut>
|
|
369 |
</variable>
|
|
370 |
<variable formalParameter="Busy">
|
|
371 |
<connectionPointOut>
|
|
372 |
<relPosition x="252" y="110"/>
|
|
373 |
</connectionPointOut>
|
|
374 |
</variable>
|
|
375 |
<variable formalParameter="Active">
|
|
376 |
<connectionPointOut>
|
|
377 |
<relPosition x="252" y="146"/>
|
|
378 |
</connectionPointOut>
|
|
379 |
</variable>
|
|
380 |
<variable formalParameter="CommandAborted">
|
|
381 |
<connectionPointOut>
|
|
382 |
<relPosition x="252" y="182"/>
|
|
383 |
</connectionPointOut>
|
|
384 |
</variable>
|
|
385 |
<variable formalParameter="Error">
|
|
386 |
<connectionPointOut>
|
|
387 |
<relPosition x="252" y="218"/>
|
|
388 |
</connectionPointOut>
|
|
389 |
</variable>
|
|
390 |
<variable formalParameter="ErrorID">
|
|
391 |
<connectionPointOut>
|
|
392 |
<relPosition x="252" y="254"/>
|
|
393 |
</connectionPointOut>
|
|
394 |
</variable>
|
|
395 |
</outputVariables>
|
|
396 |
</block>
|
|
397 |
<inVariable localId="11" height="27" width="54">
|
|
398 |
<position x="630" y="306"/>
|
|
399 |
<connectionPointOut>
|
|
400 |
<relPosition x="54" y="13"/>
|
|
401 |
</connectionPointOut>
|
|
402 |
<expression>1800.0</expression>
|
|
403 |
</inVariable>
|
|
404 |
<inVariable localId="12" height="27" width="46">
|
|
405 |
<position x="637" y="342"/>
|
|
406 |
<connectionPointOut>
|
|
407 |
<relPosition x="46" y="13"/>
|
|
408 |
</connectionPointOut>
|
|
409 |
<expression>360.0</expression>
|
|
410 |
</inVariable>
|
|
411 |
</FBD>
|
|
412 |
</body>
|
|
413 |
</pou>
|
|
414 |
</pous>
|
|
415 |
</types>
|
|
416 |
<instances>
|
|
417 |
<configurations>
|
|
418 |
<configuration name="conf">
|
|
419 |
<resource name="res">
|
|
420 |
<task name="main_task" interval="T#0.5ms" priority="0">
|
|
421 |
<pouInstance name="main_instance" typeName="Prog"/>
|
|
422 |
<pouInstance name="test_MCL_instance" typeName="test_MCL"/>
|
|
423 |
</task>
|
|
424 |
</resource>
|
|
425 |
</configuration>
|
|
426 |
</configurations>
|
|
427 |
</instances>
|
|
428 |
</project>
|