- Posts: 187
- Thank you received: 6
REMAP M6 FOR GENEVA ATC
- COlger81
- Offline
- Elite Member
-
Less
More
8 years 6 days ago #119447
by COlger81
REMAP M6 FOR GENEVA ATC was created by COlger81
I am remapping the tool change procedure and i need the spindle to come to a complete stop before executing python script. Any suggestions would be appreciated.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2181
8 years 6 days ago #119458
by cmorley
Replied by cmorley on topic REMAP M6 FOR GENEVA ATC
Are you asking for hardware solutions or software solutions?
A little more detail would be helpful.
Chris M
A little more detail would be helpful.
Chris M
Please Log in or Create an account to join the conversation.
- COlger81
- Offline
- Elite Member
-
Less
More
- Posts: 187
- Thank you received: 6
8 years 6 days ago #119461
by COlger81
Replied by COlger81 on topic REMAP M6 FOR GENEVA ATC
Software. This is a Fadal with 21 tool changer. Which tool change pin fires first in IO control when M6 is executed?
Please Log in or Create an account to join the conversation.
- COlger81
- Offline
- Elite Member
-
Less
More
- Posts: 187
- Thank you received: 6
8 years 6 days ago #119462
by COlger81
Replied by COlger81 on topic REMAP M6 FOR GENEVA ATC
Also, where can i find the actual code that's executed during an M6 routine?
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2181
8 years 6 days ago #119471
by cmorley
Replied by cmorley on topic REMAP M6 FOR GENEVA ATC
Here is the over view of tool changes:
linuxcnc.org/docs/2.7/html/remap/remap.h...ange-currently-works
Look in src/emc/iotask/ioControl.cc for the HAL pin hand shaking
But I wonder if you 'AND' the tool-change pin with some sort of spindle stopped pin. (maybe even spindle at speed?)
Or feed the tool-change into a delay timer component.
Chris M
linuxcnc.org/docs/2.7/html/remap/remap.h...ange-currently-works
Look in src/emc/iotask/ioControl.cc for the HAL pin hand shaking
But I wonder if you 'AND' the tool-change pin with some sort of spindle stopped pin. (maybe even spindle at speed?)
Or feed the tool-change into a delay timer component.
Chris M
Please Log in or Create an account to join the conversation.
- COlger81
- Offline
- Elite Member
-
Less
More
- Posts: 187
- Thank you received: 6
8 years 5 days ago #119483
by COlger81
Replied by COlger81 on topic REMAP M6 FOR GENEVA ATC
I was able to create a pin that gets triggered by the "tool-prepare" pin, which is the first pin activated by M6. I defined conditions in python as "while pin is active" and "spindle speed in == 0". Works great.
Please Log in or Create an account to join the conversation.
Time to create page: 0.172 seconds