M6 Remap Lathe (Remap T & ignore M6)
- Yaroslav
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
08 Jan 2025 15:07 #318415
by Yaroslav
M6 Remap Lathe (Remap T & ignore M6) was created 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?
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 or Create an account to join the conversation.
- smc.collins
- Away
- Platinum Member
Less
More
- Posts: 700
- Thank you received: 123
08 Jan 2025 17:01 #318427
by smc.collins
Replied by smc.collins on topic M6 Remap Lathe (Remap T & ignore M6)
What kind of lathe and which kind of tool changer mechanism
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
Less
More
- Posts: 4036
- Thank you received: 1741
08 Jan 2025 17:10 #318430
by Aciera
Replied by Aciera on topic M6 Remap Lathe (Remap T & ignore M6)
you may need one or both of these in your hal file:
For more info see
linuxcnc.org/docs/html/remap/remap.html#...lated_codes_t_m6_m61
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 or Create an account to join the conversation.
- Yaroslav
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
08 Jan 2025 19:55 - 08 Jan 2025 19:58 #318456
by Yaroslav
Replied by Yaroslav on topic M6 Remap Lathe (Remap T & ignore M6)
Usually it's a Sauter revolver, but I have a test stand at home. It works the same.
Last edit: 08 Jan 2025 19:58 by Yaroslav.
Please Log in or Create an account to join the conversation.
- Yaroslav
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
08 Jan 2025 20:06 - 08 Jan 2025 20:10 #318458
by Yaroslav
Replied by Yaroslav on topic M6 Remap Lathe (Remap T & ignore M6)
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.
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.
Last edit: 08 Jan 2025 20:10 by Yaroslav.
Please Log in or Create an account to join the conversation.
- smc.collins
- Away
- Platinum Member
Less
More
- Posts: 700
- Thank you received: 123
08 Jan 2025 23:44 - 08 Jan 2025 23:45 #318481
by smc.collins
Replied by smc.collins on topic M6 Remap Lathe (Remap T & ignore M6)
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
which make and model of tool changer ?
www.sauter-feinmechanik.com/en/scheibenrevolver.php
Last edit: 08 Jan 2025 23:45 by smc.collins.
Please Log in or Create an account to join the conversation.
- Yaroslav
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
09 Jan 2025 06:22 #318507
by Yaroslav
Replied by Yaroslav on topic M6 Remap Lathe (Remap T & ignore M6)
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 or Create an account to join the conversation.
- StephenKing
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 1
09 Jan 2025 07:57 - 09 Jan 2025 08:02 #318514
by StephenKing
Replied by StephenKing on topic M6 Remap Lathe (Remap T & ignore M6)
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.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.
Last edit: 09 Jan 2025 08:02 by StephenKing.
The following user(s) said Thank You: Yaroslav
Please Log in or Create an account to join the conversation.
- smc.collins
- Away
- Platinum Member
Less
More
- Posts: 700
- Thank you received: 123
09 Jan 2025 12:36 #318533
by smc.collins
Replied by smc.collins on topic M6 Remap Lathe (Remap T & ignore M6)
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.
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 or Create an account to join the conversation.
- Yaroslav
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
09 Jan 2025 12:57 #318539
by Yaroslav
Replied by Yaroslav on topic M6 Remap Lathe (Remap T & ignore M6)
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 or Create an account to join the conversation.
Time to create page: 0.097 seconds