Peter C. Wallace wrote: > On Fri, 23 Jan 2009, Richard Acosta wrote: > >> I'm now about to connect a linear encoder, but, i don't know how to >> connect it. >> I downloaded the three manuals available, and found about pwmgen >> connection but nothing about an encoder. >> >> How do i tell EMC2 which pins belong to encoders? >> In which file? > > There should be a .PIN file that matches the name of the firmware file you > are > using, say SVST4_6.PIN for example. I'm not sure off hand where this is in > the > EMC distribution but locate should find it. This file has the pinout > information for the matching bitfile. You can also set the > "debug_pin_descriptors" flag when launching hostmot2. (man hostmot2).
Hi again Richard. The PIN files are in src/hal/drivers/mesa-hostmot2/firmware/7i43 if you're compiling from source using a CVS checkout. They're in /usr/share/doc/emc2/hostmot2/7i43 if you installed the 2.2.8 .deb. The driver prints the actual pinout at load-time whether or not debug_pin_descriptors is given. The pinout shows up in the dmesg. (debug_pin_descriptors only enables dumping the firmware's Pin Descriptors in all their hideous glory, this may be interesting to firmware hackers and driver writers but it's no good for users - users should get what they need from the always-on pinout logging.) -- Sebastian Kuzminsky sky is black / stars show me the way moon whispers how to keep my faith -- Korpiklaani ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
