Hello Guest it is June 06, 2025, 09:48:58 AM

Author Topic: HAL and external offsets  (Read 4991 times)

0 Members and 1 Guest are viewing this topic.

HAL and external offsets
« on: August 19, 2024, 12:04:58 AM »
Hello,

I have a project where I want to apply changes to a cnc toolpath in realtime based on object tracking data from a camera. I have been told that while uncommon, that it is possible. Particularly, to use a hardware abstraction layer to apply external offsets so that the original g-code remains unchanged and the toolpath can still be updated. However, as a novice and having done a deep dive into this topic, I find it very difficult to complete this project because of the lack of information on these topics. Can anyone direct me or recommend how I can learn how to use HAL and external offsets? Thanks!
Re: HAL and external offsets
« Reply #1 on: August 28, 2024, 06:38:42 PM »
Hi,
HAL is a term in LinuxCNC. There is to my knowledge no equivalent thing in Mach4.

Were I to attempt what you are talking about I would use parametric GCode, will all but requires Mach4Industrial. Mach4Hobby can and does recognise
parameters but in limited fashion, whereas Mach4Industrustrial is fully MacroB compliant.

The overall thing would be that the camera feeds some video processing device which can determine the required the required toolpath correction, that device would inform Mach4
which would in turn populate the Gcode positions from parameters.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'