For now you have to build from source to get hostmot2. It will be in 2.2.6 when it comes out, which might be as early as this weekend.
Hostmot2 treats the board I/O pins differently than previous firmwares & drivers. High-level functions like stepgen, pwmgen, & encoder by default "own" all the pins, but you can (at module load time) disable the stepgens etc that you don't want. The pins of the disabled module instances become gpios and are exported to HAL.. Hostmot2 gpios are read and written along with all the other stuff (stepgen, pwmgen, etc) by the per-board read and write functions. The hostmot2 pinouts are almost certainly different than the ones in the other 5i20 firmwares & drivers. The pinout used is determined by the firmware loaded and the configuration chosen by the user. The pinout used is written to the system log when the driver is loaded. I've tried to describe how all this works in the hostmot2 manpage, take a look at it and let me know what parts of it are unclear or incomplete. -- Sebastian Kuzminsky never be discouraged just let your nerdy flourish -----Original Message----- From: "Eric H. Johnson" <[EMAIL PROTECTED]> Subj: Re: [Emc-users] Stepper configuration Date: Sat 2008 Aug 9 7:19 Size: 1K To: "'Enhanced Machine Controller (EMC)'" <emc-users@lists.sourceforge.net> Sebastian, Thanks. A couple more questions. 1> I assume I will have to build from source to use hostmot2? 2> On an m5i20, how do you use the general purpose I/O? I don't see, for instance, the equivalents of: addf m5i20.0.misc-update servo-thread 1 addf m5i20.0.digital-in-read servo-thread 1 addf m5i20.0.digital-out-write servo-thread -1 3> What are the pinouts? Do they remain the same for P3 and P4 as with the standard m5i20 configuration. Regards, Eric > Do you know anything about hostmot2? I see it has step and pwm, but > did not see a sample configuration on how to use it. Is it completed > or still a work in progress? hostmot2 is still a work in progress, but i think it's ready for more widespread testing. I've added a very simple & incomplete sample config, it's in CVS (TRUNK and the 2.2 branch) but it's not in the released 2.2.5 package. It will be in 2.2.6 which is dues out real soon now. You can see the sample configs here: <http://cvs.linuxcnc.org/cvs/emc2/configs/hostmot2/> or here: <http://bazaar.launchpad.net/~seb-highlab/emc/hostmot2/files/470?file_id=hos tmot2-20080704040329-dmc6hkstgm2r40ep-1> ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users