M6 Remap Lathe (Remap T & ignore M6)

More
1 year 9 months ago #318415 by Yaroslav
 Hello everyone. This is my first time posting here.
 I have a question about M6 Remap and Carousel on Lathe. System work Ok. In .ini file i have REMAP= M6  modalgroup=6  prolog=change_prolog ngc=toolchange epilog=change_epilog.
  If i want add ignore m6 (Remap=M6 python=ignore M6), i get an error that it Remap=M6 is already in use.
  If I want Remap=T (REMAP=T python=index_lathe_tool_with_wear), I have error "M6: no tool prepared" (message from stdglue.py file)
I can use these functions if the tool change is work on the ladder. But the carousel is a more convenient tool.
 Maybe someone knows how this works?

Please Log in to join the conversation.

More
1 year 9 months ago #318427 by smc.collins
What kind of lathe and which kind of tool changer mechanism

Please Log in to join the conversation.

More
1 year 9 months ago #318430 by Aciera
you may need one or both of these in your hal file:
Code:
net tool-prepare iocontrol.0.tool-prepare iocontrol.0.tool-prepared net tool-change iocontrol.0.tool-change iocontrol.0.tool-changed

For more info see
linuxcnc.org/docs/html/remap/remap.html#...lated_codes_t_m6_m61

Please Log in to join the conversation.

More
1 year 9 months ago #318456 by Yaroslav
Usually it's a Sauter revolver, but I have a test stand at home. It works the same.

Please Log in to join the conversation.

More
1 year 9 months ago #318458 by Yaroslav
Yes, they are in the file. Without them, the tool change cycle is not complete.
It doesn't work for me.
REMAP=T python=index_lathe_tool_with_wear
REMAP=M6 python=ignore_m6
when I use remap M6 and the carousel component.

Please Log in to join the conversation.

More
1 year 9 months ago #318481 by smc.collins
carousel will just control the motor turret and rear the sensor for turret position. you have a lot of other things that need to happen to effect a tool change.

which make and model of tool changer ?

www.sauter-feinmechanik.com/en/scheibenrevolver.php

Please Log in to join the conversation.

More
1 year 9 months ago #318507 by Yaroslav
The tool changer system doesn't matter. I have several lathes with different tool change systems. They all work fine. But for a lathe I don't want to use the command T1M6G43H1, but only T1. Machines with Ladder ATC can do it.More complex machines, such as Sauter, it is better to make a carousel component. And here it does not work like that.

Please Log in to join the conversation.

More
1 year 9 months ago #318514 by StephenKing

The tool changer system doesn't matter. I have several lathes with different tool change systems. They all work fine. But for a lathe I don't want to use the command T1M6G43H1, but only T1. Machines google baseball with Ladder ATC can do it.More complex machines, such as Sauter, it is better to make a carousel  component. And here it does not work like that.
 
Yeah, the different lathes have different tool change systems, and the command T1 may work for some machines but not others. Or more complex machines like Sauter, using a carousel component is a better approach as it allows more flexibility in managing the tool changes.

Please Log in to join the conversation.

More
1 year 9 months ago #318533 by smc.collins
To give you a idea of what is required to run a tool changer, here is the component I wrote for MY machine. You could certainly simplify this code and improve it, but the basics are all there. You could rewrite this with a switch statement, but then you'd be forgoing the error checking scheme unless you want to nest lots of switch statements inside of the primary switch statement. 

Also you must have a g43 call on tool changes to get your tool offsets, no way around that. Most of this is easily fixed in the CAM software post processor, or if you ware writing code by hand, just copy/paste. I suppose if you wanted to create a macro for each tool that had the preamble in the gcode you could do so. 

 

Please Log in to join the conversation.

More
1 year 9 months ago #318539 by Yaroslav
Thanks for the idea, but I don't know python well enough yet. I think this function should work by default. And it works if I use Ladder. Maybe someone already knows how it should work. Maybe I need to make some more connections in the HAL file. I have no ideas yet. The error makes a reference to the text in the stdglue.py file. Maybe it needs to be edited, but I don't know how to do it yet.

Please Log in to join the conversation.

Time to create page: 0.176 seconds
Powered by Kunena Forum