aboutsummaryrefslogtreecommitdiffstats
path: root/schematics/pcb_jogkeys.py
blob: ee9e97d3af3bfc61c9463a54a6796c6e9f0a8340 (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
52
53
54
55
56
57
58
#!/usr/bin/env python
"""
#
# CNC-control
# Jogkeys 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(22.48, 8.83)
d(19.94, 13.88)
d(19.94, 16.17)
d(19.94, 21.25)
d(22.48, 26.33)
d(25.02, 26.33)
d(27.56, 28.62)
d(27.56, 21.25)
d(27.56, 16.17)
d(27.56, 11.12)
d(25.02, 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(27.56, -1.33)
d(19.94, -3.62)
d(19.94, -1.33)
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