Creating a HAL component for a Baruffaldi RH150 lathe turret ATC
19 Nov 2020 19:13 #189807
by jonnydeen
Hi all,
I am still very much a newcomer to linuxcnc having migrated from the darkest depth of mach3.
Might seem a tad optimistic but i enjoy the challenge. i believe i need to create a component to control my lathe turret. the rest of the machine conversion i'm happy enough to get on with but this i need some pointers on.
i currently have the electrical manual for the turret which includes detailed logic and timing diagrams and i have been sent config files (including hal, ini and tc component) from a machine running a similar turret by Filipe at eusurplus.
where do i start to learn more about writing and editing components? specifically in layman's terms that a simpleton like me can manage. i would prefer not to just have it done for me as i genuinely would like to learn.
Can someone point me in the right direction?
Jonny.
I am still very much a newcomer to linuxcnc having migrated from the darkest depth of mach3.
Might seem a tad optimistic but i enjoy the challenge. i believe i need to create a component to control my lathe turret. the rest of the machine conversion i'm happy enough to get on with but this i need some pointers on.
i currently have the electrical manual for the turret which includes detailed logic and timing diagrams and i have been sent config files (including hal, ini and tc component) from a machine running a similar turret by Filipe at eusurplus.
where do i start to learn more about writing and editing components? specifically in layman's terms that a simpleton like me can manage. i would prefer not to just have it done for me as i genuinely would like to learn.
Can someone point me in the right direction?
Jonny.
Please Log in or Create an account to join the conversation.
19 Nov 2020 19:53 #189812
by mydani
Replied by mydani on topic Creating a HAL component for a Baruffaldi RH150 lathe turret ATC
Hi Jonny,
maybe look at two examples, I can provide 2 different changers.
This is a lathe turret changer (one direction only):
github.com/mydani/linuxcnc_misc/blob/main/emcochanger.comp
This is a disc changer on a mill:
github.com/mydani/linuxcnc_misc/blob/main/ac20changer.comp
The important command is "halcompile --install <yourfile.comp>".
Afterwards loadrt <yourcomp> in the hal and you are there...
Regards
Daniel
maybe look at two examples, I can provide 2 different changers.
This is a lathe turret changer (one direction only):
github.com/mydani/linuxcnc_misc/blob/main/emcochanger.comp
This is a disc changer on a mill:
github.com/mydani/linuxcnc_misc/blob/main/ac20changer.comp
The important command is "halcompile --install <yourfile.comp>".
Afterwards loadrt <yourcomp> in the hal and you are there...
Regards
Daniel
Please Log in or Create an account to join the conversation.
19 Nov 2020 20:29 #189817
by jonnydeen
Replied by jonnydeen on topic Creating a HAL component for a Baruffaldi RH150 lathe turret ATC
cheers daniel, i'm having a look at it now. does your emcochanger.comp really use m6 rather than txxxx? or is that just an error in the comments?
the comments are very useful btw thanks.
the comments are very useful btw thanks.
Please Log in or Create an account to join the conversation.
Time to create page: 0.067 seconds