Re: [Emc-users] Mesa 7i33 encoder inputs and up/down counter mode
Gerhard Pircher wrote: > I'm using the Mesa 7i33 card to interface three RS-422 linear encoders to > EMC2. Now I would like to use the fourth input for the spindle speed > sensor, which delivers a 12V pulse and direction signal. But I wonder which > input of the 7i33 card should be connected to the pulse resp. direction > signal (if possible at all, but the Hostmot2 driver allows to run encoders > in counter mode). The hostmot2 firmware currently supports Quadrature and Up/Down mode, but not Step/Dir, unfortunately. If your spindle is not reversible you could connect the step line to either Up or Down, and run it that way. -- Sebastian Kuzminsky -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Mesa 7i33 encoder inputs and up/down counter mode
Original-Nachricht > Datum: Fri, 31 Jul 2009 14:11:38 -0600 > Von: Sebastian Kuzminsky > An: "Enhanced Machine Controller (EMC)" > Betreff: Re: [Emc-users] Mesa 7i33 encoder inputs and up/down counter mode > Gerhard Pircher wrote: > > I'm using the Mesa 7i33 card to interface three RS-422 linear encoders > > to EMC2. Now I would like to use the fourth input for the spindle speed > > sensor, which delivers a 12V pulse and direction signal. But I wonder > > which input of the 7i33 card should be connected to the pulse resp. > > direction signal (if possible at all, but the Hostmot2 driver allows > > to run encoders in counter mode). > > The hostmot2 firmware currently supports Quadrature and Up/Down mode, > but not Step/Dir, unfortunately. Silly me! I thought Up/Down and Step/Dir is the same... > If your spindle is not reversible you could connect the step line to > either Up or Down, and run it that way. Well, it is reversible. Maybe I should build a simple step/dir to quadrature converter. That shouldn't be too hard. Thanks for enlightening me! Gerhard -- Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 - sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Mesa 7i33 encoder inputs and up/down counter mode
Gerhard Pircher wrote: >> If your spindle is not reversible you could connect the step line to >> either Up or Down, and run it that way. > Well, it is reversible. Maybe I should build a simple step/dir to > quadrature converter. That shouldn't be too hard. > > Thanks for enlightening me! It might be simple to use the Dir line from your spindle as the selector to a demux, and send the Step signal to either Up or Down on the hm2 encoder input. -- Sebastian Kuzminsky -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Mesa 7i33 encoder inputs and up/down counter mode
Sebastian Kuzminsky wrote: >Gerhard Pircher wrote: > > >>>If your spindle is not reversible you could connect the step line to >>>either Up or Down, and run it that way. >>> >>> >>Well, it is reversible. Maybe I should build a simple step/dir to >>quadrature converter. That shouldn't be too hard. >> >>Thanks for enlightening me! >> >> >It might be simple to use the Dir line from your spindle as the selector >to a demux, and send the Step signal to either Up or Down on the hm2 >encoder input. > > That's a good idea, with a couple of caveats: 1) There is no demux component ;) 2) When someone writes one, they will need to be careful about what happens to the unused output - there shouldn't be any unexpected transitions on the "other" output 3) There could be several counts in the wrong direction since counting is done in a MHz-speed "thread" in the FPGA and the demux would only be checked at 1Khz to 10kHz rates. This wouldn't be bad in practice since the spindle would have to slow down before reversing, but it could also be a problem if the spindle is more or less still and the dir line changes out of sunc with the step pulses. - Steve -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Mesa 7i33 encoder inputs and up/down counter mode
Stephen Wille Padnos wrote: > Sebastian Kuzminsky wrote: > >> It might be simple to use the Dir line from your spindle as the selector >> to a demux, and send the Step signal to either Up or Down on the hm2 >> encoder input. >> >> > That's a good idea, with a couple of caveats: > > 1) There is no demux component ;) I was assuming that Sebastian meant a hardware demux. After all, the spindle encoder signals are hardware, and the encoder counter inputs are hardware. A HAL demux component wouldn't be much help (unless the signals are so slow that they can be counted in software). Regards, John Kasunich -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Mesa 7i33 encoder inputs and up/down counter mode
Original-Nachricht > Datum: Fri, 31 Jul 2009 17:15:09 -0400 > Von: Stephen Wille Padnos > An: "Enhanced Machine Controller (EMC)" > Betreff: Re: [Emc-users] Mesa 7i33 encoder inputs and up/down counter mode > Sebastian Kuzminsky wrote: > > >Gerhard Pircher wrote: > > > > > >>>If your spindle is not reversible you could connect the step line to > >>>either Up or Down, and run it that way. > >>> > >>> > >>Well, it is reversible. Maybe I should build a simple step/dir to > >>quadrature converter. That shouldn't be too hard. > >> > >>Thanks for enlightening me! > >> > >> > >It might be simple to use the Dir line from your spindle as the > >selector to a demux, and send the Step signal to either Up or Down on > >the hm2 encoder input. > > > > > That's a good idea, with a couple of caveats: > > 1) There is no demux component ;) > 2) When someone writes one, they will need to be careful about what > happens to the unused output - there shouldn't be any unexpected > transitions on the "other" output > 3) There could be several counts in the wrong direction since counting > is done in a MHz-speed "thread" in the FPGA and the demux would only be > checked at 1Khz to 10kHz rates. This wouldn't be bad in practice since > the spindle would have to slow down before reversing, but it could also > be a problem if the spindle is more or less still and the dir line > changes out of sunc with the step pulses. The demuxing would be done in hardware (e.g. with a 4x NAND TTL IC to build the demux). Gerhard -- Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate für nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Mesa 7i33 encoder inputs and up/down counter mode
John Kasunich wrote: >Stephen Wille Padnos wrote: > > >>Sebastian Kuzminsky wrote: >> >> >>>It might be simple to use the Dir line from your spindle as the selector >>>to a demux, and send the Step signal to either Up or Down on the hm2 >>>encoder input. >>> >>> >>> >>That's a good idea, with a couple of caveats: >> >>1) There is no demux component ;) >> >> > >I was assuming that Sebastian meant a hardware demux. After all, the >spindle encoder signals are hardware, and the encoder counter inputs are >hardware. A HAL demux component wouldn't be much help (unless the >signals are so slow that they can be counted in software). > > Well duh. If I had thought about it for a nanosecond or more, I might have realized that. - Steve -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Mesa 7i33 encoder inputs and up/down counter mode
Stephen Wille Padnos wrote: > Sebastian Kuzminsky wrote: > >> Gerhard Pircher wrote: >> >> If your spindle is not reversible you could connect the step line to either Up or Down, and run it that way. >>> Well, it is reversible. Maybe I should build a simple step/dir to >>> quadrature converter. That shouldn't be too hard. >>> >>> Thanks for enlightening me! >>> >>> >> It might be simple to use the Dir line from your spindle as the selector >> to a demux, and send the Step signal to either Up or Down on the hm2 >> encoder input. >> >> > That's a good idea, with a couple of caveats: > > 1) There is no demux component ;) > 2) When someone writes one, they will need to be careful about what > happens to the unused output - there shouldn't be any unexpected > transitions on the "other" output > 3) There could be several counts in the wrong direction since counting > is done in a MHz-speed "thread" in the FPGA and the demux would only be > checked at 1Khz to 10kHz rates. This wouldn't be bad in practice since > the spindle would have to slow down before reversing, but it could also > be a problem if the spindle is more or less still and the dir line > changes out of sunc with the step pulses. The "component" i'm thinking about would have to be written in eagle, since hm2's input pins cannot be written from HAL... ;-) -- Sebastian Kuzminsky -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Mesa 7i33 encoder inputs and up/down counter mode
Original-Nachricht > Datum: Fri, 31 Jul 2009 15:00:56 -0600 > Von: Sebastian Kuzminsky > An: "Enhanced Machine Controller (EMC)" > Betreff: Re: [Emc-users] Mesa 7i33 encoder inputs and up/down counter mode > Gerhard Pircher wrote: > >> If your spindle is not reversible you could connect the step line to > >> either Up or Down, and run it that way. > > Well, it is reversible. Maybe I should build a simple step/dir to > > quadrature converter. That shouldn't be too hard. > > > > Thanks for enlightening me! > > It might be simple to use the Dir line from your spindle as the selector > to a demux, and send the Step signal to either Up or Down on the hm2 > encoder input. I just had the same idea, while reading the stepgen HAL component/step types description. :-) Gerhard -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Mesa 7i33 encoder inputs and up/down counter mode
On Fri, 31 Jul 2009, Gerhard Pircher wrote: Date: Fri, 31 Jul 2009 21:52:30 +0200 From: Gerhard Pircher Reply-To: "Enhanced Machine Controller (EMC)" To: emc-users@lists.sourceforge.net Subject: [Emc-users] Mesa 7i33 encoder inputs and up/down counter mode Hi, I'm using the Mesa 7i33 card to interface three RS-422 linear encoders to EMC2. Now I would like to use the fourth input for the spindle speed sensor, which delivers a 12V pulse and direction signal. But I wonder which input of the 7i33 card should be connected to the pulse resp. direction signal (if possible at all, but the Hostmot2 driver allows to run encoders in counter mode). BTW I think I have to implement a level shifter to convert the 12V sensor signals to TTL levels. Or can I misuse the RS-422 receivers for this? I would just divide the 12V signal down to TTL levels first. Note: Thats all you should have to do, the so called up/down mode of the encoder counter _is_ what EMC calls step&dir for outputs. When a HM2 encoder counter is in up/down mode, Encoder input A is "Step" and encoder input B is "Dir". If this encoder counter mode is called Step&Dir by EMC then the HM2 documentation ( and my regmap file) should be changed... Thanks! regards, Gerhard -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Mesa 7i33 encoder inputs and up/down counter mode
Original-Nachricht > Datum: Sat, 1 Aug 2009 06:29:26 -0700 (PDT) > Von: "Peter C. Wallace" > An: "Enhanced Machine Controller (EMC)" > Betreff: Re: [Emc-users] Mesa 7i33 encoder inputs and up/down counter mode > On Fri, 31 Jul 2009, Gerhard Pircher wrote: > > > Date: Fri, 31 Jul 2009 21:52:30 +0200 > > From: Gerhard Pircher > > Reply-To: "Enhanced Machine Controller (EMC)" > > > > To: emc-users@lists.sourceforge.net > > Subject: [Emc-users] Mesa 7i33 encoder inputs and up/down counter mode > > > > Hi, > > > > I'm using the Mesa 7i33 card to interface three RS-422 linear encoders > > to EMC2. Now I would like to use the fourth input for the spindle speed > > sensor, which delivers a 12V pulse and direction signal. But I wonder > > which input of the 7i33 card should be connected to the pulse resp. > > direction signal (if possible at all, but the Hostmot2 driver allows > > to run encoders in counter mode). > > BTW I think I have to implement a level shifter to convert the 12V > > sensor signals to TTL levels. Or can I misuse the RS-422 receivers for > > this? > > I would just divide the 12V signal down to TTL levels first. I tend towards using optocouplers to isolate the 5V (7i33) and 12V (frequency inverter/spindle) domain (to be on the safe side). > Note: Thats all you should have to do, the so called up/down mode of the > encoder counter _is_ what EMC calls step&dir for outputs. When a HM2 > encoder counter is in up/down mode, Encoder input A is "Step" and > encoder input B is "Dir". That's good news! > If this encoder counter mode is called Step&Dir by EMC then the HM2 > documentation ( and my regmap file) should be changed... The Hostmot2 manual says: "counter-mode: ... Set to True for Up/Down." A note that describes the real hardware interface would definitively help here. :-) Thanks! Gerhard -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Mesa 7i33 encoder inputs and up/down counter mode
Peter C. Wallace wrote: > Note: Thats all you should have to do, the so called up/down mode of the > encoder counter _is_ what EMC calls step&dir for outputs. When a HM2 > encoder counter is in up/down mode, Encoder input A is "Step" and > encoder input B is "Dir". > > If this encoder counter mode is called Step&Dir by EMC then the HM2 > documentation ( and my regmap file) should be changed... Confirmed, the hm2 encoder in both 2.3 and master expect Step/Dir signals when .counter-mode is 1. (They expect quadrature when .counter-mode is 0, as we all know.) I'll update the manpage. Peter, do you have commit access to our git repo, or do you want me to update the regmap? -- Sebastian Kuzminsky -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users