Hi Jon.. yeah there is.. Fanuc 18 is a great controller with some powerfull logic at hand. Use the IF and GOTO to do your calcs. The system variables and user variables used in conjunction with each other can use a simple arguement to sort this out. Dont forget that the arguement is case sensitive as to order of operations.ie. BEDMAS.. brackets,exponents,division,multiplication,etc... I guess as a novice ,Syntax will give you the most trouble. Pull out the machine programming manual and look at the custom macro section. If you want to run a G65Pxxxx Ax Bx etc.. you'd best get out a pencil and start finking... lol
General Machinist / CNC contract Instructor