541
VB and the development of wizards / Re: Mach3 turn macro - Pause restart
« on: March 11, 2015, 10:57:12 AM »
Thomas, thank you so much for taking time to look at this. I haven't done any Mach scripting in a couple of years and had been banging my head against a wall for a few hours when I posted.
Contrary to TP's opinion I do RTFM but the programmers reference manual only has this:
SystemWaitFor
Sub SystemWaitFor(Signal As Integer)
This function it is used to tell Mach that a macro script is ending, and that any further
GCode execution should wait for the Signal to go active. If used, this function should
always be the last line in a macro and it should never be used within a loop.
Arguments:
SignalID must be one of the pre-defined Mach3 CB output signal constants (see
CB Constants), or other value or expression that evaluates to one of those values.
Return Value:
None
Example:
See also:
Since the manual does not contain the CB Constants it refers to I assumed, wrongly, that Poppa bear's use of ReStart was a constant. After leaving it alone for a few hours I reread his example. I missed a line of code:
ReStart = IsActive(INPUT4) 'this is input signal 4
I like your code, thanks again
Contrary to TP's opinion I do RTFM but the programmers reference manual only has this:
SystemWaitFor
Sub SystemWaitFor(Signal As Integer)
This function it is used to tell Mach that a macro script is ending, and that any further
GCode execution should wait for the Signal to go active. If used, this function should
always be the last line in a macro and it should never be used within a loop.
Arguments:
SignalID must be one of the pre-defined Mach3 CB output signal constants (see
CB Constants), or other value or expression that evaluates to one of those values.
Return Value:
None
Example:
See also:
Since the manual does not contain the CB Constants it refers to I assumed, wrongly, that Poppa bear's use of ReStart was a constant. After leaving it alone for a few hours I reread his example. I missed a line of code:
ReStart = IsActive(INPUT4) 'this is input signal 4
I like your code, thanks again