ECAT_CIA402_ENI.xml 30 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094
  1. <?xml version="1.0"?>
  2. <EtherCATConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="EtherCATConfig.xsd" Version="1.3">
  3. <Config>
  4. <Master>
  5. <Info>
  6. <Name><![CDATA[Device 2 (EtherCAT)]]></Name>
  7. <Destination>010105010000</Destination>
  8. <Source>2c58b9dca252</Source>
  9. <EtherType>a488</EtherType>
  10. </Info>
  11. <MailboxStates>
  12. <StartAddr>150994944</StartAddr>
  13. <Count>1</Count>
  14. </MailboxStates>
  15. <InitCmds>
  16. <InitCmd>
  17. <Transition>IP</Transition>
  18. <BeforeSlave>true</BeforeSlave>
  19. <Comment><![CDATA[read slave count]]></Comment>
  20. <Requires>cycle</Requires>
  21. <Cmd>7</Cmd>
  22. <Adp>0</Adp>
  23. <Ado>304</Ado>
  24. <Data>0000</Data>
  25. <Retries>0</Retries>
  26. </InitCmd>
  27. <InitCmd>
  28. <Transition>IP</Transition>
  29. <BeforeSlave>true</BeforeSlave>
  30. <Comment><![CDATA[read slave count]]></Comment>
  31. <Requires>cycle</Requires>
  32. <Cmd>7</Cmd>
  33. <Adp>0</Adp>
  34. <Ado>304</Ado>
  35. <Data>0000</Data>
  36. <Retries>0</Retries>
  37. </InitCmd>
  38. <InitCmd>
  39. <Transition>IP</Transition>
  40. <BeforeSlave>true</BeforeSlave>
  41. <Comment><![CDATA[enable ECAT IRQ]]></Comment>
  42. <Requires>cycle</Requires>
  43. <Cmd>8</Cmd>
  44. <Adp>0</Adp>
  45. <Ado>512</Ado>
  46. <Data>0400</Data>
  47. <Retries>3</Retries>
  48. </InitCmd>
  49. <InitCmd>
  50. <Transition>IP</Transition>
  51. <BeforeSlave>true</BeforeSlave>
  52. <Comment><![CDATA[clear configured addresses]]></Comment>
  53. <Requires>cycle</Requires>
  54. <Cmd>8</Cmd>
  55. <Adp>0</Adp>
  56. <Ado>16</Ado>
  57. <Data>0000</Data>
  58. <Retries>3</Retries>
  59. </InitCmd>
  60. <InitCmd>
  61. <Transition>IP</Transition>
  62. <BeforeSlave>true</BeforeSlave>
  63. <Comment><![CDATA[clear crc register]]></Comment>
  64. <Requires>cycle</Requires>
  65. <Cmd>8</Cmd>
  66. <Adp>0</Adp>
  67. <Ado>768</Ado>
  68. <Data>0000000000000000</Data>
  69. <Retries>3</Retries>
  70. </InitCmd>
  71. <InitCmd>
  72. <Transition>IP</Transition>
  73. <Transition>PI</Transition>
  74. <Transition>BI</Transition>
  75. <Transition>SI</Transition>
  76. <Transition>OI</Transition>
  77. <BeforeSlave>true</BeforeSlave>
  78. <Comment><![CDATA[clear fmmu]]></Comment>
  79. <Requires>cycle</Requires>
  80. <Cmd>8</Cmd>
  81. <Adp>0</Adp>
  82. <Ado>1536</Ado>
  83. <DataLength>256</DataLength>
  84. <Retries>3</Retries>
  85. </InitCmd>
  86. <InitCmd>
  87. <Transition>IP</Transition>
  88. <BeforeSlave>true</BeforeSlave>
  89. <Comment><![CDATA[clear sm]]></Comment>
  90. <Requires>cycle</Requires>
  91. <Cmd>8</Cmd>
  92. <Adp>0</Adp>
  93. <Ado>2048</Ado>
  94. <DataLength>256</DataLength>
  95. <Retries>3</Retries>
  96. </InitCmd>
  97. <InitCmd>
  98. <Transition>IP</Transition>
  99. <BeforeSlave>true</BeforeSlave>
  100. <Comment><![CDATA[clear dc system time]]></Comment>
  101. <Requires>cycle</Requires>
  102. <Cmd>8</Cmd>
  103. <Adp>0</Adp>
  104. <Ado>2320</Ado>
  105. <DataLength>32</DataLength>
  106. <Retries>3</Retries>
  107. </InitCmd>
  108. <InitCmd>
  109. <Transition>IP</Transition>
  110. <BeforeSlave>true</BeforeSlave>
  111. <Comment><![CDATA[clear dc cycle cfg]]></Comment>
  112. <Requires>cycle</Requires>
  113. <Cmd>8</Cmd>
  114. <Adp>0</Adp>
  115. <Ado>2433</Ado>
  116. <Data>00</Data>
  117. <Retries>3</Retries>
  118. </InitCmd>
  119. <InitCmd>
  120. <Transition>IP</Transition>
  121. <BeforeSlave>true</BeforeSlave>
  122. <Comment><![CDATA[reset dc speed]]></Comment>
  123. <Requires>cycle</Requires>
  124. <Cmd>8</Cmd>
  125. <Adp>0</Adp>
  126. <Ado>2352</Ado>
  127. <Data>0010</Data>
  128. <Retries>3</Retries>
  129. </InitCmd>
  130. <InitCmd>
  131. <Transition>IP</Transition>
  132. <BeforeSlave>true</BeforeSlave>
  133. <Comment><![CDATA[configure dc filter]]></Comment>
  134. <Requires>cycle</Requires>
  135. <Cmd>8</Cmd>
  136. <Adp>0</Adp>
  137. <Ado>2356</Ado>
  138. <Data>000c</Data>
  139. <Retries>3</Retries>
  140. </InitCmd>
  141. <InitCmd>
  142. <Transition>IP</Transition>
  143. <BeforeSlave>true</BeforeSlave>
  144. <Comment><![CDATA[en/disable second physical address]]></Comment>
  145. <Requires>cycle</Requires>
  146. <Cmd>8</Cmd>
  147. <Adp>0</Adp>
  148. <Ado>259</Ado>
  149. <Data>00</Data>
  150. <Retries>3</Retries>
  151. </InitCmd>
  152. </InitCmds>
  153. </Master>
  154. <Slave>
  155. <Info>
  156. <Name><![CDATA[Drive 1 (ECAT_CIA402)]]></Name>
  157. <PhysAddr>1001</PhysAddr>
  158. <AutoIncAddr>0</AutoIncAddr>
  159. <Identification Value="0">
  160. <Ado>#x0134</Ado>
  161. </Identification>
  162. <Physics>YYY</Physics>
  163. <VendorId>4739149</VendorId>
  164. <ProductCode>3</ProductCode>
  165. <RevisionNo>1</RevisionNo>
  166. <SerialNo>0</SerialNo>
  167. </Info>
  168. <ProcessData>
  169. <Send>
  170. <BitStart>312</BitStart>
  171. <BitLength>64</BitLength>
  172. </Send>
  173. <Recv>
  174. <BitStart>312</BitStart>
  175. <BitLength>64</BitLength>
  176. </Recv>
  177. <Sm2>
  178. <Type>Outputs</Type>
  179. <StartAddress>4352</StartAddress>
  180. <ControlByte>100</ControlByte>
  181. <Enable>1</Enable>
  182. <Pdo>5634</Pdo>
  183. </Sm2>
  184. <Sm3>
  185. <Type>Inputs</Type>
  186. <StartAddress>5120</StartAddress>
  187. <ControlByte>32</ControlByte>
  188. <Enable>1</Enable>
  189. <Pdo>6658</Pdo>
  190. </Sm3>
  191. <TxPdo Fixed="true" Sm="3">
  192. <Index DependOnSlot="true">#x1a02</Index>
  193. <Name>Inputs</Name>
  194. <Entry>
  195. <Index DependOnSlot="true">#x6041</Index>
  196. <SubIndex>0</SubIndex>
  197. <BitLen>16</BitLen>
  198. <Name>Status Word</Name>
  199. <Comment>object 0x6041:0</Comment>
  200. <DataType>UINT</DataType>
  201. </Entry>
  202. <Entry>
  203. <Index DependOnSlot="true">#x6064</Index>
  204. <SubIndex>0</SubIndex>
  205. <BitLen>32</BitLen>
  206. <Name>ActualPosition</Name>
  207. <Comment>object 0x6064:0</Comment>
  208. <DataType>DINT</DataType>
  209. </Entry>
  210. <Entry>
  211. <Index>#x0</Index>
  212. <BitLen>16</BitLen>
  213. </Entry>
  214. </TxPdo>
  215. <RxPdo Fixed="true" Sm="2">
  216. <Index DependOnSlot="true">#x1602</Index>
  217. <Name>Outputs</Name>
  218. <Entry>
  219. <Index DependOnSlot="true">#x6040</Index>
  220. <SubIndex>0</SubIndex>
  221. <BitLen>16</BitLen>
  222. <Name>Control Word</Name>
  223. <Comment>object 0x6040:0</Comment>
  224. <DataType>UINT</DataType>
  225. </Entry>
  226. <Entry>
  227. <Index DependOnSlot="true">#x60ff</Index>
  228. <SubIndex>0</SubIndex>
  229. <BitLen>32</BitLen>
  230. <Name>TargetVelocity</Name>
  231. <Comment>object 0x60FF:0</Comment>
  232. <DataType>DINT</DataType>
  233. </Entry>
  234. <Entry>
  235. <Index>#x0</Index>
  236. <BitLen>16</BitLen>
  237. </Entry>
  238. </RxPdo>
  239. </ProcessData>
  240. <Mailbox DataLinkLayer="true">
  241. <Send>
  242. <Start>4096</Start>
  243. <Length>128</Length>
  244. </Send>
  245. <Recv>
  246. <Start>4224</Start>
  247. <Length>128</Length>
  248. <StatusBitAddr>0</StatusBitAddr>
  249. </Recv>
  250. <Protocol>CoE</Protocol>
  251. <CoE>
  252. <InitCmds>
  253. <InitCmd Fixed="true" CompleteAccess="true">
  254. <Transition>PS</Transition>
  255. <Comment><![CDATA[download pdo 0x1C12 index]]></Comment>
  256. <Timeout>0</Timeout>
  257. <Ccs>1</Ccs>
  258. <Index>7186</Index>
  259. <SubIndex>0</SubIndex>
  260. <Data>01000216</Data>
  261. </InitCmd>
  262. <InitCmd Fixed="true" CompleteAccess="true">
  263. <Transition>PS</Transition>
  264. <Comment><![CDATA[download pdo 0x1C13 index]]></Comment>
  265. <Timeout>0</Timeout>
  266. <Ccs>1</Ccs>
  267. <Index>7187</Index>
  268. <SubIndex>0</SubIndex>
  269. <Data>0100021a</Data>
  270. </InitCmd>
  271. <InitCmd ModuleHandle="0">
  272. <Transition>SO</Transition>
  273. <Timeout>0</Timeout>
  274. <Ccs>1</Ccs>
  275. <Index>24672</Index>
  276. <SubIndex>0</SubIndex>
  277. <Data>09</Data>
  278. </InitCmd>
  279. </InitCmds>
  280. <Profile>
  281. <ChannelInfo>
  282. <ProfileNo>402</ProfileNo>
  283. <AddInfo>2</AddInfo>
  284. </ChannelInfo>
  285. <ChannelInfo>
  286. <ProfileNo>402</ProfileNo>
  287. <AddInfo>0</AddInfo>
  288. </ChannelInfo>
  289. </Profile>
  290. </CoE>
  291. </Mailbox>
  292. <InitCmds>
  293. <InitCmd>
  294. <Transition>PI</Transition>
  295. <Transition>BI</Transition>
  296. <Transition>SI</Transition>
  297. <Transition>OI</Transition>
  298. <Comment><![CDATA[set device state to INIT]]></Comment>
  299. <Requires>cycle</Requires>
  300. <Cmd>2</Cmd>
  301. <Adp>0</Adp>
  302. <Ado>288</Ado>
  303. <Data>1100</Data>
  304. <Retries>3</Retries>
  305. <Timeout>5000</Timeout>
  306. </InitCmd>
  307. <InitCmd>
  308. <Transition>PI</Transition>
  309. <Transition>SI</Transition>
  310. <Transition>OI</Transition>
  311. <Comment><![CDATA[check device state for INIT]]></Comment>
  312. <Requires>cycle</Requires>
  313. <Cmd>1</Cmd>
  314. <Adp>0</Adp>
  315. <Ado>304</Ado>
  316. <Data>0000</Data>
  317. <Retries>3</Retries>
  318. <Validate>
  319. <Data>0100</Data>
  320. <DataMask>0f00</DataMask>
  321. <Timeout>5000</Timeout>
  322. </Validate>
  323. </InitCmd>
  324. <InitCmd>
  325. <Transition>BI</Transition>
  326. <Comment><![CDATA[check device state for INIT]]></Comment>
  327. <Requires>cycle</Requires>
  328. <Cmd>1</Cmd>
  329. <Adp>0</Adp>
  330. <Ado>304</Ado>
  331. <Data>0000</Data>
  332. <Retries>3</Retries>
  333. <Validate>
  334. <Data>0100</Data>
  335. <DataMask>0f00</DataMask>
  336. <Timeout>10000</Timeout>
  337. </Validate>
  338. </InitCmd>
  339. <InitCmd>
  340. <Transition>IP</Transition>
  341. <Transition>IB</Transition>
  342. <Comment><![CDATA[set device state to INIT]]></Comment>
  343. <Requires>cycle</Requires>
  344. <Cmd>2</Cmd>
  345. <Adp>0</Adp>
  346. <Ado>288</Ado>
  347. <Data>1100</Data>
  348. <Cnt>1</Cnt>
  349. <Retries>3</Retries>
  350. <Timeout>2000</Timeout>
  351. </InitCmd>
  352. <InitCmd>
  353. <Transition>IP</Transition>
  354. <Transition>IB</Transition>
  355. <Comment><![CDATA[check device state for INIT]]></Comment>
  356. <Requires>cycle</Requires>
  357. <Cmd>1</Cmd>
  358. <Adp>0</Adp>
  359. <Ado>304</Ado>
  360. <Data>0000</Data>
  361. <Cnt>1</Cnt>
  362. <Retries>3</Retries>
  363. <Validate>
  364. <Data>0100</Data>
  365. <DataMask>0f00</DataMask>
  366. <Timeout>2000</Timeout>
  367. </Validate>
  368. </InitCmd>
  369. <InitCmd>
  370. <Transition>IP</Transition>
  371. <Comment><![CDATA[assign EEPROM to ECAT]]></Comment>
  372. <Requires>cycle</Requires>
  373. <Cmd>2</Cmd>
  374. <Adp>0</Adp>
  375. <Ado>1280</Ado>
  376. <Data>00</Data>
  377. <Cnt>1</Cnt>
  378. <Retries>3</Retries>
  379. </InitCmd>
  380. <InitCmd>
  381. <Transition>IP</Transition>
  382. <Comment><![CDATA[check vendor id]]></Comment>
  383. <Cmd>2</Cmd>
  384. <Adp>0</Adp>
  385. <Ado>1282</Ado>
  386. <Data>000108000000</Data>
  387. <Cnt>1</Cnt>
  388. <Retries>3</Retries>
  389. </InitCmd>
  390. <InitCmd>
  391. <Transition>IP</Transition>
  392. <Comment><![CDATA[check vendor id]]></Comment>
  393. <Requires>cycle</Requires>
  394. <Cmd>1</Cmd>
  395. <Adp>0</Adp>
  396. <Ado>1288</Ado>
  397. <Data>00000000</Data>
  398. <Cnt>1</Cnt>
  399. <Retries>3</Retries>
  400. <Validate>
  401. <Data>4d504800</Data>
  402. <Timeout>100</Timeout>
  403. </Validate>
  404. </InitCmd>
  405. <InitCmd>
  406. <Transition>IP</Transition>
  407. <Comment><![CDATA[check product code]]></Comment>
  408. <Cmd>2</Cmd>
  409. <Adp>0</Adp>
  410. <Ado>1282</Ado>
  411. <Data>00010a000000</Data>
  412. <Cnt>1</Cnt>
  413. <Retries>3</Retries>
  414. </InitCmd>
  415. <InitCmd>
  416. <Transition>IP</Transition>
  417. <Comment><![CDATA[check product code]]></Comment>
  418. <Requires>cycle</Requires>
  419. <Cmd>1</Cmd>
  420. <Adp>0</Adp>
  421. <Ado>1288</Ado>
  422. <Data>00000000</Data>
  423. <Cnt>1</Cnt>
  424. <Retries>3</Retries>
  425. <Validate>
  426. <Data>03000000</Data>
  427. <Timeout>100</Timeout>
  428. </Validate>
  429. </InitCmd>
  430. <InitCmd>
  431. <Transition>IP</Transition>
  432. <Transition>IB</Transition>
  433. <Comment><![CDATA[set physical address]]></Comment>
  434. <Requires>cycle</Requires>
  435. <Cmd>2</Cmd>
  436. <Adp>0</Adp>
  437. <Ado>16</Ado>
  438. <Data>e903</Data>
  439. <Cnt>1</Cnt>
  440. <Retries>3</Retries>
  441. </InitCmd>
  442. <InitCmd>
  443. <Transition>IP</Transition>
  444. <Transition>IB</Transition>
  445. <Transition>PI</Transition>
  446. <Transition>SI</Transition>
  447. <Transition>OI</Transition>
  448. <Comment><![CDATA[clear sm 0/1 (mailbox out/in)]]></Comment>
  449. <Cmd>5</Cmd>
  450. <Adp>1001</Adp>
  451. <Ado>2048</Ado>
  452. <Data>00000000000000000000000000000000</Data>
  453. <Retries>3</Retries>
  454. </InitCmd>
  455. <InitCmd>
  456. <Transition>BI</Transition>
  457. <Comment><![CDATA[clear sm 0/1 (mailbox out/in)]]></Comment>
  458. <Cmd>2</Cmd>
  459. <Adp>0</Adp>
  460. <Ado>2048</Ado>
  461. <Data>00000000000000000000000000000000</Data>
  462. <Retries>3</Retries>
  463. </InitCmd>
  464. <InitCmd>
  465. <Transition>IP</Transition>
  466. <Transition>IB</Transition>
  467. <Comment><![CDATA[set sm 0 (mailbox out)]]></Comment>
  468. <Cmd>5</Cmd>
  469. <Adp>1001</Adp>
  470. <Ado>2048</Ado>
  471. <Data>0010800026000100</Data>
  472. <Cnt>1</Cnt>
  473. <Retries>3</Retries>
  474. </InitCmd>
  475. <InitCmd>
  476. <Transition>IP</Transition>
  477. <Transition>IB</Transition>
  478. <Comment><![CDATA[set sm 1 (mailbox in)]]></Comment>
  479. <Cmd>5</Cmd>
  480. <Adp>1001</Adp>
  481. <Ado>2056</Ado>
  482. <Data>8010800022000100</Data>
  483. <Cnt>1</Cnt>
  484. <Retries>3</Retries>
  485. </InitCmd>
  486. <InitCmd>
  487. <Transition>SP</Transition>
  488. <Transition>OP</Transition>
  489. <Comment><![CDATA[set device state to PREOP]]></Comment>
  490. <Requires>cycle</Requires>
  491. <Cmd>5</Cmd>
  492. <Adp>1001</Adp>
  493. <Ado>288</Ado>
  494. <Data>1200</Data>
  495. <Retries>300</Retries>
  496. <Timeout>200</Timeout>
  497. </InitCmd>
  498. <InitCmd>
  499. <Transition>IP</Transition>
  500. <Transition>SP</Transition>
  501. <Transition>SI</Transition>
  502. <Transition>OP</Transition>
  503. <Transition>OI</Transition>
  504. <Comment><![CDATA[clear sms]]></Comment>
  505. <Cmd>5</Cmd>
  506. <Adp>1001</Adp>
  507. <Ado>2064</Ado>
  508. <Data>00000000000000000000000000000000</Data>
  509. <Retries>3</Retries>
  510. </InitCmd>
  511. <InitCmd>
  512. <Transition>PS</Transition>
  513. <Comment><![CDATA[set sm 2 (outputs)]]></Comment>
  514. <Cmd>5</Cmd>
  515. <Adp>1001</Adp>
  516. <Ado>2064</Ado>
  517. <Data>0011080064000100</Data>
  518. <Cnt>1</Cnt>
  519. <Retries>3</Retries>
  520. </InitCmd>
  521. <InitCmd>
  522. <Transition>PS</Transition>
  523. <Comment><![CDATA[set sm 3 (inputs)]]></Comment>
  524. <Cmd>5</Cmd>
  525. <Adp>1001</Adp>
  526. <Ado>2072</Ado>
  527. <Data>0014080020000100</Data>
  528. <Cnt>1</Cnt>
  529. <Retries>3</Retries>
  530. </InitCmd>
  531. <InitCmd>
  532. <Transition>PS</Transition>
  533. <Comment><![CDATA[set fmmu 0 (outputs)]]></Comment>
  534. <Cmd>5</Cmd>
  535. <Adp>1001</Adp>
  536. <Ado>1536</Ado>
  537. <Data>00000001080000070011000201000000</Data>
  538. <Cnt>1</Cnt>
  539. <Retries>3</Retries>
  540. </InitCmd>
  541. <InitCmd>
  542. <Transition>PS</Transition>
  543. <Comment><![CDATA[set fmmu 1 (inputs)]]></Comment>
  544. <Cmd>5</Cmd>
  545. <Adp>1001</Adp>
  546. <Ado>1552</Ado>
  547. <Data>00000001080000070014000101000000</Data>
  548. <Cnt>1</Cnt>
  549. <Retries>3</Retries>
  550. </InitCmd>
  551. <InitCmd>
  552. <Transition>IP</Transition>
  553. <Transition>IB</Transition>
  554. <Comment><![CDATA[set fmmu 2 (mailbox state)]]></Comment>
  555. <Cmd>5</Cmd>
  556. <Adp>1001</Adp>
  557. <Ado>1568</Ado>
  558. <Data>00000009010000000d08000101000000</Data>
  559. <Cnt>1</Cnt>
  560. <Retries>3</Retries>
  561. </InitCmd>
  562. <InitCmd>
  563. <Transition>OS</Transition>
  564. <Comment><![CDATA[set device state to SAFEOP]]></Comment>
  565. <Requires>cycle</Requires>
  566. <Cmd>5</Cmd>
  567. <Adp>1001</Adp>
  568. <Ado>288</Ado>
  569. <Data>0400</Data>
  570. <Retries>3</Retries>
  571. <Timeout>200</Timeout>
  572. </InitCmd>
  573. <InitCmd>
  574. <Transition>SP</Transition>
  575. <Transition>SI</Transition>
  576. <Transition>OP</Transition>
  577. <Transition>OI</Transition>
  578. <Comment><![CDATA[clear fmmu 0]]></Comment>
  579. <Cmd>5</Cmd>
  580. <Adp>1001</Adp>
  581. <Ado>1536</Ado>
  582. <Data>00000000000000000000000000000000</Data>
  583. <Retries>3</Retries>
  584. </InitCmd>
  585. <InitCmd>
  586. <Transition>SP</Transition>
  587. <Transition>SI</Transition>
  588. <Transition>OP</Transition>
  589. <Transition>OI</Transition>
  590. <Comment><![CDATA[clear fmmu 1]]></Comment>
  591. <Cmd>5</Cmd>
  592. <Adp>1001</Adp>
  593. <Ado>1552</Ado>
  594. <Data>00000000000000000000000000000000</Data>
  595. <Retries>3</Retries>
  596. </InitCmd>
  597. <InitCmd>
  598. <Transition>PI</Transition>
  599. <Transition>BI</Transition>
  600. <Transition>SI</Transition>
  601. <Transition>OI</Transition>
  602. <Comment><![CDATA[clear fmmu 2]]></Comment>
  603. <Cmd>5</Cmd>
  604. <Adp>1001</Adp>
  605. <Ado>1568</Ado>
  606. <Data>00000000000000000000000000000000</Data>
  607. <Retries>3</Retries>
  608. </InitCmd>
  609. <InitCmd>
  610. <Transition>SP</Transition>
  611. <Transition>OP</Transition>
  612. <Comment><![CDATA[check device state for PREOP]]></Comment>
  613. <Requires>cycle</Requires>
  614. <Cmd>4</Cmd>
  615. <Adp>1001</Adp>
  616. <Ado>304</Ado>
  617. <Data>000000000000</Data>
  618. <Retries>3</Retries>
  619. <Validate>
  620. <Data>020000000000</Data>
  621. <DataMask>0f0000000000</DataMask>
  622. <Timeout>5000</Timeout>
  623. </Validate>
  624. </InitCmd>
  625. <InitCmd>
  626. <Transition>IP</Transition>
  627. <Transition>IB</Transition>
  628. <Comment><![CDATA[assign EEPROM to PDI]]></Comment>
  629. <Requires>cycle</Requires>
  630. <Cmd>5</Cmd>
  631. <Adp>1001</Adp>
  632. <Ado>1280</Ado>
  633. <Data>01</Data>
  634. <Cnt>1</Cnt>
  635. <Retries>3</Retries>
  636. </InitCmd>
  637. <InitCmd>
  638. <Transition>II</Transition>
  639. <Comment><![CDATA[assign EEPROM back to ECAT]]></Comment>
  640. <Requires>cycle</Requires>
  641. <Cmd>2</Cmd>
  642. <Adp>0</Adp>
  643. <Ado>1280</Ado>
  644. <Data>00</Data>
  645. <Retries>3</Retries>
  646. </InitCmd>
  647. <InitCmd>
  648. <Transition>IP</Transition>
  649. <Comment><![CDATA[set device state to PREOP]]></Comment>
  650. <Requires>cycle</Requires>
  651. <Cmd>5</Cmd>
  652. <Adp>1001</Adp>
  653. <Ado>288</Ado>
  654. <Data>1200</Data>
  655. <Cnt>1</Cnt>
  656. <Retries>300</Retries>
  657. <Timeout>2000</Timeout>
  658. </InitCmd>
  659. <InitCmd>
  660. <Transition>IP</Transition>
  661. <Comment><![CDATA[check device state for PREOP]]></Comment>
  662. <Requires>cycle</Requires>
  663. <Cmd>4</Cmd>
  664. <Adp>1001</Adp>
  665. <Ado>304</Ado>
  666. <Data>000000000000</Data>
  667. <Cnt>1</Cnt>
  668. <Retries>3</Retries>
  669. <Validate>
  670. <Data>020000000000</Data>
  671. <DataMask>1f0000000000</DataMask>
  672. <Timeout>2000</Timeout>
  673. </Validate>
  674. </InitCmd>
  675. <InitCmd>
  676. <Transition>IP</Transition>
  677. <Transition>BI</Transition>
  678. <Comment><![CDATA[assign EEPROM back to ECAT]]></Comment>
  679. <Requires>cycle</Requires>
  680. <Cmd>2</Cmd>
  681. <Adp>0</Adp>
  682. <Ado>1280</Ado>
  683. <Data>00</Data>
  684. <Retries>3</Retries>
  685. </InitCmd>
  686. <InitCmd>
  687. <Transition>IB</Transition>
  688. <Comment><![CDATA[set device state to BOOT]]></Comment>
  689. <Requires>cycle</Requires>
  690. <Cmd>5</Cmd>
  691. <Adp>1001</Adp>
  692. <Ado>288</Ado>
  693. <Data>1300</Data>
  694. <Cnt>1</Cnt>
  695. <Retries>3</Retries>
  696. <Timeout>2000</Timeout>
  697. </InitCmd>
  698. <InitCmd>
  699. <Transition>IB</Transition>
  700. <Comment><![CDATA[check device state for BOOT]]></Comment>
  701. <Requires>cycle</Requires>
  702. <Cmd>4</Cmd>
  703. <Adp>1001</Adp>
  704. <Ado>304</Ado>
  705. <Data>000000000000</Data>
  706. <Cnt>1</Cnt>
  707. <Retries>3</Retries>
  708. <Validate>
  709. <Data>030000000000</Data>
  710. <DataMask>1f0000000000</DataMask>
  711. <Timeout>2000</Timeout>
  712. </Validate>
  713. </InitCmd>
  714. <InitCmd>
  715. <Transition>PS</Transition>
  716. <Comment><![CDATA[set device state to SAFEOP]]></Comment>
  717. <Requires>cycle</Requires>
  718. <Cmd>5</Cmd>
  719. <Adp>1001</Adp>
  720. <Ado>288</Ado>
  721. <Data>0400</Data>
  722. <Cnt>1</Cnt>
  723. <Retries>3</Retries>
  724. <Timeout>9000</Timeout>
  725. </InitCmd>
  726. <InitCmd>
  727. <Transition>PS</Transition>
  728. <Comment><![CDATA[check device state for SAFEOP]]></Comment>
  729. <Requires>cycle</Requires>
  730. <Cmd>4</Cmd>
  731. <Adp>1001</Adp>
  732. <Ado>304</Ado>
  733. <Data>000000000000</Data>
  734. <Cnt>1</Cnt>
  735. <Retries>3</Retries>
  736. <Validate>
  737. <Data>040000000000</Data>
  738. <DataMask>1f0000000000</DataMask>
  739. <Timeout>9000</Timeout>
  740. </Validate>
  741. </InitCmd>
  742. <InitCmd>
  743. <Transition>OS</Transition>
  744. <Comment><![CDATA[check device state for SAFEOP]]></Comment>
  745. <Requires>cycle</Requires>
  746. <Cmd>4</Cmd>
  747. <Adp>1001</Adp>
  748. <Ado>304</Ado>
  749. <Data>000000000000</Data>
  750. <Retries>3</Retries>
  751. <Validate>
  752. <Data>040000000000</Data>
  753. <DataMask>0f0000000000</DataMask>
  754. <Timeout>200</Timeout>
  755. </Validate>
  756. </InitCmd>
  757. <InitCmd>
  758. <Transition>SO</Transition>
  759. <Comment><![CDATA[set device state to OP]]></Comment>
  760. <Requires>cycle</Requires>
  761. <Cmd>5</Cmd>
  762. <Adp>1001</Adp>
  763. <Ado>288</Ado>
  764. <Data>0800</Data>
  765. <Cnt>1</Cnt>
  766. <Retries>3</Retries>
  767. <Timeout>9000</Timeout>
  768. </InitCmd>
  769. <InitCmd>
  770. <Transition>SO</Transition>
  771. <Comment><![CDATA[check device state for OP]]></Comment>
  772. <Requires>cycle</Requires>
  773. <Cmd>4</Cmd>
  774. <Adp>1001</Adp>
  775. <Ado>304</Ado>
  776. <Data>000000000000</Data>
  777. <Cnt>1</Cnt>
  778. <Retries>3</Retries>
  779. <Validate>
  780. <Data>080000000000</Data>
  781. <DataMask>1f0000000000</DataMask>
  782. <Timeout>9000</Timeout>
  783. </Validate>
  784. </InitCmd>
  785. </InitCmds>
  786. </Slave>
  787. <Cyclic>
  788. <Comment><![CDATA[synchronized with task 'NC-Task 1 SAF']]></Comment>
  789. <CycleTime>2000</CycleTime>
  790. <Priority>4</Priority>
  791. <TaskId>1</TaskId>
  792. <Frame>
  793. <Cmd>
  794. <State>PREOP</State>
  795. <State>SAFEOP</State>
  796. <State>OP</State>
  797. <Comment><![CDATA[cyclic cmd]]></Comment>
  798. <Cmd>10</Cmd>
  799. <Addr>150994944</Addr>
  800. <DataLength>1</DataLength>
  801. <InputOffs>16</InputOffs>
  802. <OutputOffs>16</OutputOffs>
  803. </Cmd>
  804. <Cmd>
  805. <State>SAFEOP</State>
  806. <State>OP</State>
  807. <Comment><![CDATA[cyclic cmd]]></Comment>
  808. <Cmd>12</Cmd>
  809. <Addr>16777216</Addr>
  810. <DataLength>8</DataLength>
  811. <Cnt>3</Cnt>
  812. <InputOffs>29</InputOffs>
  813. <OutputOffs>29</OutputOffs>
  814. </Cmd>
  815. <Cmd>
  816. <State>PREOP</State>
  817. <State>SAFEOP</State>
  818. <State>OP</State>
  819. <Comment><![CDATA[cyclic cmd]]></Comment>
  820. <Cmd>7</Cmd>
  821. <Adp>0</Adp>
  822. <Ado>304</Ado>
  823. <DataLength>2</DataLength>
  824. <Cnt>1</Cnt>
  825. <InputOffs>49</InputOffs>
  826. <OutputOffs>49</OutputOffs>
  827. </Cmd>
  828. </Frame>
  829. </Cyclic>
  830. <ProcessImage>
  831. <Inputs>
  832. <ByteSize>1536</ByteSize>
  833. <Variable>
  834. <Name>Drive 1 (ECAT_CIA402).Module 1 (csv - axis).Inputs.Status Word</Name>
  835. <Comment><![CDATA[object 0x6041:0]]></Comment>
  836. <DataType>UINT</DataType>
  837. <BitSize>16</BitSize>
  838. <BitOffs>312</BitOffs>
  839. </Variable>
  840. <Variable>
  841. <Name>Drive 1 (ECAT_CIA402).Module 1 (csv - axis).Inputs.ActualPosition</Name>
  842. <Comment><![CDATA[object 0x6064:0]]></Comment>
  843. <DataType>DINT</DataType>
  844. <BitSize>32</BitSize>
  845. <BitOffs>328</BitOffs>
  846. </Variable>
  847. <Variable>
  848. <Name>Inputs.Frm0State</Name>
  849. <Comment><![CDATA[0x0001 = 1. EtherCAT command not sent (NOP requested)
  850. 0x0002 = 2. EtherCAT command not sent (NOP requested)
  851. 0x0004 = 3. EtherCAT command not sent (NOP requested)
  852. ...
  853. 0x4000 = 15. EtherCAT command not sent (NOP requested)
  854. 0x8000 = complete frame not sent
  855. ]]></Comment>
  856. <DataType>UINT</DataType>
  857. <BitSize>16</BitSize>
  858. <BitOffs>12160</BitOffs>
  859. </Variable>
  860. <Variable>
  861. <Name>Inputs.Frm0WcState</Name>
  862. <Comment><![CDATA[0x0001 = wrong working counter of 1. EtherCAT command received
  863. 0x0002 = wrong working counter of 2. EtherCAT command received
  864. 0x0004 = wrong working counter of 3. EtherCAT command received
  865. ...
  866. 0x4000 = wrong working counter of 15. EtherCAT command received
  867. 0x8000 = complete frame missing
  868. ]]></Comment>
  869. <DataType>UINT</DataType>
  870. <BitSize>16</BitSize>
  871. <BitOffs>12176</BitOffs>
  872. </Variable>
  873. <Variable>
  874. <Name>Drive 1 (ECAT_CIA402).WcState.WcState</Name>
  875. <Comment><![CDATA[0 = Data valid
  876. 1 = Data invalid
  877. ]]></Comment>
  878. <DataType>BIT</DataType>
  879. <BitSize>1</BitSize>
  880. <BitOffs>12177</BitOffs>
  881. </Variable>
  882. <Variable>
  883. <Name>Inputs.Frm0InputToggle</Name>
  884. <Comment><![CDATA[0x0001 = Toggle Bit: 1. EtherCAT command received new inputs
  885. 0x0002 = Toggle Bit: 2. EtherCAT command received new inputs
  886. 0x0004 = Toggle Bit: 3. EtherCAT command received new inputs
  887. ...
  888. 0x4000 = Toggle Bit: 15. EtherCAT command received new inputs
  889. 0x8000 = Old frame - not from the actual cycle - received
  890. ]]></Comment>
  891. <DataType>UINT</DataType>
  892. <BitSize>16</BitSize>
  893. <BitOffs>12192</BitOffs>
  894. </Variable>
  895. <Variable>
  896. <Name>Drive 1 (ECAT_CIA402).WcState.InputToggle</Name>
  897. <DataType>BIT</DataType>
  898. <BitSize>1</BitSize>
  899. <BitOffs>12193</BitOffs>
  900. </Variable>
  901. <Variable>
  902. <Name>SyncUnits.&lt;default&gt;.NC-Task 1 SAF.WcState.WcState</Name>
  903. <Comment><![CDATA[0 = Data valid
  904. 1 = Data invalid
  905. ]]></Comment>
  906. <DataType>BIT</DataType>
  907. <BitSize>1</BitSize>
  908. <BitOffs>12208</BitOffs>
  909. </Variable>
  910. <Variable>
  911. <Name>Inputs.SlaveCount</Name>
  912. <Comment><![CDATA[Actual count of EtherCAT slaves received]]></Comment>
  913. <DataType>UINT</DataType>
  914. <BitSize>16</BitSize>
  915. <BitOffs>12240</BitOffs>
  916. </Variable>
  917. <Variable>
  918. <Name>Inputs.DevState</Name>
  919. <Comment><![CDATA[0x0001 = Link error
  920. 0x0002 = I/O locked after link error (I/O reset required)
  921. 0x0004 = Link error (redundancy adapter)
  922. 0x0008 = Missing one frame (redundancy mode)
  923. 0x0010 = Out of send resources (I/O reset required)
  924. 0x0020 = Watchdog triggered
  925. 0x0040 = Ethernet driver (miniport) not found
  926. 0x0080 = I/O reset active
  927. 0x0100 = At least one device in 'INIT' state
  928. 0x0200 = At least one device in 'PRE-OP' state
  929. 0x0400 = At least one device in 'SAFE-OP' state
  930. 0x0800 = At least one device indicates an error state
  931. 0x1000 = DC not in sync
  932. ]]></Comment>
  933. <DataType>UINT</DataType>
  934. <BitSize>16</BitSize>
  935. <BitOffs>12272</BitOffs>
  936. </Variable>
  937. <Variable>
  938. <Name>InfoData.ChangeCount</Name>
  939. <Comment><![CDATA[Info data change counter]]></Comment>
  940. <DataType>UINT</DataType>
  941. <BitSize>16</BitSize>
  942. <BitOffs>12288</BitOffs>
  943. </Variable>
  944. <Variable>
  945. <Name>InfoData.DevId</Name>
  946. <Comment><![CDATA[DeviceId of EtherCAT device]]></Comment>
  947. <DataType>UINT</DataType>
  948. <BitSize>16</BitSize>
  949. <BitOffs>12304</BitOffs>
  950. </Variable>
  951. <Variable>
  952. <Name>InfoData.AmsNetId</Name>
  953. <Comment><![CDATA[AmsNetId of EtherCAT device]]></Comment>
  954. <DataType>AMSNETID</DataType>
  955. <BitSize>48</BitSize>
  956. <BitOffs>12320</BitOffs>
  957. </Variable>
  958. <Variable>
  959. <Name>InfoData.CfgSlaveCount</Name>
  960. <Comment><![CDATA[Count of configured EtherCAT slaves]]></Comment>
  961. <DataType>UINT</DataType>
  962. <BitSize>16</BitSize>
  963. <BitOffs>12368</BitOffs>
  964. </Variable>
  965. <Variable>
  966. <Name>Drive 1 (ECAT_CIA402).InfoData.State</Name>
  967. <Comment><![CDATA[0x___1 = Slave in 'INIT' state
  968. 0x___2 = Slave in 'PREOP' state
  969. 0x___3 = Slave in 'BOOT' state
  970. 0x___4 = Slave in 'SAFEOP' state
  971. 0x___8 = Slave in 'OP' state
  972. 0x001_ = Slave signals error
  973. 0x002_ = Invalid vendorId, productCode... read
  974. 0x004_ = Initialization error occurred
  975. 0x008_ = Slave disabled
  976. 0x010_ = Slave not present
  977. 0x020_ = Slave signals link error
  978. 0x040_ = Slave signals missing link
  979. 0x080_ = Slave signals unexpected link
  980. 0x100_ = Communication port A
  981. 0x200_ = Communication port B
  982. 0x400_ = Communication port C
  983. 0x800_ = Communication port D
  984. ]]></Comment>
  985. <DataType>UINT</DataType>
  986. <BitSize>16</BitSize>
  987. <BitOffs>12384</BitOffs>
  988. </Variable>
  989. <Variable>
  990. <Name>Drive 1 (ECAT_CIA402).InfoData.AdsAddr</Name>
  991. <Comment><![CDATA[Complete ADS address to access the slave (mailbox)]]></Comment>
  992. <DataType>AMSADDR</DataType>
  993. <BitSize>64</BitSize>
  994. <BitOffs>12400</BitOffs>
  995. </Variable>
  996. <Variable>
  997. <Name>Drive 1 (ECAT_CIA402).InfoData.Chn0</Name>
  998. <Comment><![CDATA[Slave has a channel]]></Comment>
  999. <DataType>USINT</DataType>
  1000. <BitSize>8</BitSize>
  1001. <BitOffs>12464</BitOffs>
  1002. </Variable>
  1003. <Variable>
  1004. <Name>Drive 1 (ECAT_CIA402).InfoData.Chn1</Name>
  1005. <Comment><![CDATA[Slave has a channel]]></Comment>
  1006. <DataType>USINT</DataType>
  1007. <BitSize>8</BitSize>
  1008. <BitOffs>12472</BitOffs>
  1009. </Variable>
  1010. <Variable>
  1011. <Name>SyncUnits.&lt;default&gt;.NC-Task 1 SAF.InfoData.ObjectId</Name>
  1012. <DataType>OTCID</DataType>
  1013. <BitSize>32</BitSize>
  1014. <BitOffs>12480</BitOffs>
  1015. </Variable>
  1016. <Variable>
  1017. <Name>SyncUnits.&lt;default&gt;.NC-Task 1 SAF.InfoData.State</Name>
  1018. <Comment><![CDATA[0x___1 = At least one slave in 'INIT' state
  1019. 0x___2 = At least one slave in 'PREOP' state
  1020. 0x___3 = At least one slave in 'BOOT' state
  1021. 0x___4 = At least one slave in 'SAFEOP' state
  1022. 0x___8 = At least one slave in 'OP' state
  1023. 0x001_ = At least one slave signals error
  1024. 0x002_ = Invalid vendorId, productCode... read
  1025. 0x004_ = Initialization error occurred
  1026. 0x008_ = At least one slave disabled
  1027. 0x010_ = At least one slave not present
  1028. 0x020_ = At least one slave signals link error
  1029. 0x040_ = At least one slave signals missing link
  1030. 0x080_ = At least one slave signals unexpected link
  1031. ]]></Comment>
  1032. <DataType>UINT</DataType>
  1033. <BitSize>16</BitSize>
  1034. <BitOffs>12512</BitOffs>
  1035. </Variable>
  1036. <Variable>
  1037. <Name>SyncUnits.&lt;default&gt;.NC-Task 1 SAF.InfoData.SlaveCount</Name>
  1038. <Comment><![CDATA[Info data slave counter]]></Comment>
  1039. <DataType>UINT</DataType>
  1040. <BitSize>16</BitSize>
  1041. <BitOffs>12528</BitOffs>
  1042. </Variable>
  1043. </Inputs>
  1044. <Outputs>
  1045. <ByteSize>1536</ByteSize>
  1046. <Variable>
  1047. <Name>Drive 1 (ECAT_CIA402).Module 1 (csv - axis).Outputs.Control Word</Name>
  1048. <Comment><![CDATA[object 0x6040:0]]></Comment>
  1049. <DataType>UINT</DataType>
  1050. <BitSize>16</BitSize>
  1051. <BitOffs>312</BitOffs>
  1052. </Variable>
  1053. <Variable>
  1054. <Name>Drive 1 (ECAT_CIA402).Module 1 (csv - axis).Outputs.TargetVelocity</Name>
  1055. <Comment><![CDATA[object 0x60FF:0]]></Comment>
  1056. <DataType>DINT</DataType>
  1057. <BitSize>32</BitSize>
  1058. <BitOffs>328</BitOffs>
  1059. </Variable>
  1060. <Variable>
  1061. <Name>Outputs.Frm0Ctrl</Name>
  1062. <Comment><![CDATA[0x0001 = prevent 1. EtherCAT command from sending (request NOP)
  1063. 0x0002 = prevent 2. EtherCAT command from sending (request NOP)
  1064. 0x0004 = prevent 3. EtherCAT command from sending (request NOP)
  1065. ...
  1066. 0x4000 = prevent 15. EtherCAT command from sending (request NOP)
  1067. 0x8000 = prevent complete frame from sending
  1068. ]]></Comment>
  1069. <DataType>UINT</DataType>
  1070. <BitSize>16</BitSize>
  1071. <BitOffs>12160</BitOffs>
  1072. </Variable>
  1073. <Variable>
  1074. <Name>Outputs.Frm0WcCtrl</Name>
  1075. <Comment><![CDATA[0x0001 = copy data with wrong working counter of 1. EtherCAT command
  1076. 0x0002 = copy data with wrong working counter of 2. EtherCAT command
  1077. 0x0004 = copy data with wrong working counter of 3. EtherCAT command
  1078. ...
  1079. 0x4000 = copy data with wrong working counter of 15. EtherCAT command
  1080. ]]></Comment>
  1081. <DataType>UINT</DataType>
  1082. <BitSize>16</BitSize>
  1083. <BitOffs>12176</BitOffs>
  1084. </Variable>
  1085. <Variable>
  1086. <Name>Outputs.DevCtrl</Name>
  1087. <DataType>UINT</DataType>
  1088. <BitSize>16</BitSize>
  1089. <BitOffs>12272</BitOffs>
  1090. </Variable>
  1091. </Outputs>
  1092. </ProcessImage>
  1093. </Config>
  1094. </EtherCATConfig>