#101=0 (Z origine shift)
#102=5.0 (shift amount)
#103=5 (number of repeat wanted)
#104=0 (repeat count)
WHILE [#104 LT #103] DO1
G52 Z#101
YOUR G CODE
#101=#101+#102
#104=#104+1
END1
M30
Hi everyone new member here. Many years experiance with cnc's and machining but not much using variables. What I need to do should be simple.
Yasnac i80 control on a kitamura my1. I would like run a simple g code program then drop the work coordinate z offset down by a specifiable amount and repeat by x times. After x repeats I will replace the stock and repete the process. I'm going to machine a small part with the last tool being a small slitting saw to part off the part then drop down and do it again.
Ideas?
Thanks
Matt
#101=0 (Z origine shift)
#102=5.0 (shift amount)
#103=5 (number of repeat wanted)
#104=0 (repeat count)
WHILE [#104 LT #103] DO1
G52 Z#101
YOUR G CODE
#101=#101+#102
#104=#104+1
END1
M30
From Fanuc manual:
"Command a move command immediately after the G52 block in the absolute mode."