Emco 240 Tool Turret

More
10 Sep 2017 18:02 #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 or Create an account to join the conversation.

More
10 Sep 2017 18:04 #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 or Create an account to join the conversation.

More
10 Sep 2017 18:14 #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 or Create an account to join the conversation.

More
10 Sep 2017 18:16 #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 or Create an account to join the conversation.

More
10 Sep 2017 18:32 #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 or Create an account to join the conversation.

More
12 Sep 2017 11:55 #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 or Create an account to join the conversation.

More
13 Sep 2017 05:38 #98910 by andypugh
Replied by andypugh 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>


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 or Create an account to join the conversation.

More
13 Sep 2017 11:46 #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 or Create an account to join the conversation.

More
13 Sep 2017 22:15 #98927 by andypugh
Replied by andypugh 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


Change that section to:
net tool-change-loop  iocontrol.0.tool-change => iocontrol.0.tool-changed
net tool-prep-loop iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
The following user(s) said Thank You: timmert

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

More
14 Sep 2017 10:00 #98937 by timmert
Replied by timmert on topic Emco 240 Tool Turret
Working :)

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

Time to create page: 0.079 seconds
Powered by Kunena Forum