Hello Guest it is April 26, 2024, 06:42:33 PM

Author Topic: Where to Look for Learning  (Read 293 times)

0 Members and 1 Guest are viewing this topic.

Where to Look for Learning
« on: May 04, 2023, 10:03:21 AM »
If I want to learn LUA or scripts that are used in motion control or screen sets what would should I be looking for as in Macros or LUA scripts and are they all part of the same programming?

Offline Tweakie.CNC

*
  • *
  •  9,200 9,200
  • Super Kitty
    • View Profile
Re: Where to Look for Learning
« Reply #1 on: May 04, 2023, 12:01:02 PM »
PEACE
Re: Where to Look for Learning
« Reply #2 on: May 04, 2023, 04:33:25 PM »
Hi,
you'll absolutely want this:

https://www.lua.org/docs.html

I think 5.3 is the version that is current in Mach4, despite Lua5.4 having been released. I have this open on the desktop permanently when coding.

This will be helpful for things like enums, variable names, machine states etc:

https://www.machsupport.com/forum/index.php?topic=40051.0

If you are going to require any dialogs etc, and most projects do the you'll need wxWidget documentation:

https://www.wxwidgets.org/

This is written for geeks, by geeks and in geekese....but its still the best there is.

If you want to roll your sleeves up and get stuck into wxWidgets then try:

https://github.com/wxFormBuilder/wxFormBuilder

Just remember...you asked.

Mach4 is a CNC solution, not a software development environment, if you want all the bells and whistles that you'd get with an IDE like MSStudio, you'll be disappointed.
For most, if not all machines, Mach4 is complete and should not require any coding to have it operate, so be careful what you wish for. When I first started with Mach4 (eight years ago now)
I spent a lot of time writing bits of code....but years later 99% is gone, deleted, didn't really need it after all. I have about four macros that I use daily and cannot, I mean CANNOT
work (ie job, making a living) without them but everything else is time wasting.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'