Skip to content

Commit da4eb4a

Browse files
authored
Merge pull request #21 from ithinkido/BBC-GL
Relative moves
2 parents e98e26d + 80a1177 commit da4eb4a

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

vpype_gcode/bundled_configs.toml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,33 @@ segment = "{idx:d} {idy:d} "
5656
line_end = '"/>'
5757
layer_end = "</g>"
5858

59+
[gwrite.HPGL-R]
60+
document_start = "IN;"
61+
layer_start = "SP{layer_id:d};PA;PU0,0;PR;"
62+
segment_first = "PU{dx:.0f},{dy:.0f};PD"
63+
segment = "{dx:.0f},{dy:.0f},"
64+
segment_last ="{dx:.0f},{dy:.0f};"
65+
document_end = ";SP0;IN\n"
66+
scale_x = 40
67+
scale_y = 40
68+
unit = "mm"
69+
invert_y = "True"
70+
info = "Output HPGL relative co-ordinates NB. This will not take care of page margins etc within the machine.
71+
\n Ensure that the svg layout is landscape. \n Pen numbers will be taken from layer numbers"
72+
73+
[gwrite.BBC-GL-R]
74+
document_start = ""
75+
layer_start = "F{layer_id:d}\nC0,0;HK\n"
76+
segment_first = "C{dx:.0f},{dy:.0f};HJ\n"
77+
segment = "C{dx:.0f},{dy:.0f};IJ\n"
78+
document_end = "F0\n"
79+
scale_x = 10
80+
scale_y = 10
81+
unit = "mm"
82+
invert_y = "True"
83+
info = "Will output relative coordinates\nMake sure your input layout matches the paper loaded \n
84+
i.e. landscape svg when landscape paper in the machine \n Pen numbers will be taken from layer numbers"
85+
5986
[gwrite.BBC-GL]
6087
document_start = ""
6188
layer_start = "F{layer_id:d}\n"
@@ -66,7 +93,8 @@ scale_x = 10
6693
scale_y = 10
6794
unit = "mm"
6895
invert_y = "True"
69-
info = "Make sure your input layout matches the paper loaded \ni.e. landscape svg when landscape paper in the machine \n Pen numbers will be taken from layer numbers"
96+
info = "Make sure your input layout matches the paper loaded \n
97+
i.e. landscape svg when landscape paper in the machine \n Pen numbers will be taken from layer numbers"
7098

7199
[gwrite.ninja]
72100
document_start = "G21\nG17\nG90\nG28\n"

0 commit comments

Comments
 (0)