Re: [Emc-users] endoscope camera mount?

2013-11-22 Thread Scott Hasse
How about a magnetic dial indicator base? Unscrew the rod from the magnetic base and tap a hole into the spindle casting to screw it in there instead. It would give you fine adjustability anyway. Scott On Nov 22, 2013, at 11:32 AM, Gene Heskett ghesk...@wdtv.com wrote: Greetings all;

Re: [Emc-users] G-code sample for threading on lathe

2013-11-05 Thread Scott Hasse
I've been working to make general purpose threading scripts for the members at our hackerspace. Scripts that face and turn down (or bore out) as well as thread. My efforts at understanding and explaining CNC lathe threading are here:

Re: [Emc-users] Still puzzling over encoder

2012-12-12 Thread Scott Hasse
I believe velocity is a scaled value of edges per second, so in quadrature mode you'd need to multiply your slots by 4 to find the right scaling. Do you numbers add up if you do that? Scott On Wed, Dec 12, 2012 at 8:14 PM, John figie zephyr9...@gmail.com wrote: What is the sample rate of the

Re: [Emc-users] limit override question

2012-12-02 Thread Scott Hasse
Thanks to everyone for the advice. Home/limits are working properly now. My primary issue was that I had mis-configured the system so that after a home operation in the positive direction the machine thought it was at the negative soft limit, thus it would not let me jog off the hard limit even

Re: [Emc-users] Spindle position, direction and Index with only one channel.

2012-11-23 Thread Scott Hasse
Interestingly, this sort of sensor would have been helpful on my latest problem with the lathe spindle Z pulse encoder I wanted to run on a pulley at 3x the spindle rate, presuming there was software support for it. In my case the pulse length accounting would have had to have been in the 7i33

[Emc-users] 0-10V spindle control via Mesa 7i33

2012-11-18 Thread Scott Hasse
All- My Sieg KC4S lathe conversion is moving along, and I have a question about driving a spindle motor controller using a Mesa 7i33 servo controller. According to the docs, that daughter card uses sign/magnitude mode , which will generate 0 to +10V analog out when the direction is positive and

Re: [Emc-users] Sieg SC2518 CNC lathe conversion questions

2012-11-13 Thread Scott Hasse
solution. Thanks! Scott On Sun, Nov 11, 2012 at 3:30 PM, andy pugh bodge...@gmail.com wrote: On 11 November 2012 20:00, Scott Hasse scott.ha...@gmail.com wrote: I plan on integrating the spindle control to be able to thread, but I am wondering if the Z pulse needs to be strictly once per

Re: [Emc-users] Sieg SC2518 CNC lathe conversion questions

2012-11-13 Thread Scott Hasse
Thanks all for the advice. I hadn't considered the case of reversing the spindle a bit, that does shoot that idea down. Although I've enjoyed Gene's spindle encoder adventures vicariously I don't think that's a path I want to walk, so at this point my plan is to obtain a 1:1 timing belt pulley

[Emc-users] Sieg SC2518 CNC lathe conversion questions

2012-11-11 Thread Scott Hasse
All- I'm starting in the process of converting a Sieg SC2518 CNC lathe to LinuxCNC control. I'll be using Mesa hardware, 5i23+7i33+7i37 and have had good experience with that in the past. Incomplete in-process documentation is here: http://code.google.com/p/sector67-sandbox/wiki/SiegCNCLathe

Re: [Emc-users] Sieg SC2518 CNC lathe conversion questions

2012-11-11 Thread Scott Hasse
Thanks, I should have been more accurate in my initial description. It is a hall effect sensor. Scott On Sun, Nov 11, 2012 at 6:34 PM, Bruce Layne linux...@thinkingdevices.comwrote: On 11/11/2012 03:00 PM, Scott Hasse wrote: ...plus a magnetic reed switch that triggers once per chuck

Re: [Emc-users] encoder component in counter mode velocity stability issues

2012-07-11 Thread Scott Hasse
generator I should be able to get a usable input once I am generating a frequency appropriately. Thanks everyone for their insight on this issue. Scott On Mon, Jul 2, 2012 at 9:01 AM, Jon Elson el...@pico-systems.com wrote: Scott Hasse wrote: John is correct. My logging could be more clear

Re: [Emc-users] encoder component in counter mode velocity stability issues

2012-07-01 Thread Scott Hasse
30, 2012 at 7:10 PM, Peter C. Wallace p...@mesanet.com wrote: On Sat, 30 Jun 2012, Scott Hasse wrote: Date: Sat, 30 Jun 2012 18:01:02 -0500 From: Scott Hasse scott.ha...@gmail.com Reply-To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net To: Enhanced Machine

Re: [Emc-users] encoder component in counter mode velocity stability issues

2012-07-01 Thread Scott Hasse
about 8000 ns on this 525mw with hyper threading disabled and the other recommended tweaks. Scott On Jul 1, 2012, at 11:38 AM, Jon Elson el...@pico-systems.com wrote: Scott Hasse wrote: Jun 30 17:48:41 scott-desktop kernel: [ 4078.255547] ENCODER runs between: 60 Jun 30 17:48:41 scott-desktop

Re: [Emc-users] encoder component in counter mode velocity stability issues

2012-07-01 Thread Scott Hasse
John is correct. My logging could be more clear. The time between is the since the last rising edge of the input pulse as detected by the update function of the encoder running in the base thread. The counts between is the number of base thread runs since the last rising edge input pulse. The

Re: [Emc-users] encoder component in counter mode velocity stability issues

2012-06-30 Thread Scott Hasse
My base thread is 2 ns (50 khz) and my servo thread is 100 ns. I am running the update-counters in the base thread. I was thinking that should limit my sampling noise to ~2% but instead it is ~20%. I don't think I'm getting bounce errors as the parallel port pins in halscope show

[Emc-users] disabling a stepper motor between moves?

2012-06-15 Thread Scott Hasse
I've been working to create some integration between the reprap RAMPS stepper driver board and LinuxCNC. One interesting thing some 3D printers do is disable the Z stepper motor when it is not moving. This relies on the friction of the Z axis assembly for keeping the head in place, but allows

[Emc-users] RepRap RAMPS stepper controller board with LinuxCNC?

2012-06-14 Thread Scott Hasse
All- I am starting in with some experiments using the RepRap RAMPS board ( http://reprap.org/wiki/Arduino_Mega_Pololu_Shield) (basically a 3-5 axis small stepper driver board with additional heater outputs and temperature inputs), but instead of using an Arduino with firmware like sprinter for

[Emc-users] RepRap RAMPS stepper controller board with LinuxCNC?

2012-06-13 Thread Scott Hasse
All- I am starting in with some experiments using the RepRap RAMPS board ( http://reprap.org/wiki/Arduino_Mega_Pololu_Shield) (basically a 3-5 axis small stepper driver board with additional heater outputs and temperature inputs), but instead of using an Arduino with firmware like sprinter for

Re: [Emc-users] OT-Retrofitting machines

2012-05-13 Thread Scott Hasse
Of course there are some people and businesses for which a retrofit will make no sense. For our organization (community group with almost no capital to speak of but lots of volunteer time/interest), our LinuxCNC retrofits have been great. We are a group of hackers, many of whom subscribe to the

[Emc-users] Raspberry pi integration?

2012-05-09 Thread Scott Hasse
I presume many of you have seen the hype on the Raspberry Pi. Am I correct in thinking that getting LinuxCNC to run on one of those would require an arm-specific RTAI and drivers for the device-specific I/O? Has anyone else given any thought to this potentially disruptive platform in the context

Re: [Emc-users] Mesa card help

2012-04-29 Thread Scott Hasse
I did a somewhat similar machine (+-10V amps, encoders) with similar Mesa hardware with some documentation here: http://code.google.com/p/sector67-sandbox/wiki/ProjectSheetCake Getting the machine to move under control should be fairly straightforward. Integrating the limits/estop and servo

Re: [Emc-users] Mesa card help

2012-04-29 Thread Scott Hasse
. ... I'd put my money on the sun and solar energy. What a source of power! I hope we don't have to wait until oil and coal run out before we tackle that. -Thomas Edison, inventor (1847-1931) From: Scott Hasse scott.ha...@gmail.com To: Enhanced Machine Controller

Re: [Emc-users] Mesa card help

2012-04-29 Thread Scott Hasse
Glad I can give back to this incredible community and project in some way. We've done another retrofit as well, but I'm still working on the documentation for that. As you have questions, let me know. If the documentation doesn't make sense, I'm glad to clarify it. Scott On Sun, Apr 29, 2012

Re: [Emc-users] Trajectory planning and other topics from a EMC(LinuxCNC) newbie (TheNewbie)

2012-04-20 Thread Scott Hasse
Unfortunately, this approach doesn't work well for things like plastic extrusion where it can be difficult to control the extrusion rate precisely. Repraps, etc are able to succeed in part because they take a very naive approach to trajectory planning and can get away with it because of the

Re: [Emc-users] Trajectory planning and other topics from a EMC(LinuxCNC) newbie (TheNewbie)

2012-04-19 Thread Scott Hasse
It seems to me that the likelihood of fixing all of the methods of gcode generation such that they don't generate short line segments is approximately zero. Also, it seems that even if a proprietary LinuxCNC gcode extension allowed arbitrary plane arcs, splines, etc. that the likelihood of CAM

Re: [Emc-users] Voltage to frequency for analog input

2012-04-16 Thread Scott Hasse
Thanks much for the correction, and you're certainly welcome to stop by Madison any time and check out what we're doing. http://code.google.com/p/sector67-sandbox/wiki/FrequencyBasedAnalogInput -- Better than sec? Nothing

Re: [Emc-users] Voltage to frequency for analog input

2012-04-15 Thread Scott Hasse
...@gmail.com wrote: On 9 March 2012 03:46, Scott Hasse scott.ha...@gmail.com wrote: My question is about this analog input. One way to do this that I keep meaning to experiment with is to use a PWM output to create a reference voltage, and a comparator to detect whether it is above or below

Re: [Emc-users] Voltage to frequency for analog input

2012-04-15 Thread Scott Hasse
I think there might be some confusion about what we are reading in via voltage to frequency using a software encoder velocity in this case. The analog value read as a frequency between 500 and 1000Hz is a scaled version of the voltage of the EDM process itself. Our relatively naive understanding

Re: [Emc-users] Voltage to frequency for analog input

2012-03-18 Thread Scott Hasse
I must have been making some silly mistake. Adding the thread before the EMCMOT is working for me now, and I have reasonable analog values being read now. Thanks for the double check. The frequency capability is still not as high as I calculated would be possible, but it is high enough to avoid

Re: [Emc-users] Voltage to frequency for analog input

2012-03-17 Thread Scott Hasse
15, 2012 at 11:43 AM, Kirk Wallace kwall...@wallacecompany.comwrote: On Thu, 2012-03-15 at 10:56 -0500, Scott Hasse wrote: I'd prefer not to use the mesa encoder primarily because I want to use the optical isolation I already have on the 7i37. Additionally with the firmware setup I have (4

Re: [Emc-users] Marketing LinuxCNC, was Re: Trajectory planning and other topics from a EMC(LinuxCNC) newbie

2012-03-17 Thread Scott Hasse
As a relative LinuxCNC newbie, I can say that a more clear presentation of the capabilities of the system would have made it less daunting to choose LinuxCNC. As a hobby CNC user, I had been exposed to probably 20 half-baked open source CAM tools/packages and been impressed with a total of zero.

Re: [Emc-users] Voltage to frequency for analog input

2012-03-17 Thread Scott Hasse
sub-hal files in the custom hal. On Sat, Mar 17, 2012 at 9:31 AM, Viesturs Lācis viesturs.la...@gmail.comwrote: 2012/3/17 Scott Hasse scott.ha...@gmail.com: [HAL] HALUI = halui HALFILE = 3300_mill.hal HALFILE = custom.hal POSTGUI_HALFILE = custom_postgui.hal SHUTDOWN = shutdown.hal

Re: [Emc-users] Voltage to frequency for analog input

2012-03-17 Thread Scott Hasse
, Peter C. Wallace p...@mesanet.com wrote: On Sat, 17 Mar 2012, Scott Hasse wrote: snip-- It acts like it is sampling the encoder at the servo-thread frequency, despite the update-counters function being bound to the base

Re: [Emc-users] Voltage to frequency for analog input

2012-03-17 Thread Scott Hasse
It just makes difficult for any observer to understand, what is going on there. If it works and You understand it - very good. But remember that if You will ever want somebody else to understand it, then it can cause frustration. I think that in situations like this it is best to stick to

Re: [Emc-users] Voltage to frequency for analog input

2012-03-17 Thread Scott Hasse
this? Would I also want to do it for hm2_5i23.0.write or is there no need? Thanks much, Scott On Sat, Mar 17, 2012 at 10:55 AM, Peter C. Wallace p...@mesanet.com wrote: On Sat, 17 Mar 2012, Scott Hasse wrote: Date: Sat, 17 Mar 2012 10:43:56 -0500 From: Scott Hasse scott.ha...@gmail.com Reply

Re: [Emc-users] Voltage to frequency for analog input

2012-03-17 Thread Scott Hasse
Stopped down to the shop tonight to try: addf hm2_5i23.0.read_gpio base-thread Debug file information: HAL: ERROR: function 'hm2_5i23.0.read_gpio' needs FP analog-in.hal:4: addf failed To me this implies it is not a real time capable function? I tried creating a separate thread, but I get:

Re: [Emc-users] Voltage to frequency for analog input

2012-03-15 Thread Scott Hasse
sending, Thanks, Scott On Mar 15, 2012, at 2:50 AM, Viesturs Lācis viesturs.la...@gmail.com wrote: 2012/3/15 Scott Hasse scott.ha...@gmail.com: with the frequency out going to an isolated I/O daughter card input (Mesa 7i37 I believe) of a Mesa 5i23. The problem to me seems to be the software

Re: [Emc-users] Voltage to frequency for analog input

2012-03-14 Thread Scott Hasse
If you just want to go from analog to LinuxCNC, have you considered using an ATmega to parallel port interface? The AVR can accept pure analog or some pulsed variety, such frequency counting , PWM or PDM. A dual parallel port PCI card is ~$15, Arduino Pro Mini for $20:

Re: [Emc-users] Voltage to frequency for analog input

2012-03-09 Thread Scott Hasse
it is unclear, if the problem is with the hardware, or with the signal handling within LinuxCNC... Really both, but I've gotten solid advice on both as well. Hardware-wise, the Mesa board looks good for my application. Signal-handling-wise, I thought that an M66 analog read could be set to

[Emc-users] Voltage to frequency for analog input

2012-03-08 Thread Scott Hasse
I'm doing some volunteer work for a local hackerspace (sector67.org). We recently completed conversion of two anilam knee mills to LinuxCNC, including adding a 4th rotary stepper axis for one of the mills. We now want to do some simple plunge EDM'ing, and ideally would reuse the LinuxCNC z

Re: [Emc-users] parsing the current language dialect, and describing as EBNF [Was: question on gcode parsing]

2012-02-05 Thread Scott Hasse
I must admit I've I've watched this thread unfold with a bit of apprehension. Certainly the current direction has evolved to the point where the result will likely not be usable for my purposes. I don't see a way of using a flex/bison-based parser from python apart from native bindings, so in

Re: [Emc-users] parsing the current language dialect, and describing as EBNF [Was: question on gcode parsing]

2012-02-05 Thread Scott Hasse
I see no need for anything pythonesk in machine control. This just adds an obscure level of abstraction from the real machine. I too wrote a gcode generator for some of my standard shapes but found it was more elegant to do it in gcode as I could use sensible(ish) variable names. why enter

Re: [Emc-users] question on gcode parsing

2012-01-22 Thread Scott Hasse
? __ John Harris E-Mail jdhhar...@customstage.net On 1/22/2012 2:46 AM, Michael Haberler wrote: Am 22.01.2012 um 04:36 schrieb Scott Hasse: I agree there is a large and difficult problem with respect to the semantic checking if the desire is to assure

[Emc-users] question on gcode parsing

2012-01-21 Thread Scott Hasse
All- I'm thinking about writing some gcode filters for EMC2 in python, and want to make these as robust and flexible as possible. To that end, I'm wondering if there is a typical approach to parsing and validating arbitrary-format gcode into some sort of canonical form so that a text-based

Re: [Emc-users] question on gcode parsing

2012-01-21 Thread Scott Hasse
I understand the basic parsing for the majority of common cases can be done fairly easily, but this seems rather error-prone for something that will eventually be moving a machine. I am hoping to build something that is more robust for handling, e.g. inline comments and all of the other special

Re: [Emc-users] question on gcode parsing

2012-01-21 Thread Scott Hasse
In the absence of an existing solution that is basically my plan as stated above with antlr, which can generate a python parser. Although once the grammar is codified, there is no shortage of parser generators that could be applied. Some of the reasons Chris points out above lie at the heart of

Re: [Emc-users] integrating a spindle fault signal in a modular way?

2011-11-15 Thread Scott Hasse
On Wed, Nov 9, 2011 at 3:17 PM, Thomas Powderly tomp4...@gmail.com wrote: On 11/8/11, Karl Cunningham ka...@keckec.com wrote: On 11/06/2011 08:36 PM, Scott Hasse wrote: It seems the normal way to do this would be to take the input to the existing estop-ext signal put

[Emc-users] integrating a spindle fault signal in a modular way?

2011-11-06 Thread Scott Hasse
I am working on the finishing touches of an Anilam 1100 knee mill conversion to EMC2, with details here: http://code.google.com/p/sector67-sandbox/wiki/ProjectSheetCake Over the last couple of months our spindle VFD (a Compumotor SpindleBlok) has faulted 5 or 6 times (a description of that

Re: [Emc-users] Mesa 5i23/7i33TA servo instability question

2011-08-19 Thread Scott Hasse
No problem at all. PNCconf was still an absolute time saver, and this issue was a good reason to get more into some lower-level aspects of EMC2. I now understand PID feedback a lot better than I did before, and I think that knowledge will serve me very well as I complete this conversion project.

Re: [Emc-users] Mesa 5i23/7i33TA servo instability question

2011-08-18 Thread Scott Hasse
the drive and the controller? I'll take some photos of my cabinets and put them on the forum later. John On 8/17/2011 2:48 PM, Scott Hasse wrote: John: Thanks, I'm hoping the documentation will turn out to be useful. We got the mill second or third hand, so we don't have the conversion

Re: [Emc-users] Mesa 5i23/7i33TA servo instability question

2011-08-18 Thread Scott Hasse
That was absolutely the bug I was hitting. After manually changing the I'm now moving forward with the PID tuning! Thanks all! Scott On Thu, Aug 18, 2011 at 8:18 PM, Scott Hasse scott.ha...@gmail.com wrote: I'm running 2.4.3 per the live CD. I'll try manually making the max output positive

Re: [Emc-users] Mesa 5i23/7i33TA servo instability question

2011-08-18 Thread Scott Hasse
. Manually changing the ini file to have a positive MAX_OUTPUT resolved the issue. Thanks to all who helped resolve this. Scott On Thu, Aug 18, 2011 at 8:26 PM, Scott Hasse scott.ha...@gmail.com wrote: That was absolutely the bug I was hitting. After manually changing the I'm now moving forward

Re: [Emc-users] Mesa 5i23/7i33TA servo instability question

2011-08-17 Thread Scott Hasse
I'm in the shop working on this right now and am wondering how to verify the PID loop is providing feedback to each axis. I've been using pncconf to generate the configuration, and assumed since it allows you to set PID that it would configure it to feedback automatically. However, since I've

Re: [Emc-users] Mesa 5i23/7i33TA servo instability question

2011-08-17 Thread Scott Hasse
I typed this up last night but realized I forgot to send it: Thanks to all for the feedback so far. I'll try to answer all the questions in one thread: Peter: The servos are not getting enabled too soon, in fact they are getting enabled later than is typical due to an extra servo reset signal

Re: [Emc-users] Mesa 5i23/7i33TA servo instability question

2011-08-17 Thread Scott Hasse
. There are several possible ways of nesting loops and combining control terms beside PID, so don't fall for the add a little of this and then a little of that approach. Jim -Original Message- From: Scott Hasse [mailto:scott.ha...@gmail.com] Sent: Wednesday, August 17, 2011 2:32 PM

[Emc-users] Mesa 5i23/7i33TA servo instability question

2011-08-16 Thread Scott Hasse
All- I'm about a month into retrofitting an older Anilam 1100M 3-axis mill to EMC2 using a Mesa 5i23 PCI board with a 7i33TA for servo interfacing and 7i37TA for general I/O. I'm documenting the build here: http://code.google.com/p/sector67-sandbox/wiki/ProjectSheetCake with my build notes