Hal file for toolerator

More
12 Feb 2020 23:01 #157225 by MarkD2
I need to get an example of hal and ini file entries to use the toolerator component. I have a Ardunio that controls my lathe turret but would like to integrate it into LCNC.

The turret uses a stepper for rotation and an pancake air cylinder to unlock the shaft with the tool disc. The program takes the shortest path to the required tool.

Thanks for any help
MarkD
Attachments:

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

More
12 Feb 2020 23:24 #157229 by tommylight
Replied by tommylight on topic Hal file for toolerator
That can be set up in several ways, in hal, in gcode, or remap.
Does it have any sensors ? One should be enough, most probably, for index or homing.
In gcode should be pretty easy, remap not so easy, hal usually very hard but i still have not thought the process through. Need more info on the workings of the "toolerator "!
Was this on cnczone quite a while back ?

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

More
13 Feb 2020 03:36 #157258 by MarkD2
Replied by MarkD2 on topic Hal file for toolerator
The LCNC component works through USB and requests a tool and expects a return of the requested tool after the change. There is no interaction with the turret as the Ardunio handles the logic and the stepper.

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

More
13 Feb 2020 10:12 #157273 by tommylight
Replied by tommylight on topic Hal file for toolerator
That much i figured out, we need to know the workings of the toolchanger
How does arduino know what tool is where ?

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

More
13 Feb 2020 21:45 - 13 Feb 2020 21:47 #157327 by MarkD2
Replied by MarkD2 on topic Hal file for toolerator
The toolchanger has a sensor for tool #1 so the homing is done by searching for the sensor and setting a homed flag in the Ardunio.
I am attaching the Ardunio code.

Thanks again for your help.
MarkD

File Attachment:

File Name: ToolIndexer.txt
File Size:6 KB
Attachments:
Last edit: 13 Feb 2020 21:47 by MarkD2.

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

Time to create page: 0.114 seconds
Powered by Kunena Forum