M6 moves spindles down before pausing for change

More
28 Oct 2023 17:19 #283970 by edmarwjr
Hi,

I am new in linuxcnc, in fact in CNC in general.
I have a PM-728 machine, did CNC conversions without problems.
I am using Mesa boards.

Initially used pncconf for general setup.
Now, I am editing the .hal and .ini files to fill some details.

I am stuck trying to setup auto tool measurement in gmoccapy.
I did all the changes posted in the manual (2.8)

Remap of M6 is working, I uncommented the debug statements, and add some more

Problem:
When I perform a tool change, the change.ngc moves the spindle up to the CHANGE_POSITION, as exepected.
Then executes M6.
The machine moves all the way down, to the lower Z limit, almost touching the table.
Then it asks to make a tool change (Which is physically impossible, given the lower position).

I press OK, just to see if there are other problems. The head moves up to TOOLSENSOR position, everything goes normal to end

So, I narrow down the problem to the M6. The description of the command says it should move the head up, not down.
What is happening ?
Any suggestions ?

Thanks
 
Attachments:

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

More
28 Oct 2023 17:35 - 28 Oct 2023 17:35 #283972 by andypugh
Do you have any of TOOL_CHANGE_POSITION, TOOL_CHANGE_AT_G30 or TOOL_CHANGE_QUIIL_UP set in the INI file? This feels like a move during the standard M6 call section.

linuxcnc.org/docs/stable/html/config/ini....html#_emcio_section
Last edit: 28 Oct 2023 17:35 by andypugh.

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

More
28 Oct 2023 19:20 #283982 by edmarwjr
Yes,

I have TOOL_CHANGE_QUILL_UP = 1

I comment out this line, and the problem is fixed.
Spindle stays at CHANGE_POSITION during M6 execution.

Thanks

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

More
28 Oct 2023 19:36 #283984 by andypugh
That probably means that you have the machine set up with Z = 0 at the bottom. It's best to have Z = 0 at the top, and all other positions negative.
It wouldn't matter, except lots of CAM systems like to insert G53 G0 Z0 in the code, assuming that it is a clear Z move.

I would change it, just in case.

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

More
28 Oct 2023 20:39 #283992 by edmarwjr
You can see that I never run any G code. I though that having all coordinates numbers positive would be more intuitive.

Thanks for the insight.
I changed top to zero. Adjusted my tool probe numbers. Everything is OK.

Thanks

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

Time to create page: 0.075 seconds
Powered by Kunena Forum