Cannot get M6 ngc remap working

More
06 Aug 2020 12:18 - 06 Aug 2020 12:23 #177501 by bevins
I am still trying to get M6 remap to work on this machine. I have it close but it doesnt want to move at all. It runs through the preview no problem, but when I run the program with M6 in it, it doesn't move. If I run a program without a tool change like the linuxcnc file default, it will run.

Pretty much the rack_toolchange from the sim.

HAL file
Warning: Spoiler!


INI file
Warning: Spoiler!


rack_toolchange,ngc
Warning: Spoiler!


tool_getput_move.ngc
Warning: Spoiler!


Too_holder_clear_move.ngc
Warning: Spoiler!


Last edit: 06 Aug 2020 12:23 by bevins.

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

More
06 Aug 2020 15:29 - 06 Aug 2020 17:19 #177523 by tommylight
Had a run at this and it does work for me:
-Calling the sim_racktoolchange folder just changer folder from now on, and the real machine folder as machine folder
-edit the ini file from the changer folder as follows:
--delete the halfile = something sim.tcl line
--insert the halfile = machine.hal and copy that same file from the machine folder to the changer folder
--open the machine.ini from the machine folder and copy stuff from axis/joint sections over to changer.ini replacing the existing ones, same for kins and traj and display sections if there are differences
-save and start the changer.ini file
Everything works, from gcode or MDI.
Here is a quick video of it running on a plasma cutter:
Last edit: 06 Aug 2020 17:19 by tommylight. Reason: typo

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

More
06 Aug 2020 16:46 - 06 Aug 2020 16:49 #177531 by bevins
You mean use the sim folder created by the sim? and change everything in the ini to fit?
It uses sim library. The hal file is racktoolchange.hal and LIB:basic_sim.tcl

I dont think I follow you.
Last edit: 06 Aug 2020 16:49 by bevins.

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

More
06 Aug 2020 17:19 #177532 by tommylight
Yes and yes and sorry, that sim tcl not hal.
I will edit the post.

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

More
06 Aug 2020 17:54 #177534 by bevins

Yes and yes and sorry, that sim tcl not hal.
I will edit the post.


Weird, its doing the same thing. Wont move. and no errors on the console.

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

More
06 Aug 2020 18:25 #177537 by tommylight
I get nothing related to tools in the console, while you are getting tool 0 and pocket -1, i do not think that is right.

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

More
06 Aug 2020 18:27 #177538 by bevins
Tommy: What version Linuxcnc are you running?

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

More
06 Aug 2020 18:29 #177539 by tommylight
Latest build of master on Mint 19.3.
Check the tool table, see if there are negative or 0 values there and remove them.

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

More
06 Aug 2020 18:41 - 06 Aug 2020 18:46 #177542 by bevins

Latest build of master on Mint 19.3.
Check the tool table, see if there are negative or 0 values there and remove them.


There was a 0 tool in pocket 0. I removed them.

same thing.
Last edit: 06 Aug 2020 18:46 by bevins.

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

More
06 Aug 2020 19:20 #177543 by tommylight
This is the complete log of console for a full run including homing a dual Y gantry, changing tools from gcode and from a quick gcode test with nothing but toll changes and a 2 second pause between changes:
Warning: Spoiler!

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

Time to create page: 0.230 seconds
Powered by Kunena Forum