aboutsummaryrefslogtreecommitdiffstats
path: root/schematics/pcb_softkeys.py
blob: d8f95e2ed5872d9d15d32a1c0d6f92fc1a4a969c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env python
"""
#
# CNC-control
# Softkeys PCB drilling PYNC program
#
# Copyright (C) 2011 Michael Buesch <mb@bues.ch>
#
"""

from pync import *


DEPTH	= 0.3
FEED	= 80


G0(Z=5)
S(15000) -M3

def d(X, Y):
	G0(X=X, Y=Y, Z=5)
	G0(Z=0.5)
	G1(Z=-DEPTH) -F(FEED)
	G0(Z=5)

d(1.38, 10.06)
d(3.67, 10.06)
d(8.75, 10.06)
d(13.83, 7.52)
d(19.94, 8.83)
d(27.56, 11.12)
d(27.56, 8.83)
d(31.38, 10.06)
d(33.67, 7.52)
d(38.75, 10.06)
d(43.83, 10.06)
d(46.12, 2.44)
d(43.83, 2.44)
d(38.75, 2.44)
d(33.67, 4.98)
d(27.56, 3.75)
d(25.02, -1.33)
d(22.48, -1.33)
d(19.94, -3.62)
d(19.94, 3.75)
d(16.12, 2.44)
d(13.83, 4.98)
d(8.75, 2.44)
d(3.67, 2.44)

bues.ch cgit interface