Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
drl2gcode
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
drl2gcode
Commits
3eb0816e
Commit
3eb0816e
authored
May 09, 2018
by
Franco (nextime) Lanza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Just a little bit better now
parent
45b72f54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
drl2gcode.py
drl2gcode.py
+5
-3
No files found.
drl2gcode.py
View file @
3eb0816e
...
...
@@ -42,6 +42,11 @@ M2
tools
=
{}
tsel
=
"1"
newl3
=
""
.
join
([
"G1 F"
,
str
(
Z_MOVE_SPEED
),
" Z0.2"
])
newl4
=
""
.
join
([
"G1 F"
,
str
(
DRILL_MOVE_SPEED
),
" Z-"
,
str
(
DRILL_DEPT
)])
newl5
=
""
.
join
([
"G1 F"
,
str
(
Z_MOVE_SPEED
),
" Z"
,
str
(
RUNNING_HEIGHT
)])
with
open
(
sys
.
argv
[
1
])
as
fp
:
line
=
fp
.
readline
()
while
line
:
...
...
@@ -65,9 +70,6 @@ with open(sys.argv[1]) as fp:
if
tools
[
tsel
][
"output"
]
.
endswith
(
newl1
+
"
\n
"
):
newl1
=
''
newl2
=
""
.
join
([
"G1 F"
,
str
(
XY_MOVE_SPEED
),
" "
,
line
.
split
(
"Y"
)[
0
],
" Y"
,
line
.
split
(
"Y"
)[
1
]
.
strip
(
"
\r\n
"
)])
newl3
=
""
.
join
([
"G1 F"
,
str
(
Z_MOVE_SPEED
),
" Z0.2"
])
newl4
=
""
.
join
([
"G1 F"
,
str
(
DRILL_MOVE_SPEED
),
" Z-"
,
str
(
DRILL_DEPT
)])
newl5
=
""
.
join
([
"G1 F"
,
str
(
Z_MOVE_SPEED
),
" Z"
,
str
(
RUNNING_HEIGHT
)])
tools
[
tsel
][
"output"
]
+=
"
\n
"
.
join
([
newl1
,
newl2
,
newl3
,
newl4
,
newl5
,
''
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment