Good Evening,
Does anyone know if there is a way to make a fixture offset with a C program? I have a touchoff Block that is a known distance above my material, I have a program that will jog the tool down until it makes contact and then stop. From there I manually enter the offset height by pressing "Set" on KMotionCNC. Is there a way to do this automatically? I dont want to change the machine coordinates, just the global offset in Z.
Thanks!!
SL
Set CNC Axis Position
Moderators: TomKerekes, dynomotion
- TomKerekes
- Posts: 2676
- Joined: Mon Dec 04, 2017 1:49 am
Re: Set CNC Axis Position
Hi SL,
You should be to do this with the command:
DoPCFloat(PC_COMM_SET_Z,xxxxxx);
Where xxxxxx is the offset height.
See the KFLOPtoPCCmdExamples.c example
HTH
You should be to do this with the command:
DoPCFloat(PC_COMM_SET_Z,xxxxxx);
Where xxxxxx is the offset height.
See the KFLOPtoPCCmdExamples.c example
HTH
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.
Re: Set CNC Axis Position
Thanks Tom! Simple enough!