On Thursday 12 November 2020 17:42:44 Ralph Stirling wrote:

> I was reading the docs on remapping, and got to
> wondering if the o<subroutinename> call syntax
> discussed in:
> http://linuxcnc.org/docs/html/remap/remap.html
> could be used directly in G-code programs.  I would
> really rather put:
>
> o<dosomething> call 1 2 3
>
Sure, works fine, but you might want to specify a subdir in your nc_files 
as the (check the docs) SUBROUTINE_PATH in the .ini file so subs won't 
confuse things.

Put it in the [RS274NGC] section like this:
[RS274NGC]
DISABLE_G92_PERSISTENSE = 0
PARAMETER_FILE                  = linuxcnc.var
SUBROUTINE_PATH=/home/gene/linuxcnc/configs/GO704-5i25-7i76/ncam/lib/:/home/gene/nativecam/:/home/gene/linuxcnc/nc_files/subs/

> in my program than remap M100 to make that call,
> and then put:
>
> M100 A1 B2 C3
>
> in my program.
>
> Should this be possible?
>
> Thanks,
> -- Ralph
>
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>


_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to