Set program zero using XY positioning laser

More
1 year 3 months ago #332180 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

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

More
1 year 3 months ago #332186 by tommylight
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.

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

More
1 year 3 months ago #332203 by scsmith1451
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.

More
1 year 3 months ago #332308 by scsmith1451
In my process to integrate the X/Y crosshair laser into my test machine configuration, searching the forum I read that gladevcp had a toggle button that sounded like it would work for controlling the laser on/off. Modifying my configuration with pncconf I replace my pyvcp with gladevcp using the default sample with just the spindle speed bar and spindle at speed LED.

Starting LCNC the machine an error was generated indicating that the n_rows property for the gladevcp was not valid. A little more forum searching if found the GTKbugfix.tar.gz archive and following the forum guidance copied the files to their correct location.

Upon restart of LCNC, the gladevcp panel displayed correctly. Excited, I decided to include the sample's Zero X/Y/Z/A buttons via pncconf.

Upon restart the following error was spit out:

ERROR: function 'abs.spindle' not found

Checking the HAL file it appears to be caused by this line:

addf abs.spindle servo-thread

Figuring that this was somehow connected with adding the ZERO buttons, I removed the buttons via pncconf and restarted.

Now LCNC generates the error every time it is started.

I'm befuddled and do not know where to go from here. Anyone have any ideas?

Kind Regards

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

More
More
1 year 3 months ago #332313 by scsmith1451

Upon restart the following error was spit out:

ERROR: function 'abs.spindle' not found

Checking the HAL file it appears to be caused by this line:

addf abs.spindle servo-thread


 

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

Time to create page: 0.057 seconds
Powered by Kunena Forum