When is WAIT() needed ??
Posted: Wed Dec 07, 2016 12:38 am
Hi Balazs,
successfully did hooked up tests on the G28.1 command, all good. Now I'm writing a simple macro for my TOUCH OFF screen button.
I've noticed many people put put exec.wait(200); after while(exec.IsMoving()){}
Sometimes wait() is there and sometimes it isn't. When would it be necessary and when would it not be. Is it normally used only when there is some physically moving equipment that has weight, inertia, etc, or is it sometimes necessary with "software only" code.
Keith
successfully did hooked up tests on the G28.1 command, all good. Now I'm writing a simple macro for my TOUCH OFF screen button.
I've noticed many people put put exec.wait(200); after while(exec.IsMoving()){}
- Code: Select all
while(exec.IsMoving()){}
exec.wait(200);
Sometimes wait() is there and sometimes it isn't. When would it be necessary and when would it not be. Is it normally used only when there is some physically moving equipment that has weight, inertia, etc, or is it sometimes necessary with "software only" code.
Keith