1041
General Mach Discussion / Re: Mach3 Customization/Macro Programming Documentation
« on: August 23, 2009, 12:51:08 PM »simpson36:
I understand your point, but understand mine, I was NOT critizing the author, he asked for comments I gave him mine. In my OPION (and we all know the saying), most users here are machine hobbiest. Who dont know VB scripting (the cypress version). All I was saying was make if for people who dont know anything. Perhaps you came to this site, and already knew programming. When I came here, I did not and had to learn, it was a tough climb using the "manuals".
Further I and VMax (Terry), are not slamming anyone here or arguing over that one specific word that was just an example. I just didnt want New people to mach3, and we where ALL new at one time.
Ray: Thank you for what you are doing, since my comments are not appreciated, I will bow out of this thread. Look forward to your completed work!
Let me ask, would you also consider an "functional Grouping" format, i.e. Modbus functions, Output functions, Input functions, G Code functions, Wizard functions, etc. and put code that relates to that typ of operation(s). If I am a new person, I would only know I want to turn on an output for instance, I would not know it is called ActivateSignal, I could look under the function groups and find quickly what I am looking for.
scott
Scott,
Functions and variables are already listed both alphabetically (along with their long descriptions) and by function (with short descriptions), so it will be very easy to find the function you need, if it exists. Many names are also being changed, to make them more clear. For example, *all* Modbus functions will have bames now starting with "Mod". All spindle control functions have names starting with "Spindle", etc. Where there are functions to write and read variables, they will be named identically, except for "Set" and "Get" prefixes. So, rather than the current SetFeedRate() and FeedRate(), we'll have SetFeedRate() and GetFeedRate(). Many old/obsolete/redundant functions are being deleted. OEM codes will all have pre-defined symbolic names, making their function clear. We're looking at adding named macros, and shared variable space as well. Scripts will be able to "include" other files, so common definitions can be shared without cutting and pasting the same code into multiple macro files. (Take a look at my probing macros - This change alone would reduce the lines of code by almost 90%) Existing scripts will still run, in a new "legacy" mode that understands the "old ways", but there will be so many improvements in the "new way", and the code will be so much more readable, that people should WANT to use it for all new code.
Regards,
Ray L.