Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #405 from mhaberler/m100-m199-remappable
Browse files Browse the repository at this point in the history
interp/remap: make M100-M199 remappable
  • Loading branch information
machinekoder committed Dec 29, 2014
2 parents d419103 + a21e1e3 commit 76766c8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/emc/rs274ngc/interp_remap.cc
Expand Up @@ -623,8 +623,10 @@ int Interp::init_remap_sets()
_setup.g_remappable[i] = 0;
}

// all unallocated M-codes > 199 are freely remappable
for (i = 200; i < 1000; i++) _setup.m_remappable[i] = 1;
// all unallocated M-codes > 100 are freely remappable
// range 100-199: a remap takes precedence over an external executable
// named M100-M199
for (i = 100; i < 1000; i++) _setup.m_remappable[i] = 1;

// in the range 1..99 unused M-codes are remappable
for (i = 1; i < 100; i++) {
Expand Down

0 comments on commit 76766c8

Please sign in to comment.