Emco 240 Tool Turret

More
9 years 1 month ago #98787 by andypugh
Replied by andypugh on topic Emco 240 Tool Turret
Well, you would need to convert to LinuxCNC G-code, but that is just a case of changing IF to O100 IF and O100 ENDIF (basically LinuxCNC requires you to match the IF and ENDIF manually by numbers.)

linuxcnc.org/docs/2.7/html/gcode/o-code.html

Does the turret give any position feedback at all?

Please Log in to join the conversation.

More
9 years 1 month ago #98788 by timmert
Replied by timmert on topic Emco 240 Tool Turret
You mean a home switch?
There is only a normal stepper motor connected

Please Log in to join the conversation.

More
9 years 1 month ago #98789 by andypugh
Replied by andypugh on topic Emco 240 Tool Turret
So how does it know which tool position it is at?

Please Log in to join the conversation.

More
9 years 1 month ago #98790 by timmert
Replied by timmert on topic Emco 240 Tool Turret
at startup I select which tool is currently loaded
But I can always add a home switch

Please Log in to join the conversation.

More
9 years 1 month ago #98791 by andypugh
Replied by andypugh on topic Emco 240 Tool Turret
Maybe it can work for you as it is.

To call the G-code sub with M6 you need to look at this:

linuxcnc.org/docs/2.7/html/remap/remap.h...s_including_tt_m6_tt

You only need to do what it says in section 5.6 to call a G-code subroutine with M6, but you probably need to read other parts of that (huge) document to know where to make the changes.

Please Log in to join the conversation.

More
9 years 1 month ago #98879 by timmert
Replied by timmert on topic Emco 240 Tool Turret
I got it working and turret made it's first steps.

I got this line at the end of the macro to load the actual tool into linuxcnc.
It works, but it prompts with a message 'insert tool x and continue when ready'.
Is it possible to bypass this message?

M6T#<_selected_tool>

Please Log in to join the conversation.

More
9 years 1 month ago #98910 by andypugh
Replied by andypugh on topic Emco 240 Tool Turret

timmert wrote: I got it working and turret made it's first steps.

I got this line at the end of the macro to load the actual tool into linuxcnc.
It works, but it prompts with a message 'insert tool x and continue when ready'.
Is it possible to bypass this message?

M6T#<_selected_tool>


Yes. There are two ways to do this. Currently you probably have hal_manualtoolchange between iocontrol.0.tool-change and biocontrol.0.tool-changed. You can just link them directly and not load hal_manualtoolchange.

Or, simpler but not so correct, just replace the M6 in your macro with M61

Please Log in to join the conversation.

More
9 years 1 month ago #98918 by timmert
Replied by timmert on topic Emco 240 Tool Turret
Hi Andy,
I use Gmoccapy
I'm not sure how to connect it? It's a bit different.

net tool-change gmoccapy.toolchange-change <= iocontrol.0.tool-change
net tool-changed gmoccapy.toolchange-changed <= iocontrol.0.tool-changed
net tool-prep-number gmoccapy.toolchange-number <= iocontrol.0.tool-prep-number
net tool-prep-loop iocontrol.0.tool-prepare <= iocontrol.0.tool-prepared

Please Log in to join the conversation.

More
9 years 1 month ago #98927 by andypugh
Replied by andypugh on topic Emco 240 Tool Turret

timmert wrote: Hi Andy,
I use Gmoccapy
I'm not sure how to connect it? It's a bit different.

net tool-change gmoccapy.toolchange-change <= iocontrol.0.tool-change
net tool-changed gmoccapy.toolchange-changed <= iocontrol.0.tool-changed
net tool-prep-number gmoccapy.toolchange-number <= iocontrol.0.tool-prep-number
net tool-prep-loop iocontrol.0.tool-prepare <= iocontrol.0.tool-prepared


Change that section to:
Code:
net tool-change-loop iocontrol.0.tool-change => iocontrol.0.tool-changed net tool-prep-loop iocontrol.0.tool-prepare => iocontrol.0.tool-prepared

Please Log in to join the conversation.

More
9 years 1 month ago #98937 by timmert
Replied by timmert on topic Emco 240 Tool Turret
Working :)

Please Log in to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum