Any other driver board choice except mesa board?

More
2 years 6 months ago #299388 by rodw
There has been an enormous amount of work on ethercat recently that is in the ethercat linuxcnc driver
github.com/linuxcnc-ethercat/linuxcnc-ethercat
All of these new features are synced to the etherlabmaster repository via an auto build process. I believe that there are some emerging config tools.

Please review the documentation in the repo
github.com/linuxcnc-ethercat/linuxcnc-ethercat

Building a hal config from scratch is not that  hard if you have a template to start with. Back when I made my first machine there was no support in pncconf for the Mesa 7i6e so I had to do it this way.

You could use my example. A lot of guys got going with this  github.com/rodw-au/linuxcnc-cia402

However, I think my xml file with the new changes could be simplified to this (with the bulk of the xml dealing with the IO module)
Code:
<masters>   <master idx="0" appTimePeriod="2000000" refClockSyncCycles="1000">     <slave idx="1" type="ECT60" name="j0">       <modParam name="peakCurrent_amps" value="2.0"/>       <modParam name="controlMode" value="openloop"/>       <modParam name="homeOffset" value="1"/>       <modParam name="input3Func" value="home"/>       <modParam name="input6Func" value="emergency-stop"/>       <modParam name="homeMode" value="17"/>       <modParam name="homeAccel" value="500"/>       <modParam name="homeSpeedFast" value="2500"/>       <modParam name="homeSpeedSlow" value="500"/>     </slave>     <slave idx="2" type="ECT60" name="j1">       <modParam name="peakCurrent_amps" value="6.0"/>       <modParam name="controlMode" value="closedloop"/>       <modParam name="homeOffset" value="1"/>       <modParam name="input3Func" value="home"/>       <modParam name="input6Func" value="emergency-stop"/>       <modParam name="homeMode" value="17"/>       <modParam name="homeAccel" value="500"/>       <modParam name="homeSpeedFast" value="2500"/>       <modParam name="homeSpeedSlow" value="500"/>     </slave>          <slave idx="3" type="generic" vid="00000a88" pid="0x0a880101" configPdos="false" name="IO">       <dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="0"/>       <syncManager idx="2" dir="out">         <pdo idx="1600">             <!-- Digtial Outputs (RTEC1616)-->               <pdoEntry idx="7000" subIdx="01" bitLen="16" halType="complex">                 <complexEntry bitLen="1" halPin="out-01" halType="bit"/>                 <complexEntry bitLen="1" halPin="out-02" halType="bit"/>                 <complexEntry bitLen="1" halPin="out-03" halType="bit"/>                 <complexEntry bitLen="1" halPin="out-04" halType="bit"/>                 <complexEntry bitLen="1" halPin="out-05" halType="bit"/>                 <complexEntry bitLen="1" halPin="out-06" halType="bit"/>                 <complexEntry bitLen="1" halPin="out-07" halType="bit"/>                 <complexEntry bitLen="1" halPin="out-08" halType="bit"/>                 <complexEntry bitLen="1" halPin="out-09" halType="bit"/>                 <complexEntry bitLen="1" halPin="out-10" halType="bit"/>                 <complexEntry bitLen="1" halPin="out-11" halType="bit"/>                 <complexEntry bitLen="1" halPin="out-12" halType="bit"/>                 <complexEntry bitLen="1" halPin="out-13" halType="bit"/>                 <complexEntry bitLen="1" halPin="out-14" halType="bit"/>                 <complexEntry bitLen="1" halPin="out-15" halType="bit"/>                 <complexEntry bitLen="1" halPin="out-16" halType="bit"/>               </pdoEntry>               <pdoEntry idx="7000" subIdx="02" bitLen="16" halPin="pwm_duty1" halType="s32"/>               <pdoEntry idx="7000" subIdx="03" bitLen="16" halPin="pwm_duty2" halType="s32"/>               <pdoEntry idx="7000" subIdx="04" bitLen="16" halPin="pwm_duty3" halType="s32"/>               <pdoEntry idx="7000" subIdx="05" bitLen="16" halPin="pwm_duty4" halType="s32"/>           </pdo>           </syncManager>           <syncManager idx="3" dir="in">             <pdo idx="1A00">               <!-- Digtial_inputs  -->               <pdoEntry idx="6000" subIdx="01" bitLen="32" halType="complex">                   <complexEntry bitLen="1" halPin="in-01" halType="bit"/>                   <complexEntry bitLen="1" halPin="in-02" halType="bit"/>                   <complexEntry bitLen="1" halPin="in-03" halType="bit"/>                   <complexEntry bitLen="1" halPin="in-04" halType="bit"/>                   <complexEntry bitLen="1" halPin="in-05" halType="bit"/>                   <complexEntry bitLen="1" halPin="in-06" halType="bit"/>                   <complexEntry bitLen="1" halPin="in-07" halType="bit"/>                   <complexEntry bitLen="1" halPin="in-08" halType="bit"/>                   <complexEntry bitLen="1" halPin="in-09" halType="bit"/>                   <complexEntry bitLen="1" halPin="in-10" halType="bit"/>                   <complexEntry bitLen="1" halPin="in-11" halType="bit"/>                   <complexEntry bitLen="1" halPin="in-12" halType="bit"/>                   <complexEntry bitLen="1" halPin="in-13" halType="bit"/>                   <complexEntry bitLen="1" halPin="in-14" halType="bit"/>                   <complexEntry bitLen="1" halPin="in-15" halType="bit"/>                   <complexEntry bitLen="1" halPin="in-16" halType="bit"/>                </pdoEntry>         </pdo>       </syncManager>     </slave>   </master> </masters>
The following user(s) said Thank You: timaer

Please Log in or Create an account to join the conversation.

More
2 years 5 months ago #299883 by timaer
Thanks, I've decided to use EtherCAT,though I'm a newbee to this .I've just installed the EtherCAT by following the instructions in the forum to my RaspBerry PI 5 and I dont know what to do next :( ,To me ,the wizard is just GUI interface and friendly to the newbee ,but our company's boss decide to use EtherCAT ,so I've to dive to it. I dont know how to control the machine after I installed the linuxcnc-ethernet .after all ,there is no wizard in linuxcnc supporting etherCAT :(

Please Log in or Create an account to join the conversation.

More
2 years 5 months ago #299884 by timaer
Thanks a lot.I've just installed etherCAT in my raspberry pi 5 ,and I dont know what to do next .I 'm just new to EtherCAT .and I dont know how to control the machine through servo and step.it looks there is no GUI wizard in linuxcnc. Can I run your xml and hal code in my raspberry pi 5? is it used for controlling and testing machine just like the linuxcnc wizard do ?

Please Log in or Create an account to join the conversation.

More
2 years 5 months ago #299894 by timaer
Hi,I've downloaded all the linuxcnc-cia402 files from github to my linuxcnc machine and put it in the config directory ,but it seems when I runned it ,it collapsed ,is the xml too old ,should I replace the xml file with what you provided in the ticket ?

Please Log in or Create an account to join the conversation.

More
2 years 5 months ago #299896 by timaer
And also I found one instructructions in the github files,should I follow it to install these stuff .I 'm not sure of it because I 've succesfully runned all the instructions following the forum first ticket written by you .

Please Log in or Create an account to join the conversation.

Moderators: PCW, jmelson
Time to create page: 0.328 seconds
Powered by Kunena Forum