Gear cutting with HAL function

More
20 Jun 2011 13:50 #10658 by andypugh
I don't know where you have seen my other encoder, but it is probably the one for the lathe spindle.

Please Log in or Create an account to join the conversation.

More
20 Jun 2011 13:58 #10660 by andypugh
Something I just remembered to mention.
In my setup, the scaling between the stepper motor revolutions and the workpiece revolutions is handled in the stepgen scaling. There is actually a belt reduction between the two.

Please Log in or Create an account to join the conversation.

More
20 Jun 2011 14:00 #10661 by darty367
andypugh wrote:

I don't know where you have seen my other encoder, but it is probably the one for the lathe spindle.


I just find here : picasaweb.google.com/bodgesoc/Gibbs#5437112859354194098

Please Log in or Create an account to join the conversation.

More
21 Jun 2011 11:13 #10697 by andypugh
darty367 wrote:

I just find here : picasaweb.google.com/bodgesoc/Gibbs#5437112859354194098

Yes, that's the lathe spindle one.

Please Log in or Create an account to join the conversation.

More
03 Sep 2012 15:36 #23859 by valvolo
hi, Handy, I'm Valvolo the one wrote to you in youtube.
i've some problems whit the configuration for the hal,
I don't understand where i must copy your program lines

I have 4 questions:
1) the disk of the encoder must have a specific number of teeth?
2) the number of teeth must be reported in some HAL parameter?
3) with the hobbing cutting, synchronization between spindle and 'a-axis is always 1 to 1 (one turn of the spindle = one turn of the A-axis)?
4) where do I find a Pyvcp panel with a spinbox?
thanks in advance
Tony

if I modify something in the folders of the program does not start LinuxCNC....
I know there are many people in my same problem, why you not create a tutorial, in many we would appreciate it!

Please Log in or Create an account to join the conversation.

More
03 Sep 2012 21:42 #23868 by andypugh
Sorry for the slow replies, I spent today travelling to Spain.

valvolo wrote:

1) the disk of the encoder must have a specific number of teeth?

No, any number will work. You need to set the scale correcty in the LinuxCNC config files, but it can be any number. More teeth is better as long as the counting hardware/software can keep up.

3) with the hobbing cutting, synchronization between spindle and 'a-axis is always 1 to 1 (one turn of the spindle = one turn of the A-axis)?

No, 1 to 1 gives you one tooth, which isn't very useful. (actually, it doesn't even work). The ratio needs to be exactly the required tooth count.

4) where do I find a Pyvcp panel with a spinbox?

You would need to look in the docs for how to create a PyVCP panel. I didn't see any point duplicating things which are better documented elswhere.
www.linuxcnc.org/docs/html/hal/pyvcp.html

if I modify something in the folders of the program does not start LinuxCNC....

Read the crash report, it will tell you what is wrong.
Better still, start LinuxCNC from the command line (type "linuxcnc" and you will get more information.
My guess would be that you don't have the same hardware as me. This is partly why I didn't put all the files up, as the configuration will depend on your hardware. The sample I put up is for people to understand and duplicate, not to simply add to their configuration. Specifically if your machine does not use a Mesa 7i43 then my sample won't work. A modified version ought to work even with a parallel port though.

Please Log in or Create an account to join the conversation.

More
04 Sep 2012 07:10 #23872 by valvolo
hi Handy,
ok, now I have a good starting point!
first 3 problem are solved and fourth questions made me realize why my configuration doesn't work: I haven't a Mesa 7i43 card!
so now I am studying to figure out how to convert the commands in your program refer to 7i43 to use them with the parallel port!
I have a bit of difficulty....
do you have any suggestion for us?
Thank you for your patience.

Tony

Please Log in or Create an account to join the conversation.

More
04 Sep 2012 07:44 #23874 by cncbasher

File Attachment:

File Name: hobbing2.txt
File Size:3 KB


tony if it helps here is the file converted for parrell port , read additional comments i have included , i have not at this moment tested it , so apart from any typo's it should work fine
Attachments:

Please Log in or Create an account to join the conversation.

More
04 Sep 2012 07:51 #23875 by andypugh
valvolo wrote:

so now I am studying to figure out how to convert the commands in your program refer to 7i43 to use them with the parallel port!
I have a bit of difficulty..


www.linuxcnc.org/docs/html/man/man9/encoder.9.html

loadrt encoder
...
addf encoder.0.capture-position servo-thread
addf encoder.0.update-counters base-thread
...
setp encoder.0.position-scale 400
...
net A-phase encoder.0.phase-A parport.0.pin-02-in
net B-phase encoder.0.phase-B parport.0.pin-03-in

(other details I don't have the time for right now)

Please Log in or Create an account to join the conversation.

Time to create page: 0.180 seconds
Powered by Kunena Forum