-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remap-subroutines/fdm: added M207, M221, M701, M702 and M710
- Loading branch information
1 parent
d31205c
commit d3bca6a
Showing
6 changed files
with
108 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
o<m207> sub | ||
#500=47 ; retract length index | ||
#501=48 ; retract velocity index | ||
M68 E#500 Q#<P> | ||
M68 E#501 Q#<Q> | ||
o<m207> endsub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
o<m221> sub | ||
#500=49 ; extrude scale index | ||
M68 E#500 Q#<P> | ||
o<m221> endsub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
o<m701> sub | ||
#500=42; line width index | ||
#501=1; synchronized | ||
#502=#500 | ||
o100 if [EXISTS[#<i>]] | ||
o110 if [#<i> EQ 1] | ||
#501=0 | ||
o110 endif | ||
o100 endif | ||
o101 if [#501 EQ 1] | ||
M67 E#502 Q#<P> | ||
o101 else | ||
M68 E#502 Q#<P> | ||
o101 endif | ||
o<m701> end sub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
o<m701> sub | ||
#500=43; line height index | ||
#501=1; synchronized | ||
#502=#500 | ||
o100 if [EXISTS[#<i>]] | ||
o110 if [#<i> EQ 1] | ||
#501=0 | ||
o110 endif | ||
o100 endif | ||
o101 if [#501 EQ 1] | ||
M67 E#502 Q#<P> | ||
o101 else | ||
M68 E#502 Q#<P> | ||
o101 endif | ||
o<m701> end sub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
o<m710> sub | ||
#500=45; jog velocity index | ||
#501=46; jog length index | ||
#502=12; jog trigger index | ||
#503=13; jog continuous index | ||
#504=14; jog direction index | ||
o100 if [EXISTS[#<q>]] | ||
o110 if [#<q> LT 0] | ||
M68 E#500 Q[#<q> * -1]; inverse velocity | ||
M64 P#504 | ||
o110 else | ||
M68 E#500 Q#<q>; velocity | ||
M65 P#504 | ||
o110 endif | ||
o100 endif | ||
o101 if [EXISTS[#<p>]] | ||
M68 E#501 Q#<p>; length | ||
o101 endif | ||
o102 if [EXISTS[#<e>]] | ||
o112 if [#<e> EQ 1]; trigger continuous | ||
M64 P#503 | ||
o112 else | ||
M65 P#503 | ||
o112 endif | ||
o102 else | ||
M64 P#502 | ||
o102 endif | ||
o<m710> end sub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
[RS274NGC] | ||
# Machinekit fdm subroutines path | ||
SUBROUTINE_PATH = /usr/share/linuxcnc/ncfiles/remap-subroutines/fdm | ||
# alternatively you can copy the subroutines a local subroutines folder | ||
# SUBROUTINE_PATH = subroutines | ||
|
||
# remapping Machinekit FDM GCodes | ||
REMAP=G22 modalgroup=1 ngc=g22 | ||
REMAP=G23 modalgroup=1 ngc=g23 | ||
REMAP=G28 modalgroup=1 argspec=xyza ngc=g28 | ||
REMAP=G29 modalgroup=1 ngc=g29 | ||
REMAP=G29.1 modalgroup=1 argspec=xyz ngc=g29_1 | ||
REMAP=G29.2 modalgroup=1 argspec=xyz ngc=g29_2 | ||
REMAP=G30 modalgroup=1 argspec=pxy ngc=g30 | ||
REMAP=M104 modalgroup=10 argspec=iPt ngc=m104 | ||
REMAP=M106 modalgroup=10 argspec=iPt ngc=m106 | ||
REMAP=M107 modalgroup=10 argspec=it ngc=m107 | ||
REMAP=M109 modalgroup=10 argspec=tP ngc=m109 | ||
REMAP=M140 modalgroup=10 argspec=iP ngc=m140 | ||
REMAP=M141 modalgroup=10 argspec=iP ngc=m141 | ||
REMAP=M190 modalgroup=10 argspec=P ngc=m190 | ||
REMAP=M191 modalgroup=10 argspec=P ngc=m191 | ||
REMAP=M200 modalgroup=10 argspec=D ngc=m200 | ||
REMAP=M207 modalgroup=10 argspec=PQ ngc=m207 | ||
REMAP=M221 modalgroup=10 argspec=P ngc=m221 | ||
REMAP=M226 modalgroup=10 ngc=m226 | ||
REMAP=M280 modalgroup=10 argspec=itP ngc=m280 | ||
REMAP=M300 modalgroup=10 argspec=iqP ngc=m300 | ||
REMAP=M400 modalgroup=10 ngc=m400 | ||
REMAP=M420 modalgroup=10 argspec=itredp ngc=m420 | ||
REMAP=M700 modalgroup=10 argspec=iP ngc=m700 | ||
REMAP=M701 modalgroup=10 argspec=iP ngc=m701 | ||
REMAP=M702 modalgroup=10 argspec=iP ngc=m702 | ||
REMAP=M710 modalgroup=10 argspec=epq ngc=m710 | ||
# enable ini parameter passing | ||
FEATURES = 4 | ||
|
||
[FILTER] | ||
PROGRAM_EXTENSION = .gcode RepRap Flavour GCode | ||
gcode = gcode-to-ngc |