Auto tool changer information

More
27 Jun 2011 12:26 #10897 by btvpimill
Now that would be perfect! Not sure about getting the lastest development version, think I'll wait for the release.

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

More
29 Jun 2011 04:56 #10941 by eszyman
btvpimill,
The correct code needs to be written as a number ie: o001
And you need at least one g0 in there:
....And I think it wants to be in g90 mode to work correctly...

o001.ngc (saved where the ini file points as the prefix)
o001 sub
g90
g53g0z0w0
g53g0y0v0
g53g0a172.3
g55
o001 endsub

call as (from MDI for instance):
o001 call

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

More
01 Jul 2011 08:49 #11038 by andypugh
eszyman wrote:

btvpimill,
The correct code needs to be written as a number ie: o001
...
o001 call


I was just randomly re-reading this, and noticed that this is not the whole story.

You can call a file called 101.ngc containing a sub declared with o101 SUB using o101 call, as you describe.
But you can also call a file called fred.ngc containing a sub defined by o<fred> SUB with the G-code line o<fred> CALL.

ie, the sub name must match the name of the file it is in, and the sub name can be either numeric or alphanumeric, as long as the alphanumeric name is enclosed in <chevrons>.

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

More
04 Jul 2011 11:26 #11133 by eszyman
Ok, I will have to try this again, it seemed that when I tried it, there was some error displayed... I will try again later with maybe more consistancy =)

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

More
04 Jul 2011 14:13 #11140 by btvpimill
Is there a way to not have the coordinate revert back to g54 when the program ends? Because now the tool change sub's work nicely, but say G56 is active, then program ends. G54 becomes active and if I don't remember to switch - ooh-la-la!!

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

More
04 Jul 2011 15:21 #11143 by andypugh
Is there a G54 somewhere in the code? Calling a subroutine shouldn't switch the coordinate system unless explicitly told to do so.

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

More
11 Jul 2011 14:06 #11404 by btvpimill
This turned out to be a case of ESO (equipment smarter then operator)

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

Time to create page: 0.084 seconds
Powered by Kunena Forum