Dan911 wrote: The plugin returns the true or false condition to macro so If you choose you can remove the P and plugin will do nothing except return condition and do what you like with it in macro.
Dan911 wrote: The plugin returns the true or false condition to macro so If you choose you can remove the P and plugin will do nothing except return condition and do what you like with it in macro.
Vmax549 wrote:I tried that but when it returned teh value it also shut down teh Gcode program (CycleStop) I thought that it may have been part of teh plugin issuing teh CycleStop.
HUM, (;-) TP
Vmax549 wrote:Hi Dan, Running it with NO P# this line in teh macro shuts teh Gcode program down (CycleStop) and I cannot restart it from script.
object Returnvalue = exec.Informplugin("Conditional Gcode.dll", (object)m65);
(;-) TP
string m65 = exec.Getcurrgcodelinetext();
object Returnstr = exec.Informplugin("Conditional Gcode.dll", (object)m65);
if (Returnstr is string)
{
string str = Returnstr as string;
if(str == "True")
{
//MessageBox.Show(exec.mainform, "Bool = " + str);
exec.AddStatusmessage("Press Cycle Start to Continue");
}
}
if (result == true) { string returnstr = "True"; return (object)returnstr; }
else { string returnstr = "False"; return (object)returnstr; }
Vmax549 wrote:Hi Dan, Yes I did try your code and it returns EMPTY, Null, " ", nothing.
Like I said earlier your true/false value WAS being return correctly. The "ONLY" problem was SOMETHING is shutting teh Gcode program down like you pressed CycleStop.
(;-) TP
Vmax549 wrote:Hi Dan , It is not teh plugin that is shutting down teh Gcode program it is teh macro (M65).
(;-) TP
Vmax549 wrote: I am stating a new function project. Teh object is to Make this line of Gcode work.
M65 (" if(6<=7){exec.Code("M98P2");} ")
I did find a glitch in teh MacroLoop side where IT would skip teh next line after a exec.Code() line. I simply did teh next line twice to work around it
Return to Ask a question from support here
Users browsing this forum: No registered users and 30 guests