VMC related HAL questions.

More
04 Dec 2019 15:02 - 04 Dec 2019 15:03 #152000 by CNCDoc
Replied by CNCDoc on topic VMC related HAL questions.
It seems to work now. What makes 1 do the difference?
Last edit: 04 Dec 2019 15:03 by CNCDoc.

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

More
04 Dec 2019 16:11 #152005 by andypugh
Replied by andypugh on topic VMC related HAL questions.
There were two things. Your check was back to front (only run the tool changer if the system _is_ in preview) and the calling code was expecting a return value, so one needed to be added to the return command. (as is the case with the other return in the remap)
The following user(s) said Thank You: CNCDoc

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

More
09 Dec 2019 13:20 #152358 by CNCDoc
Replied by CNCDoc on topic VMC related HAL questions.
I load tool 1 to make Tool Touch Off. Then start the g code where tool 1 is used.
Starts a tool change sequence although the correct tool is already loaded.
Would this code fix it?
o998 IF [#<tool_in_spindle> = <selected_tool>]
	o<toolchange> RETURN
	o998 ENDIF

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

More
09 Dec 2019 15:54 #152368 by andypugh
Replied by andypugh on topic VMC related HAL questions.
That should work.
But should probably be

Return [1]
The following user(s) said Thank You: CNCDoc

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

More
10 Dec 2019 09:21 - 10 Dec 2019 09:33 #152422 by CNCDoc
Replied by CNCDoc on topic VMC related HAL questions.
Is it possible to make a reset button for the tool change sequence?
It is very hand-applied when something is not working and the arm is under the spindle. Must restart linuxcnc etc
If it is possible to make a button that resets as the arm goes out, the locking pin up the carousel stops positioning (resets all signals that are set high by the tool swap sequence).

Edit:
Will it be a .ngc file resetting with M66 P3. On all P # used?
Last edit: 10 Dec 2019 09:33 by CNCDoc.

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

More
13 Dec 2019 06:36 #152590 by CNCDoc
Replied by CNCDoc on topic VMC related HAL questions.

I load tool 1 to make Tool Touch Off. Then start the g code where tool 1 is used.
Starts a tool change sequence although the correct tool is already loaded.
Would this code fix it?
o998 IF [#<tool_in_spindle> = <selected_tool>]
	o<toolchange> RETURN
	o998 ENDIF


The code below seems to work:
o998 IF [#<tool_in_spindle> EQ #<selected_tool>]
	o<toolchange> RETURN [1]
	o998 ENDIF

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

More
07 Jan 2020 19:45 #154243 by andypugh
Replied by andypugh on topic VMC related HAL questions.

Is it possible to make a reset button for the tool change sequence?


I think so, if you can code it as a G-code subroutine.

Look at the MDI_COMMAND INI file entry:

linuxcnc.org/docs/2.7/html/config/ini-co....html#_halui_section

Though it might suffice to just use MDI to:
O<toolchange_reset> CALL

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

Time to create page: 0.098 seconds
Powered by Kunena Forum