Re: [Emc-users] Calibration of Sherline Mill under CNC

2008-10-20 Thread Geert De Pecker
Didn't try this from within AXIS, I'm using the command line. The chmod
is to set the flags (x) to let the operating system know this is an 
executable.

If it works from within axis, the better.

John Domville wrote:
> I was able to get an education on what a Python Script file is and does. I
> saved it along 
> With the fonts to my NU_files directory.  Made the [FILTER] addition to my
> stepconfig.ini file
> I open AXIS and then from the file menu try to open engrave-11.py. "Nuttin
> Honey"
> What is the chmod ugo+x before the ENGRAVE-11.py when you are setting it as
> an executable?
> When you say "RUN" ~/ENGRAVE-11.py is that while in AXIS or from the home
> menu?  
> Bear with me I am new to LINUX
> 
> John


> As it so happens, I tested this today:
> 
> - Save the file in your home directory
> - Set as executable: chmod ugo+x ENGRAVE-11.py
> - Run: ~/ENGRAVE-11.py
> 
> Geert

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Calibration of Sherline Mill under CNC

2008-10-19 Thread Geert De Pecker
John,

As it so happens, I tested this today:

- Save the file in your home directory
- Set as executable: chmod ugo+x ENGRAVE-11.py
- Run: ~/ENGRAVE-11.py

Geert

John Domville wrote:
> Like I emailed John Thornton:
> 
>  
> 
> Good. Next dumb question. I tried to down load the engraving software links.
> Got the fonts ok, but when I try to download ENGRAVE-11.py all I get is a
> text file. Being new to Linux I was looking for an executable file. So what
> do I do with the PY file?  Open it from within AXIS?

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] G33 spindle count

2008-10-06 Thread Geert De Pecker
Thanks for the info guys.

I'll try to install the latest version (I'm still at 2.2.0) and check to
which speed/accell I can get the Z axis, but I'm afraid I won't get much
higher (running 230 steppers on xylotex and sherline (1mm thread)).

Would you specialists recommend using the precompiled package or the
CVS extract?

Regards,
Geert

John Kasunich wrote:
> Chris Radek wrote:
>> On Mon, Oct 06, 2008 at 01:01:25PM +0200, Geert De Pecker wrote:
>>> For the Z, velocity is 4 (guess 4mm/sec) and accelleration is 3.
>> This means it takes 1.3 seconds to get to full speed and another 1.3
>> seconds to stop again.  You probably cannot thread with such a low
>> acceleration.
>>
>> After updating to 2.2.6 try making sure your acceleration is set as
>> high as possible.
>>
> 
> To be precise, it means you cannot thread quickly, or cut coarse 
> threads.  For the specific example you quoted, a 0.2mm thread pitch at 
> 120 RPM, the Z axis needs to move at 120 * 0.2 / 60 = 0.4 mm/sec.  At
> 3mm/sec^2 accel it will take 0.133 seconds to accelerate, and the 
> spindle will turn 0.267 revolutions in that time.  That is fine.
> 
> But 0.2mm is a very fine thread, and 120RPM is a very slow speed.
> 
> A more realistic thread is M6 x 1.0.  That is 6mm diameter by 1mm pitch. 
>   For a modest cutting speed of 10m/min, you would like to be able to 
> set the spindle speed to 530 RPM.  That would require a Z axis travel of 
> 530RPM * 1.0mm pitch = 530mm/min =  8.8mm/sec, which is more than twice 
> what your Z can do.  At 3mm/sec^2, it would take almost three seconds 
> and 13mm to accelerate to that speed.
> 
> Regards,
> 
> John Kasunich
> 
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
> 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] G33 spindle count

2008-10-06 Thread Geert De Pecker

>> setp encoder.0.counter-mode true
>> setp encoder.0.x4-mode false
> 
> Does your encoder have quadrature (two 50 ppr channels)?  This mode only
> uses one, and gives you 50 counts per rev, using quadrature can give you
> 200 counts per rev, which should be smoother.

The encoder is a single channel and will give only 50ppr.

>> net spindle-index-enable motion.spindle-index-enable <=> 
>> encoder.0.index-enable
>> net spindle-pos encoder.0.position => motion.spindle-revs
> 
> This signal is in revolutions, and is used for G33 (threading) as well
> as for the G76 threading canned cycle, and rigid tapping.
> 
>> net spindle-velocity <= encoder.0.velocity => motion.spindle-speed-in
> 
> This signal is in revs per second, and is used for G95 (feed per
> revolution).  It is NOT used for threading.
> 
> 
> Regarding the "runs full speed" at higher pitches - you need to do the
> math to make sure you aren't asking the impossible.  For example, if
> your spindle speed is 1000 RPM, and you command a pitch if 0.2mm, the Z
> axis will have to move at 1000 X 0.2 = 200mm/minute to cut that thread.
>  If your Z axis can't do that, it will go as fast as it can, and
> changing the pitch to a higher value like 0.3 won't make it go any faster.
> 
> What are the velocity and accel limits for your Z axis?  What spindle
> speed are you using for the test?

For the Z, velocity is 4 (guess 4mm/sec) and accelleration is 3.
I tested with a spindle speed of approx 120rpm. With the G33 Z10 K.2,
this would be 0.2 * 120/60 = 0.4 mm/sec if my calculation is correct
and I assume this should be no problem.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] G33 spindle count

2008-10-05 Thread Geert De Pecker
Added a scaler and the rpm display is now correct. But still the strange
move on G33 Z10 K.1: at first it seems the Z axis is "pulsed" to move. 
During the move, the motion becomes smoother and smoother, at the end, 
almost a very smooth move.

Sorry about this explanation. Can't describe it very good.

Geert De Pecker wrote:
> Just changed to the code below, but G33 keeps doing very strange.
> Also, the motion.spindle-speed-in displays 4.3 instead of the approx
> 200 rpm the spindle is doing. Would I need to put a "scale" component
> in to change from the rotations per second (encoder reading per second?)
> to rotations per minute? Maybe this is what is causing the strange
> moves.
> 
> setp encoder.0.counter-mode true
> setp encoder.0.x4-mode false
> setp encoder.0.position-scale 50
> net spindle-phase-A <= parport.0.pin-11-in => encoder.0.phase-A
> net spindle-phase-Z <= parport.0.pin-10-in => encoder.0.phase-Z
> #net spindle-phase-A <= parport.0.pin-11-in => encoder.0.phase-A 
> encoder.0.phase-Z
> net spindle-index-enable motion.spindle-index-enable <=> 
> encoder.0.index-enable
> net spindle-pos encoder.0.position => motion.spindle-revs
> net spindle-velocity <= encoder.0.velocity => motion.spindle-speed-in
> 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] G33 spindle count

2008-10-05 Thread Geert De Pecker
Just changed to the code below, but G33 keeps doing very strange.
Also, the motion.spindle-speed-in displays 4.3 instead of the approx
200 rpm the spindle is doing. Would I need to put a "scale" component
in to change from the rotations per second (encoder reading per second?)
to rotations per minute? Maybe this is what is causing the strange
moves.

setp encoder.0.counter-mode true
setp encoder.0.x4-mode false
setp encoder.0.position-scale 50
net spindle-phase-A <= parport.0.pin-11-in => encoder.0.phase-A
net spindle-phase-Z <= parport.0.pin-10-in => encoder.0.phase-Z
#net spindle-phase-A <= parport.0.pin-11-in => encoder.0.phase-A 
encoder.0.phase-Z
net spindle-index-enable motion.spindle-index-enable <=> 
encoder.0.index-enable
net spindle-pos encoder.0.position => motion.spindle-revs
net spindle-velocity <= encoder.0.velocity => motion.spindle-speed-in


> You described a physical setup with two pins connected (10 and 11), but 
> you only connected one of them to the encoder (in two places).
> 
> You need to connect phase-A to pin 11 and phase-Z to pin 10.
> 
> - Steve
> 
> 
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
> 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] G33 spindle count

2008-10-05 Thread Geert De Pecker
I came to the .hal section below looking around on the net and
testing, but, while this seems to work from time to time, basically,
I'm not using the index signal which I would need for eg threading.

Especially the line

net spindle-phase-A <= parport.0.pin-11-in => encoder.0.phase-A 
encoder.0.phase-Z

Makes me wonder. This would send 50 indexes per turn. I guess one should
have a single Z index per turn to act as reference point when threading.


John Kasunich wrote:
> Geert De Pecker wrote:
>> Hi,
>>
>> I've mounted a spindle encoder to the mill and was trying to use G33, 
>> but this always seems to move at the same speed.
>>
>> The spindle encoder has 50 ppr (pin 11) and an index signal (pin 10).
>>
>> This is my hal setup:
>>
>> ...
>> loadrt encoder num_chan=1
>> ...
>> addf encoder.update-counters base-thread
>> addf encoder.capture-position servo-thread
>> ...
>> setp encoder.0.counter-mode true
>> setp encoder.0.x4-mode false
>> setp encoder.0.position-scale 1
> 
> ^^^ this is saying that one count = one position unit
> for a spindle, one position unit is one revolution
> 
> If your encoder has 50 PPR, then you should be using 50 for the scale.
> 
>> net spindle-phase-A <= parport.0.pin-11-in => encoder.0.phase-A 
>> encoder.0.phase-Z
>> net spindle-index-enable motion.spindle-index-enable <=> 
>> encoder.0.index-enable
>> net spindle-pos encoder.0.position => motion.spindle-revs
> 
> Confirm that the scale is correct by turning the spindle one revolution
> by hand, while looking at net spindle-pos with halmeter - it should
> increase by 1.00
> 
> Regards,
> 
> John Kasunich
> 
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
> 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] G33 spindle count

2008-10-05 Thread Geert De Pecker
John,

Changed the scale to 50. 1 turn of the spindle increases the spindle-pos
by 1 now. I thought the phase-Z was responsable for counting the spindle
revs.

Running eg G33 Z10 K.1 (assuming .1 mm per turn) moves very "shocky".

Also, running G33 Z10 K.2 seems to go up at full speed.

Another strange behaviour: running the same command moves in the same 
"shocky" velocity till Z7, then stands there waiting for some time 
before continuing...

Is there something else I would need in the config?

Geert

John Kasunich wrote:
> Geert De Pecker wrote:
>> Hi,
>>
>> I've mounted a spindle encoder to the mill and was trying to use G33, 
>> but this always seems to move at the same speed.
>>
>> The spindle encoder has 50 ppr (pin 11) and an index signal (pin 10).
>>
>> This is my hal setup:
>>
>> ...
>> loadrt encoder num_chan=1
>> ...
>> addf encoder.update-counters base-thread
>> addf encoder.capture-position servo-thread
>> ...
>> setp encoder.0.counter-mode true
>> setp encoder.0.x4-mode false
>> setp encoder.0.position-scale 1
> 
> ^^^ this is saying that one count = one position unit
> for a spindle, one position unit is one revolution
> 
> If your encoder has 50 PPR, then you should be using 50 for the scale.
> 
>> net spindle-phase-A <= parport.0.pin-11-in => encoder.0.phase-A 
>> encoder.0.phase-Z
>> net spindle-index-enable motion.spindle-index-enable <=> 
>> encoder.0.index-enable
>> net spindle-pos encoder.0.position => motion.spindle-revs
> 
> Confirm that the scale is correct by turning the spindle one revolution
> by hand, while looking at net spindle-pos with halmeter - it should
> increase by 1.00
> 
> Regards,
> 
> John Kasunich
> 
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
> 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] G33 spindle count

2008-10-05 Thread Geert De Pecker
Hi,

I've mounted a spindle encoder to the mill and was trying to use G33, 
but this always seems to move at the same speed.

The spindle encoder has 50 ppr (pin 11) and an index signal (pin 10).

This is my hal setup:

...
loadrt encoder num_chan=1
...
addf encoder.update-counters base-thread
addf encoder.capture-position servo-thread
...
setp encoder.0.counter-mode true
setp encoder.0.x4-mode false
setp encoder.0.position-scale 1
net spindle-phase-A <= parport.0.pin-11-in => encoder.0.phase-A 
encoder.0.phase-Z
net spindle-index-enable motion.spindle-index-enable <=> 
encoder.0.index-enable
net spindle-pos encoder.0.position => motion.spindle-revs
net spindle-speed-in <= encoder.0.velocity => motion.spindle-speed-in

When looking at the halscope or hal watch, the signals seem ok.

Could anybody using the G33 give me any hints what I'm doing wrong?

Regards,

Geert





-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] stepgen velocity mode

2008-07-26 Thread Geert De Pecker
Ian,

I'm not a specialist, but isn't it because you use the same signale name:

linksp Sen <= axis.3.amp-enable-out
linksp Sen => stepgen.3.enable ),

Geert

Ian W. Wright wrote:
> Hi John,
> 
> I've had a look at and a play with the hal file but I don't seem to be 
> able to sort it - again!! :-[
> 
> The main axes appear to be enabled with an 'axis.x.amp-enable-out' signal
> 
> ( newsig Xen bit
> linksp Xen <= axis.0.amp-enable-out
> linksp Xen => stepgen.0.enable )
> 
> but when I try to set such a signal up for axis3
> 
> (newsig Spen bit
> linksp Xen <= axis.3.amp-enable-out
> linksp Xen => stepgen.3.enable ),
> 
> I get an error saying 'axis.3.amp-enable not found'
> 
> I don't seem to have a signal anything like the 'machine-on' you suggest 
> - the nearest thing I could find is a pin named 'motion.enable'.
> 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] stepgen velocity mode - was independent stepper driver

2008-07-24 Thread Geert De Pecker
Ian,

I guess this must be one of the first tests and like John says, not the 
ideal way of doing things.

I'm using a C11 board from CNC4PC and finnaly used a stepgen component 
to generate the pulses for the frequency to analog voltage converter.

The basic changes to the hal file below. For this board in combination 
with the KBIC of sherline, this worked very good. The gain and offset
are determined by testing to have the real spindle rpm as close as 
possible to the spindle speed as set in emc. I only have approx 3%
difference.

Geert

#
#   5th stepgen for controlling the spindle. Type must be set to velocity
#
loadrt stepgen step_type=0,0,0,0,0 ctrl_type=p,p,p,p,v
#
#   Use a scale module for offset and scaling of the stepgen
#   Offset and scale are determined by first calculating and then just 
testing
#
setp scale.0.in 0
setp scale.0.gain 0.36
setp scale.0.offset 60.0
addf scale.0 servo-thread
#
#   Initialise the stepgen for the spindle
#
setp stepgen.4.position-scale 1
setp stepgen.4.maxvel 1300
setp stepgen.4.steplen 1
setp stepgen.4.stepspace 0
setp stepgen.4.dirhold 2
setp stepgen.4.dirsetup 2
setp stepgen.4.maxaccel 200
#
#   Enable
#
net spindle-enable <= motion.spindle-on => stepgen.4.enable
#
#   Connect spindle speed to scaler
#
net spindle-cmd motion.spindle-speed-out => scale.0.in
#
#   Connect scaler output to stepgen velocity
#
net spindle-freq <= scale.0.out => stepgen.4.velocity-cmd
#
#   Connect output to the pin for the analog voltage of cnc4pc board
#
net spindle-out <= stepgen.4.step => parport.0.pin-14-out
#
#   Control of spindle on/off (I1/I2 of KBIC speed controller over the
#   relay instead of triac
#
net spindle-cw => parport.0.pin-16-out


Ian W. Wright wrote:
> After struggling unsuccessfully for a long time to try to find the 
> direct relevance between the HAL tutorial and driving my stepper spindle 
> ( I haven't yet given up on this as I get the impression that it may 
> give me a bit more speed ) , I came across a script that Geert had made 
> a year or so ago. With a little bit of tweaking this is now embedded in 
> a lathe HAL file and is driving the spindle motor. I must admit that I 
> can't understand just how this script works as it seems totally 
> different to the HAL tutorial and this is the reason that I still have a 
> couple of problems that I can't sort out. The HAL and INI files are here 
> - www.watchman.dsl.pipex.com/cnc/lathe.hal and 
> www.watchman.dsl.pipex.com/cnc/lathe.ini   .
> 
> The only way I found to get any speed out of the stepper with this 
> script was to tweak the BASE_PERIOD and SERVO_PERIOD in the ini file 
> until the computer began to complain - I think they may still need a 
> little adjustment as I occasionally still get a 'real time task delay' 
> error. Having done this, I can get the stepper to run up to 300 R.P.M - 
> not as fast as I would have liked but still fast enough for most of the 
> things I want to use it for at the moment. However, to get it to run at 
> this speed via G-code I need to tell it to M03 S6 ! Try as I might I 
> can't see where I should apply a scaling factor to bring this down to a 
> realistic figure. Oh, and the link to John's description of how EMC2 
> works 'under the bonnet' seems to be broken from the linuxcnc page.
> 
> If anyone can offer any advice to get me a bit further on with this I 
> would be most grateful.
> 
> I now need to try to learn about classic ladder to find a way to set or 
> alter the spindle direction.
> 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Backlash move

2008-06-09 Thread Geert De Pecker
Hi,

When running emc2 to control the lathe, I noticed a strange (or maybe
intentional :-) ) move concerning backlash:

Supposing I'm at X10 and doing a move G0 X0, the system executes this
move and immediately follows it by a small countermove to take up the
backlash. I have the impression, that when running on the mill, the
backlash move is only done before the move, not after.

Is there any way to influence this behaviour, eg make it happening
before a move instead of after?

Thanks,

Geert

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] OT Simulation

2008-06-05 Thread Geert De Pecker
Thanks for the info. I gave it a try, but am missing too many
dependencies. Guess I'll have to switch to OpenSuse or so. The SuSE
enterprise desktop is stable, but isn't really setup for development

Alex Joni wrote:
> Compiling sim should work fairly easy, once you installed all dependencies.
> Running configure a couple times will tell you what you're still missing ;)
> 
> Regards,
> Alex
> 
> ----- Original Message - 
> From: "Geert De Pecker" <[EMAIL PROTECTED]>
> To: "Enhanced Machine Controller (EMC)" 
> Sent: Tuesday, June 03, 2008 11:48 PM
> Subject: Re: [Emc-users] OT Simulation
> 
> 
>> I'm running SuSE Desktop on my laptop. Would it be worthwhile trying
>> to install the sources and trying to compile the sim or do you think
>> this will not work anyway?
>>
>> Geert
>>
>> Stephen Wille Padnos wrote:
>>> Well, there is the emc2-sim package :)
>>> I see that it only exists for Ubuntu 5.10 and 6.06 installs at the
>>> moment, not for 8.04.
>>>
>>> Or you can compile for simulator mode.  Instructions are on the wiki at:
>>> <http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Installing_EMC2>
>>>
>>> - Steve
>>>
>>> Geert De Pecker wrote:
>>>
>>>> Hi,
>>>>
>>>> I was wondering if anybody knows of a good Gcode simulator for linux.
>>>>
>>>> Would be nice to have if you're creating Gcode while away from the
>>>> pc where emc2 is installed.
>>>>
>>>> Thanks,
>>>>
>>>> Geert
>>>>
>>>>
>>>
>>> -
>>> This SF.net email is sponsored by: Microsoft
>>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>>> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
>>> ___
>>> Emc-users mailing list
>>> Emc-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/emc-users
>>>
>> -
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for
>> just about anything Open Source.
>> http://sourceforge.net/services/buy/index.php
>> ___
>> Emc-users mailing list
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users
>>
> 
> 
> -
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
> 

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] OT Simulation

2008-06-03 Thread Geert De Pecker
I'm running SuSE Desktop on my laptop. Would it be worthwhile trying
to install the sources and trying to compile the sim or do you think
this will not work anyway?

Geert

Stephen Wille Padnos wrote:
> Well, there is the emc2-sim package :)
> I see that it only exists for Ubuntu 5.10 and 6.06 installs at the 
> moment, not for 8.04.
> 
> Or you can compile for simulator mode.  Instructions are on the wiki at:
> <http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Installing_EMC2>
> 
> - Steve
> 
> Geert De Pecker wrote:
> 
>> Hi,
>>
>> I was wondering if anybody knows of a good Gcode simulator for linux.
>>
>> Would be nice to have if you're creating Gcode while away from the
>> pc where emc2 is installed.
>>
>> Thanks,
>>
>> Geert
>>  
>>
> 
> 
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
> 

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] OT Simulation

2008-06-03 Thread Geert De Pecker
Hi,

I was wondering if anybody knows of a good Gcode simulator for linux.

Would be nice to have if you're creating Gcode while away from the
pc where emc2 is installed.

Thanks,

Geert

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] g-code driving me loopy...

2008-06-02 Thread Geert De Pecker
Ian,

Example of while loop to make circular indents in the side of a handwheel/

DAMPER> cat 110_mill_grips.ngc
%
(mill grips on other side, 3/8mill=9.5mm, 12 deep)
(params)
#1=-15  (drill depth)
#2=10   (retraction interval)
#100=-12(depth)
(fixed)
(speed)
F80
(reset)
G0 Z5
G0 X0 Y0
G4 P5
(start round)
#8=0(angle in degrees)
#9=30   (angle increment in degrees)
O101 while [#8 lt 360]
#5=32.30(first step and start)
#6=31.00(second step)
#7=35   (safe circle)
(first step)
G0 Z1
G0 X[#5 * cos[#8]] Y[#5 * sin[#8]]
G1 Z[#100 + 0.06]
G1 X[#7 * cos[#8]] Y[#7 * sin[#8]]
(second step)
G0 Z1
G0 X[#6 * cos[#8]] Y[#6 * sin[#8]]
G1 Z#100
G1 X[#7 * cos[#8]] Y[#7 * sin[#8]]
(increment angle)
#8=[#8 + #9]
(wait)
(M0)
O101 endwhile
(end)
G0 Z5
G0 X1 Y-1
G1 X0 Y0
G0 Z20
%

another example using IF:

(simple turning)
(#100 = max Z = start Z > #101)
(#101 = min Z)
(#200 = max X = start X > #201)
(#201 = min X)
(#300 = feed)
(#400 = stepsize)
(Z)
#100 = 200
#101 = 0
(X)
#200 = 17
#201 = 14
(FEED)
#300 = 120
(STEP)
#400 = 1
(END OF PARAMETERS)
(set feed)
F#300
(set current X)
#250 = #200
O501 while [#250 gt #201]
#250 = [#250 - #400]
O502 if [#250 lt #201]
#250 = [#201]
O502 endif
(goto start point, safety x 1mm)
G0 X[#250 + #400 + 1]
G0 Z#100
G0 X#250
G1 F#300 Z#101
O501 endwhile
(retract to orig X)
(END)
G0 X[#200 + 1]



Ian W. Wright wrote:
> Hi,
> 
> Could someone please give me a little tutorial on using do/while loops 
> in g-code please or, at least, point to me to a tutorial on the web 
> while I have obviously missed in several hours of trawling the 'net. I'm 
> trying to write a simple gearcutting program where I can mount the blank 
> on a rotary axis and traverse the cutter back and forth on the X-axis a 
> given number of times. I'm wanting to make the script 'universal' so 
> that I can just insert numbers into variables for number of teeth, 
> length of X travel, depth of each cut, and total cut depth but I seem to 
> be getting my brain in a twist trying to figure out how to write the 
> loops. I know that, if I was bright, I should be able to figure this out 
> easily and maybe even write an interactive GUI but, today at least, I'm 
> not and I need to get this part made ASAP!! ( a house full of 
> grandchildren doesn't help either :-(  )
> 
> Thanks,
> Ian
> --
> Ian W. Wright
> Sheffield  UK
> 
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
> 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Ubuntu/emc upgrade problem

2008-04-08 Thread Geert De Pecker
Gene,

The rewiring is indeed something of the past. I did just the same, had a
very simple breakout with rc filtering and switching the pins to comply
with the xylotex. But since the changed hal, there is no need anymore.

Ha. Hope the guy measured before using this cable!

I'm assuming there won't be a cable fault as it is still the same. Also
I'm measuring with the scope at the output to the xylotex, so should be
ok.

Just made a small pulse generator. Will make a DB25 to attach it
directly to the xylotex to test.

I'm getting more and more convinced that it will be something small and
related to the output of the pc. Ran fine before. Only: unused for 2
months and ubuntu upgrade.

Thanks again,

Geert

Gene Heskett wrote:
> On Tuesday 08 April 2008, Gene Heskett wrote:
>> On Tuesday 08 April 2008, Geert De Pecker wrote:
>>> Jon, Gene,
>>>
>>> The Vref's is correct. I've checked these and for the new board version
>>> (the 4 axis) it is around 1.8V and for the old board approx 3V.
>>>
>>> What bothers me the most is that I have the problem on both the old 3
>>> axis and the more recent 4 axis board which I guess would rule out the
>>> xylotex board as the problem.
>>>
>>> I guess the only option now is to make a small pulse generator on the
>>> breadboard with a 555 timer and use this as input directly to the
>>> xylotex in order to either rule out or define the xylotex board as
>>> problem source.
>>>
>>> It could also be the cnc4pc breakout board
>>>
>>> Many thanks,
>> I made my own breakout originally, but now we have a rewired hal to do that.
>> Since you have indicated you a scope, why not just take a look at the db25
>> end of the cable & see if the signals are getting to the right pins?  That
>> might get you some useful info faster.
>>
> Another ugly thought crossed my mind, based on a comment a poster to the 
> xylotex list made a few hours ago, some Id10T sold him a serial cable, with 
> db25's on both ends of it, apparently this sales Id10T thought they were the 
> same, I mean they have the same connectors don't they? :(
> 

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Ubuntu/emc upgrade problem

2008-04-08 Thread Geert De Pecker
Jon, Gene,

The Vref's is correct. I've checked these and for the new board version
(the 4 axis) it is around 1.8V and for the old board approx 3V.

What bothers me the most is that I have the problem on both the old 3
axis and the more recent 4 axis board which I guess would rule out the
xylotex board as the problem.

I guess the only option now is to make a small pulse generator on the
breadboard with a 555 timer and use this as input directly to the
xylotex in order to either rule out or define the xylotex board as
problem source.

It could also be the cnc4pc breakout board

Many thanks,

Geert




Gene Heskett wrote:
> On Monday 07 April 2008, John Kasunich wrote:
>> Geert De Pecker wrote:
>>> Guys,
>>>
>>> I'm getting lost here:
>>>
>>> - attached the old 3 axis xylotex: same problem
>>>
>>> - hooked up the scope to watch the step signal: step high approx 3 us.
>>> Should be ok as xylotex says 1000 ns minimal. 5 volts.
>>>
>>> - at approx 1000 Hz pulses seem ok. a little twitchy on the scope screen.
>>>
>>> - attached older pacsci motor: same problem. No torque at all.
>>>
>>> - voltages to the xylotex board ok: 29V and board gives proper 5 volts
>>>
>>> Don't know what next to do. Any hints more than welcome.
>>>
>>> Thx for listening,
>>>
>>> Geert
>> If you have very low holding torque even at zero speed, the most likely
>> cause is low motor current.
>>
>> The xylotex boards have pots to set the motor current.  Are you sure
>> they are set correctly?  If I recall correctly there is a test point,
>> you put a meter on it and adjust the pot.  The manual has a formula that
>> lets you determine the proper test point voltage based on your motor
>> current specs.
>>
>> Regards,
>>
>> John Kasunich
>>
> These are tpx, tpy and tpz, the voltage is read from these to the - rail of 
> the power supply at the boards power header, and are to be adjusted with all 
> motors DISCONNECTED but powered normally.  On old style boards, about 3.4 
> volts should get you about 2.4 amps when the motors are re-connected.  Do 
> NOT, under any conditions, set for more than 3.6 volts.  That will break the 
> mirror and let all the magic smoke out.  Then it doesn't work anymore.
> 

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Ubuntu/emc upgrade problem

2008-04-07 Thread Geert De Pecker
Guys,

I'm getting lost here:

- attached the old 3 axis xylotex: same problem

- hooked up the scope to watch the step signal: step high approx 3 us.
Should be ok as xylotex says 1000 ns minimal. 5 volts.

- at approx 1000 Hz pulses seem ok. a little twitchy on the scope screen.

- attached older pacsci motor: same problem. No torque at all.

- voltages to the xylotex board ok: 29V and board gives proper 5 volts

Don't know what next to do. Any hints more than welcome.

Thx for listening,

Geert

Geert De Pecker wrote:
> Jon and others,
> 
> Thanks for the replies.
> 
> The configs were in the ~/emc2/configs folder (home directory). So I
> guess this is not the problem.
> 
> Playing around with the steplen and stepspace parameters does make the
> pulses nicer, but steppers still behaving erratic. Although I'm quite
> convinced I had a lot nicer output on the scope earlier.
> 
> I'll try first with an older xylotex board. Just to make sure the
> problem isn't there.
> 
> Thanks,
> 
> Geert
> 
> Jon Elson wrote:
>> Geert De Pecker wrote:
>>> Hi All,
>>>
>>> Due to some health problems, I didn't power up my emc box the last 2
>>> months and when I did last week, ubuntu wanted to install an update
>>> which I accepted. Maybe stupid of me ...
>>>
>>> When I started emc, the X didn't respond anymore and the Y and Z behaved
>>> very erratically. Movement of these two is very unsmooth and it seems
>>> the motor receives
>>>
>>> My config is a cnc4pc breakout board and a recent xylotex 4 axis board.
>>>
>>> I checked the pulses with the scope and they seem to be very short.
>>>
>>> As I don't recall how it was before, I can't compare.
>>>
>>> Basically, my question is if anybody knows that there has been changes
>>> in either ubuntu or in emc during the last 4 to 5 months that could
>>> explain this?
>> My guess is that you edited the default setup files for your 
>> local configuration, instead of making a copy in your user 
>> directory.  When the EMC updates were installed, it loaded a
>> new default config file on top of your edited one.
>>
>> If that isn't the problem, then there may have been some change 
>> in the handling of ini file parameters that has made one of your
>> settings no longer make a setting.  You mention the pulse width
>> being very short, so you might check for that.  I took a quick 
>> look at the configs/stepper directory, and didn't see ANYTHING 
>> about pulse width in stepper_inch.ini or xylotex_pinout.hal
>> Maybe these files allow EMC to take the default, there must be 
>> some way to set the pulse width when using motmod.
>>
>> Jon
>>
>> -
>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
>> Register now and save $200. Hurry, offer ends at 11:59 p.m., 
>> Monday, April 7! Use priority code J8TLD2. 
>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>> ___
>> Emc-users mailing list
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users
>>
> 
> -
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Register now and save $200. Hurry, offer ends at 11:59 p.m., 
> Monday, April 7! Use priority code J8TLD2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
> 

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Ubuntu/emc upgrade problem

2008-04-06 Thread Geert De Pecker
Jon and others,

Thanks for the replies.

The configs were in the ~/emc2/configs folder (home directory). So I
guess this is not the problem.

Playing around with the steplen and stepspace parameters does make the
pulses nicer, but steppers still behaving erratic. Although I'm quite
convinced I had a lot nicer output on the scope earlier.

I'll try first with an older xylotex board. Just to make sure the
problem isn't there.

Thanks,

Geert

Jon Elson wrote:
> Geert De Pecker wrote:
>> Hi All,
>>
>> Due to some health problems, I didn't power up my emc box the last 2
>> months and when I did last week, ubuntu wanted to install an update
>> which I accepted. Maybe stupid of me ...
>>
>> When I started emc, the X didn't respond anymore and the Y and Z behaved
>> very erratically. Movement of these two is very unsmooth and it seems
>> the motor receives
>>
>> My config is a cnc4pc breakout board and a recent xylotex 4 axis board.
>>
>> I checked the pulses with the scope and they seem to be very short.
>>
>> As I don't recall how it was before, I can't compare.
>>
>> Basically, my question is if anybody knows that there has been changes
>> in either ubuntu or in emc during the last 4 to 5 months that could
>> explain this?
> My guess is that you edited the default setup files for your 
> local configuration, instead of making a copy in your user 
> directory.  When the EMC updates were installed, it loaded a
> new default config file on top of your edited one.
> 
> If that isn't the problem, then there may have been some change 
> in the handling of ini file parameters that has made one of your
> settings no longer make a setting.  You mention the pulse width
> being very short, so you might check for that.  I took a quick 
> look at the configs/stepper directory, and didn't see ANYTHING 
> about pulse width in stepper_inch.ini or xylotex_pinout.hal
> Maybe these files allow EMC to take the default, there must be 
> some way to set the pulse width when using motmod.
> 
> Jon
> 
> -
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Register now and save $200. Hurry, offer ends at 11:59 p.m., 
> Monday, April 7! Use priority code J8TLD2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
> 

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Ubuntu/emc upgrade problem

2008-04-06 Thread Geert De Pecker
Hi All,

Due to some health problems, I didn't power up my emc box the last 2
months and when I did last week, ubuntu wanted to install an update
which I accepted. Maybe stupid of me ...

When I started emc, the X didn't respond anymore and the Y and Z behaved
very erratically. Movement of these two is very unsmooth and it seems
the motor receives

My config is a cnc4pc breakout board and a recent xylotex 4 axis board.

I checked the pulses with the scope and they seem to be very short.

As I don't recall how it was before, I can't compare.

Basically, my question is if anybody knows that there has been changes
in either ubuntu or in emc during the last 4 to 5 months that could
explain this?

Could also be the xylotex board, but don't know how measure this one.

Thanks and regards,

Geert

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Modbus RS-485 Transceiver offer/ a modbus library

2008-02-04 Thread Geert De Pecker
Chris,

For your info.
I downloaded the archive and it seemd to compile without problem (on my
laptop with opensuse 10.3):

1004tar xzf libmodbus-1.2.2.tar.gz
1005cd libmodbus-1.2.2
1006./configure
1007make

Geert

Chris Morley wrote:
> Kirk 
> I thank you for the offer for the r485 converter. I think after reading some 
> of the posts I would rather go with full duplex. Paying you for,  and 
> shipping, it would have been a pain too I think, as I am in Canada.
> I came across a web site with a Modbus library that is GPL.
> http://copyleft.free.fr/wordpress/index.php/libmodbus/
> In his trunk version he is working on a slave protocol - if I could get this 
> working I could set up two computers with rs 232 and test. prob test 
> classicladder too.
> The big but is that I cannot figure out how to auto make the program . I 
> downloaded automake and autoconfig but it doesn't work and I don't know how 
> to trouble shoot  the process. Any help would be great from anyone.
> Just thought it might be interesting to peruse or even use for your work.
> Thanks again.
> 
> Chris Morley
> 
> 
>> From: [EMAIL PROTECTED]
>> To: emc-users@lists.sourceforge.net
>> Date: Sat, 2 Feb 2008 20:26:31 -0800
>> Subject: [Emc-users] Modbus RS-485 Transceiver
>>
>> Chris Morley, 
>>
>> I have been pretty slow with work on Modbus. I just read your wiki post
>> and you indicated that you needed an RS-485 adapter. I found one here:
>>
>> http://pinouts.ru/SerialPortsCables/rs485_cable_pinout.shtml
>>
>> I plan on building a couple for my SJ200 application, and if you want I
>> can make an extra and send it over. I'm not sure when I'll have time to
>> build and test it -- probably in the next couple of weeks. Let me know.
>>
>> -- 
>> Kirk Wallace (California, USA
>> http://www.wallacecompany.com/machine_shop/ 
>> Hardinge HNC lathe,
>> Bridgeport mill conversion, doing XY now,
>> Zubal lathe conversion pending)
>>
>>
>> -
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
>> ___
>> Emc-users mailing list
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users
> 
> _
> 
> 
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
> 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] G2 counterclockwise on lathe

2008-01-21 Thread Geert De Pecker
Steve,

Front tool. But how would emc know?

Geert

Steve Blackmore wrote:
> On Sun, 20 Jan 2008 17:54:42 +0100, you wrote:
> 
>> Hi all,
>>
>> Is it normal, that looking from above on the lathe a G2 makes a
>> counter-clockwise arc?
>>
>> When assuming a normal XYZ, the Y axis on the lath is extending
>> downwards and this would indeed explain this.
> 
> Front or rear tool?
> 
> Steve Blackmore
> --
> 
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
> 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] G2 counterclockwise on lathe

2008-01-20 Thread Geert De Pecker
Hi all,

Is it normal, that looking from above on the lathe a G2 makes a
counter-clockwise arc?

When assuming a normal XYZ, the Y axis on the lath is extending
downwards and this would indeed explain this.

Geert

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Spindle speed control with cnc4pc board

2008-01-05 Thread Geert De Pecker
Lester,

I first tried to get the required 12V from the kbic, but as this is only
 provided for with a zener (according to the schematics), it dropped to
6V as soon as the C11 board was connected. So bad option.

As in the meantime the 5V-12V dc converter arrived (indeed from
Farnell), I used that one to provide the 12V.

Works like a charm. Thanks for the hint.

Regards,

Geert

Lester Caine wrote:
> Geert De Pecker wrote:
>> I probably wrongly assumed that the voltage should come from the KBIC
>> board. As you say, this would indeed be a flexible solution. Will look
>> out from such a converter. My controller case is almost full, have to
>> find some room to put this one in :-)
> Don't need much space - this fits neatly on the end of the board
> http://www.farnell.com/datasheets/78477.pdf
> It's a pity that there is not a space for it actually on the board.
> 
>> Lester Caine wrote:
>>> Geert De Pecker wrote:
>>>> Next problem: the analog voltage on the C11 board doesn't go to the max
>>>> input voltage. I measured the voltage across the sherline potentiometer
>>>> and it is 9.2 volts. With the bench supply set to 9.2 and attached to
>>>> the analog voltage of the board, the max output is 8.2 volts. I'll see
>>>> what is gives when I try ot on the sherline speed control.
>>>>
>>>> Otherwise, the output voltage is very linear with the ordered spindle 
>>>> speed.
>>> You will need a higher isolated supply. I use a little 12v to 12V DC 
>>> converter 
>>> to give the isolated supply, and just limit the range of the input.
>>> Sounds as if you are nearly there though.
> 
> 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] CNC4PC C11 board with emc

2008-01-05 Thread Geert De Pecker
Arturo,

As promised, I tried to use stepgen to control the analog voltage. Below
are the changes I did to the hal file. This seems to work ok, the
spindle speeds indicated by emc are quite equal to the speeds indicated
by the sherline DRO speed indicator.

I quit my tests to use the solid state relay for controlling the mains
sherline input. I now use the normal relay on pin 16 to short-circuit I1
and I2 of the sherline kbic.

Regards and have a nice weekend,

Geert

#
#   5th stepgen for controlling the spindle.
#   Type must be set to velocity
#
loadrt stepgen step_type=0,0,0,0,0 ctrl_type=p,p,p,p,v
#
#   Use a scale module for offset and scaling of the stepgen
#   Offset and scale are determined by first calculating and testing
#
setp scale.0.in 0
setp scale.0.gain 0.36
setp scale.0.offset 60.0
addf scale.0 servo-thread
#
#   Initialise the stepgen for the spindle
#
setp stepgen.4.position-scale 1
setp stepgen.4.maxvel 1300
setp stepgen.4.steplen 1
setp stepgen.4.stepspace 0
setp stepgen.4.dirhold 2
setp stepgen.4.dirsetup 2
setp stepgen.4.maxaccel 200
#
#   Enable
#
net spindle-enable <= motion.spindle-on => stepgen.4.enable
#
#   Connect spindle speed to scaler
#
net spindle-cmd motion.spindle-speed-out => scale.0.in
#
#   Connect scaler output to stepgen velocity
#
net spindle-freq <= scale.0.out => stepgen.4.velocity-cmd
#
#   Connect output to the pin for the analog voltage of cnc4pc board
#
net spindle-out <= stepgen.4.step => parport.0.pin-14-out
#
#   Control of spindle on/off (I1/I2 of KBIC speed controller over the
#   relay instead of triac
#
net spindle-cw => parport.0.pin-16-out

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Spindle speed control with cnc4pc board

2007-12-29 Thread Geert De Pecker
Just had word from Arturo, maker of the C11 board that the fequency for
full voltage is set to be 25KHz. Will need to investigate why I get nice
results with 400Hz...

Kirk Wallace wrote:
> On Wed, 2007-12-26 at 23:18 +0100, Geert De Pecker wrote:
>> Same here, but then again, the 400 Hz is the maximum needed to get the
>> full analog voltage. So no problem here.
>>
>> The C11 board really needs a frequency, the pulse width is of very
>> little influence on the voltage.
>>
> ... snip
> 
> It is frequency, sort of. For 10Hz a short pulse comes out every 100ms.
> For 100Hz, every 10ms and so on up to 10kHz.
> You get this:
> __-__-_ ,  ___-___-___-_ ,  _-_-_-_-
> Instead of:
> __-__-- ,  __--__--__--_ ,  _-_-_-_-
> 
> Just because you have something that works doesn't mean it can't be
> broken :)
> 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Spindle speed control with cnc4pc board

2007-12-26 Thread Geert De Pecker
Same here, but then again, the 400 Hz is the maximum needed to get the
full analog voltage. So no problem here.

The C11 board really needs a frequency, the pulse width is of very
little influence on the voltage.

>>> Geert
>> I checked the siggen setup on my test system and 480Hz was the highest
>> frequency I could get. Running in the base thread seems to be the only
>> way to get a decent frequency out. Well, now I know.
> 
> I tried a pwmgen setup using the PDM mode, which I guess isn't really a
> mode but a setting. Apparently, pwmgen mixes both PWM and PDM in the
> same signal. The man page indicates that for pwmgen.N.pwm-freq "A value
> of zero produces Pulse Density Modulation instead of Pulse Width
> Modulation". I found that for my settings a 50% input produced the
> highest frequency of 10kHz before the pulses started running together.
> For the C11, I don't know if it would interpret a short on pulse with a
> long off time the same as a frequency with equal on and off periods.
> 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Spindle speed control with cnc4pc board

2007-12-26 Thread Geert De Pecker
Lester,

This is indeed a solution. Thanks for the link.

Lester Caine wrote:

> http://cnc4pc.com/Tech_Docs/C11G_&_SIEG_X3_Electrical%20storybook.pdf
> Check out page 7.
> The thing to remember here is that the motor control pot on the Asian mills 
> is 
> at mains potential, so you need a totally isolated supply to drive that bit 
> of 
> the circuit. The boards I've played with a have a reasonable range on the 
> pot, 
> but I've only dropped to +9V from about 11V did not check how much further it 
> would go.
> 
> The NEW boards from cnc4pc don't have the +12V requirement on board, so a +5V 
> to +12V module may be required. The on board 12V relay has been replaced with 
> a 5V one so the whole board just runs off 5V now.
> 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Spindle speed control with cnc4pc board

2007-12-26 Thread Geert De Pecker
Kirk,

> The C11 document specifies three power supplies. One computer side +5V,
> one CNC side +5V @ 2A and One CNC side +12V @ 300mA. I would think if
> you have satisfied these specifications, you should be okay. 12V should
> have enough headroom to regulate to 10 V and the VFD should only draw a
> few milliamperes at worst. Ops I forgot, you are going into the Sherline
> speed control, so I don't know what it draws. It shouldn't be drawing
> much anyway. You may want to make sure you are getting at least 22kHz

We need a separate supply: the analog voltage controller on the C11 is
isolated from the other circuitry because in the case of the sherline,
the speed control voltage is connected to the live mains.

> (24kHz - ~10%) into the C11. You could setup HALscope to look at the
> siggen output and count the rising edges over a time period. If you are
> running siggen in the servo thread, my guess is that, you will only get
> into the 2kHz range. With my DAC project, I have just run into "FP
> needed" errors and computer lockups while trying to run HAL components
> in the base thread, so I need to learn more about what will run in the
> base thread. pwmgen will, but I don't know enough to guess at how to
> make it act like a variable frequency pulse generator. Another thought
> comes to mind. If you are only getting 2kHz out of siggen then maybe you
> could step up the frequency with a PLL. I have never used a PLL, but I
> think this is what they are supposed to do. Ideally, it would be nice to
> have a pulse generator HAL component. With the proper knowledge, I
> suppose it would not be too difficult to make, but that is like saying,
> if I had enough money, I'd be rich.
> 

At 400Hz I get the max voltage out of the analog voltage part. So this
is ok. I'll try with stepgen just to know if this works.

Geert

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Stepgen for Spindle speed control

2007-12-26 Thread Geert De Pecker
On the side: this was my first experiment with hal. Allow me to
congratulate the developers of emc. Nice job and we came a long way from
the early days with all the hassle to install. :-) Thanks again.

Would using stepgen be a solution instead of using siggen and scale? The
square wave would then be outputted in the base thread and be as such
nicer looking. I also assume it would be simpler.

With siggen:

loadrt siggen
loadrt scale
loadrt conv_float_u32
loadrt conv_u32_bit

addf conv-float-u32.0 servo-thread
addf conv-u32-bit.0 servo-thread

setp scale.0.in 0.0
setp scale.0.gain 0.15
setp scale.0.offset 0.0
addf scale.0 servo-thread
setp siggen.0.offset 0.5
setp siggen.0.amplitude 0.5
addf siggen.0.update servo-thread

net spindle-cmd <= motion.spindle-speed-out => scale.0.in
net spindle-freq <= scale.0.out => siggen.0.frequency
net spindle-fl2int <= siggen.0.square => conv-float-u32.0.in
net spindle-int2bit <= conv-float-u32.0.out => conv-u32-bit.0.in
net spindle-out <= conv-u32-bit.0.out

net spindle-out => parport.0.pin-14-out

Geert De Pecker wrote:
> Kirk,
> 
> You pointed me in the right direction. With siggen and scale, I was able
> to produce a frequency from the spindle control. I posted the mill.ini and
> mill.hal on http://users.skynet.be/gedp/FILES/index.html.
> 
> The signal isn't very stable because I had to put it in the servo-thread
> (probably needed because of the floating point) and the original 1msec
> period of this on 400Hz is on the low side.
> 
> Next problem: the analog voltage on the C11 board doesn't go to the max
> input voltage. I measured the voltage across the sherline potentiometer
> and it is 9.2 volts. With the bench supply set to 9.2 and attached to
> the analog voltage of the board, the max output is 8.2 volts. I'll see
> what is gives when I try ot on the sherline speed control.
> 
> Otherwise, the output voltage is very linear with the ordered spindle speed.
> 
> Thanks again for pointing this out,
> 
> Geert
> 
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
> 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Spindle speed control with cnc4pc board

2007-12-26 Thread Geert De Pecker
I'm thinking of a 100 line encoder. Wouldn't require too much resolution.
Tested from the rhino cad program and output seems very acceptable.
But I assume for more then 200 line, it could be worse.

Geert

ben lipkowitz wrote:
> On Mon, 24 Dec 2007, Geert De Pecker wrote:
> 
>> To do threading on the lathe is the end goal. I'm still in the
>> development phase for the encoder bit. Want to make it myself
>> (see part of drawing at http://users.skynet.be/gedp/FILES/index.html).
> 
> Geert,
>There are some .ps files floating around that can be used to print your 
> own optical encoders, and since postscript is a programming language they 
> are relatively easily modified to do weird stuff such as in
> http://fennetic.net/pub/irc/encoder-panelized.ps
> 
> however i find postscript can be hard to understand sometimes, so i 
> rewrote it in python:
> http://fennetic.net/pub/irc/draw_encoder.py
> 
> hope this proves useful to someone
>-fenn
> 
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
> 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Spindle speed control with cnc4pc board

2007-12-26 Thread Geert De Pecker
I probably wrongly assumed that the voltage should come from the KBIC
board. As you say, this would indeed be a flexible solution. Will look
out from such a converter. My controller case is almost full, have to
find some room to put this one in :-)

Lester Caine wrote:
> Geert De Pecker wrote:
>> Next problem: the analog voltage on the C11 board doesn't go to the max
>> input voltage. I measured the voltage across the sherline potentiometer
>> and it is 9.2 volts. With the bench supply set to 9.2 and attached to
>> the analog voltage of the board, the max output is 8.2 volts. I'll see
>> what is gives when I try ot on the sherline speed control.
>>
>> Otherwise, the output voltage is very linear with the ordered spindle speed.
> 
> You will need a higher isolated supply. I use a little 12v to 12V DC 
> converter 
> to give the isolated supply, and just limit the range of the input.
> Sounds as if you are nearly there though.
> 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Spindle speed control with cnc4pc board

2007-12-24 Thread Geert De Pecker
Kirk,

You pointed me in the right direction. With siggen and scale, I was able
to produce a frequency from the spindle control. I posted the mill.ini and
mill.hal on http://users.skynet.be/gedp/FILES/index.html.

The signal isn't very stable because I had to put it in the servo-thread
(probably needed because of the floating point) and the original 1msec
period of this on 400Hz is on the low side.

Next problem: the analog voltage on the C11 board doesn't go to the max
input voltage. I measured the voltage across the sherline potentiometer
and it is 9.2 volts. With the bench supply set to 9.2 and attached to
the analog voltage of the board, the max output is 8.2 volts. I'll see
what is gives when I try ot on the sherline speed control.

Otherwise, the output voltage is very linear with the ordered spindle speed.

Thanks again for pointing this out,

Geert

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Spindle speed control with cnc4pc board

2007-12-24 Thread Geert De Pecker
Kirk,

To do threading on the lathe is the end goal. I'm still in the
development phase for the encoder bit. Want to make it myself
(see part of drawing at http://users.skynet.be/gedp/FILES/index.html).
Still some time away though.

Yes the C11 is full throttle.

If you're interested in the files, no problem, but for now they are
still quite stock the output of stepconf.

Geert

Kirk Wallace wrote:
> On Mon, 2007-12-24 at 20:13 +0100, Geert De Pecker wrote:
>> Kirk,
>>
>> Thanks for the info. I'll check it out.
>>
>> I don't think we need 24kHz. The default pwm signal is 100Hz and gave me
>> 2.5 volts. I changed the frequence in the hal config to 200 Hz and the
>> output was approx 5V, so I guess the max voltage on the C11 board is
>> reached at 400Hz.
>>
>> Never experimetd with hal before, will take me some study and testing,
>> before I can get back.
>>
>> Geert
> 
> If you are going to have EMC do tapping or threading, you may want to
> have the frequency on the upper end for better speed control at low
> spindle speeds. I assume you have the C11 pot turned all the way up to
> get 5 Volts at 200 RPM? Are you using an EMC axis or spindle feature for
> control? If it's convenient, would you put your .ini and .hal files on
> your website and post a link?

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Spindle speed control with cnc4pc board

2007-12-24 Thread Geert De Pecker
Kirk,

Thanks for the info. I'll check it out.

I don't think we need 24kHz. The default pwm signal is 100Hz and gave me
2.5 volts. I changed the frequence in the hal config to 200 Hz and the
output was approx 5V, so I guess the max voltage on the C11 board is
reached at 400Hz.

Never experimetd with hal before, will take me some study and testing,
before I can get back.

Geert

Kirk Wallace wrote:
> On Mon, 2007-12-24 at 19:01 +0100, Geert De Pecker wrote:
>> It is the C11 multifunction board. Main reasons where the isolated
>> analog voltage and the relay to enable me to stop the motor when the job
>> is finished.
>>
> 
>>From a brief look at the documentation, it looks like you need one of
> the parallel port pins to put out a O to 24 kHz signal based on the
> spindle speed command. If you have a reasonably fast PC, that should not
> be a problem. So in your HAL file, you might connect,
> 
> motion.spindle-speed-out OUT float (spindle speed in RPM)
> to
> scale.X.in (to scale RPM to kHz such that full RPM equals 24kHz)
> 
> scale.X.out
> to
> siggen.X.frequency
> 
> siggen..square
> to
> conv-float-bit.N.in (which doesn't seem to exist, check:
> http://www.linuxcnc.org/docs/html/man/man9/
> maybe conv-float-u32 then conv-u32-bit? Or, should be easy to write a
> new HAL component.
> )
> 
> conv-float-bit.N.out
> to
> parport.0.pin-XX-out
> 
> This is a rough guess. There are allot of details missing, but may get
> you started.
> 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Spindle speed control with cnc4pc board

2007-12-24 Thread Geert De Pecker
It is the C11 multifunction board. Main reasons where the isolated
analog voltage and the relay to enable me to stop the motor when the job
is finished.

Kirk Wallace wrote:
> Which CNC4PC board do you have?
> 
> On Mon, 2007-12-24 at 18:51 +0100, Geert De Pecker wrote:
>> Kirk,
>>
>> Problem is that I bought the cnc4pc board with the speed controller in
>> mind. The doc said it supported emc, so I guess there must be a way.
>> Arturo of cnc4pc is looking into it.
>>
>> So if I can avoid adding extra hardware, this would be nice.
>>
>> I agree if you want very fine control, your solution would be the best
>> way to go.
>>
>>
>> Geert
> 
> 
> 
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
> 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Spindle speed control with cnc4pc board

2007-12-24 Thread Geert De Pecker
Kirk,

Problem is that I bought the cnc4pc board with the speed controller in
mind. The doc said it supported emc, so I guess there must be a way.
Arturo of cnc4pc is looking into it.

So if I can avoid adding extra hardware, this would be nice.

I agree if you want very fine control, your solution would be the best
way to go.


Geert


Kirk Wallace wrote:
> 
> A common problem with pwmgen and seggen is that they use the parallel
> port, which has a limited bandwidth. I tried controlling my 0 to 10 Volt
> VFD with a parallel port PWM and RC filter, and found that a decent
> filter slowed the change in signal to a second or more. Typically, you
> need an external device that can produce much higher frequencies. 
> 
> The parallel port is much better at transmitting data. So for my VFD's ,
> I started work on a 0 to 10 Volt DC analog DAC board here:
> 
> http://www.wallacecompany.com/machine_shop/EMC2/serial_dac/
> 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Spindle speed control with cnc4pc board

2007-12-24 Thread Geert De Pecker
Hi all,

I installed a CNC4PC breakout board that has an analog voltage output
available for spindle speed control. However, this board works based
on a frequency to voltage converter and not like standard emc duty cycle
generated by pwmgen.

I was looking into using siggen to create a speed controlled frequency,
but it seesm this function is mostly for testing.

Anybody knows what the best possibilities/options are?

Regards and happy ending,

Geert

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Emc lathe spindle

2007-11-03 Thread Geert De Pecker
Jon,

Is indeed rhino. Purchased it some years ago together with rhinocam.
A bit expensive for hobby use, but a very nice program and quite intuitive.

There is also a render output of a pcb board laminator I once made in
the folder http://users.skynet.be/gedp/FILES

Geert

Jon Elson wrote:
> Geert De Pecker wrote:
>> Jon,
>>
>> After going through some doc about emc, I understood the encoder should
>> work with one signal (A and Z). I'll give that a try.
> It should be A and B for just reading position, Z is the index 
> (zero).
>> I did some tests with the ir leds and fototransistors of a canibalized
>> mouse and I guess this will work. I'll add an 7414 schmitt trigger to
>> avoid noise.
>>
>> What I couldn't find in the doc was which polarity the signal must have.
>> Although not important for A or B, maybe for the index pulse it is of
>> importance.
>>
> Polarity of A an B doesn't matter, you can change the polarity 
> of the scale parameter to get the direction right, or switch the 
> A and B wires.
>> Also, do you know if there are special constraints about the Z pulse?
>> Must it be high (or low) before the A becomes high or doesn't this play
>> any role?
>>
> Traditionally, Z should be low except during the short interval 
> of the Z.  With my USC/UPC board and the PPMC board set, it is 
> triggered on the rising edge of Z, I don't know about the 
> software encoder interface. With EMC, at least, there is no 
> qualification between the Z and A or B.
>> Thanks for the info.
>>
>> Below a link to the technical drawing for mounting this on a sherline
>> spindle:
>>
>> http://users.skynet.be/gedp/FILES/encoder.JPG
>> http://users.skynet.be/gedp/FILES/encrend01.png
> Nice drawings, this is Rhino?  Looks a lot better than my Bobcad 
> drawings.
> 
> Jon
> 
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
> 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Emc lathe spindle

2007-11-03 Thread Geert De Pecker
Jon,

After going through some doc about emc, I understood the encoder should
work with one signal (A and Z). I'll give that a try.

I did some tests with the ir leds and fototransistors of a canibalized
mouse and I guess this will work. I'll add an 7414 schmitt trigger to
avoid noise.

What I couldn't find in the doc was which polarity the signal must have.
Although not important for A or B, maybe for the index pulse it is of
importance.

Also, do you know if there are special constraints about the Z pulse?
Must it be high (or low) before the A becomes high or doesn't this play
any role?

Thanks for the info.

Below a link to the technical drawing for mounting this on a sherline
spindle:

http://users.skynet.be/gedp/FILES/encoder.JPG
http://users.skynet.be/gedp/FILES/encrend01.png

Thx for the info,

Geert

Jon Elson wrote:
> Geert De Pecker wrote:
>> Is the problem with software encoding related to the speed of the pulses
>> coming in? If so, would a low res encoder (homemade) of eg 20 ppr be a
>> solution?
>>
> Yes, but you don't want it to be too coarse.  There is some 
> filtering in the motion of the slaved axis, but if the encoder 
> was too coarse, there could be some stair-step like movement in 
> the Z axis.  20 slots in a home-made encoder would give 80 
> quadrature counts, or 4.5 degrees per count.  I would expect 
> that to work fairly well.  Without quadrature, it would be 18 
> degrees per count.  I'd have real doubts about the accuracy or 
> "linearity" of a thread with an encoder that coarse.  I am using 
> one with 6912 counts/rev, I know that is overkill, but it is 
> what I had.
>> Does it have to be a quadrature encoder (see in the HAL doc that both A
>> and B are used) or is there a solution with 2 signals: one index Z and
>> eg only 'A'? I would assume that when 'B' is not used and
>> encoder.N.x4-mode is false, it would also work?
>>
> The current code and hardware available all expect a quadrature 
> encoder.  You could set up a variation on the code to allow a 
> different encoder scheme with only 2 channels, for instance.
> Without changing the code, I don't think you could get it to 
> count with just one channel, even with the N.x4 mode false.
> That just divides the counts by 4.
> Jon
> 
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
> 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Emc lathe spindle

2007-10-28 Thread Geert De Pecker
Chris, Jon,

Thanks alot for all this info. Really helps alot in understanding this
stuff.

BTW, as a real linux man (both professionally and private), I really
like the emc2 package.

Geert

Jon Elson wrote:
> Geert De Pecker wrote:
>> Is the problem with software encoding related to the speed of the pulses
>> coming in? If so, would a low res encoder (homemade) of eg 20 ppr be a
>> solution?
>>
> Yes, but you don't want it to be too coarse.  There is some 
> filtering in the motion of the slaved axis, but if the encoder 
> was too coarse, there could be some stair-step like movement in 
> the Z axis.  20 slots in a home-made encoder would give 80 
> quadrature counts, or 4.5 degrees per count.  I would expect 
> that to work fairly well.  Without quadrature, it would be 18 
> degrees per count.  I'd have real doubts about the accuracy or 
> "linearity" of a thread with an encoder that coarse.  I am using 
> one with 6912 counts/rev, I know that is overkill, but it is 
> what I had.
>> Does it have to be a quadrature encoder (see in the HAL doc that both A
>> and B are used) or is there a solution with 2 signals: one index Z and
>> eg only 'A'? I would assume that when 'B' is not used and
>> encoder.N.x4-mode is false, it would also work?
>>
> The current code and hardware available all expect a quadrature 
> encoder.  You could set up a variation on the code to allow a 
> different encoder scheme with only 2 channels, for instance.
> Without changing the code, I don't think you could get it to 
> count with just one channel, even with the N.x4 mode false.
> That just divides the counts by 4.
> Jon
> 
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
> 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Emc lathe spindle

2007-10-28 Thread Geert De Pecker
Is the problem with software encoding related to the speed of the pulses
coming in? If so, would a low res encoder (homemade) of eg 20 ppr be a
solution?

Does it have to be a quadrature encoder (see in the HAL doc that both A
and B are used) or is there a solution with 2 signals: one index Z and
eg only 'A'? I would assume that when 'B' is not used and
encoder.N.x4-mode is false, it would also work?

>> Do you need a sync pulse AND an encoder (eg 50 ppr) together?
> You need a three channel encoder, with A B and index.  You also 
> need some way to read these signals into the computer.  I don't 
> recommend trying to do this with the software encoder Hal 
> component.  I don't know if there is a description of this on 
> the wiki, yet.
> 
> Jon
> 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Emc lathe spindle

2007-10-28 Thread Geert De Pecker
Thanks.

This clarifies a lot. One has to get acquinted with the HAL layer.
Will need to do some more reading I guess.

Kirk Wallace wrote:
> I haven't done a thorough study of this yet, I believe you only need to
> satisfy these two signals:
> "...
> motion.spindle-index-enable I/O bit
> For correct operation of spindle synchronized moves, this signal
> must be hooked to the index-enable pin of the spindle encoder.
> motion.spindle-revs IN float
> For correct operation of spindle synchronized moves, this signal
> must be hooked to the position pin of the spindle encoder.
> ..."
> from:
> 
> http://www.linuxcnc.org/docs/html/config/emc2hal/emc2hal.html
> 
> How you go about satisfying these signals may depend on your hardware.
> For my HNC lathe, I originally had a pulse generator with index, but my
> Pico UPC only had quadrature encoder inputs, so I had to install a
> quadrature encoder.
> 
> --- hnc_motion-3a.hal ---
> "...
> # report rev count to motion controller
> newsig spindle-pos float
> linksp spindle-pos ppmc.0.encoder.03.position
> linksp spindle-pos motion.spindle-revs
> ...
> --- hnc_io-3a.hal
> # connect index pulses to motion controller
> ...
> newsig spindle-index-enable bit
> linksp spindle-index-enable <= ppmc.0.encoder.03.index-enable
> linksp spindle-index-enable => motion.spindle-index-enable
> ..."
> 
> I had an option to use the hal component encoder:
> 
> http://www.linuxcnc.org/docs/html/man/man9/encoder.9.html
> 
> through my parallel port but this encoder isn't fast enough.
> 
> The following may be out of date. I think some signal names have
> changed, but here is an example from:
> 
> http://cvs.linuxcnc.org/cvs/emc2/configs/nist-lathe/nist-lathe.hal?rev=1.6
> 
> "...
> # counting the spindle encoder in software
> loadrt encoder num_chan=1
> ...
> # first we read parport inputs
> addf parport.0.read   base-thread
> # update encoder counter
> addf encoder.update-countersbase-thread
> ...
> # capture axis and spindle positions
> addf stepgen.capture-position servo-thread
> addf encoder.capture-position servo-thread
> # process motion commands coming from user space
> addf motion-command-handler   servo-thread
> # run main motion controller
> addf motion-controllerservo-thread
> ...
> # end of basic machine
> 
> ###
> # Beginning of threading-related stuff
> ###
> 
> # spindle encoder
> # connect encoder signals to encoder counter
> newsig spindle-phase-A bit
> newsig spindle-phase-B bit
> newsig spindle-phase-Z bit
> linksp spindle-phase-A => encoder.0.phase-A
> linksp spindle-phase-B => encoder.0.phase-B
> linksp spindle-phase-Z => encoder.0.phase-Z
> 
> linkps parport.0.pin-11-in => spindle-phase-A
> linkps parport.0.pin-12-in => spindle-phase-B
> linkps parport.0.pin-13-in => spindle-phase-Z
> 
> newsig homeswitches bit
> linkps parport.0.pin-10-in => homeswitches
> linkps axis.0.home-sw-in <= homeswitches
> linkps axis.2.home-sw-in <= homeswitches
> 
> # (that way thread pitches can be straightforward,
> #  a 20 tpi thread would multiply the encoder output
> #  by 1/20, etc)
> setp encoder.0.position-scale 4096
> 
> # encoder reset control
> # this signal is driven by the motion
> # controller, TRUE for synced motion, FALSE the rest of
> # the time.
> #
> # hook up motion controller's sync output
> newsig spindle-sync bit
> linkps motion.spindle-sync => spindle-sync
> # needs to be inverted to connect to index enable
> newsig spindle-index-en bit
> linksp spindle-sync   => not.0.in
> linkps not.0.out  => spindle-index-en
> linksp spindle-index-en   => encoder.0.index-enable
>(might now be motion.spindle-index-enable)
> 
> # report our revolution count to the motion controller
> newsig spindle-pos float
> linkps encoder.0.position => spindle-pos
> linksp spindle-pos => motion.spindle-revs
> ..."
> 
> If I didn't need the speed, I may have been able to use my original
> pulse generator by combining the spindle Forward/Reverse signals and
> the pulse generator signal to derive the inputs for the motion.spindle
> signals.
> 
> It also has been mentioned in the past, that you if your commanded
> spindle speed and actual spindle speed matched, you could derive the
> position information from the spindle speed command. So you wouldn't
> even need and encoder or pulse generator, just an index.
> 
> On Sat, 2007-10-27 at 22:57 +0200, Geert

Re: [Emc-users] HNC Lathe Spindle Sync Motion

2007-10-28 Thread Geert De Pecker
Chris,

On your website, there is a picture of the mod you did to the sherline
spindle speed control. It looks like you bypass the max-speed trimpot
with an optocoupler.

Are you able to get from lowest to full speed with this mod?

Is this a regular optocoupler?

I understand you drive the coupler directly with the pwm signal without
any rc filter or so. Doesn't this make the speed less stable? I was
thinking about a solution like this, but would have put a rc filter to
'convert' the pwn to a semi dc voltage.

Thanks,

Geert


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Emc lathe spindle

2007-10-27 Thread Geert De Pecker
Hi,

It is not quit clear to me what exactly is needed in order to do
threading on the lathe with emc:

Do you need a single synchronization pulse from the spindle to act as a
base for the sync

Or

Do you need a sync pulse AND an encoder (eg 50 ppr) together?

Thanks for the clarification.

Is there aa doc somewhere that describes this?

Thanks,

Geert

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users