Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
laser-gcode-exporter-inkscape-plugin
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
laser-gcode-exporter-inkscape-plugin
Commits
00eff7af
Commit
00eff7af
authored
Mar 19, 2015
by
leonmuller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug with raster feedrates
parent
6d299dcf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
turnkeylaser.py
turnkeylaser.py
+5
-1
No files found.
turnkeylaser.py
View file @
00eff7af
...
@@ -604,8 +604,12 @@ class Gcode_tools(inkex.Effect):
...
@@ -604,8 +604,12 @@ class Gcode_tools(inkex.Effect):
#R = 1 / dots per mm
#R = 1 / dots per mm
#90dpi = 1 / (90 / 25.4)
#90dpi = 1 / (90 / 25.4)
gcode
+=
'
\n\n
;Beginning of Raster Image '
+
str
(
curve
[
'id'
])
+
' pixel size: '
+
str
(
curve
[
'width'
])
+
'x'
+
str
(
curve
[
'height'
])
+
'
\n
'
gcode
+=
'
\n\n
;Beginning of Raster Image '
+
str
(
curve
[
'id'
])
+
' pixel size: '
+
str
(
curve
[
'width'
])
+
'x'
+
str
(
curve
[
'height'
])
+
'
\n
'
gcode
+=
'M649 S'
+
str
(
laserPower
)
+
' B2 D0 R0.2822
'
+
cutFeed
+
'
\n
'
gcode
+=
'M649 S'
+
str
(
laserPower
)
+
' B2 D0 R0.2822
\n
'
gcode
+=
'G28
\n
'
gcode
+=
'G28
\n
'
#Do not remove these two lines, they're important. Will not raster correctly if feedrate is not set prior.
#Move fast to point, cut at correct speed.
gcode
+=
'G0 X'
+
str
(
curve
[
'x'
])
+
' Y'
+
str
(
curve
[
'y'
])
+
' '
+
self
.
options
.
Mfeed
+
'
\n
'
gcode
+=
'G0 X'
+
str
(
curve
[
'x'
])
+
' Y'
+
str
(
curve
[
'y'
])
+
' '
+
cutFeed
+
'
\n
'
gcode
+=
'G0 X'
+
str
(
curve
[
'x'
])
+
' Y'
+
str
(
curve
[
'y'
])
+
' '
+
cutFeed
+
'
\n
'
#def get_chunks(arr, chunk_size = 51):
#def get_chunks(arr, chunk_size = 51):
...
...
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