* psidedn4.m
* 14" infill panel plane
* Jim Yehle - Salt Lake City - Dec 20, 2003
* dovetails at bottom edge of side
* Stock thickness set in Sub 4; mates w/ 3/16" sole
* Held in vise, bottom edge up, front at left
* Part zero is: x=0 at front,
*  y=0 at edge toward operator
*  z=0 at top of unshaved portion,
*  z=-.03 at bottom of cuts made by psidedn3.m
* Shave unpeened section of tails
* 3/8" to 3/4" 45 degree chamfer mill
* 1800 rpm 50% feed stays cool (w/o lube mist)
Dim Abs
Rapid      Z 0.1000
Rapid      X 0 Y -0.26
Line       Z -0.03
Call 1
* Depth is .03 of the total .05 for peening
Rapid      Z 0.1
EndMain
*--------------------------------------------------
* Cut one pass across stock width.
* (A change here will affect all cuts in program)
Sub 4
*1/8 stock: Line       Y 0.125 Feed 4
*5/32 stock: Line       Y 0.1563 Feed 4
*4 ganged 1/8": 
Line       Y 0.51 Feed 4
EndSub
*--------------------------------------------------
* Sub 1 - shave all tails at current Z depth
Sub 1
* Two 1.125 tails before iron (X @ 1st tail's back)
Rapid      X 1.375
Call 2
Rapid      X 3.625
Call 2
* Five 1" tails behind iron (ditto)
Rapid      X 5.75
Call 3
Rapid      X 7.75
Call 3
Rapid      X 9.75
Call 3
Rapid      X 11.75
Call 3
Rapid      X 13.75
Call 3
EndSub
*--------------------------------------------------
* Trim one 1.125" wide tail
* Entry: Y=-.26
*  X=center of bottom of right wall of tail
* Exit: Y=-.26
Sub 2
* Move from tool centerline to its outer edge
* Leave .125 wide peening stock .125 wide
* angling 45 deg to shaved-off unpeened tail center
* i.e. (3/8 chamfer) .1875+ .125 + .03 = .3425
** i.e. (1/2" mill) .25 + .125 + .03 = .405
Dim Incr
Rapid      X -0.3425
*end mill: Rapid      X -0.405
Dim Abs
Line       Y 0 Feed 2
Call 4
*Other side: 1.125 - .3425 = .7825
**end mill: Other side: 1.125 - .405 = .72
*Current X is entry-X - .405 => left .7825-.3425=.44
**end mill:  => left .72-.405=.315
Dim Incr
Line       X -0.44
*end mill: Line       X -0.315
Dim Abs
Line       Y -0.01
Line       Y -0.26 Feed 30
EndSub
*--------------------------------------------------
* Same as Sub 4, but for one 1" wide tail
Sub 3
Dim Incr
Rapid      X -0.3425
*end mill: Rapid      X -0.405
Dim Abs
Line       Y 0 Feed 2
Call 4
*Other side: 1 - .3425 = .6575
*end mill: * Other side: 1 - .405 = .595
*Current X is entry-X - .405 => left .6575-.3425=.315
*end mill:  => left .595-.405=.19
Dim Incr
Line       X -0.315
*end mill: Line       X -0.19
Dim Abs
Line       Y -0.01
Line       Y -0.26 Feed 30
EndSub
