Re: [Emc-users] pwm-0-gen problems
On Tue, Mar 11, 2008 at 11:36:52PM -0400, Gene Heskett wrote: There are 2 buglets then, Jeff. The other is that stepcpnf doesn't give you a choice of mode/type for pwmgen. I had to hand edit that into the top of my .hal file also. I guess it assumes most are running induction motor driven spindles which aren't reverseable, but most of the VSR stuff is. reversible spindles are beyond the scope of stepconf. I'm much more interested in making sure all the present features work than adding more features. Since stepconf is just *a* way to configure emc, not *the only* way, I am perfectly content to say, that configuration requires that you write your own hal. Jeff - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] pwm-0-gen problems
On Mon, 2008-03-10 at 22:05 -0400, Gene Heskett wrote: ... snip I haven't even gotten that far, this is trying to use axis to enable it and 'spin' it by issueing the pwm and dir sigs. I don't have the outputs of Steve's card even connected to the spindle controller card yet, I'm at the point of trying to get the card to actually recognize that its supposed to do something, like run the relays etc. But there is nothing coming out of the pwm pin on the parport but a nice, solid at 50 mv, logic zero. I made a shot in the dark suggestion, sorry. I reread your first post. You have pwmgen.0.pwm connected to parport.0.pin-16-out, but Halmeter shows FALSE for both pins. I assume you had an RPM high enough for Halmeter to catch at least some of the pulses. Did you get anything from Halmeter for pwmgen.0.enable, pwmgen.0.value? I am guessing you have motion.spindle-speed-out connected to scale.X and then pwmgen.0.value, motion.spindle.on connected to pwmgen.0.enable and motion.spindle.forward and reverse connected to parport.0.pin-xx-out pins? I assume you meant the gcode S'number' command? Yes. I'm printing the hal manual right now. It might have a clue or 7, if I can recognize it when it bites me on the ankle. :) This is something that I configured the last time I ran stepconf, so theoretically, all I should have to do is hook it up and go unless theres a bug in stepconf or I have some duff hardware. These are pins that have not been previously utilized. Side note, this is a reversable motor and controller, and I was surprised to see that there isn't any provision for reversing it in axis. In manual mode, I think there should be a spindle feature on the screen with a CW icon, Stop, CCW icon, + and - buttons. I believe AXIS checks the configuration and shows only the buttons that are configured. Maybe by seeing if the .ini file(s) have a line with motion.spindle.forward, motion.spindle.reverse, etc. present or connected. F9, F10 should do CW and CCW also? Or do you mean reversing the signal settings? And I have used it in reverse a few times when sharpening a bit with a diamond wheel. However, with the A axis working so I can rotate the bit I'm sharpening accurately, I shouldn't have to do that any more. My brain is tapping out. Good luck. -- Kirk Wallace (California, USA http://www.wallacecompany.com/machine_shop/ Hardinge HNC lathe, Bridgeport mill conversion, doing XY now, Zubal lathe conversion pending) - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] pwm-0-gen problems
On Mon, Mar 10, 2008 at 10:05:12PM -0400, Gene Heskett wrote: This is something that I configured the last time I ran stepconf, so theoretically, all I should have to do is hook it up and go unless theres a bug in stepconf or I have some duff hardware. These are pins that have not been previously utilized. It looks like this is a bug in stepconf. An incorrect value is written for pwmgen.0.offset. When the sample calibration values shown in stepconf are used unaltered, it's necessary to enter an RPM number of around S156000 to get PWM output. For the time being, you can fix this by hand-calculating (or finding by trial-and-error) the right value and placing it in a custom.hal file. I intend to fix this for the next bugfix release of emc2. In that case, you'll be able to correct your .hal file simply by re-running stepconf. Jeff - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] pwm-0-gen problems
On Tuesday 11 March 2008, Jeff Epler wrote: On Mon, Mar 10, 2008 at 10:05:12PM -0400, Gene Heskett wrote: This is something that I configured the last time I ran stepconf, so theoretically, all I should have to do is hook it up and go unless theres a bug in stepconf or I have some duff hardware. These are pins that have not been previously utilized. It looks like this is a bug in stepconf. An incorrect value is written for pwmgen.0.offset. When the sample calibration values shown in stepconf are used unaltered, it's necessary to enter an RPM number of around S156000 to get PWM output. There are 2 buglets then, Jeff. The other is that stepcpnf doesn't give you a choice of mode/type for pwmgen. I had to hand edit that into the top of my .hal file also. I guess it assumes most are running induction motor driven spindles which aren't reverseable, but most of the VSR stuff is. For the time being, you can fix this by hand-calculating (or finding by trial-and-error) the right value and placing it in a custom.hal file. We did this on IRC tonight, and a line in custom.hal seems to have fixed that right up. I intend to fix this for the next bugfix release of emc2. In that case, you'll be able to correct your .hal file simply by re-running stepconf. Jeff Thanks Jeff. -- Cheers, Gene There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. -Ed Howdershelt (Author) It is wise to keep in mind that neither success nor failure is ever final. -- Roger Babson - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] pwm-0-gen problems
Greetings all; I'm in the process of hooking up one of Steve Stallings #106 spindle controllers, and have run into either a config problem, a buglet or a hardware problem. I thought it might be a bios vs parport thing, and when I checked, I found the bios was setting it for SPP, so I changed it to ECP, which did at least enable the spindle dir output as an output, where before I don't know what it was other than it sat at 45mv regardless of what I did. I can, using the halmeter, see that its enable goes true/false according to the state of the spindle buttons in axis. I can also see the value going up and down when I hit the + and - keys, (BTW, those buttons should be auto-repeat, all three of them, having to click the mouse for every percent of speed increase is a PITA) but the output is false and stays there, both at pwmgen.0.pwm and at parport.0.pin-16-out. So it seems to me that pwmgen isn't genning any pwm's. Try saying that 3 times quickly. :-) So, what do I check next folks? -- Cheers, Gene There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. -Ed Howdershelt (Author) If God had intended Men to Smoke, He would have put Chimneys in their Heads. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] pwm-0-gen problems
Gene Heskett wrote: Greetings all; I'm in the process of hooking up one of Steve Stallings #106 spindle controllers, and have run into either a config problem, a buglet or a hardware problem. I thought it might be a bios vs parport thing, and when I checked, I found the bios was setting it for SPP, so I changed it to ECP, which did at least enable the spindle dir output as an output, where before I don't know what it was other than it sat at 45mv regardless of what I did. I can, using the halmeter, see that its enable goes true/false according to the state of the spindle buttons in axis. I can also see the value going up and down when I hit the + and - keys, (BTW, those buttons should be auto-repeat, all three of them, having to click the mouse for every percent of speed increase is a PITA) but the output is false and stays there, both at pwmgen.0.pwm and at parport.0.pin-16-out. So it seems to me that pwmgen isn't genning any pwm's. Try saying that 3 times quickly. :-) So, what do I check next folks? Divide and conquer. Pwmgen is known to work, so thats not likely to be the problem. Ditto for parport. Test the two individually. Parport first since its easy to test. Use halcmd to hook a signal to it, something like: net testing parport.0.pin-whatever-out then toggle the signal: sets testing 1 sets testing 0 check with a voltmeter to see if its toggling. Then pwmgen - read the man page and hal documentation. There are two functions, one needs to be in the slow (servo) thread, the other needs to be in the fast (base) thread. If you miss either one, no output. There is an enable input - it needs to be true, or no output. You need to select the right PWM mode. You need to provide a non-zero input value. Use halscope to examine the pwmgen output until you get want you want, then connect it to the parport. Regards, John Kasunich - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] pwm-0-gen problems
On Monday 10 March 2008, Kirk Wallace wrote: On Mon, 2008-03-10 at 20:15 -0400, John Kasunich wrote: Gene Heskett wrote: Greetings all; I'm in the process of hooking up one of Steve Stallings #106 spindle ... snip So, what do I check next folks? Divide and conquer. Pwmgen is known to work, so thats not likely to be the problem. Ditto for parport. Test the two individually. Parport first since its easy to test. Use halcmd to hook a signal to it, something like: net testing parport.0.pin-whatever-out then toggle the signal: sets testing 1 sets testing 0 check with a voltmeter to see if its toggling. Then pwmgen - read the man page and hal documentation. There are two functions, one needs to be in the slow (servo) thread, the other needs to be in the fast (base) thread. If you miss either one, no output. There is an enable input - it needs to be true, or no output. You need to select the right PWM mode. You need to provide a non-zero input value. Use halscope to examine the pwmgen output until you get want you want, then connect it to the parport. Regards, John Kasunich I think John said it above, and please forgive me if you have already checked this, but the S value needs to be bigger than 0. M3/4 alone won't spin your spindle. I doesn't mine. I haven't even gotten that far, this is trying to use axis to enable it and 'spin' it by issueing the pwm and dir sigs. I don't have the outputs of Steve's card even connected to the spindle controller card yet, I'm at the point of trying to get the card to actually recognize that its supposed to do something, like run the relays etc. But there is nothing coming out of the pwm pin on the parport but a nice, solid at 50 mv, logic zero. I assume you meant the gcode S'number' command? I'm printing the hal manual right now. It might have a clue or 7, if I can recognize it when it bites me on the ankle. :) This is something that I configured the last time I ran stepconf, so theoretically, all I should have to do is hook it up and go unless theres a bug in stepconf or I have some duff hardware. These are pins that have not been previously utilized. Side note, this is a reversable motor and controller, and I was surprised to see that there isn't any provision for reversing it in axis. And I have used it in reverse a few times when sharpening a bit with a diamond wheel. However, with the A axis working so I can rotate the bit I'm sharpening accurately, I shouldn't have to do that any more. -- Cheers Kirk, Gene There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. -Ed Howdershelt (Author) Function reject. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] pwm-0-gen problems
I haven't even gotten that far, this is trying to use axis to enable it and 'spin' it by issueing the pwm and dir sigs. I don't have the outputs of Steve's card even connected to the spindle controller card yet, I'm at the point of trying to get the card to actually recognize that its supposed to do something, like run the relays etc. But there is nothing coming out of the pwm pin on the parport but a nice, solid at 50 mv, logic zero. Just thinking out loud... If you have used the parallel port in X mode, some computers don't support this. Also I have a computer that 3 of the outputs do not work but the rest do -probably because it's not set up properly in the bios . I haven't bothered to fix it yet I mention this cause I think you said some pins work and some don't... _ Your chance to win great prizes with Windows Live Mail and Rogers MobileMail. Click here to learn how. http://g.msn.ca/ca55/207 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users