here is other solution to set G18 from constructor macro (M99998). Just put the code in the constructor macro.
- Code: Select all
new Thread(delegate () {
SetGcode ();
}).Start();
#Events
private void SetGcode ()
{
while (AS3.GetLED (25));
Thread.Sleep (500);
exec.Code ("G18");
}
When you press Reset, G18 will be set. Hope the code is usful.