1
VB and the development of wizards / VBscripting Macro with Expressions Variables and Operators for Dummies
« on: September 28, 2016, 03:02:08 PM »
Trying to wrap my mind around a condition while teaching myself VBScripting. Never had much trouble with the easier languages like LUA. I have no sense about VBS currently. Usually can find an example, but haven't had much luck looking into the guts of this type of macro. The normal functions are simple and go well, "DoTHIS, GetTHAT". Anything past this is unworkable with my experience. I've been using Mach for nearly a decade without needing more than simple macros, but figured I'd take it for a spin and try to hit the gas, right into a ditch! Any insight is welcome.
My example expression to achieve functions as follows:
To subtract the next axis movement from the current axis position
"ex. NextZ-CurrentZ. *Produce the increment*
IF the difference is greater than
(ex. IF NextZ - CurrentZ > +1.234)
THEN
Subtract (1.234) and Replace new value of Z axis in DRO while program running.
Is there a good example available (with Headers)? I use this expression quite a bit in my post processors. I'd like to make macros also if possible.
Currently so far down the rabbit hole you can call me Alice.
Thanks
My example expression to achieve functions as follows:
To subtract the next axis movement from the current axis position
"ex. NextZ-CurrentZ. *Produce the increment*
IF the difference is greater than
(ex. IF NextZ - CurrentZ > +1.234)
THEN
Subtract (1.234) and Replace new value of Z axis in DRO while program running.
Is there a good example available (with Headers)? I use this expression quite a bit in my post processors. I'd like to make macros also if possible.
Currently so far down the rabbit hole you can call me Alice.
Thanks