Set program zero using XY positioning laser
- scsmith1451
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 2
22 Jul 2025 13:53 #332180
by scsmith1451
Set program zero using XY positioning laser was created by scsmith1451
Hi all;
I've been converting from MACH3 to LCNC. In MACH3 I had configured an XY positioning laser using a macro that would allow me to jog to the program zero for a given project, then once positioned at the appropriate point I would click on a button that would calculate the X/Y offsets, move the spindle to the true program zero then set the G54 X/Y DROs to zero. This was very fast and accurate way to perform this task and along with a tool probe to zero the Z axis, program home is quickly established.
I would like to do something similar adding a button in the pyVCP to turn on the laser and once positioned a second button to compute the offsets, move the spindle to program zero, set the X/Y DROs to zero and turn off the laser.
Searching the forum, I've not found any info to work from. Has anyone configured a positioning laser on their system? I'm a little rusty on my Python, but I can get back into it quickly or would classic ladder be a better option? Any help would be greatly appreciated.
Kind regards
I've been converting from MACH3 to LCNC. In MACH3 I had configured an XY positioning laser using a macro that would allow me to jog to the program zero for a given project, then once positioned at the appropriate point I would click on a button that would calculate the X/Y offsets, move the spindle to the true program zero then set the G54 X/Y DROs to zero. This was very fast and accurate way to perform this task and along with a tool probe to zero the Z axis, program home is quickly established.
I would like to do something similar adding a button in the pyVCP to turn on the laser and once positioned a second button to compute the offsets, move the spindle to program zero, set the X/Y DROs to zero and turn off the laser.
Searching the forum, I've not found any info to work from. Has anyone configured a positioning laser on their system? I'm a little rusty on my Python, but I can get back into it quickly or would classic ladder be a better option? Any help would be greatly appreciated.
Kind regards
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 20474
- Thank you received: 6968
22 Jul 2025 14:59 #332186
by tommylight
Replied by tommylight on topic Set program zero using XY positioning laser
BUTTON_1_NAME = ZERRO\Materialit
BUTTON_1_CODE = G10 L20 P0 X89 Y29.5 \ G53 G0 Z-10
This is just to give you an idea, i use this on my plasma machines with laser cross.
BUTTON_1_CODE = G10 L20 P0 X89 Y29.5 \ G53 G0 Z-10
This is just to give you an idea, i use this on my plasma machines with laser cross.
Please Log in or Create an account to join the conversation.
- scsmith1451
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 2
22 Jul 2025 20:06 #332203
by scsmith1451
Replied by scsmith1451 on topic Set program zero using XY positioning laser
If I understand the BUTTON_1_CODE correctly, the G10 L20 P0 coordinate system is always offset to the fixed values defined by X and Y. How does positioning the cross-hairs to a difference starting position translate the offsets to the new location correctly?
Please Log in or Create an account to join the conversation.
Time to create page: 0.057 seconds