-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathbundled_configs.toml
More file actions
151 lines (130 loc) · 5.12 KB
/
bundled_configs.toml
File metadata and controls
151 lines (130 loc) · 5.12 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
[gwrite.gcode]
document_start = "G20\nG17\nG90\n"
segment_first = "G00 X{x:.4f} Y{y:.4f}\n"
segment = "G01 X{x:.4f} Y{y:.4f}\n"
document_end = "M2\n"
unit = "in"
vertical_flip = true
info= "This gcode profile is correctly inverted across the y-axis"
[gwrite.gcodemm]
document_start = "G21\nG17\nG90\n"
segment_first = "G00 X{x:.4f} Y{y:.4f}\n"
segment = "G01 X{x:.4f} Y{y:.4f}\n"
document_end = "M2\n"
unit = "mm"
vertical_flip = true
info= "This gcode profile is correctly inverted across the y-axis"
[gwrite.gcode_relative]
document_start = "G20\nG17\nG91\n"
segment_first = "G00 X{dx:.4f} Y{dy:.4f}\n"
segment = "G01 X{dx:.4f} Y{dy:.4f}\n"
document_end = "M2\n"
unit = "in"
vertical_flip = true
info= "This gcode profile is correctly inverted across the y-axis"
[gwrite.csv]
document_start = "#Operation, X-value, Y-value\n"
segment_first = "Move, {x:f}, {y:f}\n"
segment = "Line-to, {x:f}, {y:f}\n"
segment_last = "Stop, {x:f}, {y:f}\n"
[gwrite.json]
document_start = "{{"
document_end = "}}\n"
line_join = ","
layer_join = ","
layer_start = "\n\t\"Layer\": {{"
layer_end = "\t}}\n"
line_start = "\n\t\t\"Line{index:d}\": [\n"
line_end = "\n\t\t]"
segment = "\t\t{{\n\t\t\t\"X\": {ix:d},\n\t\t\t\"Y\": {iy:d}\n\t\t}},\n"
segment_last = "\t\t{{\n\t\t\t\"X\": {ix:d},\n\t\t\t\"Y\": {iy:d}\n\t\t}}"
[gwrite.isvg]
document_start = """<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xlink="http://www.w3.org/1999/xlink">
"""
document_end = "</svg>"
layer_start = '<g fill="none" stroke="black">'
line_start = '<path d="M '
segment_first = "{ix:d} {iy:d} l"
segment = "{idx:d} {idy:d} "
line_end = '"/>'
layer_end = "</g>"
[gwrite.HPGL-R]
document_start = "IN;"
layer_start = "SP{layer_id:d};PA;PU0,0;PR;"
segment_first = "PU{dx:.0f},{dy:.0f};PD"
segment = "{dx:.0f},{dy:.0f},"
segment_last ="{dx:.0f},{dy:.0f};"
document_end = ";SP0;IN\n"
scale_x = 40
scale_y = 40
unit = "mm"
vertical_flip = true
info = """Output HPGL relative co-ordinates NB. This will not take care of page margins etc within the machine.
Ensure that the svg layout is landscape.
Pen numbers will be taken from layer numbers"""
[gwrite.BBC-GL-R]
document_start = ""
layer_start = "F{layer_id:d}\nC0,0;HK\n"
segment_first = "C{dx:.0f},{dy:.0f};HJ\n"
segment = "C{dx:.0f},{dy:.0f};IJ\n"
document_end = "F0\n"
scale_x = 10
scale_y = 10
unit = "mm"
vertical_flip = true
info = """Will output relative coordinates.
Make sure your input layout matches the paper loaded.
i.e. landscape svg when landscape paper in the machine.
Pen numbers will be taken from layer numbers"""
[gwrite.BBC-GL]
document_start = ""
layer_start = "F{layer_id:d}\n"
segment_first = "C{x:.0f},{y:.0f};HK\n"
segment = "C{x:.0f},{y:.0f};IK\n"
document_end = "F0\n"
scale_x = 10
scale_y = 10
unit = "mm"
vertical_flip = true
info = """Make sure your input layout matches the paper loaded.
i.e. landscape svg when landscape paper in the machine
Pen numbers will be taken from layer numbers"""
[gwrite.ninja]
document_start = "G21\nG17\nG90\nG28\n"
segment_first = "G1 Z3 F10000\nG0 X{x:.4f} Y{y:.4f} F15000\nG1 Z6 F6000\n"
segment = "G1 X{x:.4f} Y{y:.4f} F10000\n"
document_end = "\nG1 Z0 F1000\nG1 X0 Y0 F1000\nM2\n"
unit = "mm"
[gwrite.step_motor]
document_start = "$H (unlock by homing)\nG21 (unit is mm)\nG17 (work in XY plane)\n"
segment_first = "G91 Z-10 (pen up)\nG90 X{x:.4f} Y{y:.4f} (travel)\nG91 Z+13 (pen down)\nG90 (absolute position)\n"
segment = "G01 X{x:.4f} Y{y:.4f} (draw)\n"
document_end = "G91 Z-10 (pen up)\nG90 X0 Y0 (travel)\nM2 (end)\n"
unit = "mm"
[gwrite.step_motor_relative]
document_start = "$H (unlock by homing)\nG21 (unit is mm)\nG17 (work in XY plane)\nG91 (relative position)\n"
segment_first = "G01 Z-10 (pen up)\nG00 X{dx:.4f} Y{dy:.4f} (travel)\nG01 Z+13 (pen down)\n"
segment = "G01 X{dx:.4f} Y{dy:.4f} Z+0.01 (draw with minimum pressure)\n"
document_end = "G01 Z-10 (pen up)\nG90 X0 Y0 (travel to origin)\nM2 (end)\n"
unit = "mm"
[gwrite.idraw_v2]
# a set of configuration parameters for the idraw v2.0 (note that the idraw v1 does not use gcode)
# these have been derived by monitoring how the inkscape idraw software communicates with the
# plotter by dumping the inkscape extension plotter commands to a debug file
# note: the assumption is that we start in the top right corner, like the inkscape extension
unit = "mm"
vertical_flip = true
# set to mm, remember where we start, then
# ensure the pen is lifted and set the pen up travel speed
document_start = "G21\nG92 X0 Y0\nG1G90 Z0.5F20000\nG1 F8000\n"
# travel to the start of a segment using negative relative coords then
# lower a pen to absolute position z=5 and configure the pen down speed to 2000
segment_first = "G1G91X{_dx:.3f}Y{_dy:.3f}\nG1G90 Z5.0F5000\nG1 F2000\n"
# draw to negative relative position
segment = "G1G91X{_dx:.3f}Y{_dy:.3f}\n"
# draw to negative relative position then
# lift a pen to absolute position z=0.5 and configure the pen up speed to 8000
segment_last = "G1G91X{_dx:.3f}Y{_dy:.3f}\nG1G90 Z0.5F20000\nG1 F8000\n"
# at the end of the document, move to where we started and then sleep ($SLP) to de-enegerise the steppers
document_end = "G90G0 X0 Y0\n$SLP\n"