﻿# mill X axis plate
# =================
# This is used to create xx.txt by macro expansion
# and that feeds into LibreCAD to do the drawing
# Start LibreCAD  File | New
# Click the 'three lines' icon in the Command: window  Load command file

# values copied from millXplate.scad
# width
# height
# thickness
#
#
#
#
#
# 		// bolt position
# 		//		separation
# 		// M6
# 	// pully centres for 300mm belt
# 		// motor offset below screw
#  motorX=screwX+(sqrt(beltC*beltC-motorO*motorO))
#
#
# 		// M3
# 	// bolt separation

# end of copy

# outline
# =======
line;0,35;0,70;220,70;220,0;110,0;110,35;k;
line;110,35;77.5,35;k
arc;77.5,35;60,53.5;42.5,35;k;
line;42.5,35;0,35;k;
za;

# top of motor
# ============
# motor X
# motor Y
# length of slots
point;155.13,26;
# radius of slot
arc;@0,-12;@-12,12;@12,12;
line;@0,0;@5,0;
arc;@0,0;@12,-12;@-12,-12;
line;@0,0;@-5,0;k

# XY offsets of bolt holes
# bolt radius

point;139.83,10.7;
arc;@0,-1.5;@-1.5,1.5;@1.5,1.5;
line;@0,0;@5,0;
arc;@0,0;@1.5,-1.5;@-1.5,-1.5;
line;@0,0;@-5,0;k

point;170.43,10.7;
arc;@0,-1.5;@-1.5,1.5;@1.5,1.5;
line;@0,0;@5,0;
arc;@0,0;@1.5,-1.5;@-1.5,-1.5;
line;@0,0;@-5,0;k

point;170.43,41.3;
arc;@0,-1.5;@-1.5,1.5;@1.5,1.5;
line;@0,0;@5,0;
arc;@0,0;@1.5,-1.5;@-1.5,-1.5;
line;@0,0;@-5,0;k;

point;139.83,41.3;
arc;@0,-1.5;@-1.5,1.5;@1.5,1.5;
line;@0,0;@5,0;
arc;@0,0;@1.5,-1.5;@-1.5,-1.5;
line;@0,0;@-5,0;k;

# bolts
# =====
ci;17,45;@0,3;k;
ci;103,45;@0,3;k;

# cover bolt
# ==========
ci;130,30;@0,2.5;k;

# gland cavity
# ============
line;150,50.5;@0,15;@25,0;@0,-15;@-25,0;k;

# gland screws
# ============
ci;185,65;@0,3.4/2;k
ci;185,51;@0,3.4/2;k
ci;145,65;@0,3.4/2;k
ci;145,51;@0,3.4/2;k

# grommet hole
# ============
ci;125,55;@0,3.25;k;

# wiring block holes
# ==================
ci;195,13;@0,3.4/2;k
ci;195,43;@0,3.4/2;k

#finished

