|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
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"> |
|
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" |
|
11 modificationDateTime="2013-06-24T20:55:15"> |
|
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> |
|
35 <variable name="GREENLED" address="%QX0.0.2.28688.1"> |
|
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="Mode" address="%QB0.0.3.24672.0"> |
|
54 <type> |
|
55 <SINT/> |
|
56 </type> |
|
57 </variable> |
|
58 <variable name="ModeDisplay" address="%IB0.0.3.24673.0"> |
|
59 <type> |
|
60 <SINT/> |
|
61 </type> |
|
62 </variable> |
|
63 <variable name="ActualPosition" address="%ID0.0.3.24676.0"> |
|
64 <type> |
|
65 <DINT/> |
|
66 </type> |
|
67 </variable> |
|
68 <variable name="ActualVelocity" address="%ID0.0.3.24684.0"> |
|
69 <type> |
|
70 <DINT/> |
|
71 </type> |
|
72 </variable> |
|
73 <variable name="TargetPosition" address="%QD0.0.3.24698.0"> |
|
74 <type> |
|
75 <DINT/> |
|
76 </type> |
|
77 </variable> |
|
78 <variable name="TargetVelocity" address="%QD0.0.3.24831.0"> |
|
79 <type> |
|
80 <DINT/> |
|
81 </type> |
|
82 </variable> |
|
83 <variable name="DigitalInputs" address="%ID0.0.3.24829.0"> |
|
84 <type> |
|
85 <UDINT/> |
|
86 </type> |
|
87 </variable> |
|
88 </localVars> |
|
89 </interface> |
|
90 <body> |
|
91 <ST> |
|
92 <![CDATA[CLOCK := NOT CLOCK;]]> |
|
93 </ST> |
|
94 </body> |
|
95 </pou> |
|
96 <pou name="test_MCL" pouType="program"> |
|
97 <interface> |
|
98 <localVars> |
|
99 <variable name="CLOCK"> |
|
100 <type> |
|
101 <UDINT/> |
|
102 </type> |
|
103 </variable> |
|
104 </localVars> |
|
105 <localVars> |
|
106 <variable name="Axis" address="%IW0.0.3.402"> |
|
107 <type> |
|
108 <derived name="AXIS_REF"/> |
|
109 </type> |
|
110 </variable> |
|
111 </localVars> |
|
112 <localVars> |
|
113 <variable name="switch"> |
|
114 <type> |
|
115 <derived name="MC_Power"/> |
|
116 </type> |
|
117 </variable> |
|
118 <variable name="move1"> |
|
119 <type> |
|
120 <derived name="MC_MoveAbsolute"/> |
|
121 </type> |
|
122 </variable> |
|
123 <variable name="ActualPosition"> |
|
124 <type> |
|
125 <DINT/> |
|
126 </type> |
|
127 </variable> |
|
128 <variable name="Valid"> |
|
129 <type> |
|
130 <BOOL/> |
|
131 </type> |
|
132 </variable> |
|
133 <variable name="Pn"> |
|
134 <type> |
|
135 <LREAL/> |
|
136 </type> |
|
137 </variable> |
|
138 <variable name="Vn"> |
|
139 <type> |
|
140 <LREAL/> |
|
141 </type> |
|
142 </variable> |
|
143 <variable name="MC_MoveVelocity0"> |
|
144 <type> |
|
145 <derived name="MC_MoveVelocity"/> |
|
146 </type> |
|
147 </variable> |
|
148 <variable name="MC_MoveAbsolute0"> |
|
149 <type> |
|
150 <derived name="MC_MoveAbsolute"/> |
|
151 </type> |
|
152 </variable> |
|
153 <variable name="readpos"> |
|
154 <type> |
|
155 <derived name="MC_ReadActualPosition"/> |
|
156 </type> |
|
157 </variable> |
|
158 <variable name="readspeed"> |
|
159 <type> |
|
160 <derived name="MC_ReadParameter"/> |
|
161 </type> |
|
162 </variable> |
|
163 <variable name="MC_SetPosition0"> |
|
164 <type> |
|
165 <derived name="MC_SetPosition"/> |
|
166 </type> |
|
167 </variable> |
|
168 </localVars> |
|
169 </interface> |
|
170 <body> |
|
171 <FBD> |
|
172 <inVariable localId="1" height="27" width="53"> |
|
173 <position x="45" y="36"/> |
|
174 <connectionPointOut> |
|
175 <relPosition x="53" y="13"/> |
|
176 </connectionPointOut> |
|
177 <expression>CLOCK</expression> |
|
178 </inVariable> |
|
179 <block localId="2" width="111" height="116" typeName="ADD"> |
|
180 <position x="149" y="5"/> |
|
181 <inputVariables> |
|
182 <variable formalParameter="IN1"> |
|
183 <connectionPointIn> |
|
184 <relPosition x="0" y="44"/> |
|
185 <connection refLocalId="1"> |
|
186 <position x="149" y="49"/> |
|
187 <position x="98" y="49"/> |
|
188 </connection> |
|
189 </connectionPointIn> |
|
190 </variable> |
|
191 <variable formalParameter="IN2"> |
|
192 <connectionPointIn> |
|
193 <relPosition x="0" y="92"/> |
|
194 <connection refLocalId="3"> |
|
195 <position x="149" y="97"/> |
|
196 <position x="98" y="97"/> |
|
197 </connection> |
|
198 </connectionPointIn> |
|
199 </variable> |
|
200 </inputVariables> |
|
201 <inOutVariables/> |
|
202 <outputVariables> |
|
203 <variable formalParameter="OUT"> |
|
204 <connectionPointOut> |
|
205 <relPosition x="111" y="44"/> |
|
206 </connectionPointOut> |
|
207 </variable> |
|
208 </outputVariables> |
|
209 </block> |
|
210 <inVariable localId="3" height="27" width="18"> |
|
211 <position x="80" y="84"/> |
|
212 <connectionPointOut> |
|
213 <relPosition x="18" y="13"/> |
|
214 </connectionPointOut> |
|
215 <expression>1</expression> |
|
216 </inVariable> |
|
217 <outVariable localId="4" height="27" width="53"> |
|
218 <position x="302" y="36"/> |
|
219 <connectionPointIn> |
|
220 <relPosition x="0" y="13"/> |
|
221 <connection refLocalId="2" formalParameter="OUT"> |
|
222 <position x="302" y="49"/> |
|
223 <position x="260" y="49"/> |
|
224 </connection> |
|
225 </connectionPointIn> |
|
226 <expression>CLOCK</expression> |
|
227 </outVariable> |
|
228 <inVariable localId="5" height="27" width="53"> |
|
229 <position x="46" y="234"/> |
|
230 <connectionPointOut> |
|
231 <relPosition x="53" y="13"/> |
|
232 </connectionPointOut> |
|
233 <expression>CLOCK</expression> |
|
234 </inVariable> |
|
235 <inVariable localId="6" height="27" width="50"> |
|
236 <position x="49" y="268"/> |
|
237 <connectionPointOut> |
|
238 <relPosition x="50" y="13"/> |
|
239 </connectionPointOut> |
|
240 <expression>4000</expression> |
|
241 </inVariable> |
|
242 <block localId="7" width="99" height="89" typeName="GT"> |
|
243 <position x="155" y="210"/> |
|
244 <inputVariables> |
|
245 <variable formalParameter="IN1"> |
|
246 <connectionPointIn> |
|
247 <relPosition x="0" y="37"/> |
|
248 <connection refLocalId="5"> |
|
249 <position x="155" y="247"/> |
|
250 <position x="99" y="247"/> |
|
251 </connection> |
|
252 </connectionPointIn> |
|
253 </variable> |
|
254 <variable formalParameter="IN2"> |
|
255 <connectionPointIn> |
|
256 <relPosition x="0" y="71"/> |
|
257 <connection refLocalId="6"> |
|
258 <position x="155" y="281"/> |
|
259 <position x="99" y="281"/> |
|
260 </connection> |
|
261 </connectionPointIn> |
|
262 </variable> |
|
263 </inputVariables> |
|
264 <inOutVariables/> |
|
265 <outputVariables> |
|
266 <variable formalParameter="OUT"> |
|
267 <connectionPointOut> |
|
268 <relPosition x="99" y="37"/> |
|
269 </connectionPointOut> |
|
270 </variable> |
|
271 </outputVariables> |
|
272 </block> |
|
273 <block localId="8" width="159" height="204" typeName="MC_Power" instanceName="switch"> |
|
274 <position x="356" y="173"/> |
|
275 <inputVariables> |
|
276 <variable formalParameter="Axis"> |
|
277 <connectionPointIn> |
|
278 <relPosition x="0" y="38"/> |
|
279 <connection refLocalId="9"> |
|
280 <position x="356" y="211"/> |
|
281 <position x="324" y="211"/> |
|
282 </connection> |
|
283 </connectionPointIn> |
|
284 </variable> |
|
285 <variable formalParameter="Enable"> |
|
286 <connectionPointIn> |
|
287 <relPosition x="0" y="74"/> |
|
288 <connection refLocalId="7" formalParameter="OUT"> |
|
289 <position x="356" y="247"/> |
|
290 <position x="254" y="247"/> |
|
291 </connection> |
|
292 </connectionPointIn> |
|
293 </variable> |
|
294 <variable formalParameter="EnablePositive"> |
|
295 <connectionPointIn> |
|
296 <relPosition x="0" y="110"/> |
|
297 </connectionPointIn> |
|
298 </variable> |
|
299 <variable formalParameter="EnableNegative"> |
|
300 <connectionPointIn> |
|
301 <relPosition x="0" y="146"/> |
|
302 </connectionPointIn> |
|
303 </variable> |
|
304 </inputVariables> |
|
305 <inOutVariables/> |
|
306 <outputVariables> |
|
307 <variable formalParameter="Axis"> |
|
308 <connectionPointOut> |
|
309 <relPosition x="159" y="38"/> |
|
310 </connectionPointOut> |
|
311 </variable> |
|
312 <variable formalParameter="Status"> |
|
313 <connectionPointOut> |
|
314 <relPosition x="159" y="74"/> |
|
315 </connectionPointOut> |
|
316 </variable> |
|
317 <variable formalParameter="Valid"> |
|
318 <connectionPointOut> |
|
319 <relPosition x="159" y="110"/> |
|
320 </connectionPointOut> |
|
321 </variable> |
|
322 <variable formalParameter="Error"> |
|
323 <connectionPointOut> |
|
324 <relPosition x="159" y="146"/> |
|
325 </connectionPointOut> |
|
326 </variable> |
|
327 <variable formalParameter="ErrorID"> |
|
328 <connectionPointOut> |
|
329 <relPosition x="159" y="182"/> |
|
330 </connectionPointOut> |
|
331 </variable> |
|
332 </outputVariables> |
|
333 </block> |
|
334 <inVariable localId="9" height="27" width="36"> |
|
335 <position x="288" y="198"/> |
|
336 <connectionPointOut> |
|
337 <relPosition x="36" y="13"/> |
|
338 </connectionPointOut> |
|
339 <expression>Axis</expression> |
|
340 </inVariable> |
|
341 <block localId="10" width="252" height="389" typeName="MC_MoveAbsolute" instanceName="move1"> |
|
342 <position x="992" y="173"/> |
|
343 <inputVariables> |
|
344 <variable formalParameter="Axis"> |
|
345 <connectionPointIn> |
|
346 <relPosition x="0" y="38"/> |
|
347 <connection refLocalId="42" formalParameter="Axis"> |
|
348 <position x="992" y="211"/> |
|
349 <position x="853" y="211"/> |
|
350 </connection> |
|
351 </connectionPointIn> |
|
352 </variable> |
|
353 <variable formalParameter="Execute"> |
|
354 <connectionPointIn> |
|
355 <relPosition x="0" y="74"/> |
|
356 <connection refLocalId="42" formalParameter="Done"> |
|
357 <position x="992" y="247"/> |
|
358 <position x="853" y="247"/> |
|
359 </connection> |
|
360 </connectionPointIn> |
|
361 </variable> |
|
362 <variable formalParameter="ContinuousUpdate"> |
|
363 <connectionPointIn> |
|
364 <relPosition x="0" y="110"/> |
|
365 </connectionPointIn> |
|
366 </variable> |
|
367 <variable formalParameter="Position"> |
|
368 <connectionPointIn> |
|
369 <relPosition x="0" y="146"/> |
|
370 <connection refLocalId="11"> |
|
371 <position x="992" y="319"/> |
|
372 <position x="920" y="319"/> |
|
373 </connection> |
|
374 </connectionPointIn> |
|
375 </variable> |
|
376 <variable formalParameter="Velocity"> |
|
377 <connectionPointIn> |
|
378 <relPosition x="0" y="182"/> |
|
379 <connection refLocalId="12"> |
|
380 <position x="992" y="355"/> |
|
381 <position x="919" y="355"/> |
|
382 </connection> |
|
383 </connectionPointIn> |
|
384 </variable> |
|
385 <variable formalParameter="Acceleration"> |
|
386 <connectionPointIn> |
|
387 <relPosition x="0" y="218"/> |
|
388 <connection refLocalId="12"> |
|
389 <position x="992" y="391"/> |
|
390 <position x="955" y="391"/> |
|
391 <position x="955" y="355"/> |
|
392 <position x="919" y="355"/> |
|
393 </connection> |
|
394 </connectionPointIn> |
|
395 </variable> |
|
396 <variable formalParameter="Deceleration"> |
|
397 <connectionPointIn> |
|
398 <relPosition x="0" y="254"/> |
|
399 <connection refLocalId="12"> |
|
400 <position x="992" y="427"/> |
|
401 <position x="955" y="427"/> |
|
402 <position x="955" y="355"/> |
|
403 <position x="919" y="355"/> |
|
404 </connection> |
|
405 </connectionPointIn> |
|
406 </variable> |
|
407 <variable formalParameter="Jerk"> |
|
408 <connectionPointIn> |
|
409 <relPosition x="0" y="290"/> |
|
410 </connectionPointIn> |
|
411 </variable> |
|
412 <variable formalParameter="Direction"> |
|
413 <connectionPointIn> |
|
414 <relPosition x="0" y="326"/> |
|
415 </connectionPointIn> |
|
416 </variable> |
|
417 <variable formalParameter="BufferMode"> |
|
418 <connectionPointIn> |
|
419 <relPosition x="0" y="362"/> |
|
420 </connectionPointIn> |
|
421 </variable> |
|
422 </inputVariables> |
|
423 <inOutVariables/> |
|
424 <outputVariables> |
|
425 <variable formalParameter="Axis"> |
|
426 <connectionPointOut> |
|
427 <relPosition x="252" y="38"/> |
|
428 </connectionPointOut> |
|
429 </variable> |
|
430 <variable formalParameter="Done"> |
|
431 <connectionPointOut> |
|
432 <relPosition x="252" y="74"/> |
|
433 </connectionPointOut> |
|
434 </variable> |
|
435 <variable formalParameter="Busy"> |
|
436 <connectionPointOut> |
|
437 <relPosition x="252" y="110"/> |
|
438 </connectionPointOut> |
|
439 </variable> |
|
440 <variable formalParameter="Active"> |
|
441 <connectionPointOut> |
|
442 <relPosition x="252" y="146"/> |
|
443 </connectionPointOut> |
|
444 </variable> |
|
445 <variable formalParameter="CommandAborted"> |
|
446 <connectionPointOut> |
|
447 <relPosition x="252" y="182"/> |
|
448 </connectionPointOut> |
|
449 </variable> |
|
450 <variable formalParameter="Error"> |
|
451 <connectionPointOut> |
|
452 <relPosition x="252" y="218"/> |
|
453 </connectionPointOut> |
|
454 </variable> |
|
455 <variable formalParameter="ErrorID"> |
|
456 <connectionPointOut> |
|
457 <relPosition x="252" y="254"/> |
|
458 </connectionPointOut> |
|
459 </variable> |
|
460 </outputVariables> |
|
461 </block> |
|
462 <inVariable localId="11" height="27" width="54"> |
|
463 <position x="878" y="306"/> |
|
464 <connectionPointOut> |
|
465 <relPosition x="54" y="13"/> |
|
466 </connectionPointOut> |
|
467 <expression>1800.0</expression> |
|
468 </inVariable> |
|
469 <inVariable localId="12" height="27" width="46"> |
|
470 <position x="885" y="342"/> |
|
471 <connectionPointOut> |
|
472 <relPosition x="46" y="13"/> |
|
473 </connectionPointOut> |
|
474 <expression>360.0</expression> |
|
475 </inVariable> |
|
476 <block localId="23" width="255" height="352" typeName="MC_MoveVelocity" instanceName="MC_MoveVelocity0"> |
|
477 <position x="1418" y="173"/> |
|
478 <inputVariables> |
|
479 <variable formalParameter="Axis"> |
|
480 <connectionPointIn> |
|
481 <relPosition x="0" y="38"/> |
|
482 <connection refLocalId="10" formalParameter="Axis"> |
|
483 <position x="1418" y="211"/> |
|
484 <position x="1244" y="211"/> |
|
485 </connection> |
|
486 </connectionPointIn> |
|
487 </variable> |
|
488 <variable formalParameter="Execute"> |
|
489 <connectionPointIn> |
|
490 <relPosition x="0" y="74"/> |
|
491 <connection refLocalId="10" formalParameter="Done"> |
|
492 <position x="1418" y="247"/> |
|
493 <position x="1244" y="247"/> |
|
494 </connection> |
|
495 </connectionPointIn> |
|
496 </variable> |
|
497 <variable formalParameter="ContinuousUpdate"> |
|
498 <connectionPointIn> |
|
499 <relPosition x="0" y="110"/> |
|
500 </connectionPointIn> |
|
501 </variable> |
|
502 <variable formalParameter="Velocity"> |
|
503 <connectionPointIn> |
|
504 <relPosition x="0" y="146"/> |
|
505 <connection refLocalId="24"> |
|
506 <position x="1418" y="319"/> |
|
507 <position x="1349" y="319"/> |
|
508 </connection> |
|
509 </connectionPointIn> |
|
510 </variable> |
|
511 <variable formalParameter="Acceleration"> |
|
512 <connectionPointIn> |
|
513 <relPosition x="0" y="182"/> |
|
514 <connection refLocalId="13"> |
|
515 <position x="1418" y="355"/> |
|
516 <position x="1349" y="355"/> |
|
517 </connection> |
|
518 </connectionPointIn> |
|
519 </variable> |
|
520 <variable formalParameter="Deceleration"> |
|
521 <connectionPointIn> |
|
522 <relPosition x="0" y="218"/> |
|
523 <connection refLocalId="13"> |
|
524 <position x="1418" y="391"/> |
|
525 <position x="1383" y="391"/> |
|
526 <position x="1383" y="355"/> |
|
527 <position x="1349" y="355"/> |
|
528 </connection> |
|
529 </connectionPointIn> |
|
530 </variable> |
|
531 <variable formalParameter="Jerk"> |
|
532 <connectionPointIn> |
|
533 <relPosition x="0" y="254"/> |
|
534 </connectionPointIn> |
|
535 </variable> |
|
536 <variable formalParameter="Direction"> |
|
537 <connectionPointIn> |
|
538 <relPosition x="0" y="290"/> |
|
539 </connectionPointIn> |
|
540 </variable> |
|
541 <variable formalParameter="BufferMode"> |
|
542 <connectionPointIn> |
|
543 <relPosition x="0" y="326"/> |
|
544 </connectionPointIn> |
|
545 </variable> |
|
546 </inputVariables> |
|
547 <inOutVariables/> |
|
548 <outputVariables> |
|
549 <variable formalParameter="Axis"> |
|
550 <connectionPointOut> |
|
551 <relPosition x="255" y="38"/> |
|
552 </connectionPointOut> |
|
553 </variable> |
|
554 <variable formalParameter="InVelocity"> |
|
555 <connectionPointOut> |
|
556 <relPosition x="255" y="74"/> |
|
557 </connectionPointOut> |
|
558 </variable> |
|
559 <variable formalParameter="Busy"> |
|
560 <connectionPointOut> |
|
561 <relPosition x="255" y="110"/> |
|
562 </connectionPointOut> |
|
563 </variable> |
|
564 <variable formalParameter="Active"> |
|
565 <connectionPointOut> |
|
566 <relPosition x="255" y="146"/> |
|
567 </connectionPointOut> |
|
568 </variable> |
|
569 <variable formalParameter="CommandAborted"> |
|
570 <connectionPointOut> |
|
571 <relPosition x="255" y="182"/> |
|
572 </connectionPointOut> |
|
573 </variable> |
|
574 <variable formalParameter="Error"> |
|
575 <connectionPointOut> |
|
576 <relPosition x="255" y="218"/> |
|
577 </connectionPointOut> |
|
578 </variable> |
|
579 <variable formalParameter="ErrorID"> |
|
580 <connectionPointOut> |
|
581 <relPosition x="255" y="254"/> |
|
582 </connectionPointOut> |
|
583 </variable> |
|
584 </outputVariables> |
|
585 </block> |
|
586 <inVariable localId="13" height="27" width="46"> |
|
587 <position x="1303" y="342"/> |
|
588 <connectionPointOut> |
|
589 <relPosition x="46" y="13"/> |
|
590 </connectionPointOut> |
|
591 <expression>360.0</expression> |
|
592 </inVariable> |
|
593 <inVariable localId="24" height="27" width="46"> |
|
594 <position x="1303" y="306"/> |
|
595 <connectionPointOut> |
|
596 <relPosition x="46" y="13"/> |
|
597 </connectionPointOut> |
|
598 <expression>-360.0</expression> |
|
599 </inVariable> |
|
600 <block localId="25" width="235" height="350" typeName="MC_MoveAbsolute" instanceName="MC_MoveAbsolute0"> |
|
601 <position x="1862" y="175"/> |
|
602 <inputVariables> |
|
603 <variable formalParameter="Axis"> |
|
604 <connectionPointIn> |
|
605 <relPosition x="0" y="36"/> |
|
606 <connection refLocalId="23" formalParameter="Axis"> |
|
607 <position x="1862" y="211"/> |
|
608 <position x="1673" y="211"/> |
|
609 </connection> |
|
610 </connectionPointIn> |
|
611 </variable> |
|
612 <variable formalParameter="Execute"> |
|
613 <connectionPointIn> |
|
614 <relPosition x="0" y="69"/> |
|
615 <connection refLocalId="26" formalParameter="OUT"> |
|
616 <position x="1862" y="244"/> |
|
617 <position x="1825" y="244"/> |
|
618 </connection> |
|
619 </connectionPointIn> |
|
620 </variable> |
|
621 <variable formalParameter="ContinuousUpdate"> |
|
622 <connectionPointIn> |
|
623 <relPosition x="0" y="102"/> |
|
624 </connectionPointIn> |
|
625 </variable> |
|
626 <variable formalParameter="Position"> |
|
627 <connectionPointIn> |
|
628 <relPosition x="0" y="135"/> |
|
629 <connection refLocalId="40"> |
|
630 <position x="1862" y="310"/> |
|
631 <position x="1809" y="310"/> |
|
632 </connection> |
|
633 </connectionPointIn> |
|
634 </variable> |
|
635 <variable formalParameter="Velocity"> |
|
636 <connectionPointIn> |
|
637 <relPosition x="0" y="168"/> |
|
638 <connection refLocalId="37"> |
|
639 <position x="1862" y="343"/> |
|
640 <position x="1808" y="343"/> |
|
641 </connection> |
|
642 </connectionPointIn> |
|
643 </variable> |
|
644 <variable formalParameter="Acceleration"> |
|
645 <connectionPointIn> |
|
646 <relPosition x="0" y="201"/> |
|
647 <connection refLocalId="37"> |
|
648 <position x="1862" y="376"/> |
|
649 <position x="1818" y="376"/> |
|
650 <position x="1818" y="343"/> |
|
651 <position x="1808" y="343"/> |
|
652 </connection> |
|
653 </connectionPointIn> |
|
654 </variable> |
|
655 <variable formalParameter="Deceleration"> |
|
656 <connectionPointIn> |
|
657 <relPosition x="0" y="234"/> |
|
658 <connection refLocalId="37"> |
|
659 <position x="1862" y="409"/> |
|
660 <position x="1818" y="409"/> |
|
661 <position x="1818" y="343"/> |
|
662 <position x="1808" y="343"/> |
|
663 </connection> |
|
664 </connectionPointIn> |
|
665 </variable> |
|
666 <variable formalParameter="Jerk"> |
|
667 <connectionPointIn> |
|
668 <relPosition x="0" y="267"/> |
|
669 </connectionPointIn> |
|
670 </variable> |
|
671 <variable formalParameter="Direction"> |
|
672 <connectionPointIn> |
|
673 <relPosition x="0" y="300"/> |
|
674 </connectionPointIn> |
|
675 </variable> |
|
676 <variable formalParameter="BufferMode"> |
|
677 <connectionPointIn> |
|
678 <relPosition x="0" y="333"/> |
|
679 </connectionPointIn> |
|
680 </variable> |
|
681 </inputVariables> |
|
682 <inOutVariables/> |
|
683 <outputVariables> |
|
684 <variable formalParameter="Axis"> |
|
685 <connectionPointOut> |
|
686 <relPosition x="235" y="36"/> |
|
687 </connectionPointOut> |
|
688 </variable> |
|
689 <variable formalParameter="Done"> |
|
690 <connectionPointOut> |
|
691 <relPosition x="235" y="69"/> |
|
692 </connectionPointOut> |
|
693 </variable> |
|
694 <variable formalParameter="Busy"> |
|
695 <connectionPointOut> |
|
696 <relPosition x="235" y="102"/> |
|
697 </connectionPointOut> |
|
698 </variable> |
|
699 <variable formalParameter="Active"> |
|
700 <connectionPointOut> |
|
701 <relPosition x="235" y="135"/> |
|
702 </connectionPointOut> |
|
703 </variable> |
|
704 <variable formalParameter="CommandAborted"> |
|
705 <connectionPointOut> |
|
706 <relPosition x="235" y="168"/> |
|
707 </connectionPointOut> |
|
708 </variable> |
|
709 <variable formalParameter="Error"> |
|
710 <connectionPointOut> |
|
711 <relPosition x="235" y="201"/> |
|
712 </connectionPointOut> |
|
713 </variable> |
|
714 <variable formalParameter="ErrorID"> |
|
715 <connectionPointOut> |
|
716 <relPosition x="235" y="234"/> |
|
717 </connectionPointOut> |
|
718 </variable> |
|
719 </outputVariables> |
|
720 </block> |
|
721 <block localId="26" width="53" height="63" typeName="LT"> |
|
722 <position x="1772" y="214"/> |
|
723 <inputVariables> |
|
724 <variable formalParameter="IN1"> |
|
725 <connectionPointIn> |
|
726 <relPosition x="0" y="30"/> |
|
727 <connection refLocalId="36"> |
|
728 <position x="1772" y="244"/> |
|
729 <position x="1752" y="244"/> |
|
730 <position x="1752" y="237"/> |
|
731 <position x="1741" y="237"/> |
|
732 </connection> |
|
733 </connectionPointIn> |
|
734 </variable> |
|
735 <variable formalParameter="IN2"> |
|
736 <connectionPointIn> |
|
737 <relPosition x="0" y="51"/> |
|
738 <connection refLocalId="35"> |
|
739 <position x="1772" y="265"/> |
|
740 <position x="1741" y="265"/> |
|
741 </connection> |
|
742 </connectionPointIn> |
|
743 </variable> |
|
744 </inputVariables> |
|
745 <inOutVariables/> |
|
746 <outputVariables> |
|
747 <variable formalParameter="OUT"> |
|
748 <connectionPointOut> |
|
749 <relPosition x="53" y="30"/> |
|
750 </connectionPointOut> |
|
751 </variable> |
|
752 </outputVariables> |
|
753 </block> |
|
754 <block localId="28" width="176" height="248" typeName="MC_ReadActualPosition" instanceName="readpos"> |
|
755 <position x="237" y="606"/> |
|
756 <inputVariables> |
|
757 <variable formalParameter="Axis"> |
|
758 <connectionPointIn> |
|
759 <relPosition x="0" y="40"/> |
|
760 <connection refLocalId="31"> |
|
761 <position x="237" y="646"/> |
|
762 <position x="109" y="646"/> |
|
763 </connection> |
|
764 </connectionPointIn> |
|
765 </variable> |
|
766 <variable formalParameter="Enable"> |
|
767 <connectionPointIn> |
|
768 <relPosition x="0" y="80"/> |
|
769 <connection refLocalId="29"> |
|
770 <position x="237" y="686"/> |
|
771 <position x="165" y="686"/> |
|
772 </connection> |
|
773 </connectionPointIn> |
|
774 </variable> |
|
775 </inputVariables> |
|
776 <inOutVariables/> |
|
777 <outputVariables> |
|
778 <variable formalParameter="Axis"> |
|
779 <connectionPointOut> |
|
780 <relPosition x="176" y="40"/> |
|
781 </connectionPointOut> |
|
782 </variable> |
|
783 <variable formalParameter="Valid"> |
|
784 <connectionPointOut> |
|
785 <relPosition x="176" y="80"/> |
|
786 </connectionPointOut> |
|
787 </variable> |
|
788 <variable formalParameter="Busy"> |
|
789 <connectionPointOut> |
|
790 <relPosition x="176" y="112"/> |
|
791 </connectionPointOut> |
|
792 </variable> |
|
793 <variable formalParameter="Error"> |
|
794 <connectionPointOut> |
|
795 <relPosition x="176" y="152"/> |
|
796 </connectionPointOut> |
|
797 </variable> |
|
798 <variable formalParameter="ErrorID"> |
|
799 <connectionPointOut> |
|
800 <relPosition x="176" y="192"/> |
|
801 </connectionPointOut> |
|
802 </variable> |
|
803 <variable formalParameter="Position"> |
|
804 <connectionPointOut> |
|
805 <relPosition x="176" y="232"/> |
|
806 </connectionPointOut> |
|
807 </variable> |
|
808 </outputVariables> |
|
809 </block> |
|
810 <inVariable localId="29" height="32" width="96"> |
|
811 <position x="69" y="670"/> |
|
812 <connectionPointOut> |
|
813 <relPosition x="96" y="16"/> |
|
814 </connectionPointOut> |
|
815 <expression>BOOL#TRUE</expression> |
|
816 </inVariable> |
|
817 <outVariable localId="30" height="32" width="32"> |
|
818 <position x="437" y="822"/> |
|
819 <connectionPointIn> |
|
820 <relPosition x="0" y="16"/> |
|
821 <connection refLocalId="28" formalParameter="Position"> |
|
822 <position x="437" y="838"/> |
|
823 <position x="413" y="838"/> |
|
824 </connection> |
|
825 </connectionPointIn> |
|
826 <expression>Pn</expression> |
|
827 </outVariable> |
|
828 <inVariable localId="31" height="32" width="40"> |
|
829 <position x="69" y="630"/> |
|
830 <connectionPointOut> |
|
831 <relPosition x="40" y="16"/> |
|
832 </connectionPointOut> |
|
833 <expression>Axis</expression> |
|
834 </inVariable> |
|
835 <block localId="32" width="192" height="248" typeName="MC_ReadParameter" instanceName="readspeed"> |
|
836 <position x="613" y="606"/> |
|
837 <inputVariables> |
|
838 <variable formalParameter="Axis"> |
|
839 <connectionPointIn> |
|
840 <relPosition x="0" y="40"/> |
|
841 <connection refLocalId="28" formalParameter="Axis"> |
|
842 <position x="613" y="646"/> |
|
843 <position x="413" y="646"/> |
|
844 </connection> |
|
845 </connectionPointIn> |
|
846 </variable> |
|
847 <variable formalParameter="Enable"> |
|
848 <connectionPointIn> |
|
849 <relPosition x="0" y="80"/> |
|
850 <connection refLocalId="34"> |
|
851 <position x="613" y="686"/> |
|
852 <position x="597" y="686"/> |
|
853 <position x="597" y="679"/> |
|
854 <position x="581" y="679"/> |
|
855 </connection> |
|
856 </connectionPointIn> |
|
857 </variable> |
|
858 <variable formalParameter="ParameterNumber"> |
|
859 <connectionPointIn> |
|
860 <relPosition x="0" y="112"/> |
|
861 <connection refLocalId="33"> |
|
862 <position x="613" y="718"/> |
|
863 <position x="581" y="718"/> |
|
864 </connection> |
|
865 </connectionPointIn> |
|
866 </variable> |
|
867 </inputVariables> |
|
868 <inOutVariables/> |
|
869 <outputVariables> |
|
870 <variable formalParameter="Axis"> |
|
871 <connectionPointOut> |
|
872 <relPosition x="192" y="40"/> |
|
873 </connectionPointOut> |
|
874 </variable> |
|
875 <variable formalParameter="Valid"> |
|
876 <connectionPointOut> |
|
877 <relPosition x="192" y="80"/> |
|
878 </connectionPointOut> |
|
879 </variable> |
|
880 <variable formalParameter="Busy"> |
|
881 <connectionPointOut> |
|
882 <relPosition x="192" y="112"/> |
|
883 </connectionPointOut> |
|
884 </variable> |
|
885 <variable formalParameter="Error"> |
|
886 <connectionPointOut> |
|
887 <relPosition x="192" y="152"/> |
|
888 </connectionPointOut> |
|
889 </variable> |
|
890 <variable formalParameter="ErrorID"> |
|
891 <connectionPointOut> |
|
892 <relPosition x="192" y="192"/> |
|
893 </connectionPointOut> |
|
894 </variable> |
|
895 <variable formalParameter="Value"> |
|
896 <connectionPointOut> |
|
897 <relPosition x="192" y="232"/> |
|
898 </connectionPointOut> |
|
899 </variable> |
|
900 </outputVariables> |
|
901 </block> |
|
902 <inVariable localId="33" height="32" width="32"> |
|
903 <position x="549" y="702"/> |
|
904 <connectionPointOut> |
|
905 <relPosition x="32" y="16"/> |
|
906 </connectionPointOut> |
|
907 <expression>10</expression> |
|
908 </inVariable> |
|
909 <inVariable localId="34" height="32" width="96"> |
|
910 <position x="485" y="663"/> |
|
911 <connectionPointOut> |
|
912 <relPosition x="96" y="16"/> |
|
913 </connectionPointOut> |
|
914 <expression>BOOL#TRUE</expression> |
|
915 </inVariable> |
|
916 <outVariable localId="27" height="32" width="32"> |
|
917 <position x="837" y="822"/> |
|
918 <connectionPointIn> |
|
919 <relPosition x="0" y="16"/> |
|
920 <connection refLocalId="32" formalParameter="Value"> |
|
921 <position x="837" y="838"/> |
|
922 <position x="805" y="838"/> |
|
923 </connection> |
|
924 </connectionPointIn> |
|
925 <expression>Vn</expression> |
|
926 </outVariable> |
|
927 <inVariable localId="35" height="27" width="48"> |
|
928 <position x="1693" y="252"/> |
|
929 <connectionPointOut> |
|
930 <relPosition x="48" y="13"/> |
|
931 </connectionPointOut> |
|
932 <expression>-1800.0</expression> |
|
933 </inVariable> |
|
934 <inVariable localId="36" height="23" width="22"> |
|
935 <position x="1719" y="226"/> |
|
936 <connectionPointOut> |
|
937 <relPosition x="22" y="11"/> |
|
938 </connectionPointOut> |
|
939 <expression>Pn</expression> |
|
940 </inVariable> |
|
941 <inVariable localId="37" height="27" width="46"> |
|
942 <position x="1762" y="330"/> |
|
943 <connectionPointOut> |
|
944 <relPosition x="46" y="13"/> |
|
945 </connectionPointOut> |
|
946 <expression>360.0</expression> |
|
947 </inVariable> |
|
948 <inVariable localId="40" height="27" width="46"> |
|
949 <position x="1763" y="297"/> |
|
950 <connectionPointOut> |
|
951 <relPosition x="46" y="13"/> |
|
952 </connectionPointOut> |
|
953 <expression>0.0</expression> |
|
954 </inVariable> |
|
955 <block localId="42" width="189" height="204" typeName="MC_SetPosition" instanceName="MC_SetPosition0"> |
|
956 <position x="664" y="173"/> |
|
957 <inputVariables> |
|
958 <variable formalParameter="Axis"> |
|
959 <connectionPointIn> |
|
960 <relPosition x="0" y="38"/> |
|
961 <connection refLocalId="8" formalParameter="Axis"> |
|
962 <position x="664" y="211"/> |
|
963 <position x="515" y="211"/> |
|
964 </connection> |
|
965 </connectionPointIn> |
|
966 </variable> |
|
967 <variable formalParameter="Execute"> |
|
968 <connectionPointIn> |
|
969 <relPosition x="0" y="74"/> |
|
970 <connection refLocalId="8" formalParameter="Status"> |
|
971 <position x="664" y="247"/> |
|
972 <position x="515" y="247"/> |
|
973 </connection> |
|
974 </connectionPointIn> |
|
975 </variable> |
|
976 <variable formalParameter="Position"> |
|
977 <connectionPointIn> |
|
978 <relPosition x="0" y="110"/> |
|
979 <connection refLocalId="43"> |
|
980 <position x="664" y="283"/> |
|
981 <position x="629" y="283"/> |
|
982 </connection> |
|
983 </connectionPointIn> |
|
984 </variable> |
|
985 <variable formalParameter="Relative"> |
|
986 <connectionPointIn> |
|
987 <relPosition x="0" y="146"/> |
|
988 </connectionPointIn> |
|
989 </variable> |
|
990 <variable formalParameter="ExecutionMode"> |
|
991 <connectionPointIn> |
|
992 <relPosition x="0" y="182"/> |
|
993 </connectionPointIn> |
|
994 </variable> |
|
995 </inputVariables> |
|
996 <inOutVariables/> |
|
997 <outputVariables> |
|
998 <variable formalParameter="Axis"> |
|
999 <connectionPointOut> |
|
1000 <relPosition x="189" y="38"/> |
|
1001 </connectionPointOut> |
|
1002 </variable> |
|
1003 <variable formalParameter="Done"> |
|
1004 <connectionPointOut> |
|
1005 <relPosition x="189" y="74"/> |
|
1006 </connectionPointOut> |
|
1007 </variable> |
|
1008 <variable formalParameter="Busy"> |
|
1009 <connectionPointOut> |
|
1010 <relPosition x="189" y="110"/> |
|
1011 </connectionPointOut> |
|
1012 </variable> |
|
1013 <variable formalParameter="Error"> |
|
1014 <connectionPointOut> |
|
1015 <relPosition x="189" y="146"/> |
|
1016 </connectionPointOut> |
|
1017 </variable> |
|
1018 <variable formalParameter="ErrorID"> |
|
1019 <connectionPointOut> |
|
1020 <relPosition x="189" y="182"/> |
|
1021 </connectionPointOut> |
|
1022 </variable> |
|
1023 </outputVariables> |
|
1024 </block> |
|
1025 <inVariable localId="43" height="27" width="54"> |
|
1026 <position x="575" y="270"/> |
|
1027 <connectionPointOut> |
|
1028 <relPosition x="54" y="13"/> |
|
1029 </connectionPointOut> |
|
1030 <expression>0.0</expression> |
|
1031 </inVariable> |
|
1032 </FBD> |
|
1033 </body> |
|
1034 </pou> |
|
1035 </pous> |
|
1036 </types> |
|
1037 <instances> |
|
1038 <configurations> |
|
1039 <configuration name="conf"> |
|
1040 <resource name="res"> |
|
1041 <task name="main_task" interval="T#0.5ms" priority="0"> |
|
1042 <pouInstance name="main_instance" typeName="Prog"/> |
|
1043 <pouInstance name="test_MCL_instance" typeName="test_MCL"/> |
|
1044 </task> |
|
1045 </resource> |
|
1046 </configuration> |
|
1047 </configurations> |
|
1048 </instances> |
|
1049 </project> |