| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094 |
- <?xml version="1.0"?>
- <EtherCATConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="EtherCATConfig.xsd" Version="1.3">
- <Config>
- <Master>
- <Info>
- <Name><![CDATA[Device 2 (EtherCAT)]]></Name>
- <Destination>010105010000</Destination>
- <Source>2c58b9dca252</Source>
- <EtherType>a488</EtherType>
- </Info>
- <MailboxStates>
- <StartAddr>150994944</StartAddr>
- <Count>1</Count>
- </MailboxStates>
- <InitCmds>
- <InitCmd>
- <Transition>IP</Transition>
- <BeforeSlave>true</BeforeSlave>
- <Comment><![CDATA[read slave count]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>7</Cmd>
- <Adp>0</Adp>
- <Ado>304</Ado>
- <Data>0000</Data>
- <Retries>0</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>IP</Transition>
- <BeforeSlave>true</BeforeSlave>
- <Comment><![CDATA[read slave count]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>7</Cmd>
- <Adp>0</Adp>
- <Ado>304</Ado>
- <Data>0000</Data>
- <Retries>0</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>IP</Transition>
- <BeforeSlave>true</BeforeSlave>
- <Comment><![CDATA[enable ECAT IRQ]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>8</Cmd>
- <Adp>0</Adp>
- <Ado>512</Ado>
- <Data>0400</Data>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>IP</Transition>
- <BeforeSlave>true</BeforeSlave>
- <Comment><![CDATA[clear configured addresses]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>8</Cmd>
- <Adp>0</Adp>
- <Ado>16</Ado>
- <Data>0000</Data>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>IP</Transition>
- <BeforeSlave>true</BeforeSlave>
- <Comment><![CDATA[clear crc register]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>8</Cmd>
- <Adp>0</Adp>
- <Ado>768</Ado>
- <Data>0000000000000000</Data>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>IP</Transition>
- <Transition>PI</Transition>
- <Transition>BI</Transition>
- <Transition>SI</Transition>
- <Transition>OI</Transition>
- <BeforeSlave>true</BeforeSlave>
- <Comment><![CDATA[clear fmmu]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>8</Cmd>
- <Adp>0</Adp>
- <Ado>1536</Ado>
- <DataLength>256</DataLength>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>IP</Transition>
- <BeforeSlave>true</BeforeSlave>
- <Comment><![CDATA[clear sm]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>8</Cmd>
- <Adp>0</Adp>
- <Ado>2048</Ado>
- <DataLength>256</DataLength>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>IP</Transition>
- <BeforeSlave>true</BeforeSlave>
- <Comment><![CDATA[clear dc system time]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>8</Cmd>
- <Adp>0</Adp>
- <Ado>2320</Ado>
- <DataLength>32</DataLength>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>IP</Transition>
- <BeforeSlave>true</BeforeSlave>
- <Comment><![CDATA[clear dc cycle cfg]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>8</Cmd>
- <Adp>0</Adp>
- <Ado>2433</Ado>
- <Data>00</Data>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>IP</Transition>
- <BeforeSlave>true</BeforeSlave>
- <Comment><![CDATA[reset dc speed]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>8</Cmd>
- <Adp>0</Adp>
- <Ado>2352</Ado>
- <Data>0010</Data>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>IP</Transition>
- <BeforeSlave>true</BeforeSlave>
- <Comment><![CDATA[configure dc filter]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>8</Cmd>
- <Adp>0</Adp>
- <Ado>2356</Ado>
- <Data>000c</Data>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>IP</Transition>
- <BeforeSlave>true</BeforeSlave>
- <Comment><![CDATA[en/disable second physical address]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>8</Cmd>
- <Adp>0</Adp>
- <Ado>259</Ado>
- <Data>00</Data>
- <Retries>3</Retries>
- </InitCmd>
- </InitCmds>
- </Master>
- <Slave>
- <Info>
- <Name><![CDATA[Drive 1 (ECAT_CIA402)]]></Name>
- <PhysAddr>1001</PhysAddr>
- <AutoIncAddr>0</AutoIncAddr>
- <Identification Value="0">
- <Ado>#x0134</Ado>
- </Identification>
- <Physics>YYY</Physics>
- <VendorId>4739149</VendorId>
- <ProductCode>3</ProductCode>
- <RevisionNo>1</RevisionNo>
- <SerialNo>0</SerialNo>
- </Info>
- <ProcessData>
- <Send>
- <BitStart>312</BitStart>
- <BitLength>64</BitLength>
- </Send>
- <Recv>
- <BitStart>312</BitStart>
- <BitLength>64</BitLength>
- </Recv>
- <Sm2>
- <Type>Outputs</Type>
- <StartAddress>4352</StartAddress>
- <ControlByte>100</ControlByte>
- <Enable>1</Enable>
- <Pdo>5634</Pdo>
- </Sm2>
- <Sm3>
- <Type>Inputs</Type>
- <StartAddress>5120</StartAddress>
- <ControlByte>32</ControlByte>
- <Enable>1</Enable>
- <Pdo>6658</Pdo>
- </Sm3>
- <TxPdo Fixed="true" Sm="3">
- <Index DependOnSlot="true">#x1a02</Index>
- <Name>Inputs</Name>
- <Entry>
- <Index DependOnSlot="true">#x6041</Index>
- <SubIndex>0</SubIndex>
- <BitLen>16</BitLen>
- <Name>Status Word</Name>
- <Comment>object 0x6041:0</Comment>
- <DataType>UINT</DataType>
- </Entry>
- <Entry>
- <Index DependOnSlot="true">#x6064</Index>
- <SubIndex>0</SubIndex>
- <BitLen>32</BitLen>
- <Name>ActualPosition</Name>
- <Comment>object 0x6064:0</Comment>
- <DataType>DINT</DataType>
- </Entry>
- <Entry>
- <Index>#x0</Index>
- <BitLen>16</BitLen>
- </Entry>
- </TxPdo>
- <RxPdo Fixed="true" Sm="2">
- <Index DependOnSlot="true">#x1602</Index>
- <Name>Outputs</Name>
- <Entry>
- <Index DependOnSlot="true">#x6040</Index>
- <SubIndex>0</SubIndex>
- <BitLen>16</BitLen>
- <Name>Control Word</Name>
- <Comment>object 0x6040:0</Comment>
- <DataType>UINT</DataType>
- </Entry>
- <Entry>
- <Index DependOnSlot="true">#x60ff</Index>
- <SubIndex>0</SubIndex>
- <BitLen>32</BitLen>
- <Name>TargetVelocity</Name>
- <Comment>object 0x60FF:0</Comment>
- <DataType>DINT</DataType>
- </Entry>
- <Entry>
- <Index>#x0</Index>
- <BitLen>16</BitLen>
- </Entry>
- </RxPdo>
- </ProcessData>
- <Mailbox DataLinkLayer="true">
- <Send>
- <Start>4096</Start>
- <Length>128</Length>
- </Send>
- <Recv>
- <Start>4224</Start>
- <Length>128</Length>
- <StatusBitAddr>0</StatusBitAddr>
- </Recv>
- <Protocol>CoE</Protocol>
- <CoE>
- <InitCmds>
- <InitCmd Fixed="true" CompleteAccess="true">
- <Transition>PS</Transition>
- <Comment><![CDATA[download pdo 0x1C12 index]]></Comment>
- <Timeout>0</Timeout>
- <Ccs>1</Ccs>
- <Index>7186</Index>
- <SubIndex>0</SubIndex>
- <Data>01000216</Data>
- </InitCmd>
- <InitCmd Fixed="true" CompleteAccess="true">
- <Transition>PS</Transition>
- <Comment><![CDATA[download pdo 0x1C13 index]]></Comment>
- <Timeout>0</Timeout>
- <Ccs>1</Ccs>
- <Index>7187</Index>
- <SubIndex>0</SubIndex>
- <Data>0100021a</Data>
- </InitCmd>
- <InitCmd ModuleHandle="0">
- <Transition>SO</Transition>
- <Timeout>0</Timeout>
- <Ccs>1</Ccs>
- <Index>24672</Index>
- <SubIndex>0</SubIndex>
- <Data>09</Data>
- </InitCmd>
- </InitCmds>
- <Profile>
- <ChannelInfo>
- <ProfileNo>402</ProfileNo>
- <AddInfo>2</AddInfo>
- </ChannelInfo>
- <ChannelInfo>
- <ProfileNo>402</ProfileNo>
- <AddInfo>0</AddInfo>
- </ChannelInfo>
- </Profile>
- </CoE>
- </Mailbox>
- <InitCmds>
- <InitCmd>
- <Transition>PI</Transition>
- <Transition>BI</Transition>
- <Transition>SI</Transition>
- <Transition>OI</Transition>
- <Comment><![CDATA[set device state to INIT]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>2</Cmd>
- <Adp>0</Adp>
- <Ado>288</Ado>
- <Data>1100</Data>
- <Retries>3</Retries>
- <Timeout>5000</Timeout>
- </InitCmd>
- <InitCmd>
- <Transition>PI</Transition>
- <Transition>SI</Transition>
- <Transition>OI</Transition>
- <Comment><![CDATA[check device state for INIT]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>1</Cmd>
- <Adp>0</Adp>
- <Ado>304</Ado>
- <Data>0000</Data>
- <Retries>3</Retries>
- <Validate>
- <Data>0100</Data>
- <DataMask>0f00</DataMask>
- <Timeout>5000</Timeout>
- </Validate>
- </InitCmd>
- <InitCmd>
- <Transition>BI</Transition>
- <Comment><![CDATA[check device state for INIT]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>1</Cmd>
- <Adp>0</Adp>
- <Ado>304</Ado>
- <Data>0000</Data>
- <Retries>3</Retries>
- <Validate>
- <Data>0100</Data>
- <DataMask>0f00</DataMask>
- <Timeout>10000</Timeout>
- </Validate>
- </InitCmd>
- <InitCmd>
- <Transition>IP</Transition>
- <Transition>IB</Transition>
- <Comment><![CDATA[set device state to INIT]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>2</Cmd>
- <Adp>0</Adp>
- <Ado>288</Ado>
- <Data>1100</Data>
- <Cnt>1</Cnt>
- <Retries>3</Retries>
- <Timeout>2000</Timeout>
- </InitCmd>
- <InitCmd>
- <Transition>IP</Transition>
- <Transition>IB</Transition>
- <Comment><![CDATA[check device state for INIT]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>1</Cmd>
- <Adp>0</Adp>
- <Ado>304</Ado>
- <Data>0000</Data>
- <Cnt>1</Cnt>
- <Retries>3</Retries>
- <Validate>
- <Data>0100</Data>
- <DataMask>0f00</DataMask>
- <Timeout>2000</Timeout>
- </Validate>
- </InitCmd>
- <InitCmd>
- <Transition>IP</Transition>
- <Comment><![CDATA[assign EEPROM to ECAT]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>2</Cmd>
- <Adp>0</Adp>
- <Ado>1280</Ado>
- <Data>00</Data>
- <Cnt>1</Cnt>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>IP</Transition>
- <Comment><![CDATA[check vendor id]]></Comment>
- <Cmd>2</Cmd>
- <Adp>0</Adp>
- <Ado>1282</Ado>
- <Data>000108000000</Data>
- <Cnt>1</Cnt>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>IP</Transition>
- <Comment><![CDATA[check vendor id]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>1</Cmd>
- <Adp>0</Adp>
- <Ado>1288</Ado>
- <Data>00000000</Data>
- <Cnt>1</Cnt>
- <Retries>3</Retries>
- <Validate>
- <Data>4d504800</Data>
- <Timeout>100</Timeout>
- </Validate>
- </InitCmd>
- <InitCmd>
- <Transition>IP</Transition>
- <Comment><![CDATA[check product code]]></Comment>
- <Cmd>2</Cmd>
- <Adp>0</Adp>
- <Ado>1282</Ado>
- <Data>00010a000000</Data>
- <Cnt>1</Cnt>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>IP</Transition>
- <Comment><![CDATA[check product code]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>1</Cmd>
- <Adp>0</Adp>
- <Ado>1288</Ado>
- <Data>00000000</Data>
- <Cnt>1</Cnt>
- <Retries>3</Retries>
- <Validate>
- <Data>03000000</Data>
- <Timeout>100</Timeout>
- </Validate>
- </InitCmd>
- <InitCmd>
- <Transition>IP</Transition>
- <Transition>IB</Transition>
- <Comment><![CDATA[set physical address]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>2</Cmd>
- <Adp>0</Adp>
- <Ado>16</Ado>
- <Data>e903</Data>
- <Cnt>1</Cnt>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>IP</Transition>
- <Transition>IB</Transition>
- <Transition>PI</Transition>
- <Transition>SI</Transition>
- <Transition>OI</Transition>
- <Comment><![CDATA[clear sm 0/1 (mailbox out/in)]]></Comment>
- <Cmd>5</Cmd>
- <Adp>1001</Adp>
- <Ado>2048</Ado>
- <Data>00000000000000000000000000000000</Data>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>BI</Transition>
- <Comment><![CDATA[clear sm 0/1 (mailbox out/in)]]></Comment>
- <Cmd>2</Cmd>
- <Adp>0</Adp>
- <Ado>2048</Ado>
- <Data>00000000000000000000000000000000</Data>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>IP</Transition>
- <Transition>IB</Transition>
- <Comment><![CDATA[set sm 0 (mailbox out)]]></Comment>
- <Cmd>5</Cmd>
- <Adp>1001</Adp>
- <Ado>2048</Ado>
- <Data>0010800026000100</Data>
- <Cnt>1</Cnt>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>IP</Transition>
- <Transition>IB</Transition>
- <Comment><![CDATA[set sm 1 (mailbox in)]]></Comment>
- <Cmd>5</Cmd>
- <Adp>1001</Adp>
- <Ado>2056</Ado>
- <Data>8010800022000100</Data>
- <Cnt>1</Cnt>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>SP</Transition>
- <Transition>OP</Transition>
- <Comment><![CDATA[set device state to PREOP]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>5</Cmd>
- <Adp>1001</Adp>
- <Ado>288</Ado>
- <Data>1200</Data>
- <Retries>300</Retries>
- <Timeout>200</Timeout>
- </InitCmd>
- <InitCmd>
- <Transition>IP</Transition>
- <Transition>SP</Transition>
- <Transition>SI</Transition>
- <Transition>OP</Transition>
- <Transition>OI</Transition>
- <Comment><![CDATA[clear sms]]></Comment>
- <Cmd>5</Cmd>
- <Adp>1001</Adp>
- <Ado>2064</Ado>
- <Data>00000000000000000000000000000000</Data>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>PS</Transition>
- <Comment><![CDATA[set sm 2 (outputs)]]></Comment>
- <Cmd>5</Cmd>
- <Adp>1001</Adp>
- <Ado>2064</Ado>
- <Data>0011080064000100</Data>
- <Cnt>1</Cnt>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>PS</Transition>
- <Comment><![CDATA[set sm 3 (inputs)]]></Comment>
- <Cmd>5</Cmd>
- <Adp>1001</Adp>
- <Ado>2072</Ado>
- <Data>0014080020000100</Data>
- <Cnt>1</Cnt>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>PS</Transition>
- <Comment><![CDATA[set fmmu 0 (outputs)]]></Comment>
- <Cmd>5</Cmd>
- <Adp>1001</Adp>
- <Ado>1536</Ado>
- <Data>00000001080000070011000201000000</Data>
- <Cnt>1</Cnt>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>PS</Transition>
- <Comment><![CDATA[set fmmu 1 (inputs)]]></Comment>
- <Cmd>5</Cmd>
- <Adp>1001</Adp>
- <Ado>1552</Ado>
- <Data>00000001080000070014000101000000</Data>
- <Cnt>1</Cnt>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>IP</Transition>
- <Transition>IB</Transition>
- <Comment><![CDATA[set fmmu 2 (mailbox state)]]></Comment>
- <Cmd>5</Cmd>
- <Adp>1001</Adp>
- <Ado>1568</Ado>
- <Data>00000009010000000d08000101000000</Data>
- <Cnt>1</Cnt>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>OS</Transition>
- <Comment><![CDATA[set device state to SAFEOP]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>5</Cmd>
- <Adp>1001</Adp>
- <Ado>288</Ado>
- <Data>0400</Data>
- <Retries>3</Retries>
- <Timeout>200</Timeout>
- </InitCmd>
- <InitCmd>
- <Transition>SP</Transition>
- <Transition>SI</Transition>
- <Transition>OP</Transition>
- <Transition>OI</Transition>
- <Comment><![CDATA[clear fmmu 0]]></Comment>
- <Cmd>5</Cmd>
- <Adp>1001</Adp>
- <Ado>1536</Ado>
- <Data>00000000000000000000000000000000</Data>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>SP</Transition>
- <Transition>SI</Transition>
- <Transition>OP</Transition>
- <Transition>OI</Transition>
- <Comment><![CDATA[clear fmmu 1]]></Comment>
- <Cmd>5</Cmd>
- <Adp>1001</Adp>
- <Ado>1552</Ado>
- <Data>00000000000000000000000000000000</Data>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>PI</Transition>
- <Transition>BI</Transition>
- <Transition>SI</Transition>
- <Transition>OI</Transition>
- <Comment><![CDATA[clear fmmu 2]]></Comment>
- <Cmd>5</Cmd>
- <Adp>1001</Adp>
- <Ado>1568</Ado>
- <Data>00000000000000000000000000000000</Data>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>SP</Transition>
- <Transition>OP</Transition>
- <Comment><![CDATA[check device state for PREOP]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>4</Cmd>
- <Adp>1001</Adp>
- <Ado>304</Ado>
- <Data>000000000000</Data>
- <Retries>3</Retries>
- <Validate>
- <Data>020000000000</Data>
- <DataMask>0f0000000000</DataMask>
- <Timeout>5000</Timeout>
- </Validate>
- </InitCmd>
- <InitCmd>
- <Transition>IP</Transition>
- <Transition>IB</Transition>
- <Comment><![CDATA[assign EEPROM to PDI]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>5</Cmd>
- <Adp>1001</Adp>
- <Ado>1280</Ado>
- <Data>01</Data>
- <Cnt>1</Cnt>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>II</Transition>
- <Comment><![CDATA[assign EEPROM back to ECAT]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>2</Cmd>
- <Adp>0</Adp>
- <Ado>1280</Ado>
- <Data>00</Data>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>IP</Transition>
- <Comment><![CDATA[set device state to PREOP]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>5</Cmd>
- <Adp>1001</Adp>
- <Ado>288</Ado>
- <Data>1200</Data>
- <Cnt>1</Cnt>
- <Retries>300</Retries>
- <Timeout>2000</Timeout>
- </InitCmd>
- <InitCmd>
- <Transition>IP</Transition>
- <Comment><![CDATA[check device state for PREOP]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>4</Cmd>
- <Adp>1001</Adp>
- <Ado>304</Ado>
- <Data>000000000000</Data>
- <Cnt>1</Cnt>
- <Retries>3</Retries>
- <Validate>
- <Data>020000000000</Data>
- <DataMask>1f0000000000</DataMask>
- <Timeout>2000</Timeout>
- </Validate>
- </InitCmd>
- <InitCmd>
- <Transition>IP</Transition>
- <Transition>BI</Transition>
- <Comment><![CDATA[assign EEPROM back to ECAT]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>2</Cmd>
- <Adp>0</Adp>
- <Ado>1280</Ado>
- <Data>00</Data>
- <Retries>3</Retries>
- </InitCmd>
- <InitCmd>
- <Transition>IB</Transition>
- <Comment><![CDATA[set device state to BOOT]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>5</Cmd>
- <Adp>1001</Adp>
- <Ado>288</Ado>
- <Data>1300</Data>
- <Cnt>1</Cnt>
- <Retries>3</Retries>
- <Timeout>2000</Timeout>
- </InitCmd>
- <InitCmd>
- <Transition>IB</Transition>
- <Comment><![CDATA[check device state for BOOT]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>4</Cmd>
- <Adp>1001</Adp>
- <Ado>304</Ado>
- <Data>000000000000</Data>
- <Cnt>1</Cnt>
- <Retries>3</Retries>
- <Validate>
- <Data>030000000000</Data>
- <DataMask>1f0000000000</DataMask>
- <Timeout>2000</Timeout>
- </Validate>
- </InitCmd>
- <InitCmd>
- <Transition>PS</Transition>
- <Comment><![CDATA[set device state to SAFEOP]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>5</Cmd>
- <Adp>1001</Adp>
- <Ado>288</Ado>
- <Data>0400</Data>
- <Cnt>1</Cnt>
- <Retries>3</Retries>
- <Timeout>9000</Timeout>
- </InitCmd>
- <InitCmd>
- <Transition>PS</Transition>
- <Comment><![CDATA[check device state for SAFEOP]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>4</Cmd>
- <Adp>1001</Adp>
- <Ado>304</Ado>
- <Data>000000000000</Data>
- <Cnt>1</Cnt>
- <Retries>3</Retries>
- <Validate>
- <Data>040000000000</Data>
- <DataMask>1f0000000000</DataMask>
- <Timeout>9000</Timeout>
- </Validate>
- </InitCmd>
- <InitCmd>
- <Transition>OS</Transition>
- <Comment><![CDATA[check device state for SAFEOP]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>4</Cmd>
- <Adp>1001</Adp>
- <Ado>304</Ado>
- <Data>000000000000</Data>
- <Retries>3</Retries>
- <Validate>
- <Data>040000000000</Data>
- <DataMask>0f0000000000</DataMask>
- <Timeout>200</Timeout>
- </Validate>
- </InitCmd>
- <InitCmd>
- <Transition>SO</Transition>
- <Comment><![CDATA[set device state to OP]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>5</Cmd>
- <Adp>1001</Adp>
- <Ado>288</Ado>
- <Data>0800</Data>
- <Cnt>1</Cnt>
- <Retries>3</Retries>
- <Timeout>9000</Timeout>
- </InitCmd>
- <InitCmd>
- <Transition>SO</Transition>
- <Comment><![CDATA[check device state for OP]]></Comment>
- <Requires>cycle</Requires>
- <Cmd>4</Cmd>
- <Adp>1001</Adp>
- <Ado>304</Ado>
- <Data>000000000000</Data>
- <Cnt>1</Cnt>
- <Retries>3</Retries>
- <Validate>
- <Data>080000000000</Data>
- <DataMask>1f0000000000</DataMask>
- <Timeout>9000</Timeout>
- </Validate>
- </InitCmd>
- </InitCmds>
- </Slave>
- <Cyclic>
- <Comment><![CDATA[synchronized with task 'NC-Task 1 SAF']]></Comment>
- <CycleTime>2000</CycleTime>
- <Priority>4</Priority>
- <TaskId>1</TaskId>
- <Frame>
- <Cmd>
- <State>PREOP</State>
- <State>SAFEOP</State>
- <State>OP</State>
- <Comment><![CDATA[cyclic cmd]]></Comment>
- <Cmd>10</Cmd>
- <Addr>150994944</Addr>
- <DataLength>1</DataLength>
- <InputOffs>16</InputOffs>
- <OutputOffs>16</OutputOffs>
- </Cmd>
- <Cmd>
- <State>SAFEOP</State>
- <State>OP</State>
- <Comment><![CDATA[cyclic cmd]]></Comment>
- <Cmd>12</Cmd>
- <Addr>16777216</Addr>
- <DataLength>8</DataLength>
- <Cnt>3</Cnt>
- <InputOffs>29</InputOffs>
- <OutputOffs>29</OutputOffs>
- </Cmd>
- <Cmd>
- <State>PREOP</State>
- <State>SAFEOP</State>
- <State>OP</State>
- <Comment><![CDATA[cyclic cmd]]></Comment>
- <Cmd>7</Cmd>
- <Adp>0</Adp>
- <Ado>304</Ado>
- <DataLength>2</DataLength>
- <Cnt>1</Cnt>
- <InputOffs>49</InputOffs>
- <OutputOffs>49</OutputOffs>
- </Cmd>
- </Frame>
- </Cyclic>
- <ProcessImage>
- <Inputs>
- <ByteSize>1536</ByteSize>
- <Variable>
- <Name>Drive 1 (ECAT_CIA402).Module 1 (csv - axis).Inputs.Status Word</Name>
- <Comment><![CDATA[object 0x6041:0]]></Comment>
- <DataType>UINT</DataType>
- <BitSize>16</BitSize>
- <BitOffs>312</BitOffs>
- </Variable>
- <Variable>
- <Name>Drive 1 (ECAT_CIA402).Module 1 (csv - axis).Inputs.ActualPosition</Name>
- <Comment><![CDATA[object 0x6064:0]]></Comment>
- <DataType>DINT</DataType>
- <BitSize>32</BitSize>
- <BitOffs>328</BitOffs>
- </Variable>
- <Variable>
- <Name>Inputs.Frm0State</Name>
- <Comment><![CDATA[0x0001 = 1. EtherCAT command not sent (NOP requested)
- 0x0002 = 2. EtherCAT command not sent (NOP requested)
- 0x0004 = 3. EtherCAT command not sent (NOP requested)
- ...
- 0x4000 = 15. EtherCAT command not sent (NOP requested)
- 0x8000 = complete frame not sent
- ]]></Comment>
- <DataType>UINT</DataType>
- <BitSize>16</BitSize>
- <BitOffs>12160</BitOffs>
- </Variable>
- <Variable>
- <Name>Inputs.Frm0WcState</Name>
- <Comment><![CDATA[0x0001 = wrong working counter of 1. EtherCAT command received
- 0x0002 = wrong working counter of 2. EtherCAT command received
- 0x0004 = wrong working counter of 3. EtherCAT command received
- ...
- 0x4000 = wrong working counter of 15. EtherCAT command received
- 0x8000 = complete frame missing
- ]]></Comment>
- <DataType>UINT</DataType>
- <BitSize>16</BitSize>
- <BitOffs>12176</BitOffs>
- </Variable>
- <Variable>
- <Name>Drive 1 (ECAT_CIA402).WcState.WcState</Name>
- <Comment><![CDATA[0 = Data valid
- 1 = Data invalid
- ]]></Comment>
- <DataType>BIT</DataType>
- <BitSize>1</BitSize>
- <BitOffs>12177</BitOffs>
- </Variable>
- <Variable>
- <Name>Inputs.Frm0InputToggle</Name>
- <Comment><![CDATA[0x0001 = Toggle Bit: 1. EtherCAT command received new inputs
- 0x0002 = Toggle Bit: 2. EtherCAT command received new inputs
- 0x0004 = Toggle Bit: 3. EtherCAT command received new inputs
- ...
- 0x4000 = Toggle Bit: 15. EtherCAT command received new inputs
- 0x8000 = Old frame - not from the actual cycle - received
- ]]></Comment>
- <DataType>UINT</DataType>
- <BitSize>16</BitSize>
- <BitOffs>12192</BitOffs>
- </Variable>
- <Variable>
- <Name>Drive 1 (ECAT_CIA402).WcState.InputToggle</Name>
- <DataType>BIT</DataType>
- <BitSize>1</BitSize>
- <BitOffs>12193</BitOffs>
- </Variable>
- <Variable>
- <Name>SyncUnits.<default>.NC-Task 1 SAF.WcState.WcState</Name>
- <Comment><![CDATA[0 = Data valid
- 1 = Data invalid
- ]]></Comment>
- <DataType>BIT</DataType>
- <BitSize>1</BitSize>
- <BitOffs>12208</BitOffs>
- </Variable>
- <Variable>
- <Name>Inputs.SlaveCount</Name>
- <Comment><![CDATA[Actual count of EtherCAT slaves received]]></Comment>
- <DataType>UINT</DataType>
- <BitSize>16</BitSize>
- <BitOffs>12240</BitOffs>
- </Variable>
- <Variable>
- <Name>Inputs.DevState</Name>
- <Comment><![CDATA[0x0001 = Link error
- 0x0002 = I/O locked after link error (I/O reset required)
- 0x0004 = Link error (redundancy adapter)
- 0x0008 = Missing one frame (redundancy mode)
- 0x0010 = Out of send resources (I/O reset required)
- 0x0020 = Watchdog triggered
- 0x0040 = Ethernet driver (miniport) not found
- 0x0080 = I/O reset active
- 0x0100 = At least one device in 'INIT' state
- 0x0200 = At least one device in 'PRE-OP' state
- 0x0400 = At least one device in 'SAFE-OP' state
- 0x0800 = At least one device indicates an error state
- 0x1000 = DC not in sync
- ]]></Comment>
- <DataType>UINT</DataType>
- <BitSize>16</BitSize>
- <BitOffs>12272</BitOffs>
- </Variable>
- <Variable>
- <Name>InfoData.ChangeCount</Name>
- <Comment><![CDATA[Info data change counter]]></Comment>
- <DataType>UINT</DataType>
- <BitSize>16</BitSize>
- <BitOffs>12288</BitOffs>
- </Variable>
- <Variable>
- <Name>InfoData.DevId</Name>
- <Comment><![CDATA[DeviceId of EtherCAT device]]></Comment>
- <DataType>UINT</DataType>
- <BitSize>16</BitSize>
- <BitOffs>12304</BitOffs>
- </Variable>
- <Variable>
- <Name>InfoData.AmsNetId</Name>
- <Comment><![CDATA[AmsNetId of EtherCAT device]]></Comment>
- <DataType>AMSNETID</DataType>
- <BitSize>48</BitSize>
- <BitOffs>12320</BitOffs>
- </Variable>
- <Variable>
- <Name>InfoData.CfgSlaveCount</Name>
- <Comment><![CDATA[Count of configured EtherCAT slaves]]></Comment>
- <DataType>UINT</DataType>
- <BitSize>16</BitSize>
- <BitOffs>12368</BitOffs>
- </Variable>
- <Variable>
- <Name>Drive 1 (ECAT_CIA402).InfoData.State</Name>
- <Comment><![CDATA[0x___1 = Slave in 'INIT' state
- 0x___2 = Slave in 'PREOP' state
- 0x___3 = Slave in 'BOOT' state
- 0x___4 = Slave in 'SAFEOP' state
- 0x___8 = Slave in 'OP' state
- 0x001_ = Slave signals error
- 0x002_ = Invalid vendorId, productCode... read
- 0x004_ = Initialization error occurred
- 0x008_ = Slave disabled
- 0x010_ = Slave not present
- 0x020_ = Slave signals link error
- 0x040_ = Slave signals missing link
- 0x080_ = Slave signals unexpected link
- 0x100_ = Communication port A
- 0x200_ = Communication port B
- 0x400_ = Communication port C
- 0x800_ = Communication port D
- ]]></Comment>
- <DataType>UINT</DataType>
- <BitSize>16</BitSize>
- <BitOffs>12384</BitOffs>
- </Variable>
- <Variable>
- <Name>Drive 1 (ECAT_CIA402).InfoData.AdsAddr</Name>
- <Comment><![CDATA[Complete ADS address to access the slave (mailbox)]]></Comment>
- <DataType>AMSADDR</DataType>
- <BitSize>64</BitSize>
- <BitOffs>12400</BitOffs>
- </Variable>
- <Variable>
- <Name>Drive 1 (ECAT_CIA402).InfoData.Chn0</Name>
- <Comment><![CDATA[Slave has a channel]]></Comment>
- <DataType>USINT</DataType>
- <BitSize>8</BitSize>
- <BitOffs>12464</BitOffs>
- </Variable>
- <Variable>
- <Name>Drive 1 (ECAT_CIA402).InfoData.Chn1</Name>
- <Comment><![CDATA[Slave has a channel]]></Comment>
- <DataType>USINT</DataType>
- <BitSize>8</BitSize>
- <BitOffs>12472</BitOffs>
- </Variable>
- <Variable>
- <Name>SyncUnits.<default>.NC-Task 1 SAF.InfoData.ObjectId</Name>
- <DataType>OTCID</DataType>
- <BitSize>32</BitSize>
- <BitOffs>12480</BitOffs>
- </Variable>
- <Variable>
- <Name>SyncUnits.<default>.NC-Task 1 SAF.InfoData.State</Name>
- <Comment><![CDATA[0x___1 = At least one slave in 'INIT' state
- 0x___2 = At least one slave in 'PREOP' state
- 0x___3 = At least one slave in 'BOOT' state
- 0x___4 = At least one slave in 'SAFEOP' state
- 0x___8 = At least one slave in 'OP' state
- 0x001_ = At least one slave signals error
- 0x002_ = Invalid vendorId, productCode... read
- 0x004_ = Initialization error occurred
- 0x008_ = At least one slave disabled
- 0x010_ = At least one slave not present
- 0x020_ = At least one slave signals link error
- 0x040_ = At least one slave signals missing link
- 0x080_ = At least one slave signals unexpected link
- ]]></Comment>
- <DataType>UINT</DataType>
- <BitSize>16</BitSize>
- <BitOffs>12512</BitOffs>
- </Variable>
- <Variable>
- <Name>SyncUnits.<default>.NC-Task 1 SAF.InfoData.SlaveCount</Name>
- <Comment><![CDATA[Info data slave counter]]></Comment>
- <DataType>UINT</DataType>
- <BitSize>16</BitSize>
- <BitOffs>12528</BitOffs>
- </Variable>
- </Inputs>
- <Outputs>
- <ByteSize>1536</ByteSize>
- <Variable>
- <Name>Drive 1 (ECAT_CIA402).Module 1 (csv - axis).Outputs.Control Word</Name>
- <Comment><![CDATA[object 0x6040:0]]></Comment>
- <DataType>UINT</DataType>
- <BitSize>16</BitSize>
- <BitOffs>312</BitOffs>
- </Variable>
- <Variable>
- <Name>Drive 1 (ECAT_CIA402).Module 1 (csv - axis).Outputs.TargetVelocity</Name>
- <Comment><![CDATA[object 0x60FF:0]]></Comment>
- <DataType>DINT</DataType>
- <BitSize>32</BitSize>
- <BitOffs>328</BitOffs>
- </Variable>
- <Variable>
- <Name>Outputs.Frm0Ctrl</Name>
- <Comment><![CDATA[0x0001 = prevent 1. EtherCAT command from sending (request NOP)
- 0x0002 = prevent 2. EtherCAT command from sending (request NOP)
- 0x0004 = prevent 3. EtherCAT command from sending (request NOP)
- ...
- 0x4000 = prevent 15. EtherCAT command from sending (request NOP)
- 0x8000 = prevent complete frame from sending
- ]]></Comment>
- <DataType>UINT</DataType>
- <BitSize>16</BitSize>
- <BitOffs>12160</BitOffs>
- </Variable>
- <Variable>
- <Name>Outputs.Frm0WcCtrl</Name>
- <Comment><![CDATA[0x0001 = copy data with wrong working counter of 1. EtherCAT command
- 0x0002 = copy data with wrong working counter of 2. EtherCAT command
- 0x0004 = copy data with wrong working counter of 3. EtherCAT command
- ...
- 0x4000 = copy data with wrong working counter of 15. EtherCAT command
- ]]></Comment>
- <DataType>UINT</DataType>
- <BitSize>16</BitSize>
- <BitOffs>12176</BitOffs>
- </Variable>
- <Variable>
- <Name>Outputs.DevCtrl</Name>
- <DataType>UINT</DataType>
- <BitSize>16</BitSize>
- <BitOffs>12272</BitOffs>
- </Variable>
- </Outputs>
- </ProcessImage>
- </Config>
- </EtherCATConfig>
|