3341
Mach4 General Discussion / Re: Define own global Variables to use in macros
« on: December 25, 2018, 06:27:23 AM »
Hi,
the screen load script is in the GUI 'chunk' whereas the m6 macro is in the Gcode interpreter 'chunk'.
A variable in one chunk is not available in the other.
There is a way to pass data between chunks......use registers. In the Docs folder:
Craig
the screen load script is in the GUI 'chunk' whereas the m6 macro is in the Gcode interpreter 'chunk'.
A variable in one chunk is not available in the other.
There is a way to pass data between chunks......use registers. In the Docs folder:
Quote
Mach4 CNC ControllerSection 4 from page 14.
Lua Scripting Guide
Craig