***                                                                    ***
***                           VARIABLES                                ***
***                                                                    ***

NOTE: All vars with "Dia" indicate a diameter amount is held in the
      variable. These values are divided by 2 before they are applied
      to the geometric vertical axes.


Lathe -         tells turbo post the turning cycles or values apply (i.e.
                Zstart and Xstart are what mill users think of as the
                horizontal and vertical axes. Map the Z and X output to
                X and Y for plotting purposes.  When points are picked
                map X and Y into Z and X.  When point cycle questions
                are asked, ask Z and X rather than X and Y.  Apply 
                standard lathe tooling shifts (gauge, tnose , etc. shifts)).
Diamult -       set to 0 - output vertical axes as usual
                       1 - output vertical axes as diameter (multiply by 2)
Plane -         map XYZ geometric axes to :
                set to 1 XYZ  (standard mill; same for 0)
                       2 ZXY  (standard lathe)
                       3 YZX
                       4 XZY
                       5 YXZ
                       6 ZYX

Dia_allow -     roughing cycles - diameter finish allowance
Len_allow -     roughing cycles - z finish allowance

Dia_stock -     profile cycle - total stock in diameter (ques only)
Len_stock -     profile cycle - total stock in z        (ques only)
Dia_shift -     profile cycle - gets added to all x values (after div 2)
Len_shift -     profile cycle - gets added to all z values

Dia_tshift -    gauge distance shifting for diameter
Len_tshift -    gauge distance shifting for z
Tshift_off -    output dia & len (x&z) without gauge shift

Shift_off -     set to 1 - don't shift geometry for tnose_shift, Dia_shift,
                or Len_shift. Set back to 0 after one block.

Tnose_rad -     tool nose radius (ques only)
Tnose_shift -   tells turbo amount to shift for the Tnose_rad
Tnose_quad -    tool nose radius quadrant: (tool nose orientation)

                                          |   |
            \    |    /                   | 5 |
             \   |   /                     \ /
           2  \  |  /  1                    @
         ______@ | @______         ----\    |    /---- 
        ---------+---------          6  @---+---@  8 
         ------@ | @------         ----/    |    \---- 
              /  |  \                       @
          3  /   |   \  4                  / \
            /    |    \                   | 7 |
                 |                        |   |


Startpt -       set to 1 if "Startpt" is picked @ tool pos before cut ques
Endpt -	        set to 1 if "Endpt" is picked @ tool pos after cut ques

Upath -         the undercut path to cut as numbered from right to left

Uncut_angle -   determines the angle of the undercut departure.  180 is
                same as "old" lathe undercut. The angle represents the
                line from the beginning of the undercut to the contour
                intersection point (i.e. the end of the undercut).

Uncut_delta -   delta used to determine an undercut within delta.

Arcl_delta -    delta used to determine an arc intersection within
                the CUTUPATH & CUTFPATH cycles.

Cut_type -      Used by roughing cycle to choose auto or fixed cutting.

Depthcode-      Used by roughing cycle 0=rapid to depth 1=feed.

Speedcode -     spindle speed for ccs (Constant surface speed).

Speedmax -      spindle speed for direct rpm (drpm), maximum speed for ccs.

Ipr -           Indicates ipr feed for time calculations.

Ccs -           Indicates constant surface programming, mainly used for
                time calculations.

***                                                                    ***
***                           COMMANDS                                 ***
***                                                                    ***

CUTFPATH: -     cut the path selected by Path but don't cut any part of
                undercuts not reachable according to Uncut_angle.

UNDERPATH: -    cut the undercut path selected by Upath on the path
                selected by Path.  The undercut is determined by 
                Uncut_angle, the number of passes is set with Npasses
                and the Depth_of_cut sets the depth per pass.

         {NOTE CUTFPATH: and UNDERCUT: are somewhat opposites}

IMPLIED_PATH: - cut the path bound by Xstart and Zstart. (i.e. only do those
                geometric elements greater than xstart and less than zstart.

IMPLIED_FPATH:- first do bounding as in IMPLIED_PATH above, second avoid
                undercuts as in CUTFPATH above.

ROUGH: -        rough out path defined by Path using Rough_angle as angle of cut
                

