I have narrowed it down to this:
If I comment out all M66 lines, on startup I get "unknown operation"
complaint about the g-code file.
If I remove those conditional statements if - elseif - endif, then it
works fine.

Yes, I did find that I had incorrectly written elseif in the
tool_change file. I corrected that, but still get an error. I get the
error even for simple if - endif statement.

Viesturs

piektd., 2021. g. 8. okt., plkst. 10:06 — lietotājs Viesturs Lācis
(<[email protected]>) rakstīja:
>
> Hello!
>
> I thought that I can remap M6 for rack tool change with subroutines,
> but it turned out somewhat harder than I expected and now I have no
> idea what is wrong.
>
> In INI file I have:
>
> [RS274NGC]
> PARAMETER_FILE    = sim.var
> SUBROUTINE_PATH   =
> ../../nc_files/subroutines:../../nc_files/ngcgui_lib/utilitysubs
> # SUBROUTINE_PATH   = /home/cnc/linuxcnc/nc_files
> # SUBROUTINE_PATH   = /home/cnc/linuxcnc/configs/Biesse/ncam/lib
> USER_M_PATH       = ../../nc_files/ngcgui_lib/mfiles
>
> REMAP=M6 modalgroup=6 ngc=tool_change
>
> Tool_change.ngc file is placed in ../nc_files/subroutines
> And the contents of the tool_change.gc file are here:
> https://pastebin.com/St834Wkj
>
> What I am getting now on startup is this error:
> Near line 0 of /usr/share/axis/images/axis.ngc:
> Zero timeout with wait type != immediate return
>
> And the preview is empty. If I try to open any other file. I get the
> same complaint.
> Everything is fine, if I comment out the REMAP line in INI file -
> LinuxCNC starts up correctly.
>
> Am I missing something in the REMAP line in INI file? Some additional
> arguments? Is the subroutine not correct? I have checked every example
> I could find on the web and in forums and I do not understand what is
> wrong. I would appreciate any hints, where to look next.
>
> Viesturs


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

Reply via email to