Gear cutting with HAL function
Please Log in or Create an account to join the conversation.
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.
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.
Yes, that's the lathe spindle one.I just find here : picasaweb.google.com/bodgesoc/Gibbs#5437112859354194098
Please Log in or Create an account to join the conversation.
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.
valvolo wrote:
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.1) the disk of the encoder must have a specific number of teeth?
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.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)?
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.4) where do I find a Pyvcp panel with a spinbox?
www.linuxcnc.org/docs/html/hal/pyvcp.html
Read the crash report, it will tell you what is wrong.if I modify something in the folders of the program does not start LinuxCNC....
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.
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.
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
Please Log in or Create an account to join the conversation.
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.