I have searched this forum and others but can't find an answer to this one.
A program that I created to re-machine existing parts, needs a multi-pass facing routine which was simple enough to do with a subroutine.
The trouble is a need to define the number of passes ... some parts may need two passes, some may need (say) five passes.
The program works out how many passes it needs, but the problem I have is transferring that number to the subs L21## number.
I have been thru the Fadal manuals, searched forums, tried multiple trial/error combinations (like L21+V20, L21+R1, L21(R1) etc etc) but I can't get it to work .... or find an answer.
The subs ok, if I enter L2104 it will do 4 passes so its good.
Its no doubt very simple .... can anyone help me with this please ??