Using G5.1 for WinCNC to enter Values as Macros

Modified on Fri, 22 Oct, 2021 at 12:42 PM

Chris research:

I tested the G5.1 option in WinCNC and it works. It pops up a dialog box with a text entry field. The value is stored in one of 10 registers, numbered GR0-GR9. That value can then be used in gcode.

Here's the syntax:  (r is the memory register, m is the message)

g5.1 r0 m"please enter a distance for X travel"

Enter a number in the box, then to move the X-axis that distance, enter

g1 x{GR0}

*note the curly braces around the variable

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article