<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.plcopen.org/xml/tc6.xsd"
xsi:schemaLocation="http://www.plcopen.org/xml/tc6.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<fileHeader companyName="Laurent BESSARD"
productName="test_ethercat"
creationDateTime="2011-10-20T19:01:52"/>
<contentHeader name="test_ethercat"
modificationDateTime="2012-10-30T00:18:20">
<pou name="Prog" pouType="program">
<variable name="CLOCK" address="%QX0.0.2.28672.1">
<variable name="GREENLED" address="%QX0.0.2.28688.1">
<simpleValue value="TRUE"/>
<variable name="ControlWord" address="%QW0.0.3.24640.0">
<variable name="StatusWord" address="%IW0.0.3.24641.0">
<variable name="ModeDisplay" address="%IB0.0.3.24673.0">
<variable name="ActualPosition" address="%ID0.0.3.24676.0">
<variable name="TargetPosition" address="%QD0.0.3.24698.0">
<![CDATA[CLOCK := NOT CLOCK;]]>
<pou name="test_MCL" pouType="program">
<variable name="Axis" address="%IW0.0.3.0">
<derived name="AXIS_REF"/>
<derived name="MC_Power"/>
<derived name="MC_MoveAbsolute"/>
<variable name="EtherLabSDOUpload0">
<derived name="EtherLabSDOUpload"/>
<variable name="ActualPosition">
<inVariable localId="1" height="27" width="53">
<position x="45" y="36"/>
<relPosition x="53" y="13"/>
<expression>CLOCK</expression>
<block localId="2" width="111" height="116" typeName="ADD">
<position x="149" y="5"/>
<variable formalParameter="IN1">
<relPosition x="0" y="44"/>
<connection refLocalId="1">
<position x="149" y="49"/>
<position x="98" y="49"/>
<variable formalParameter="IN2">
<relPosition x="0" y="92"/>
<connection refLocalId="3">
<position x="149" y="97"/>
<position x="98" y="97"/>
<variable formalParameter="OUT">
<relPosition x="111" y="44"/>
<inVariable localId="3" height="27" width="18">
<position x="80" y="84"/>
<relPosition x="18" y="13"/>
<expression>1</expression>
<outVariable localId="4" height="27" width="53">
<position x="302" y="36"/>
<relPosition x="0" y="13"/>
<connection refLocalId="2" formalParameter="OUT">
<position x="302" y="49"/>
<position x="260" y="49"/>
<expression>CLOCK</expression>
<inVariable localId="5" height="27" width="53">
<position x="46" y="234"/>
<relPosition x="53" y="13"/>
<expression>CLOCK</expression>
<inVariable localId="6" height="27" width="50">
<position x="49" y="268"/>
<relPosition x="50" y="13"/>
<expression>4000</expression>
<block localId="7" width="99" height="89" typeName="GT">
<position x="155" y="210"/>
<variable formalParameter="IN1">
<relPosition x="0" y="37"/>
<connection refLocalId="5">
<position x="155" y="247"/>
<position x="99" y="247"/>
<variable formalParameter="IN2">
<relPosition x="0" y="71"/>
<connection refLocalId="6">
<position x="155" y="281"/>
<position x="99" y="281"/>
<variable formalParameter="OUT">
<relPosition x="99" y="37"/>
<block localId="8" width="159" height="204" typeName="MC_Power" instanceName="switch">
<position x="398" y="173"/>
<variable formalParameter="Axis">
<relPosition x="0" y="38"/>
<connection refLocalId="9">
<position x="398" y="211"/>
<position x="344" y="211"/>
<variable formalParameter="Enable">
<relPosition x="0" y="74"/>
<connection refLocalId="7" formalParameter="OUT">
<position x="398" y="247"/>
<position x="254" y="247"/>
<variable formalParameter="EnablePositive">
<relPosition x="0" y="110"/>
<variable formalParameter="EnableNegative">
<relPosition x="0" y="146"/>
<variable formalParameter="Axis">
<relPosition x="159" y="38"/>
<variable formalParameter="Status">
<relPosition x="159" y="74"/>
<variable formalParameter="Valid">
<relPosition x="159" y="110"/>
<variable formalParameter="Error">
<relPosition x="159" y="146"/>
<variable formalParameter="ErrorID">
<relPosition x="159" y="182"/>
<inVariable localId="9" height="27" width="36">
<position x="308" y="198"/>
<relPosition x="36" y="13"/>
<expression>Axis</expression>
<block localId="10" width="252" height="389" typeName="MC_MoveAbsolute" instanceName="move1">
<position x="744" y="173"/>
<variable formalParameter="Axis">
<relPosition x="0" y="38"/>
<connection refLocalId="8" formalParameter="Axis">
<position x="744" y="211"/>
<position x="557" y="211"/>
<variable formalParameter="Execute">
<relPosition x="0" y="74"/>
<connection refLocalId="8" formalParameter="Status">
<position x="744" y="247"/>
<position x="557" y="247"/>
<variable formalParameter="ContinuousUpdate">
<relPosition x="0" y="110"/>
<variable formalParameter="Position">
<relPosition x="0" y="146"/>
<connection refLocalId="11">
<position x="744" y="319"/>
<position x="672" y="319"/>
<variable formalParameter="Velocity">
<relPosition x="0" y="182"/>
<connection refLocalId="12">
<position x="744" y="355"/>
<position x="671" y="355"/>
<variable formalParameter="Acceleration">
<relPosition x="0" y="218"/>
<connection refLocalId="12">
<position x="744" y="391"/>
<position x="707" y="391"/>
<position x="707" y="355"/>
<position x="671" y="355"/>
<variable formalParameter="Deceleration">
<relPosition x="0" y="254"/>
<connection refLocalId="12">
<position x="744" y="427"/>
<position x="707" y="427"/>
<position x="707" y="355"/>
<position x="671" y="355"/>
<variable formalParameter="Jerk">
<relPosition x="0" y="290"/>
<variable formalParameter="Direction">
<relPosition x="0" y="326"/>
<variable formalParameter="BufferMode">
<relPosition x="0" y="362"/>
<variable formalParameter="Axis">
<relPosition x="252" y="38"/>
<variable formalParameter="Done">
<relPosition x="252" y="74"/>
<variable formalParameter="Busy">
<relPosition x="252" y="110"/>
<variable formalParameter="Active">
<relPosition x="252" y="146"/>
<variable formalParameter="CommandAborted">
<relPosition x="252" y="182"/>
<variable formalParameter="Error">
<relPosition x="252" y="218"/>
<variable formalParameter="ErrorID">
<relPosition x="252" y="254"/>
<inVariable localId="11" height="27" width="54">
<position x="630" y="306"/>
<relPosition x="54" y="13"/>
<expression>1800.0</expression>
<inVariable localId="12" height="27" width="46">
<position x="637" y="342"/>
<relPosition x="46" y="13"/>
<expression>360.0</expression>
<block localId="14" width="162" height="216" typeName="EtherLabSDOUpload" instanceName="EtherLabSDOUpload0">
<position x="1207" y="208"/>
<variable formalParameter="EXECUTE">
<relPosition x="0" y="39"/>
<connection refLocalId="10" formalParameter="Done">
<position x="1207" y="247"/>
<position x="996" y="247"/>
<variable formalParameter="POS">
<relPosition x="0" y="78"/>
<connection refLocalId="15">
<position x="1207" y="286"/>
<position x="1156" y="286"/>
<variable formalParameter="INDEX">
<relPosition x="0" y="117"/>
<connection refLocalId="16">
<position x="1207" y="325"/>
<position x="1156" y="325"/>
<variable formalParameter="SUBINDEX">
<relPosition x="0" y="156"/>
<connection refLocalId="17">
<position x="1207" y="364"/>
<position x="1156" y="364"/>
<variable formalParameter="VARTYPE">
<relPosition x="0" y="195"/>
<connection refLocalId="18">
<position x="1207" y="403"/>
<position x="1156" y="403"/>
<variable formalParameter="ACK">
<relPosition x="162" y="39"/>
<variable formalParameter="VALID">
<relPosition x="162" y="78"/>
<variable formalParameter="VALUE">
<relPosition x="162" y="117"/>
<inVariable localId="15" height="27" width="35">
<position x="1121" y="273"/>
<relPosition x="35" y="13"/>
<expression>3</expression>
<inVariable localId="16" height="27" width="68">
<position x="1088" y="312"/>
<relPosition x="68" y="13"/>
<expression>16#6064</expression>
<inVariable localId="17" height="27" width="32">
<position x="1124" y="351"/>
<relPosition x="32" y="13"/>
<expression>0</expression>
<inVariable localId="18" height="27" width="52">
<position x="1104" y="390"/>
<relPosition x="52" y="13"/>
<expression>'int32'</expression>
<outVariable localId="19" height="27" width="109">
<position x="1576" y="312"/>
<relPosition x="0" y="13"/>
<connection refLocalId="20" formalParameter="OUT">
<position x="1576" y="325"/>
<position x="1539" y="325"/>
<expression>ActualPosition</expression>
<block localId="20" width="126" height="40" typeName="STRING_TO_DINT">
<position x="1413" y="295"/>
<variable formalParameter="IN">
<relPosition x="0" y="30"/>
<connection refLocalId="14" formalParameter="VALUE">
<position x="1413" y="325"/>
<position x="1369" y="325"/>
<variable formalParameter="OUT">
<relPosition x="126" y="30"/>
<outVariable localId="21" height="27" width="45">
<position x="1576" y="234"/>
<relPosition x="0" y="13"/>
<connection refLocalId="22" formalParameter="OUT">
<position x="1576" y="247"/>
<position x="1509" y="247"/>
<expression>Valid</expression>
<block localId="22" width="67" height="72" typeName="AND">
<position x="1442" y="214"/>
<variable formalParameter="IN1">
<relPosition x="0" y="33"/>
<connection refLocalId="14" formalParameter="ACK">
<position x="1442" y="247"/>
<position x="1369" y="247"/>
<variable formalParameter="IN2">
<relPosition x="0" y="59"/>
<connection refLocalId="14" formalParameter="VALID">
<position x="1442" y="273"/>
<position x="1399" y="273"/>
<position x="1399" y="286"/>
<position x="1369" y="286"/>
<variable formalParameter="OUT">
<relPosition x="67" y="33"/>
<configuration name="conf">
<task name="main_task" interval="T#0.5ms" priority="0">
<pouInstance name="main_instance" typeName="Prog"/>
<pouInstance name="test_MCL_instance" typeName="test_MCL"/>