On the milling machines I've used with multiple spindles (No lathe experience). 
 I have seen mostly M codes uses to specify which spindle the following spindle 
commands are for.  But one manufacturer who's machines we run using Fanuc 
controls does it with T codes.  Their T codes come in 2 flavors a T followed by 
4 digits or a T followed by 3.  The Three digit codes are used for activating a 
spindle head, air cylinders move the head down in the milling position and 
allow the spindle to be ran.  The 4 digit T codes are used for tool changes, 
with the first digit designating which spindle/tool changer is used.  When a 
spindle is inactive, it is raised up out of the way, turned off, and does not 
respond to any spindle commands (other than tool changes which are spindle 
specific).

I'm not sure how much it really matters how you get it done, just so it works.  
There is no industry consensus on how it should be done, and every machine 
builder does it their own way with different codes.

----- Original Message -----
From: "andy pugh" <[email protected]>
To: "Enhanced Machine Controller (EMC)" <[email protected]>
Sent: Sunday, July 9, 2017 3:54:59 PM
Subject: Re: [Emc-users] G-code to support multiple spindles.

On 9 July 2017 at 19:58, Roland Jollivet <[email protected]> wrote:
> Since almost every character is taken, and this does become a deviation,
> why not use the comments area?
>
> G0 X1 Y1 Z0
> S100 M3 (*spindle2 )
> S400 M3 (*spindle3 )

That's an interesting idea, and one I think I want to ponder further on.

An option missing from my original email was to us "N"

Currently N is a line number, only valid at the start of a line, and
is ignored (apart from by Touchy GUI, which uses it to make
run-from-line more touch-friendly)
So, N101 M3 S300 N3 would still be fairly unambiguous and the parser
should be able to make the dstinction.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to