On Tue, 5 Jul 2011, Viesturs L?cis wrote: > Date: Tue, 5 Jul 2011 17:11:34 +0300 > From: "[UTF-8] Viesturs L?cis" <viesturs.la...@gmail.com> > Reply-To: "Enhanced Machine Controller (EMC)" > <emc-users@lists.sourceforge.net> > To: "Enhanced Machine Controller (EMC)" <emc-users@lists.sourceforge.net> > Subject: Re: [Emc-users] Reverse direction for stepgen on Mesa 7i43 > > 2011/7/4 Peter C. Wallace <p...@mesanet.com>: >> In HostMot2, outputs are inverted by >> setting the invert_output attribute of the proper GPIO bit. > > Got stuck with this - how do I specify that I want to invert direction > bit of a particular stepgen? That is not a GPIO bit and I do not see > any related pin anywhere in HAL (looked in Show HAL configuration). > In my HAL file stepgen pins are syntaxed like this: > hm2_[HOSTMOT2](BOARD).0.stepgen.nn.xxx > where nn - number of stepgen, xxx - name of pin (position-cmd or > position-fb etc.) > What is correct syntax for assessing output of direction? > > Viesturs
The .pin file (the configuration specific pinout documentation file) will have the stepgen/GPIO correspondence. Even though the stepgen outputs (or any hardware module output for that matter) are not GPIO bits, they are still controlled by two GPIO parameter settings: is_opendrain, and invert_output. The is_output parameter is automatically set true for _enabled_ hardware modules and AFAIK not exposed to the HAL interface. > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination. ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users