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

2011-09-28 Thread Viesturs Lācis
Hello, gentlemen!

I am trying to load 3-phase pwmgens on 7i43 for 7i39, but I receive error.

With this one EMC loads correctly:
CONFIG=firmware=hm2/7i43-4/SVST4_4_7I39.BIT num_encoders=3
num_pwmgens=3 num_stepgens=2

Note that this line requests single-phase pwm generators.

So according to this manual:
http://www.linuxcnc.org/docs/devel/html/man/man9/hostmot2.9.html#config%20modparam

The line should look like this:
CONFIG=firmware=hm2/7i43-4/SVST4_4_7I39.BIT num_encoders=3
num_3pwmgens=3 num_stepgens=2

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
load 3 instances of 3-phase pwm generator?

Viesturs

P.S.
Pin and Bit files for the customized firmware are available here:
http://www.cutting.lv/fileadmin/user_upload/SVST4_4_7I39.BIT
http://www.cutting.lv/fileadmin/user_upload/SVST4_4_7I39.PIN

--
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-28 Thread Peter C. Wallace
On Wed, 28 Sep 2011, Viesturs L?cis wrote:

 Date: Wed, 28 Sep 2011 22:01:41 +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: [Emc-users] 3-phase pwmgens for 7i39
 
 Hello, gentlemen!

 I am trying to load 3-phase pwmgens on 7i43 for 7i39, but I receive error.

 With this one EMC loads correctly:
 CONFIG=firmware=hm2/7i43-4/SVST4_4_7I39.BIT num_encoders=3
 num_pwmgens=3 num_stepgens=2

 Note that this line requests single-phase pwm generators.

 So according to this manual:
 http://www.linuxcnc.org/docs/devel/html/man/man9/hostmot2.9.html#config%20modparam

 The line should look like this:
 CONFIG=firmware=hm2/7i43-4/SVST4_4_7I39.BIT num_encoders=3
 num_3pwmgens=3 num_stepgens=2

 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
 load 3 instances of 3-phase pwm generator?

 Viesturs


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




 P.S.
 Pin and Bit files for the customized firmware are available here:
 http://www.cutting.lv/fileadmin/user_upload/SVST4_4_7I39.BIT
 http://www.cutting.lv/fileadmin/user_upload/SVST4_4_7I39.PIN

 --
 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-28 Thread Sebastian Kuzminsky
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.

-- 
Sebastian Kuzminsky


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


[Emc-users] Determine if a spindle speed change is from override?

2011-09-28 Thread Karl Cunningham
I'm writing a user-space program to manage spindle speed on a machine 
with a VFD for the motor, and drive ratios set by belt and gear changes.

 From available HAL signals I would like to determine whether a spindle 
speed change is due to the speed override slider in axis, or due to a 
gcode Snnn speed change. I don't want to initiate a belt or gear change 
if it is from override.

The only way I've come up with is to monitor the ratio of 
motion.spindle-speed-out to halui.spindle-override.value. The ratio 
doesn't seem to change when the override is changed, but does with 
programmed speed changes.

Should this be evaluated over more than one program cycle to accommodate 
differences in timing between the two signals.

Does anyone know a better way to do this?

Thanks.

Karl Cunningham

--
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] Determine if a spindle speed change is from override?

2011-09-28 Thread andy pugh
On 28 September 2011 21:14, Karl Cunningham ka...@keckec.com wrote:
 I'm writing a user-space program to manage spindle speed on a machine
 with a VFD for the motor, and drive ratios set by belt and gear changes.

This doesn't answer your question, but are you aware that there are
realtime modules available to do the same thing?
(except they don't initiate the gear change, like you seem to be suggesting)

  From available HAL signals I would like to determine whether a spindle
 speed change is due to the speed override slider in axis, or due to a
 gcode Snnn speed change. I don't want to initiate a belt or gear change
 if it is from override.

I take it checking that testing if the over-ride value is other than
100% isn't the answer?

 The only way I've come up with is to monitor the ratio of
 motion.spindle-speed-out to halui.spindle-override.value. The ratio
 doesn't seem to change when the override is changed, but does with
 programmed speed changes.

Yes, as speed = Svalue * over-ride, dividing by the over-ride leaves
you with just the S-value.

 Should this be evaluated over more than one program cycle to accommodate
 differences in timing between the two signals.

I would be tempted to compare with an old value which is only
updated if the difference is more than a certain amount.

-- 
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] CPR or PPR what are they

2011-09-28 Thread andy pugh
On 28 September 2011 22:55, Bruce Klawiter bmkl...@yahoo.com wrote:

 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.

Cycles is the full A+ B+ A- B- cycle. PPR counts both edges of each A
and B slot, so is 4x higher.

 The high the line count the better I would assume.

As long as your encoder counting hardware can keep up with PPR x RPS,
yes. But the numbers get big pretty quickly.

-- 
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] CPR or PPR what are they

2011-09-28 Thread Cliff Blackburn


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.

I have had good luck with dynapar encoders, there not cheap tho.


 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

-- 
PowerTech Repairs and Contracting LTD.
3-9452 193a St
Surrey, BC, V4N 4N4

Ph: (604) 882-3850
Fax: (604) 882-3851


--
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] Determine if a spindle speed change is from override?

2011-09-28 Thread Karl Cunningham
On 09/28/2011 01:56 PM, andy pugh wrote:
 On 28 September 2011 21:14, Karl Cunninghamka...@keckec.com  wrote:
 I'm writing a user-space program to manage spindle speed on a machine
 with a VFD for the motor, and drive ratios set by belt and gear changes.

 This doesn't answer your question, but are you aware that there are
 realtime modules available to do the same thing?
 (except they don't initiate the gear change, like you seem to be suggesting)

I want it to prompt the operator at the right moment to change belt/gear 
in response to a Snnn command, but just limit motor speed and not bother 
him if he's only adjusting the override.

   From available HAL signals I would like to determine whether a spindle
 speed change is due to the speed override slider in axis, or due to a
 gcode Snnn speed change. I don't want to initiate a belt or gear change
 if it is from override.

 I take it checking that testing if the over-ride value is other than
 100% isn't the answer?

I want to ignore override changes, so far as gear changes are concerned. 
I'll have to limit motor speed to reasonable values, but that's no problem.

 The only way I've come up with is to monitor the ratio of
 motion.spindle-speed-out to halui.spindle-override.value. The ratio
 doesn't seem to change when the override is changed, but does with
 programmed speed changes.

 Yes, as speed = Svalue * over-ride, dividing by the over-ride leaves
 you with just the S-value.

 Should this be evaluated over more than one program cycle to accommodate
 differences in timing between the two signals.

 I would be tempted to compare with an old value which is only
 updated if the difference is more than a certain amount.

That's exactly what I plan to do, but still thought the values might get 
out of sync for a program cycle or two while the override is being 
changed. I'll probably have to do some testing.

Thanks.

Karl

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


[Emc-users] calibrating stepper motor cnc

2011-09-28 Thread Martin Patton
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