﻿# mill Z axis top plate
# =====================
# This is used to create millx.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

# outline
# =======
# width
# height
line;0,0;175,0;175,125;0,125;0,0;k;
za;

# top of motor
# ============
# motor X
# motor Y
# length of slots
point;32.5,35;
# radius of slot
arc;@0,-19.5;@-19.5,19.5;@19.5,19.5;
line;@0,0;@5,0;
arc;@0,0;@19.5,-19.5;@-19.5,-19.5;
line;@0,0;@-5,0;k

# XY offsets of bolt holes
# bolt radius

point;8.8,11.3;
arc;@0,-2.5;@-2.5,2.5;@2.5,2.5;
line;@0,0;@5,0;
arc;@0,0;@2.5,-2.5;@-2.5,-2.5;
line;@0,0;@-5,0;k

point;56.2,11.3;
arc;@0,-2.5;@-2.5,2.5;@2.5,2.5;
line;@0,0;@5,0;
arc;@0,0;@2.5,-2.5;@-2.5,-2.5;
line;@0,0;@-5,0;k

point;56.2,58.7;
arc;@0,-2.5;@-2.5,2.5;@2.5,2.5;
line;@0,0;@5,0;
arc;@0,0;@2.5,-2.5;@-2.5,-2.5;
line;@0,0;@-5,0;k

point;8.8,58.7;
arc;@0,-2.5;@-2.5,2.5;@2.5,2.5;
line;@0,0;@5,0;
arc;@0,0;@2.5,-2.5;@-2.5,-2.5;
line;@0,0;@-5,0;k

# top of screw
# ============
# belt between centres
# Y displacement of centres
# X displacement of centre
# spacing of 'front' bolts
# spacing of 'rear' bolts
k;
# 40mm diam main hole
ci;119.45,85;@0,20;k;
# displace 'rear' holes 23.5mm
ci;@-31.9,-23.5;@0,4;k;
ci;@63.8,0;@0,4;k;
# front holes 50.5mm from rear
ci;@7.1,50.5;@0,4;k;
ci;@-78,0;@0,4;k;

# cover bolt
# ==========
ci;100,35;@0,5/2;k;

# cable gland
# ===========
ci;157,18;@0,20/2;k;

# cable grommet
# ===========
ci;80,30;@0,6.5/2;k;

# cable clip screws
# =================
ci;124,30+15;@0,2;k;
ci;124,30-15;@0,2;k;

#finished


