Re: [Emc-users] 3-phase pwmgens for 7i39

2011-09-29 Thread Viesturs Lācis
2011/9/28 Sebastian Kuzminsky s...@highlab.com:
 On Sep 28, 2011, at 13:19 , Peter C. Wallace wrote:
 On Wed, 28 Sep 2011, Viesturs L?cis wrote:

 But with this I receive error, in which I find this line to be most 
 important:
 [ 4776.024432] hm2/hm2_7i43.0: invalid token in config string: 
 num_3pwmgens=3

 So how exactly should that config modparameter look like for 7i43 to

 What version EMC, not sure if 2.46 has the 3 phase pwm support in the driver

 3-phase pwm is not in 2.4 .  It is in 2.5 and master.

Thank You, Peter and Sebastian!
Of course, I tried latest _released_ version.
Ok, I will get buildbot package and try again!

Viesturs

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] calibrating stepper motor cnc

2011-09-29 Thread Viesturs Lācis
2011/9/29 Martin Patton mart...@gmail.com:

 The part looked right but the caliper says every dimension cut a little small.

What is the range of deviances? What I mean, how consistent is the
deviance in dimensions? Is it very close in all directions, is the
error along one of the joints or is it completely random? I think that
each of these cases will lead to different potential causes  of the
problem.

 Is there a good post
 on calibrating for a stepper motor machine?

I think that cause of problem should be eliminated rather than trying
to adjust g-code to it. Even more - if You do not know the cause, You
will not be able to treat it in g-code anyway, because You need to
know, what should be adjusted to workaround those deviances in
dimensions.
I think that first thing for stepper machine to try is playing with
acceleration and velocity parameters. And next thing is actually
testing the machine and understand those deviances - is there
particular direction, where they occur etc.

Viesturs

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Omron V1000 VFD Modbus

2011-09-29 Thread Michael Haberler
not specific to the Omron VFD:

- Some Modbus clients like the GS2 permit reading multiple registers (aka 
'coils') in one read transactions. The Toshiba I worked with only supports 
single-register reads which required some restructuring and keeping an eye on 
roundtrip time if multiple registers are involved in the inner loop.

- to make sense of the documentation and explore the device, I wrote a utility 
to interactively explore/control the VFD - it might help you too: 
http://git.mah.priv.at/gitweb/modio.git

-m

Am 24.09.2011 um 09:14 schrieb Viesturs Lācis:

 Hello, gentlemen!
 
 I would like to ask, if anyone could share their experience with Omron
 V1000 VFD. More specifically, I am interested in getting the drive
 communicating with EMC through Modbus. Is there anything specific to
 know or to avoid?
 
 Thanks in advance!
 
 Viesturs
 
 --
 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-d2dcopy2
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] 3-phase pwmgens for 7i39

2011-09-29 Thread Viesturs Lācis
Ok, now EMC starts up and seems to be fine.

I have one more question:
Which of the pins should I connect pid.n.output to?
There are 3 value pins, one for each phase:
hm2_7i43.0.3pwmgen.00.A-value
hm2_7i43.0.3pwmgen.00.B-value
hm2_7i43.0.3pwmgen.00.C-value

How is it supposed to be done?
Pid output connected to A-value and leave the remaining 2 unconnected
to anything?

Thanks!

Viesturs

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] 3-phase pwmgens for 7i39

2011-09-29 Thread Chris Morley

look at the BLDC component.
PID goes to BLDC goes to 3 phase pwm

Not that I have done it :)
When you get this config going i would like to see the sample 
HAL file for PNCconf reference 
I might add to pay attention to PWM base frequency value
and BLDC dead time.
Both can do bad things to your 7i39 apparently.
I'm sure Peter or Andy will chime in and give you specifics

Chris M

 From: viesturs.la...@gmail.com
 Date: Thu, 29 Sep 2011 09:59:55 +0300
 To: emc-users@lists.sourceforge.net
 Subject: Re: [Emc-users] 3-phase pwmgens for 7i39
 
 Ok, now EMC starts up and seems to be fine.
 
 I have one more question:
 Which of the pins should I connect pid.n.output to?
 There are 3 value pins, one for each phase:
 hm2_7i43.0.3pwmgen.00.A-value
 hm2_7i43.0.3pwmgen.00.B-value
 hm2_7i43.0.3pwmgen.00.C-value
 
 How is it supposed to be done?
 Pid output connected to A-value and leave the remaining 2 unconnected
 to anything?
 
 Thanks!
 
 Viesturs
 
 --
 All the data continuously generated in your IT infrastructure contains a
 definitive record of customers, application performance, security
 threats, fraudulent activity and more. Splunk takes this data and makes
 sense of it. Business sense. IT sense. Common sense.
 http://p.sf.net/sfu/splunk-d2dcopy1
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users
  
--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] calibrating stepper motor cnc

2011-09-29 Thread John Stewart
Martin;

For what it's worth - I'm playing with a new machine of mine (Sieg KX1 with 
Gecko G540) and am looking at the backlash in the x-y table. 

To do this, I put a dial indicator on an axis;

move +1mm, +1mm, +1mm, all show accurate moves;
move +1mm +1mm -1mm shows the backlash.

What if you did the same? At least it would show if you can move each axis as 
you expect.


From a newbie;
JohnS.





--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Need help with servo tuning

2011-09-29 Thread Bruce Klawiter


Bruce:  I don't know how the system appears to be
behaving, but your 

error
of 20 - 30 um on the trace looks about as good as you'll get with 

those
scales. That's within 2-3 encoder counts of commanded position.

 

The
problems I guess I was hoping would go away is the dithering or 

oscillation
when the machine is at rest.

With
a P=.1 the axis drifts, at P=1 it seems to hold steady but the PID  

error
is terrible. P=11 the PID error is the smallest I can get, P=13 the

oscillation
about tears the machine apart.

Adjusting
anything else I can get the PID error tiny amounts better but the

oscillation
never seems to get better

 

I
would also like to get rid of the jerking it sometimes does when moving.

It
did not do this with the old controller

 

Here
are some halscope images of the dithering and jerking:

https://sites.google.com/site/bmklawt/home/pid-tuning

 

His
encoder is BOUND to have a lot of positional quantization noise, as 

it
is a 100 um resolution linear scale, which is equal to roughly .0004. 

.This
is the typical DRO-grade scale

 

I
just assumed with these scales I could machine a part to within .0004, 

and
that would be perfect, I may try some better encoders.

 

Didn't
Anilam also use velocity tachs too

 

Yes
the servos use velocity

 

Before
changing .INI values using HalScope Calibration, I recommend 

modeling
your system first.  In other words
understand where you are 

closing
your current, velocity, and position loops.

My
PPMC system uses Yaskawa servo amps which close the current and 

velocity
loop, leaving EMC2 to close the position loop (only P and FF1 

are
non-zero in INI). This is known as a P/PI w/FF cascade control 

because
its loops are nested.

 

Well
this does seem to make some sense to me, I did tune the servos to 

Anilams
specs following this procedure, turning pots and checking 

resistance
at points 

 

https://sites.google.com/site/bmklawt/home/westamp-manual-tuning

 

But
the last thing it says to do is adjust the SIG pot to stop the servo 

from
drifting, I could not get it to completely stop.

There
is more in depth tuning but it uses an oscilloscope and I don’t have 

one
nor would I even know how to use it.

 

Adjusting
D doesn’t do much.

 

Jon
has said this may be as good as it gets, I'll have to cut some parts and 

see

what
it can do.

 

Thanks
all for the information.

My
build https://sites.google.com/site/bmklawt/home

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] 3-phase pwmgens for 7i39

2011-09-29 Thread Viesturs Lācis
2011/9/29 andy pugh bodge...@gmail.com:

 Insufficient coffee error, redo from start.
 No, not correct at all. I would start with qh,qh,qh
 (Using i inmplies that you know where the index is relative to the poles.)

Ok, got it! Thank You!

One more question:
Is it ok to route Hall signal in the same cable with encoder signal?
Or are they going to disturb each other?

Viesturs

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Need help with servo tuning

2011-09-29 Thread andy pugh
On 29 September 2011 13:23, Bruce Klawiter bmkl...@yahoo.com wrote:

 are some halscope images of the dithering and jerking:

 https://sites.google.com/site/bmklawt/home/pid-tuning

A single-count deadband in the PID might help.

I am not sure if this is a good idea, but I wonder if a low-pass
filter on the encoder position would help?

-- 
atp
Torque wrenches are for the obedience of fools and the guidance of wise men

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] 3-phase pwmgens for 7i39

2011-09-29 Thread andy pugh
On 29 September 2011 13:30, Viesturs Lācis viesturs.la...@gmail.com wrote:

 Is it ok to route Hall signal in the same cable with encoder signal?
 Or are they going to disturb each other?

It should be OK, otherwise you would be concerned about the A-encoder
interfering with the B-encoder.

-- 
atp
Torque wrenches are for the obedience of fools and the guidance of wise men

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] calibrating stepper motor cnc

2011-09-29 Thread BRIAN GLACKIN
One recommendation is to put a Vee cutter in your spindle and run a program
where the Vee bit just touches the material in a uniform grid pattern.  Take
your part and measure all the positions from the 0,0.  You may have your
machine set up in such a manner that it is not just perfect.  When I did
this, I ended up adjusting the ini file slightly to correct for a 1/8
undershot over my 4' X axis and 1/16 on my 2' Y axis.

On Thu, Sep 29, 2011 at 1:10 AM, Martin Patton mart...@gmail.com wrote:

 Hi EMC users,
 I have EMC running on an old pc, latency number about 25000.   I got an
 occasional real time error with latency number set at 22000.
  I drew a part in CamBam, generated some g-code and cut a part.  The part
 looked right but the caliper says every dimension cut a little small.  A
 circle pocket drawn 1.50 diameter cut about 1.42 in diameter,  The tool
 diameter matched the tool specified in the cad program. Is there a good
 post
 on calibrating for a stepper motor machine?
 Thanks,
 Marty

 --
 All the data continuously generated in your IT infrastructure contains a
 definitive record of customers, application performance, security
 threats, fraudulent activity and more. Splunk takes this data and makes
 sense of it. Business sense. IT sense. Common sense.
 http://p.sf.net/sfu/splunk-d2dcopy1
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] 3-phase pwmgens for 7i39

2011-09-29 Thread Viesturs Lācis
2011/9/29 andy pugh bodge...@gmail.com:
 On 29 September 2011 13:30, Viesturs Lācis viesturs.la...@gmail.com wrote:

 Is it ok to route Hall signal in the same cable with encoder signal?
 Or are they going to disturb each other?

 It should be OK, otherwise you would be concerned about the A-encoder
 interfering with the B-encoder.

Thank You!

Few more questions about servo motor wiring.
Motor datasheet has this information about wires:
1 Red   Vcc  supply voltage for Hall sensors
2 Blue  HALL A
3 GreenHALL B
4 White HALL C
5 Black GND for Hall sensors

6 Yellow PHASE A
7 Red PHASE B
8 Black PHASE C

1) Should I connect Hall supply voltage to +5V encoder supply voltage
(and Hall GND to encoder GND)?
2) If so, what should I do about motor GND connectors on 7i39 motor
connection terminal block? Do I need to wire the motor case to them?

Viesturs

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] 3-phase pwmgens for 7i39

2011-09-29 Thread Peter C. Wallace
On Thu, 29 Sep 2011, Chris Morley wrote:

 Date: Thu, 29 Sep 2011 07:19:51 +
 From: Chris Morley chrisinnana...@hotmail.com
 Reply-To: Enhanced Machine Controller (EMC)
 emc-users@lists.sourceforge.net
 To: EMC emc-users@lists.sourceforge.net
 Subject: Re: [Emc-users] 3-phase pwmgens for 7i39
 

 look at the BLDC component.
 PID goes to BLDC goes to 3 phase pwm

 Not that I have done it :)
 When you get this config going i would like to see the sample
 HAL file for PNCconf reference
 I might add to pay attention to PWM base frequency value
 and BLDC dead time.
 Both can do bad things to your 7i39 apparently.
 I'm sure Peter or Andy will chime in and give you specifics

 Chris M

The 7I39 needs no dead time (its handled on the card)
any PWM rate up to 50 KHz is OK with the 7I39 but
20-30 KHz is suggested  since its too high to hear
but not so high that switching losses become serious

Peter Wallace
Mesa Electronics


--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] 3-phase pwmgens for 7i39

2011-09-29 Thread Peter C. Wallace

On Thu, 29 Sep 2011, Viesturs L?cis wrote:


Date: Thu, 29 Sep 2011 16:47:16 +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] 3-phase pwmgens for 7i39

2011/9/29 andy pugh bodge...@gmail.com:
On 29 September 2011 13:30, Viesturs L??cis viesturs.la...@gmail.com wrote:


Is it ok to route Hall signal in the same cable with encoder signal?
Or are they going to disturb each other?


It should be OK, otherwise you would be concerned about the A-encoder
interfering with the B-encoder.


Thank You!

Few more questions about servo motor wiring.
Motor datasheet has this information about wires:
1 Red   Vcc  supply voltage for Hall sensors
2 Blue  HALL A
3 GreenHALL B
4 White HALL C
5 Black GND for Hall sensors

6 Yellow PHASE A
7 Red PHASE B
8 Black PHASE C

1) Should I connect Hall supply voltage to +5V encoder supply voltage
(and Hall GND to encoder GND)?

Yes thats fine

2) If so, what should I do about motor GND connectors on 7i39 motor
connection terminal block? Do I need to wire the motor case to them?

Normally I would wire the motor frame ground to this point. Be advised
This is motor V- meaning the motor power supply must be floating


Viesturs

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
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 the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] 3-phase pwmgens for 7i39

2011-09-29 Thread Viesturs Lācis
2011/9/29 Peter C. Wallace p...@mesanet.com:
 On Thu, 29 Sep 2011, Viesturs L?cis wrote:


 2) If so, what should I do about motor GND connectors on 7i39 motor
 connection terminal block? Do I need to wire the motor case to them?

 Normally I would wire the motor frame ground to this point. Be advised
 This is motor V- meaning the motor power supply must be floating

Thank You!

What do You mean by floating power supply?
Motor power supply consists of:
1) transformer with ~19 VAC on output;
2) rectifier bridge;
3) 22000uF capacitor.
I have 2 such power supplies - one for each 7i39.
Outputs of both power supplies _are not_ connected together and they
_are not_ connected to PC PSU, which supplies +5V.
Is that OK?

Viesturs

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] 3-phase pwmgens for 7i39

2011-09-29 Thread Peter C. Wallace
On Thu, 29 Sep 2011, Viesturs L?cis wrote:

 Date: Thu, 29 Sep 2011 17:20:15 +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] 3-phase pwmgens for 7i39
 
 2011/9/29 Peter C. Wallace p...@mesanet.com:
 On Thu, 29 Sep 2011, Viesturs L?cis wrote:


 2) If so, what should I do about motor GND connectors on 7i39 motor
 connection terminal block? Do I need to wire the motor case to them?

 Normally I would wire the motor frame ground to this point. Be advised
 This is motor V- meaning the motor power supply must be floating

 Thank You!

 What do You mean by floating power supply?
 Motor power supply consists of:
 1) transformer with ~19 VAC on output;
 2) rectifier bridge;
 3) 22000uF capacitor.
 I have 2 such power supplies - one for each 7i39.
 Outputs of both power supplies _are not_ connected together and they
 _are not_ connected to PC PSU, which supplies +5V.
 Is that OK?

Yep, fine


 Viesturs

 --
 All the data continuously generated in your IT infrastructure contains a
 definitive record of customers, application performance, security
 threats, fraudulent activity and more. Splunk takes this data and makes
 sense of it. Business sense. IT sense. Common sense.
 http://p.sf.net/sfu/splunk-d2dcopy1
 ___
 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 the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] CPR or PPR what are they

2011-09-29 Thread dave
On Wed, 2011-09-28 at 15:28 -0700, Cliff Blackburn wrote:
 
 On 9/28/2011 2:55 PM, Bruce Klawiter wrote:
  I was looking at this encoder, 
  http://www.usdigital.com/products/e2#description
  It says:
  Tracks from 0 to 100,000 cycles/sec
  32 to 1250 cycles per revolution (CPR)
  128 to 5000 pulses per revolution (PPR)
 
  I don't understand the difference between CPR and PPR, I am thinking it has 
  something to do with the A and B channel being 90 degrees out of phase. If 
  that is the case why is the PPR 4 time higher and not only twice as high.
 You can monitor the rising and falling edges of both a and b channels 
 giving you 4 times the resolution.
  Also does any one have a recommendation for an encoder, what is a good 
  reliable brand, what  CPR or PPR should I get. The high the line count the 
  better I would assume.
 I think the rule of thumb is to make sure you have at least 10 times 
 more counts than the smallest resolution you want to maintain. More 
 never hurts, but if you have too many the frequency at rapid speed is 
 going to be high causing noise and monitoring issues.

The rule I've heard is counts 5X better than the position accuracy you
want to maintain. This came from a Boeing engineer. 
Velocity control is another matter and there more is probably better; it
takes an awful lot of counts to overflow the counter in a few servo
cycles. Time stamping may relieve some of the constraints. 

 
 I have had good luck with dynapar encoders, there not cheap tho.
I've been using the Koyo encoders that are just dust sealed which means
one should go to some trouble to install them in housing that protects
from all the nasties around a milling machine. Their price is about $90
from Automation Direct. I use the 2500 cpr differential ones. :-)

Dave
 
 
  Read about my conversion here:
  https://sites.google.com/site/bmklawt/home
 
  Regards,
  Bruce
 
  --
  All the data continuously generated in your IT infrastructure contains a
  definitive record of customers, application performance, security
  threats, fraudulent activity and more. Splunk takes this data and makes
  sense of it. Business sense. IT sense. Common sense.
  http://p.sf.net/sfu/splunk-d2dcopy1
  ___
  Emc-users mailing list
  Emc-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/emc-users
 


--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] calibrating stepper motor cnc

2011-09-29 Thread Martin Dobbins

Hi Marty,

As other people pointed out, it might be better not to jump to conclusions the 
cause of the error may not be stepper calibration.

How long have you been using CamBam and what do you think of it?

Martin

 Date: Thu, 29 Sep 2011 01:10:10 -0400
 From: marty
 To: emc-users@lists.sourceforge.net
 Subject: [Emc-users] calibrating stepper motor cnc
 
 Hi EMC users,
 I have EMC running on an old pc, latency number about 25000.   I got an
 occasional real time error with latency number set at 22000.
  I drew a part in CamBam, generated some g-code and cut a part.  The part
 looked right but the caliper says every dimension cut a little small.  A
 circle pocket drawn 1.50 diameter cut about 1.42 in diameter,  The tool
 diameter matched the tool specified in the cad program. Is there a good post
 on calibrating for a stepper motor machine?
 Thanks,
 Marty
 --
 All the data continuously generated in your IT infrastructure contains a
 definitive record of customers, application performance, security
 threats, fraudulent activity and more. Splunk takes this data and makes
 sense of it. Business sense. IT sense. Common sense.
 http://p.sf.net/sfu/splunk-d2dcopy1
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users
  
--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] calibrating stepper motor cnc

2011-09-29 Thread Jon Elson
Martin Patton wrote:
 Hi EMC users,
 I have EMC running on an old pc, latency number about 25000.   I got an
 occasional real time error with latency number set at 22000.
  I drew a part in CamBam, generated some g-code and cut a part.  The part
 looked right but the caliper says every dimension cut a little small.  A
 circle pocket drawn 1.50 diameter cut about 1.42 in diameter,  The tool
 diameter matched the tool specified in the cad program. Is there a good post
 on calibrating for a stepper motor machine?
   
First, you need to measure the actual movements with some kind of 
measuring tool, even if
it is just using a dial caliper.  You need to separate linear movement 
error, backlash and
tool deflection.  Without separating these different error mechanisms, 
you will not make
the right correction.  Linear error is pretty easy, put a pin in the 
spindle and measure between
it and a block fixed to the table.  If you move in the same direction, 
backlash will not
alter the reading.  Moving a number of inches so as to use nearly the 
full range of the
caliper will give the most informative result.

Then,  approach the same coordinate from both directions and measure 
position.
This may be harder to do with a caliper, as hopefully your backlash is 
relatively
small.  It is best to do this with a tenth-reading dial test indicator, 
if you have or
can borrow one.  Backlash alone could cause the error you report above.
It will also leave 4 steps in the walls of a circular pocket, at those 
places
where the axis needs to reverse, but takes a moment before the linear motion
picks up on the other side of the backlash.  If your problem is 
backlash, these
steps should be really obvious on the part you mention above.

Finally, it could be tool deflection, which will cause milled pockets to 
come out
small.  (Your measurement above seems to big to be tool deflection, 
however.)
But, tool deflection will NOT leave bumps in the wall like backlash.

Jon

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] calibrating stepper motor cnc

2011-09-29 Thread andy pugh
On 29 September 2011 06:10, Martin Patton mart...@gmail.com wrote:

 A circle pocket drawn 1.50 diameter cut about 1.42 in diameter,

1.5 / 1.42 = 1.0563
2mm / 12tpi = 1.0583

Just a thought, do you have metric leadscrews calibrated in TPI?

-- 
atp
Torque wrenches are for the obedience of fools and the guidance of wise men

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Need help with servo tuning

2011-09-29 Thread Jon Elson
Bruce Klawiter wrote:
   

 The
 problems I guess I was hoping would go away is the dithering or 

 oscillation
 when the machine is at rest.
   
Yes, this is the universal problem with servos.  There is no way for the 
dithering to
be less than one encoder count.  So, in your case, the resolution is ~  
.0004, and so it
will bounce back and forth that amount.  You can try to suppress it with 
some deadband, but
that is cutting into your accuracy with such a coarse scale.
 With
 a P=.1 the axis drifts, at P=1 it seems to hold steady but the PID  

 error
 is terrible. P=11 the PID error is the smallest I can get, P=13 the

 oscillation
 about tears the machine apart.
   
Well, I'd try some more with the D term, and see if it helps any.
 Adjusting
 anything else I can get the PID error tiny amounts better but the

 oscillation
 never seems to get better

  

 I
 would also like to get rid of the jerking it sometimes does when moving.

 It
 did not do this with the old controller

  

 Here
 are some halscope images of the dithering and jerking:

 https://sites.google.com/site/bmklawt/home/pid-tuning

   
First picture shows error jumping +1 / -1 encoder count, exactly as 
expected from
the 10 milli -mm encoder resolution.  Frequency about 2 Hz.

Second picture shows spikes.  Have you run a long-term test to see if 
the axis is
creeping in position?  I am thinking these may be electrical noise 
getting into the
encoder signals and causing erroneous counts to be detected.  At such low
resolution (means a single count = a lot of movement) then a singe extra 
count
could seriously upset the servo loop.  Calibrate the axis to a dial 
indicator, then
run the axis back and forth a while, and then re-check the calibration 
to the
indicator.  If it has crept even a few counts worth, then that is likely 
the situation.

If the encoder has differential output, have you set the PPMC encoder 
jumpers
for differential?

Otherwise, have you run the commtest option of the ppmcdiags program for a
while to make sure the communication between PC and PPMC is good?
 Adjusting
 D doesn’t do much.
   
Well, it OUGHT to do something.  But, the way EMC's PID works, too much
D can cause oscillations, as well.  So, there is a valley where it helps 
the most,
and either side it can cause instability.

Jon

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Need help with servo tuning

2011-09-29 Thread Jon Elson
andy pugh wrote:


 A single-count deadband in the PID might help.

 I am not sure if this is a good idea, but I wonder if a low-pass
 filter on the encoder position would help?
   
This was discussed some time ago, the real problem is a low-pass filter
must cause delay, and that is bad in a servo loop.

A better way is to do velocity estimation based on time stamping arrival
of the encoder pulses.  Unfortunately, the interface that Bruce has doesn't
have this feature.  The coarser the encoder resolution, the more jumpy the
velocity computed from sample-sample difference has to be.

He does have 1.5 counts worth of deadband in the PID already, but that 
equals
.015 mm or .0006, so he can't make it much bigger.

Jon

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] 3-phase pwmgens for 7i39

2011-09-29 Thread Viesturs Lācis
2011/9/29 andy pugh bodge...@gmail.com:
 On 29 September 2011 11:03, Viesturs Lācis viesturs.la...@gmail.com wrote:

 What is max number of the pattern?

 47, I think. See man bldc

 To me it seems that Your suggested hi,hi,hi is telling - there is Hall
 sensor feedback and index signal, no quadrature.
 Is that correct?

 Insufficient coffee error, redo from start.
 No, not correct at all. I would start with qh,qh,qh
 (Using i inmplies that you know where the index is relative to the poles.)

I tried all 48 patterns twice. Obtained result - nothing...
I tested by setting pattern value in HAL file, saving file, starting
EMC and pressing F1 and F2. I understand that at this moment motor
should turn. Is that correct?

Here is the contents of HAL file that relates to that particular
instance of encoder, bldc module and 3pwmgen.

loadrt bldc cfg=qh,qh,qh

addf bldc.2 servo-thread

newsig emcmot.02.enable bit
sets emcmot.02.enable FALSE
net emcmot.02.enable = hm2_[HOSTMOT2](BOARD).0.3pwmgen.02.enable
net emcmot.02.enable = axis.2.amp-enable-out

# encoder feedback
setp hm2_[HOSTMOT2](BOARD).0.encoder.02.counter-mode 0
setp hm2_[HOSTMOT2](BOARD).0.encoder.02.filter 1
setp hm2_[HOSTMOT2](BOARD).0.encoder.02.index-invert 0
setp hm2_[HOSTMOT2](BOARD).0.encoder.02.index-mask 0
setp hm2_[HOSTMOT2](BOARD).0.encoder.02.index-mask-invert 0

setp  hm2_[HOSTMOT2](BOARD).0.encoder.02.scale  [AXIS_2]INPUT_SCALE
setp  bldc.2.scale  [AXIS_2]INPUT_SCALE
setp  bldc.2.poles  8
setp  bldc.2.pattern47

net motor.2.hall-1 hm2_[HOSTMOT2](BOARD).0.gpio.027.in = bldc.2.hall1
net motor.2.hall-2 hm2_[HOSTMOT2](BOARD).0.gpio.028.in = bldc.2.hall2
net motor.2.hall-3 hm2_[HOSTMOT2](BOARD).0.gpio.029.in = bldc.2.hall3

net enc.2.raw   hm2_[HOSTMOT2](BOARD).0.encoder.02.rawcounts = bldc.2.rawcounts

setp hm2_[HOSTMOT2](BOARD).0.3pwmgen.02.scale 166.667

setp bldc.2.value 10

net pwm.02-a bldc.2.A-value = hm2_[HOSTMOT2](BOARD).0.3pwmgen.02.A-value
net pwm.02-b bldc.2.B-value = hm2_[HOSTMOT2](BOARD).0.3pwmgen.02.B-value
net pwm.02-c bldc.2.C-value = hm2_[HOSTMOT2](BOARD).0.3pwmgen.02.C-value


7i39 does receive power. It has 28.2VDC on motor power input terminals.
Encoder is working - when I turn motor by hand, joint's position
changes and bldc.2.rawcounts also changes.
Hall sensor feedback also is recieved - when I watch bldc.2.hall1,
bldc.2.hall2 and bldc.2.hall3 pins in HAL Config, all 3 LEDs change
colors as I turn motor by hand.

What else am I missing?

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Need help with servo tuning

2011-09-29 Thread andy pugh
Are the velocity tachs still active, so that the drives are closing a
velocity loop, and EMC2 is commanding that velocity loop on the basis
of position error?

If that is the case, I wonder if EMC2 would work with only I and FF1?

(And if you think that you have a puzzle, I am currently calibrating a
controller where the P gain is the product of two 10x10 maps
(effectively a 10x10x10x10 lookup on total error, engine speed, oil
temperature and command value), the I term is the product of three
maps, the D term is the product of 2 maps with a time constant from
another 2 maps and the PI limit and D limit are also the products of
multiple maps. So I have 1100 PID terms to get right, including
getting the engine into the right states to test them.)
-- 
atp
Torque wrenches are for the obedience of fools and the guidance of wise men

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] 3-phase pwmgens for 7i39

2011-09-29 Thread Peter C. Wallace

On Thu, 29 Sep 2011, Viesturs L?cis wrote:


Date: Thu, 29 Sep 2011 19:56:45 +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] 3-phase pwmgens for 7i39

2011/9/29 andy pugh bodge...@gmail.com:
On 29 September 2011 11:03, Viesturs L??cis viesturs.la...@gmail.com wrote:


What is max number of the pattern?


47, I think. See man bldc


To me it seems that Your suggested hi,hi,hi is telling - there is Hall
sensor feedback and index signal, no quadrature.
Is that correct?


Insufficient coffee error, redo from start.
No, not correct at all. I would start with qh,qh,qh
(Using i inmplies that you know where the index is relative to the poles.)



I tried all 48 patterns twice. Obtained result - nothing...
I tested by setting pattern value in HAL file, saving file, starting
EMC and pressing F1 and F2. I understand that at this moment motor
should turn. Is that correct?


Did you ever get any motor movement? If not, something more basic is wrong
(like PWM enable or initial voltage % (you have 10/166.6*28V) = 1.7V 
-deadzone which may be too low to generate much current especially if the

PWM frequency is high)

Also I dont see the PWM frequency set




Here is the contents of HAL file that relates to that particular
instance of encoder, bldc module and 3pwmgen.



loadrt bldc cfg=qh,qh,qh



addf bldc.2 servo-thread



newsig emcmot.02.enable bit
sets emcmot.02.enable FALSE
net emcmot.02.enable = hm2_[HOSTMOT2](BOARD).0.3pwmgen.02.enable
net emcmot.02.enable = axis.2.amp-enable-out

# encoder feedback
setp hm2_[HOSTMOT2](BOARD).0.encoder.02.counter-mode 0
setp hm2_[HOSTMOT2](BOARD).0.encoder.02.filter 1
setp hm2_[HOSTMOT2](BOARD).0.encoder.02.index-invert 0
setp hm2_[HOSTMOT2](BOARD).0.encoder.02.index-mask 0
setp hm2_[HOSTMOT2](BOARD).0.encoder.02.index-mask-invert 0



setp  hm2_[HOSTMOT2](BOARD).0.encoder.02.scale  [AXIS_2]INPUT_SCALE
setp  bldc.2.scale  [AXIS_2]INPUT_SCALE
setp  bldc.2.poles  8
setp  bldc.2.pattern47



net motor.2.hall-1 hm2_[HOSTMOT2](BOARD).0.gpio.027.in = bldc.2.hall1
net motor.2.hall-2 hm2_[HOSTMOT2](BOARD).0.gpio.028.in = bldc.2.hall2
net motor.2.hall-3 hm2_[HOSTMOT2](BOARD).0.gpio.029.in = bldc.2.hall3



net enc.2.raw   hm2_[HOSTMOT2](BOARD).0.encoder.02.rawcounts = bldc.2.rawcounts



setp hm2_[HOSTMOT2](BOARD).0.3pwmgen.02.scale 166.667



setp bldc.2.value 10



net pwm.02-a bldc.2.A-value = hm2_[HOSTMOT2](BOARD).0.3pwmgen.02.A-value
net pwm.02-b bldc.2.B-value = hm2_[HOSTMOT2](BOARD).0.3pwmgen.02.B-value
net pwm.02-c bldc.2.C-value = hm2_[HOSTMOT2](BOARD).0.3pwmgen.02.C-value



7i39 does receive power. It has 28.2VDC on motor power input terminals.
Encoder is working - when I turn motor by hand, joint's position
changes and bldc.2.rawcounts also changes.
Hall sensor feedback also is recieved - when I watch bldc.2.hall1,
bldc.2.hall2 and bldc.2.hall3 pins in HAL Config, all 3 LEDs change
colors as I turn motor by hand.

What else am I missing?

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
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 the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] 3-phase pwmgens for 7i39

2011-09-29 Thread andy pugh
On 29 September 2011 17:56, Viesturs Lācis viesturs.la...@gmail.com wrote:

 I tried all 48 patterns twice. Obtained result - nothing…

As Pete says, if it is really nothing, then it isn't the pattern. The
wrong pattern will make the motor lock or oscillate.

 I tested by setting pattern value in HAL file, saving file, starting
 EMC and pressing F1 and F2. I understand that at this moment motor
 should turn. Is that correct?

That's a very long-winded way to do it. You can type setp
bldc.0.pattern N in the Machine-ShowHalConfig window without having
to restart EMC2.
Personally I do all this sort of thing in the terminal with Halrun
because you get tab-completion. (ie, type a bit of a pin-name, press
tab, it fills in all that it can)

I think the problem might be that you are not driving the 7i39 /ENABLE
pins? (probably on gpio 026). That probably requires that those pins
be set to outputs too.

-- 
atp
Torque wrenches are for the obedience of fools and the guidance of wise men

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] 3-phase pwmgens for 7i39

2011-09-29 Thread Viesturs Lācis
2011/9/29 Peter C. Wallace p...@mesanet.com:

 Did you ever get any motor movement?

No, I haven't.

 If not, something more basic is wrong
 (like PWM enable or initial voltage % (you have 10/166.6*28V) = 1.7V
 -deadzone which may be too low to generate much current especially if the
 PWM frequency is high)

I changed bldc.2.value from 10 to 50 and still the same.

 Also I dont see the PWM frequency set

HALConfig shows that value of pin hm2_7i43.0.3pwmgen.frequency is 2


I will try Andy's suggestion now.

Viesturs

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] 3-phase pwmgens for 7i39

2011-09-29 Thread Viesturs Lācis
2011/9/29 andy pugh bodge...@gmail.com:
 On 29 September 2011 17:56, Viesturs Lācis viesturs.la...@gmail.com wrote:

 That's a very long-winded way to do it. You can type setp
 bldc.0.pattern N in the Machine-ShowHalConfig window without having
 to restart EMC2.

Thanks for the suggestion, will try that! Restarting EMC each time
really makes it time-consuming.

 I think the problem might be that you are not driving the 7i39 /ENABLE
 pins? (probably on gpio 026). That probably requires that those pins
 be set to outputs too.

Those pins are Enable pins in firmware, so they are not available as GPIO pins.
According to .PIN file, I need to change gpio.032 pin.
EMC is showing error, that hm2_7i43.0.gpio.032.is_output pin does not
exist, which proves that it is reserved by firmware.

Peter, can You explain, at which moment are those 7i39 enable pins set true?

Viesturs

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] 3-phase pwmgens for 7i39

2011-09-29 Thread andy pugh
On 29 September 2011 19:11, Viesturs Lācis viesturs.la...@gmail.com wrote:

 Those pins are Enable pins in firmware, so they are not available as GPIO 
 pins.
 According to .PIN file, I need to change gpio.032 pin.
 EMC is showing error, that hm2_7i43.0.gpio.032.is_output pin does not
 exist, which proves that it is reserved by firmware.

There is a .enable pin for each 3pwmgen too.

-- 
atp
Torque wrenches are for the obedience of fools and the guidance of wise men

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] 3-phase pwmgens for 7i39

2011-09-29 Thread Viesturs Lācis
2011/9/29 andy pugh bodge...@gmail.com:
 On 29 September 2011 19:11, Viesturs Lācis viesturs.la...@gmail.com wrote:

 Those pins are Enable pins in firmware, so they are not available as GPIO 
 pins.
 According to .PIN file, I need to change gpio.032 pin.
 EMC is showing error, that hm2_7i43.0.gpio.032.is_output pin does not
 exist, which proves that it is reserved by firmware.

 There is a .enable pin for each 3pwmgen too.

But then this line should do the magic:
net emcmot.02.enable = hm2_[HOSTMOT2](BOARD).0.3pwmgen.02.enable

Viesturs

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] 3-phase pwmgens for 7i39

2011-09-29 Thread Peter C. Wallace

On Thu, 29 Sep 2011, Viesturs L?cis wrote:


Date: Thu, 29 Sep 2011 21:29:42 +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] 3-phase pwmgens for 7i39

2011/9/29 andy pugh bodge...@gmail.com:
On 29 September 2011 19:11, Viesturs L??cis viesturs.la...@gmail.com wrote:


Those pins are Enable pins in firmware, so they are not available as GPIO pins.
According to .PIN file, I need to change gpio.032 pin.
EMC is showing error, that hm2_7i43.0.gpio.032.is_output pin does not
exist, which proves that it is reserved by firmware.


There is a .enable pin for each 3pwmgen too.



But then this line should do the magic:
net emcmot.02.enable = hm2_[HOSTMOT2](BOARD).0.3pwmgen.02.enable



Viesturs


HALmeter the 3PPWM fault signal, if its high, you may need to invert the 
external fault input signal(or tie that pin to the inactive state)



--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
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 the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] 3-phase pwmgens for 7i39

2011-09-29 Thread Viesturs Lācis
2011/9/29 Peter C. Wallace p...@mesanet.com:

 HALmeter the 3PPWM fault signal, if its high, you may need to invert the
 external fault input signal(or tie that pin to the inactive state)

Thanks!
Fault is true.
I'm sorry, but I do not really understand, how exactly can I fix that.

Viesturs

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] 3-phase pwmgens for 7i39

2011-09-29 Thread andy pugh
On 29 September 2011 20:15, Viesturs Lācis viesturs.la...@gmail.com wrote:

 Fault is true.
 I'm sorry, but I do not really understand, how exactly can I fix that.

There is a parameter .3pwmgen.N.fault-invert

-- 
atp
Torque wrenches are for the obedience of fools and the guidance of wise men

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] 3-phase pwmgens for 7i39

2011-09-29 Thread Viesturs Lācis
2011/9/29 andy pugh bodge...@gmail.com:
 On 29 September 2011 20:15, Viesturs Lācis viesturs.la...@gmail.com wrote:

 Fault is true.
 I'm sorry, but I do not really understand, how exactly can I fix that.

 There is a parameter .3pwmgen.N.fault-invert

Thank You!

Now the motor is oscillating.
I checked all 47 patterns twice, none of them is rotating motor smoothly.
During testing I decreased bldc value from 50 to 5, hoping that this
change would make the oscillation more gentle, but I did not feel any
difference.

What else should I check?

Viesturs

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] 3-phase pwmgens for 7i39

2011-09-29 Thread andy pugh
On 29 September 2011 21:22, Viesturs Lācis viesturs.la...@gmail.com wrote:

 I checked all 47 patterns twice, none of them is rotating motor smoothly.

Are you in qh or pure h mode? It might be that it switched to
sinusoidal half way through (and that that isn't set up right)

-- 
atp
Torque wrenches are for the obedience of fools and the guidance of wise men

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] 3-phase pwmgens for 7i39

2011-09-29 Thread Peter C. Wallace

On Thu, 29 Sep 2011, andy pugh wrote:


Date: Thu, 29 Sep 2011 20:30:56 +0100
From: andy pugh bodge...@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] 3-phase pwmgens for 7i39

On 29 September 2011 20:15, Viesturs L??cis viesturs.la...@gmail.com wrote:



Fault is true.
I'm sorry, but I do not really understand, how exactly can I fix that.


There is a parameter .3pwmgen.N.fault-invert



Also if you look at your dmesg and the 7I39 manual you can find which sense 
line is wired to the fault input and terminate it appropriately (its not used 
on the 7I39, just passed through)


--
atp
Torque wrenches are for the obedience of fools and the guidance of wise men

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
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 the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] 3-phase pwmgens for 7i39

2011-09-29 Thread Viesturs Lācis
Config string says qh,qh,qh.
Should I change something?

Viesturs
On 2011. gada 29. Sep. 22:38, andy pugh bodge...@gmail.com wrote:

 On 29 September 2011 21:22, Viesturs Lācis viesturs.la...@gmail.com
 wrote:

  I checked all 47 patterns twice, none of them is rotating motor smoothly.

 Are you in qh or pure h mode? It might be that it switched to
 sinusoidal half way through (and that that isn't set up right)

 --
 atp
 Torque wrenches are for the obedience of fools and the guidance of wise
 men


 --
 All the data continuously generated in your IT infrastructure contains a
 definitive record of customers, application performance, security
 threats, fraudulent activity and more. Splunk takes this data and makes
 sense of it. Business sense. IT sense. Common sense.
 http://p.sf.net/sfu/splunk-d2dcopy1
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] 3-phase pwmgens for 7i39

2011-09-29 Thread andy pugh
2011/9/29 Viesturs Lācis viesturs.la...@gmail.com:
 Config string says qh,qh,qh.
 Should I change something?

Yes, for working out the hall pattern, use h,h,h

-- 
atp
Torque wrenches are for the obedience of fools and the guidance of wise men

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Emc-users Digest, Vol 65, Issue 66

2011-09-29 Thread Martin Patton
Thanks John,
I'll check the EMC manual.  The machine is pretty new and there does not
seem to be any backlash.

 --

 Message: 7
 Date: Thu, 29 Sep 2011 06:03:48 -0500
 From: John Thornton bjt...@gmail.com
 Subject: Re: [Emc-users] calibrating stepper motor cnc
 To: Enhanced Machine Controller (EMC)
emc-users@lists.sourceforge.net
 Message-ID: 4e845094.1080...@gmail.com
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed

 There is some good info in the EMC manual on testing for lost steps.
 Have you checked for backlash?

 John

 On 9/29/2011 12:10 AM, Martin Patton wrote:
  Hi EMC users,
  I have EMC running on an old pc, latency number about 25000.   I got an
  occasional real time error with latency number set at 22000.
I drew a part in CamBam, generated some g-code and cut a part.  The
 part
  looked right but the caliper says every dimension cut a little small.  A
  circle pocket drawn 1.50 diameter cut about 1.42 in diameter,  The tool
  diameter matched the tool specified in the cad program. Is there a good
 post
  on calibrating for a stepper motor machine?
  Thanks,
  Marty
 
 --
  All the data continuously generated in your IT infrastructure contains a
  definitive record of customers, application performance, security
  threats, fraudulent activity and more. Splunk takes this data and makes
  sense of it. Business sense. IT sense. Common sense.
  http://p.sf.net/sfu/splunk-d2dcopy1
  ___
  Emc-users mailing list
  Emc-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/emc-users



 --


 --
 All the data continuously generated in your IT infrastructure contains a
 definitive record of customers, application performance, security
 threats, fraudulent activity and more. Splunk takes this data and makes
 sense of it. Business sense. IT sense. Common sense.
 http://p.sf.net/sfu/splunk-d2dcopy1

 --

 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


 End of Emc-users Digest, Vol 65, Issue 66
 *

--
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-d2dcopy2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] VFD Speed Input

2011-09-29 Thread Kirk Wallace
I'm trying to get my Shizuoka going after being idle during the Summer.
Some of the parts had fallen off. So, in putting it back together I
attended to an issue that bothered me from before. The SPI DAC I use to
feed the 0-10 V input to the spindle VFD wanders a bit and is enough to
notice the speed change at the spindle. I suspect the problem is that
the VFD and DAC have different supplies and grounds. I decided to try a
different approach and rigged up an opto-isolator which switches the 10V
speed supply to the 0-10V input. I feed the transmit side of the
opto-isolator with a PWM signal. I get much less wander, but after
adjusting the scale, I realized only the first 10% of the PWM range is
used to get 0 to 100% RPM (10V). I would like to have 100% pwm
correspond to 100% RPM or 10V input. I tried various resistors to limit
the input current or to pull the input down, but I still get the same
problem.

Has anyone setup a PWM input to a VFD that utilizes the full PWM range?
If so, please let me know how it can be done. There is a 20mA input
also, but I don't know how it is supposed to work. I'll check the
manual, but hints would be appreciated. Otherwise, I my need to resort
to a digital potentiometer. Thanks for any help.

-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/index.html
California, USA


--
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-d2dcopy2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Need help with servo tuning

2011-09-29 Thread Jon Elson
andy pugh wrote:
 Are the velocity tachs still active, so that the drives are closing a
 velocity loop, and EMC2 is commanding that velocity loop on the basis
 of position error?
   
Yes, his tachs are connected to the analog servo amps.
 If that is the case, I wonder if EMC2 would work with only I and FF1?
   
That is basically what he has, now.

Jon

--
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-d2dcopy2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] VFD Speed Input

2011-09-29 Thread Karl Cunningham
On 09/29/2011 06:24 PM, Kirk Wallace wrote:
 I'm trying to get my Shizuoka going after being idle during the Summer.
 Some of the parts had fallen off. So, in putting it back together I
 attended to an issue that bothered me from before. The SPI DAC I use to
 feed the 0-10 V input to the spindle VFD wanders a bit and is enough to
 notice the speed change at the spindle. I suspect the problem is that
 the VFD and DAC have different supplies and grounds. I decided to try a
 different approach and rigged up an opto-isolator which switches the 10V
 speed supply to the 0-10V input. I feed the transmit side of the
 opto-isolator with a PWM signal. I get much less wander, but after
 adjusting the scale, I realized only the first 10% of the PWM range is
 used to get 0 to 100% RPM (10V). I would like to have 100% pwm
 correspond to 100% RPM or 10V input. I tried various resistors to limit
 the input current or to pull the input down, but I still get the same
 problem.

 Has anyone setup a PWM input to a VFD that utilizes the full PWM range?
 If so, please let me know how it can be done. There is a 20mA input
 also, but I don't know how it is supposed to work. I'll check the
 manual, but hints would be appreciated. Otherwise, I my need to resort
 to a digital potentiometer. Thanks for any help.

The PWM output (duty cycle) is 0 to 1.0. Is it possible you're telling 
it to go from 0 to 10, and by the time it reaches 10% of full scale it's 
already at 1.0? The 10 volts is only between the opto and the VFD input, 
nothing else needs to know about it. What about changing the scale.

On ours (PWM driving a 0-10V output, which feeds the VFD's 0-10V input) 
we have the following in the ini file for a motor max speed of 2500 RPM.

MAX_VELOCITY = 2500.0
OUTPUT_SCALE = 2500.0
OUTPUT_OFFSET = 0.0
MAX_OUTPUT = 2500.0

Karl

--
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-d2dcopy2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] upgrade issue with 10.04 live CD

2011-09-29 Thread marc foster
I have a recently upgraded to a new PC for my EMC installation and I am
having difficulty getting EMC to run on the 10.04 Live CD.  I know that it
is not a hardware issue because I can run a 8.04 Live CD and everything
works fine.  The 10.04 CD boots and runs fine, however when I run the EMC it
crashes with a long string of 'waiting for s.axes' errors.  When I launch
the latency test the window comes up but the times are all '0' and do not
change regardless of computer usage.  There appear to be no errors when I
check dmesg after running Latency_test.  I have tried to boot with
isolcpus=0 as I have found in the forums, however it behaves the same.  Any
ideas?  I need to run the 10.04 CD because I would like to have the
additional software in that distro.

many thanks,

marc
--
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-d2dcopy2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Emc-users Digest, Vol 65, Issue 67

2011-09-29 Thread Martin Patton

 Brian,

I will do as you suggest and cut a grid.  What did you adjust in the ini
file?
Thanks,
Marty

Date: Thu, 29 Sep 2011 08:52:52 -0400
 From: BRIAN GLACKIN glackin.br...@gmail.com
 Subject: Re: [Emc-users] calibrating stepper motor cnc
 To: Enhanced Machine Controller (EMC)
emc-users@lists.sourceforge.net
 Message-ID:
CALJbRT=nnsAc7x=iNF4Zn-2FV+CT9j4p=W19=9gy6hzemcm...@mail.gmail.com
 
 Content-Type: text/plain; charset=ISO-8859-1

 One recommendation is to put a Vee cutter in your spindle and run a program
 where the Vee bit just touches the material in a uniform grid pattern.
  Take
 your part and measure all the positions from the 0,0.  You may have your
 machine set up in such a manner that it is not just perfect.  When I did
 this, I ended up adjusting the ini file slightly to correct for a 1/8
 undershot over my 4' X axis and 1/16 on my 2' Y axis.

 On Thu, Sep 29, 2011 at 1:10 AM, Martin Patton mart...@gmail.com wrote:

  Hi EMC users,
  I have EMC running on an old pc, latency number about 25000.   I got an
  occasional real time error with latency number set at 22000.
   I drew a part in CamBam, generated some g-code and cut a part.  The part
  looked right but the caliper says every dimension cut a little small.  A
  circle pocket drawn 1.50 diameter cut about 1.42 in diameter,  The tool
  diameter matched the tool specified in the cad program. Is there a good
  post
  on calibrating for a stepper motor machine?
  Thanks,
  Marty

--
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-d2dcopy2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Emc-users Digest, Vol 65, Issue 68

2011-09-29 Thread Martin Patton


 Martin,


I have been using CamBam for 7 of 40 trials.  I am amazed at how easy it is
to use so far.
I drew a mount for a stepper motor that has a cutout profile with tabs, a
pocket for the rim of the stepper and four spiral holes sized for tapping
10-32.  With all this advice, I already cut a part in plastic that fits the
motor.

Jon,

That is good advice too.  I will look for backlash.  How do I make it go
awayif I find it?  The mill is a Taig.

Thanks,

marty



 Martin Patton wrote:
  Hi EMC users,
  I have EMC running on an old pc, latency number about 25000.   I got an
 occasional real time error with latency number set at 22000.
   I drew a part in CamBam, generated some g-code and cut a part.  The part
  looked right but the caliper says every dimension cut a little small.  A
  circle pocket drawn 1.50 diameter cut about 1.42 in diameter,  The tool
  diameter matched the tool specified in the cad program. Is there a good
 post
  on calibrating for a stepper motor machine?
 
 First, you need to measure the actual movements with some kind of
 measuring tool, even if
 it is just using a dial caliper.  You need to separate linear movement
 error, backlash and
 tool deflection.  Without separating these different error mechanisms,
 you will not make
 the right correction.  Linear error is pretty easy, put a pin in the
 spindle and measure between
 it and a block fixed to the table.  If you move in the same direction,
 backlash will not
 alter the reading.  Moving a number of inches so as to use nearly the
 full range of the
 caliper will give the most informative result.

 Then,  approach the same coordinate from both directions and measure
 position.
 This may be harder to do with a caliper, as hopefully your backlash is
 relatively
 small.  It is best to do this with a tenth-reading dial test indicator,
 if you have or
 can borrow one.  Backlash alone could cause the error you report above.
 It will also leave 4 steps in the walls of a circular pocket, at those
 places
 where the axis needs to reverse, but takes a moment before the linear
 motion
 picks up on the other side of the backlash.  If your problem is
 backlash, these
 steps should be really obvious on the part you mention above.

 Finally, it could be tool deflection, which will cause milled pockets to
 come out
 small.  (Your measurement above seems to big to be tool deflection,
 however.)
 But, tool deflection will NOT leave bumps in the wall like backlash.

 Jon



 --


--
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-d2dcopy2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] calibrating stepper motor cnc

2011-09-29 Thread Martin Patton
?A circle pocket drawn 1.50 diameter cut about 1.42 in diameter,

 1.5 / 1.42 = 1.0563
 2mm / 12tpi = 1.0583

 Just a thought, do you have metric leadscrews calibrated in TPI?

 --
 atp
 Torque wrenches are for the obedience of fools and the guidance of wise
 men


 Nope.  They are 20 tpi.

Thanks,
Marty
--
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-d2dcopy2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] upgrade issue with 10.04 live CD

2011-09-29 Thread Sebastian Kuzminsky
On 09/29/2011 09:26 PM, marc foster wrote:
 I have a recently upgraded to a new PC for my EMC installation and I am
 having difficulty getting EMC to run on the 10.04 Live CD.  I know that it
 is not a hardware issue because I can run a 8.04 Live CD and everything
 works fine.  The 10.04 CD boots and runs fine, however when I run the EMC it
 crashes with a long string of 'waiting for s.axes' errors.  When I launch
 the latency test the window comes up but the times are all '0' and do not
 change regardless of computer usage.  There appear to be no errors when I
 check dmesg after running Latency_test.  I have tried to boot with
 isolcpus=0 as I have found in the forums, however it behaves the same.  Any
 ideas?  I need to run the 10.04 CD because I would like to have the
 additional software in that distro.

It's possible you have some hitherto untried hardware, and it's got some 
kind of problem with the new RTAI  Linux kernels in our 10.04 distro.

Please give us some details about your hardware.  What make  model 
motherboard?  What CPU?  How much RAM?


-- 
Sebastian Kuzminsky


--
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-d2dcopy2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Emc-users Digest, Vol 65, Issue 68

2011-09-29 Thread gene heskett
On Friday, September 30, 2011 12:30:55 AM Martin Patton did opine:

  Martin,
 
 I have been using CamBam for 7 of 40 trials.  I am amazed at how easy it
 is to use so far.
 I drew a mount for a stepper motor that has a cutout profile with tabs,
 a pocket for the rim of the stepper and four spiral holes sized for
 tapping 10-32.  With all this advice, I already cut a part in plastic
 that fits the motor.
 
 Jon,
 
 That is good advice too.  I will look for backlash.  How do I make it go
 awayif I find it?  The mill is a Taig.
 
Generally, 2 places to look, but I'm not a taig owner, mine is the small 
HF.  First is end play in the screw mounts, with the handle retainer being 
the usual method of adjusting that clearance, but if there are no bearings 
you need to leave about a thou clearance there. I found some thin ball 
thrust washers, so mine are slightly preloaded  playless now.

Second is the nut the screw is turning in, and in the economy stuff it is 
usually a long, lots of threads nut that is sawn nearly through, and either 
cap screws to pull the saw slot together, or jack screws to split the saw 
slot even wider.  Generally, getting that slop down to 3 thou won't last 
too long due to wear, but if you keep jacking on the screws it will 
eventually wear in and can be set at maybe 2 thou without binding.

Emc has backlash comp settings that if you stay on top of the wear, can cut 
bearing pockets that are quite close to round, half a thou is not a lot of 
trouble.

To get closer, one has to go to ball screws, which can be backlash free at 
normal loading.  But those will be $200-500 a copy.

 Thanks,
 
 marty
 
  Martin Patton wrote:
   Hi EMC users,
   I have EMC running on an old pc, latency number about 25000.   I got
   an
  
  occasional real time error with latency number set at 22000.
  
I drew a part in CamBam, generated some g-code and cut a part.  The
part
   
   looked right but the caliper says every dimension cut a little
   small.  A circle pocket drawn 1.50 diameter cut about 1.42 in
   diameter,  The tool diameter matched the tool specified in the cad
   program. Is there a good
  
  post
  
   on calibrating for a stepper motor machine?
  
  First, you need to measure the actual movements with some kind of
  measuring tool, even if
  it is just using a dial caliper.  You need to separate linear movement
  error, backlash and
  tool deflection.  Without separating these different error mechanisms,
  you will not make
  the right correction.  Linear error is pretty easy, put a pin in the
  spindle and measure between
  it and a block fixed to the table.  If you move in the same direction,
  backlash will not
  alter the reading.  Moving a number of inches so as to use nearly the
  full range of the
  caliper will give the most informative result.
  
  Then,  approach the same coordinate from both directions and measure
  position.
  This may be harder to do with a caliper, as hopefully your backlash is
  relatively
  small.  It is best to do this with a tenth-reading dial test
  indicator, if you have or
  can borrow one.  Backlash alone could cause the error you report
  above. It will also leave 4 steps in the walls of a circular pocket,
  at those places
  where the axis needs to reverse, but takes a moment before the linear
  motion
  picks up on the other side of the backlash.  If your problem is
  backlash, these
  steps should be really obvious on the part you mention above.
  
  Finally, it could be tool deflection, which will cause milled pockets
  to come out
  small.  (Your measurement above seems to big to be tool deflection,
  however.)
  But, tool deflection will NOT leave bumps in the wall like backlash.
  
  Jon
  
  
  
  --
 
 
 -- 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-d2dcopy2
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


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)
The most difficult thing in the world is to know how to do a thing and to
watch someone else doing it wrong, without commenting.
-- T.H. White

--
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.

Re: [Emc-users] VFD Speed Input

2011-09-29 Thread Kirk Wallace
On Thu, 2011-09-29 at 20:44 -0700, Karl Cunningham wrote:
... snip
 The PWM output (duty cycle) is 0 to 1.0. Is it possible you're telling 
 it to go from 0 to 10, and by the time it reaches 10% of full scale it's 
 already at 1.0? The 10 volts is only between the opto and the VFD input, 
 nothing else needs to know about it. What about changing the scale.

Thanks for your reply Karl.

I am using a Pluto-P to get the PWM, so I didn't have HALscope to check
the actual PWM output. I had to drag out my real oscilloscope and
attached it to the opto-isolator transmitter and verified that the PWM
to the opto was about 10% with the VFD display indicating 100% RPM (60
Hz). It seems the input doesn't need much of a charge to keep it topped
up. I tried a resistor in series with the input pin, but this just
lowered the maximum signal rather than spreading it out on the PWM
range.

 On ours (PWM driving a 0-10V output, which feeds the VFD's 0-10V input) 
 we have the following in the ini file for a motor max speed of 2500 RPM.
 
 MAX_VELOCITY = 2500.0
 OUTPUT_SCALE = 2500.0
 OUTPUT_OFFSET = 0.0
 MAX_OUTPUT = 2500.0

I think I got this part sorted out. My maximum of 3700 RPM gives me 1.00
into the PWM generator. It's just that the real maximum RPM kicks in
much earlier. I can make it look like it works by fiddling with the
scale value, but then I get .04 going to the PWM generator at 3700 RPM.
It works okay, in fact it took me a while to realize there was a
problem, but then most of the available PWM resolution gets lost.

I wish I knew what circuit is behind the VFD's 10V supply, input, and
common control terminals. Then I might be able to figure out what it
needs. The one example that I know that works properly is a
potentiometer on the three terminals, so it seems to me that all three
terminals are needed in some fashion. So far, I'm switching the high
side to the input, which corresponds to having the pot turned fully up
during the PWM high period. It may be that I need another opto to switch
the input to the low side for the pot turned fully down, or PWM low. I
would need an inverter chip to get PWMnot for the low side opto, and
then I am worried about getting shoot through as the high side shuts
down and the low side turns on.

Another thing comes to mind, my serial DAC uses it's own voltage
reference - I wonder if I should use the VFD 10V terminal instead.
http://www.wallacecompany.com/machine_shop/EMC2/serial_dac/ (U2 on
schematic)

A digital potentiometer might be the easiest solution, but could
potentially have it's own issues. Besides it's not like I am the first
person to hook a PWM signal to a VFD. I must be missing something
simple.

PS, this VFD doesn't have Modbus or other communication port, or I would
have used it already. :(

-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/index.html
California, USA


--
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-d2dcopy2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users