Re: [Emc-users] C Style Extensions for GCode

2010-04-08 Thread Flying Electron Inc
Glad the tool might be of use to you! There was indeed a problem with the postfix -- operator. I made the fix and v1.01 is available for download at http://tsemsb.blogspot.com/2010/04/cgcc-now-at-version-101.html As of now the assignment operators like -= or += are not implemented, however the

Re: [Emc-users] C Style Extensions for GCode

2010-04-07 Thread Flying Electron Inc
feed and plunge speeds I just update then in the tools.h file and the change propagates to all my programs for each tool. Lawrence On Tue, Apr 6, 2010 at 4:01 PM, Flying Electron Inc sa...@flyingelectron.com wrote: Hi All, I wrote a python extension for axis that allows C language style

[Emc-users] C Style Extensions for GCode

2010-04-06 Thread Flying Electron Inc
Hi All, I wrote a python extension for axis that allows C language style extensions to the GCode if anyone wants to give it a try. http://tsemsb.blogspot.com/2010/04/cgcc-gcode-with-c-constructs.html It allows you to write code like this: // Constants const float X_Holes = 10; const float

Re: [Emc-users] independent motion of axes

2010-04-02 Thread Flying Electron Inc
I went through this exercise not too long ago. Short answer is that there is no way to do it in gcode that I could find. However I did find some tricks to get around the problem, none of them really satisfactory though. This is to control an axis independently without adding more computers.

Re: [Emc-users] Jogging inaccuracies

2010-03-26 Thread Flying Electron Inc
On Thu, Mar 25, 2010 at 2:59 AM, Mark Wendt (Contractor) mark.we...@nrl.navy.mil wrote: snip The Z axis was dead nuts on, but I was get varied responses to jogs on the X axis. I tried it at .001, .05, .01 and .1 on the jog movement. At .001, sometimes I'd get no movement (I'd here stepper

Re: [Emc-users] Any ideas on how to achieve independent axis motion in GCode

2010-03-26 Thread Flying Electron Inc
: On 26 March 2010 01:57, Flying Electron Inc sa...@flyingelectron.com wrote: Is it possible to send the Y axis off on a very long rapid while doing coordinated motion with 2 other axises while the Y is travelling? Simple way is to split Y movment. So after picking component when

[Emc-users] Any ideas on how to achieve independent axis motion in GCode

2010-03-25 Thread Flying Electron Inc
Hi everyone, Is it possible to send the Y axis off on a very long rapid while doing coordinated motion with 2 other axises while the Y is travelling? The reason I would like to do this is that I have EMC2 controlling a pick place machine using generated GCode. The machine picks up a chip, bangs

Re: [Emc-users] Closed-Loop Spindle Control.

2010-03-05 Thread Flying Electron Inc
On Fri, Mar 5, 2010 at 5:25 AM, Andy Pugh a...@andypugh.fsnet.co.uk wrote: I tried setting up closed-loop spindle control last night. It took me a while to figure out why it wasn't working (my encoder had lost the B channel) but during my investigations I found some interesting points. The

Re: [Emc-users] Advice on Servo Tuning

2010-03-04 Thread Flying Electron Inc
On Wed, Mar 3, 2010 at 10:17 AM, Jon Elson el...@pico-systems.com wrote: Chris Morley wrote: The servo drives are from Advanced Motion Controls. They are Direct PWM Brushless DC Servo Drives Model# BD30A8. The datasheet can be read at http://www.a-m-c.com/download/datasheet/bd30a8.pdf .

Re: [Emc-users] Absolute Encoder Connector

2010-03-04 Thread Flying Electron Inc
On Thu, Mar 4, 2010 at 1:40 PM, Kirk Wallace kwall...@wallacecompany.comwrote: I've got my encoders from Avnet (AEAT-6010): http://wallacecompany.com/machine_shop/EMC2/absolute_encoder/ but now I need to figure out how to connect to them. I figured I could get by for now with soldering wires

Re: [Emc-users] Accuracy stability of those AMT103 capacitive encoders

2010-03-03 Thread Flying Electron Inc
On Wed, Mar 3, 2010 at 5:57 AM, Sven Wesley svenne.d...@gmail.com wrote: 2010/3/3 Erik Christiansen dva...@internode.on.net Hmmm ... I think you could be right - I think too much. (But it used to save me weeks of work, and help keep my hair, when I was a programmer. ;-) Given that

Re: [Emc-users] Advice on Servo Tuning

2010-03-03 Thread Flying Electron Inc
On Wed, Mar 3, 2010 at 2:01 AM, Chris Morley chrisinnana...@hotmail.comwrote: Judging from the traces, I suspect you have velocity mode servo amps, and I suspect their velocity loops aren't tuned. It doesn't make sense to tune EMC's position loop when the drive velocity loop isn't

Re: [Emc-users] Advice on Servo Tuning

2010-03-02 Thread Flying Electron Inc
to have the larger but smoother error values and dial it in using the other PID adjustments, or is it generally better to have the smaller error but rougher error and output lines? On 3/1/2010 10:10 PM, Flying Electron Inc wrote: Hi all, Hoping some people that have tuned their servos

Re: [Emc-users] Advice on Servo Tuning

2010-03-02 Thread Flying Electron Inc
On Tue, Mar 2, 2010 at 6:40 AM, John Kasunich jmkasun...@fastmail.fmwrote: On Mon, 01 Mar 2010 19:10 -0800, Flying Electron Inc sa...@flyingelectron.com wrote: Hi all, Hoping some people that have tuned their servos with EMC2 might be able to share some of their insights

[Emc-users] Advice on Servo Tuning

2010-03-01 Thread Flying Electron Inc
Hi all, Hoping some people that have tuned their servos with EMC2 might be able to share some of their insights that they learned during their tuning with me. I built a pick and place machine with a servo on the X axis and I started running tests to tune the PID loop for the servo. Right now, I

Re: [Emc-users] Magnetic Encoder

2010-02-28 Thread Flying Electron Inc
www.avnet.com looks like they sell the AEAT-6010 and AEAT-6012 in single unit quantities. Lawrence On Sun, Feb 28, 2010 at 12:14 PM, Kirk Wallace kwall...@wallacecompany.comwrote: Does anyone have a source for these?: http://www.avagotech.com/docs/AV02-0188EN Mouser wants to sell me 204 of

Re: [Emc-users] 7i43 GPIO Input Question

2010-02-22 Thread Flying Electron Inc
2010 05:39, Flying Electron sa...@flyingelectron.com wrote: Hi, I was using one of the inputs to read my E-STOP button which shorts to ground when triggered, but I kept on getting false positives. I looked at the input pin in halscope and saw a square wave that goes high for 2ms

Re: [Emc-users] 5I20 Stepper motors and encoders

2010-02-19 Thread Flying Electron
Andy Pugh wrote: On 19 February 2010 07:12, Belli Button be...@iafrica.com wrote: How can I get axis to display the desired positon and the encoder position? I don't know. But does it actually gain you much? If the numbers are different you need to stop You can use a pyvcp

Re: [Emc-users] 7i43 GPIO Input Question

2010-02-19 Thread Flying Electron
Flying Electron wrote: Hi, I was using one of the inputs to read my E-STOP button which shorts to ground when triggered, but I kept on getting false positives. I looked at the input pin in halscope and saw a square wave that goes high for 2ms then low for 2ms and repeats. I removed

Re: [Emc-users] Mesa 7i43 parallel port hookup

2010-02-15 Thread Flying Electron
foot long. Date: Sat, 13 Feb 2010 12:27:52 + From: a...@andypugh.fsnet.co.uk To: emc-users@lists.sourceforge.net Subject: Re: [Emc-users] Mesa 7i43 parallel port hookup On 13 February 2010 05:42, Flying Electron sa...@flyingelectron.com wrote: http://www.pccables.com/cgi-bin

[Emc-users] Mesa 7i43 parallel port hookup

2010-02-12 Thread Flying Electron
I'm having some trouble getting the 7i43 card working with the onboard parallel port of my computer. I'm suspecting that I don't have the EPP port of the 7i43 hooked up correctly. Anyone know if I use a female DSUB25 to 26 pin IDC like this one

[Emc-users] (PRINT command in AXIS

2010-01-19 Thread Flying Electron
Hi, I've noticed that if I load a gcode program like this in AXIS G00 X0 Y1 (PRINT, TEST) M02 it will print TEST when it loads and then print TEST again when it runs. Is there a setting to suppress the first print when it loads? I'm embedding PRINT statements in generated GCode with another

Re: [Emc-users] homing using index

2010-01-14 Thread Flying Electron
I think you want to connect the signal coming from the index to the axis.N.home-sw-in of the axis you want to home. net axis0homeswitch ppmc.0.din.03 = axis.0.home-sw-in then try setting the index-enable to true setp axis.0.index-enable TRUE and then in your ini file, setup your

Re: [Emc-users] PWM input to EMC2

2010-01-13 Thread Flying Electron
Thanks everyone for all the advice. I got it to work using an encoder measuring the frequency of the pulses from the microcontroller. I put a dial gauge on the panel in axis to watch the pressure and an LED to watch the probe. It is beyond cool being able to see the pressure in realtime

[Emc-users] Mesa 7I42TA

2010-01-13 Thread Flying Electron
Is anyone using the Mesa 7I42TA to interface with the Mesa FPGA boards? I've got a couple of questions if anyone using the board already would have time to answer. I'm trying to figure out everything I need to order to get it up and running. Is it good enough for interface with servo drives

[Emc-users] PWM input to EMC2

2010-01-12 Thread Flying Electron
I've been looking through all the realtime components and haven't seen anything obvious. Is there a component to read a PWM signal in from a parallel port pin? -- This SF.Net email is sponsored by the Verizon Developer

Re: [Emc-users] PWM input to EMC2

2010-01-12 Thread Flying Electron
Kuzminsky wrote: Flying Electron wrote: I've been looking through all the realtime components and haven't seen anything obvious. Is there a component to read a PWM signal in from a parallel port pin? That's backwards from how we usually do it - pwm generally comes *from* emc2, goes

[Emc-users] Using multiple probes

2010-01-08 Thread Flying Electron
Is there an easy way to use two separate probes for probing? For example have Probe A connected to a parallel port pin 10, and Probe B connected to parallel port pin 11 and somehow have the gcode choose which probe to use when probing. The best I can think of so far is to have the gcode turn

Re: [Emc-users] Using multiple probes

2010-01-08 Thread Flying Electron
Andy Pugh wrote: 2010/1/8 Flying Electron sa...@flyingelectron.com: The best I can think of so far is to have the gcode turn on one of the digital output pins using M64 and then having the hal multiplex the two parallel port pins into the probe pin, but maybe there is an easier way

Re: [Emc-users] Mesa 5i20 5i23

2010-01-07 Thread Flying Electron
Direct Memory Access. In the case of the FPGA cards what it basically means is that the card itself transfers its data (encoder counts, current step, I/O pin status, PWM outputs, step rates) to or from the host CPUs memory on its own rather than the host CPU doing a series of programmed

Re: [Emc-users] Mesa 5i20 5i23

2010-01-07 Thread Flying Electron
Andy Pugh wrote: 2010/1/7 Flying Electron sa...@flyingelectron.com: So with a hypothetical setup of a mesa card, a brushless dc servo drive, and a 1000 CPR encoder, the mesa card's only job would be to read the encoder and report back to EMC and EMC would send the pwm signals out

Re: [Emc-users] Mesa 5i20 5i23

2010-01-07 Thread Flying Electron
Looks like the Mesa 5i23 is the clear winner for me. I don't mind paying a little bit more for the extra gates, they might come in useful. I miss the ISA bus (original IBM PC), seems like it's gone forever the fact that you could etch a circuit board, then hop down to the local radio shack

[Emc-users] Servo Drives

2010-01-07 Thread Flying Electron
I'm deciding on what servo drive to use with the mesa FPGA card and it doesn't look too bad since there are not too many low cost options. I'm constrained to a NEMA 23 size motor since a NEMA 23 stepper is on the machine right now and I want it to be a direct swap. So far I've found from

Re: [Emc-users] Servo Drives

2010-01-07 Thread Flying Electron
to be common-ed to +5v. (probably not an issue) (if I did the math right) sam * On 1/7/2010 01:29 PM, Flying Electron wrote: I'm deciding on what servo drive to use with the mesa FPGA card and it doesn't look too bad since there are not too many low cost options. I'm constrained to a NEMA

Re: [Emc-users] Servo Drives

2010-01-07 Thread Flying Electron
happened to be the right length. Mariss seems to love these encoders over the cheap us-digital ones for his step/dir servo drives YMMV sam On 1/7/2010 03:36 PM, Flying Electron wrote: Wow! Thank you so much for the link. The amps on ebay looks pretty much exactly what I am

Re: [Emc-users] Servo Drives

2010-01-07 Thread Flying Electron
Dave wrote: Yes, most low cost servo and stepper drives are interfaced via step and direction. Up until the step and direction interface became popular the standard was a +/- 10v analog input interface and the servo drive was operated in a velocity mode or torque mode. I think that EMC2

[Emc-users] Mesa 5i20 5i23

2010-01-06 Thread Flying Electron
I'm leaning towards getting a mesa 5i20 or 5i23, but had a few questions that someone might be able to answer. Does anyone have a picture of what the mesa 5i20 or 5i23 looks like when it is installed? Did it come with cables for the IO? Is there a breakout board for it? Thanks!

Re: [Emc-users] Advice on servos

2010-01-06 Thread Flying Electron
Jon Elson wrote: Flying Electron wrote: I don't know much about servos at all, but I was under the impression that brushless servos had less angular position accuracy then brushed dc servos? It looked like the brushless dc motors had more power for the same size package and were

[Emc-users] Advice on servos

2010-01-05 Thread Flying Electron
I'm getting ready to upgrade my machine from steppers to servos, but am a little unsure on what would be needed. I know I need servos. The only low cost servos I have found so far are from keling. I'm probably going to go with the KL23-130-60 NEMA 23 sized servos. The link is here

Re: [Emc-users] Advice on servos

2010-01-05 Thread Flying Electron
Anders Wallin wrote: Brushless is not much more expensive so you could look at those too. I don't know much about servos at all, but I was under the impression that brushless servos had less angular position accuracy then brushed dc servos? It looked like the brushless dc motors had more

Re: [Emc-users] Advice on servos

2010-01-05 Thread Flying Electron
Brushless servos have a permanent magnet rotor.The coils that make up the stator ( the stationary coils) are up against the outside walls of the motor so any heat from the coils can be transferred out of the motor rather easily.On a brush servo motor, the rotor has a wound rotor

Re: [Emc-users] Installation issue

2009-12-31 Thread Flying Electron
I don't know about Ubuntu 9.10, but the directions for getting EMC to run on a fresh install of 8.04 have always worked for me. It might be easier to use the proven Ubuntu 8.04 instead of the 9.10. The instructions to install EMC on a fresh 8.04 are at

[Emc-users] Building and using emcsh

2009-12-30 Thread Flying Electron
Hi everyone, I'm trying to use emcsh to script some commands to emc but am having some trouble. I downloaded the latest source from git and built it but for some reason it didn't built emcsh. It did built emcrsh and emc runs just fine. Is there something I need to enable to build emcsh? I

Re: [Emc-users] Building and using emcsh

2009-12-30 Thread Flying Electron
Thanks! That totally worked on my 2.4.0 pre system. Tested it by getting estop to turn on and off from an interactive tclsh. I'm planning on piping the input and output of the tclsh through a serial port connected to a windows machine so the windows machine can issue MDI commands to the

Re: [Emc-users] Building and using emcsh

2009-12-30 Thread Flying Electron
-- From: Flying Electron sa...@flyingelectron.com Sent: Thursday, December 31, 2009 2:22 AM To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Subject: Re: [Emc-users] Building and using emcsh Thanks! That totally worked on my 2.4.0 pre