Hi all,
Can someone please tell me where to modify this post i am using so as when it has picked up the tool it then activates the spindle speed from the powermill generated nc programme spindle speed.
Thank you.

define block tool change first
N ; " G54"
N ; ";*** MARO: " ; TD ToolRadius[ToolNum] ; TR TipRadius[ToolNum]
N ; T
N ; M1 6
N ; G3 17
N ; G1 0 ; G5 90 ; X FromX ; Y FromY ; F
N ; G1 0 ; G5 90 ; Z FromZ ; F
end define


define block tool change
N ; " ;*** MARO: " ; TD ToolRadius[ToolNum] ; TR TipRadius[ToolNum]
N ; T
N ; M1 6
end define


define block move rapid
N ; G1 ; G2 ; G3 ; G4 ; G5 ; G6 ; X ; Y ; Z ; S ; M1 ; M2 ; F
end define

define block tape end
N ; M1 30
"?"
"0000"
end define
end