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.

Time to create page: 0.108 seconds
Powered by Kunena Forum