-
Notifications
You must be signed in to change notification settings - Fork 1
/
Platen.rb
executable file
·63 lines (60 loc) · 1.12 KB
/
Platen.rb
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
59
60
61
62
63
require './Bot.rb'
class Plate < Bot
MARJ = 0.0 #0.25
@@numero = 0
def initialize(starx, stary)
@width = 28.5
@heigh = 11.25
@heighchub = @heigh/2
@depth = 0.55
@@lipp = 0.0
@zstep = 4
super(starx, stary)
end
def boxo()
@curxo += MARJ
dronk = 1
box(-0.2,-@heighchub,@width,@heighchub,0,-0.09,1)
#box(-0.25,-@heighchub,-0.125,@heighchub,0,-$bitwidth,1)
printf "G0 Z0.5\n"
printf "G0 X0 Y0 \n"
printf("m 0 \n")
@@pentrate = 10
i=-5
drillus(0,i,0,-1.6)
drillus(10,i,0,-1.6)
drillus(12,i,0,-1.6)
drillus(14,i,0,-1.6)
drillus(16,i,0,-1.6)
drillus(18,i,0,-1.6)
drillus(20,i,0,-1.6)
drillus(22,i,0,-1.6)
drillus(24,i,0,-1.6)
drillus(26,i,0,-1.6)
drillus(28,i,0,-1.6)
i=5
drillus(0,i,0,-1.6)
drillus(10,i,0,-1.6)
drillus(12,i,0,-1.6)
drillus(14,i,0,-1.6)
drillus(16,i,0,-1.6)
drillus(18,i,0,-1.6)
drillus(20,i,0,-1.6)
drillus(22,i,0,-1.6)
drillus(24,i,0,-1.6)
drillus(26,i,0,-1.6)
drillus(28,i,0,-1.6)
printf "G0 Z0.5\n"
printf "G0 X0 Y0 \n"
end
def ducatop
end
def ducabot
end
def numerize
end
def duxo
return @curxo
end
end
stutterat(Plate)