Hi All

Has anyone got any suggestions ?

We currently use a set of logic so that we can increase the speed of turning and boring operations as we progress along a bar length (we can spin a short bar faster than a long bar).

We have used the code below successfully on our Mori Seiki SL25 that has a Fanuc 10T controller. When we tried the same code on another SL25 but with a Fanuc 10TF controller it would not recognise the code….eg it converts the IF command to I F (I space F).
The code we use is as below.

(#500 = Part counter)
(#501 = Set speed)

N101 (Decide which speed to use)
IF[#500LT15]GOTO102 (Slow speed)
IF[#500LT20]GOTO103 (Low speed)
IF[#500LT30]GOTO104 (Medium speed)
IF[#500LT71]GOTO105 (High speed)
(If count is equal to 71 then bar is finished)
#500=0 (Reset counter)
GOTO101

N102 (Set Slow speed)
#501=1650
GOTO107

N103 (Set Low speed)
#501=2000
GOTO107

N104 (Set Medium speed)
#501=2250
GOTO107

N105 (Set High speed)
#501=2500
GOTO107

N107 (Increment counter and start cutting program)
#500=#500+1

(Cutting program)
G97S#501M03
G0T0202M08


M03
G97G0S#501T0202M08

PS Please be gentle with me I am not a CNC expert this code was adapted after being kindly submitted by this forum

Thanks Guys
Mark