Rob Jansen wrote: >Hi, > >is it possible to invert the DIR signal of the stepgen output of the >Mesa 5i20 board? >On my old (parport) config I had the DIR signal inverted so I was >looking for a similar option on the hostmot configuration. > > One way to do that would be to change the sign of the SCALE on the axes that need DIR inverted.
So change it from SCALE=20000 to SCALE=-20000, for instance. Each pin also has a parameter that ends with "invert_output". Setting this to true will invert the output, just like on the parallel port. Add something like the following to your HAL file: setp hm2_5i20.0.gpio.027.invert_output 1 (substituting the correct number for 027, of course :) ) - Steve ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users