g76 code or g33

More
14 years 5 months ago - 14 years 5 months ago #19842 by andypugh
Replied by andypugh on topic Re:g76 code or g33
protomachine wrote:

I am trying to get my machine to thread


Have you connected motion.spindle-index-enable and motion.spindle-revs to the encoder output in the HAL file?
linuxcnc.org/docview/html/man/man9/motion.9.html
Last edit: 14 years 5 months ago by andypugh.

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

More
14 years 5 months ago #19868 by protomachine
Replied by protomachine on topic Re:g76 code or g33
I am new to this, how do I check the A and index? If I do need to invert it, where do I change that parameter. I am not in front of the machine to play around. Thanks for your help.

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

More
14 years 5 months ago #19873 by andypugh
Replied by andypugh on topic Re:g76 code or g33
protomachine wrote:

where do I change that parameter


In the HAL file, or possibly the INI file (both live in the emc2/configs directory, in the folder with the name of your machine)

You might find this useful reading:
linuxcnc.org/docview/html/hal/intro.html
linuxcnc.org/docview/html/hal/basic_hal.html

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

More
14 years 5 months ago #19929 by protomachine
Replied by protomachine on topic Re:g76 code or g33
I have attached the portion of my hal file that deals with spindle. I am not seeing anything with a " near scaling" statement. Does anything stand out to anybody? Thanks for the help.

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

More
14 years 5 months ago #19930 by protomachine
Replied by protomachine on topic Re:g76 code or g33
I have attached the portion of my hal file that deals with spindle. I am not seeing anything with a " near scaling" statement. Does anything stand out to anybody? Thanks for the help.

File Attachment:

File Name: kr_lathe.hal
File Size:6.07 KB

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

More
14 years 5 months ago #19934 by andypugh
Replied by andypugh on topic Re:g76 code or g33
I am confused by the lack of "loadrt hostmot2" and "loadrt hm2_pci..." but I assume they are in a separate HAL file?
Also, there is no need to addf the 5i20 read_gpio and write_gpio threads, in fact you shouldn't do that unless you have a fast thread and need to write them in that. (your current HAL file is writing the GPIO twice, as the plain ...read and ..write also read/write the GPIO)

You don't have anything connected, in that HAL file, to motion.spindle-at-speed, so AFAIK threading etc should just happen.

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

Time to create page: 0.358 seconds
Powered by Kunena Forum