Replies: 4 comments 1 reply
-
|
M98 is somewhat difficult to implement - the gcode has to be preparsed before it is run and is has to be run from SD card since the file pointer has to be repositioned when the subroutine is called and when it exits. So not on my todo list for now. Use G65 or O-word macros/subroutines instead, M99 is return from macro/subroutine. Note that macros/subroutines can only be run from SD card (local file). |
Beta Was this translation helpful? Give feedback.
-
|
I have created a small JavaScript program that I call G-cad. The purpose of G-cad is to convert advanced G-code programs into plain G-code that can be executed by very simple CNC machines. The main advantage is that you can write programs using commands and functions that are not supported by basic CNC controllers, and then easily export a .NC file where those functions are fully expanded into standard G-code. In addition to radius compensation (G40, G41, and G42), I have also implemented FANUC-style subprograms. For example, let’s define a subprogram and call it program 121. To indicate where a subprogram starts, use the O word — this is the letter O, as in Oasis, not the number zero. Example: O121 To indicate where the subprogram ends, use the M99 command. To call (run) a subprogram, use M98 followed by the program number using the P parameter. Example: O121 ; Start recording subprogram 121 Ask me for the program and doc. |
Beta Was this translation helpful? Give feedback.
-
|
Program
https://drive.google.com/file/d/1koeXAHR6irEj8w_hQsG8O5r53ZnaQBkU/view?usp=drivesdk
Documentation
https://docs.google.com/document/d/1zdn1iPNlh5ttyoDEWbxob67LNdGuzE6WW2RAH8S0Ang/edit?usp=drivesdk
Den ons 28 jan. 2026 19:51XYartlab ***@***.***> skrev:
… How do I get it?
—
Reply to this email directly, view it on GitHub
<#789 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQB4U26BPXZZZEXATBWQP34JEAM3AVCNFSM6AAAAACDHEEGMSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKNRTGE4TKMI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Please add support for M98 and M99. Currently, gcode.h has M99, but I don't know what it completes.
Beta Was this translation helpful? Give feedback.
All reactions