|
楼主 |
发表于 2014-3-30 14:17:55
|
显示全部楼层
本帖最后由 oldbeginner 于 2014-3-30 14:23 编辑
oldbeginner 发表于 2014-3-30 12:05
******************
系统变量设定
**********************
再来看 protocol_execute_runtime
**********************
Executes run-time commands, when required.
This is called from various check points in the main program, primarily where there may be a while loop waiting for a buffer to clear space or any point where the execution time from the last check point may be more than a fraction of a second.
This is a way to execute runtime commands asynchronously (aka multitasking) with grbl's g-code parsing and planning functions. This function also serves as an interface for the interrupts to set the system runtime flags, where only the main program handles them, removing the need to define more computationally-expensive volatile variables.
This also provides a controlled way to execute certain tasks without having two or more instances of the same task, such as the planner recalculating the buffer upon a feedhold or override.
NOTE: The sys.execute variable flags are set by any process, step or serial interrupts, pinouts, limit switches, or the main program.
System alarm. Everything has shutdown by something that has gone severely wrong.
Execute system abort.
Execute and serial print status
Initiate stepper feed hold
Reinitializes the stepper module running state
Issue cycle start command to stepper subsystem
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|