Simple C Program to Z Work Offset
Posted: Sun Oct 07, 2018 7:38 pm
Hello,
Sorry for possible doubling the post of other user, but I need to clear things a little.
I bought a simple touch plate from Aliexpress for my 3 Axis router with Kflop control. After reading some information about using DoPCFloat(PC_COMM_SET_X,0.0) I have more questions than answers.
The touch probe is connected via optocoupler board to Pin 6 of JP7. I need a C program that will work as follows:
1. I connect the sensor to an instrument
2. Press the button
3. Z axis starts moving down
4. When instruments touches the sensor it sets G54 Z work offset as 20mm (sensor's height)
5. Z axis moves up for 5-10mm
Most of hobby machines' users don't need a hassle with Tool Lenght Tables etc., just a simple routine like this. Thanks for an upcoming answer.
regards, Alex
Sorry for possible doubling the post of other user, but I need to clear things a little.
I bought a simple touch plate from Aliexpress for my 3 Axis router with Kflop control. After reading some information about using DoPCFloat(PC_COMM_SET_X,0.0) I have more questions than answers.
The touch probe is connected via optocoupler board to Pin 6 of JP7. I need a C program that will work as follows:
1. I connect the sensor to an instrument
2. Press the button
3. Z axis starts moving down
4. When instruments touches the sensor it sets G54 Z work offset as 20mm (sensor's height)
5. Z axis moves up for 5-10mm
Most of hobby machines' users don't need a hassle with Tool Lenght Tables etc., just a simple routine like this. Thanks for an upcoming answer.
regards, Alex