You seem to be using a combination of "User Variables" (V#'s) and "Local Variables" (PD,OD etc )
User variables ( V#= in lathes, VC#= in mills ) are stored to a designated area, switch the m/c OFF and ON, they are still there. You can also look at the actual value at any time
Local Variables are stored in ROM, now turn the m/c OFF and ON, and they're gone
Try putting them into User Variables, you can step thru a program, and double check your calcs to those recorded
Code:... IF [V28 EQ 0] N10 V1=DFIX[V28/3.1416]+V29+V30 V2=OD V28=0 V29=0 V30=0 GOTO N20 N10 V2= [V4 -0.2] V3=V1 N20 ...