亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? emctaskmain.cc

?? Source code for an Numeric Cmputer
?? CC
?? 第 1 頁 / 共 5 頁
字號:
			      __FILE__, __LINE__);		}	    }	    // clear out the pending command	    emcTaskCommand = 0;	    interp_list.clear();	    // clear out the interpreter state	    emcStatus->task.interpState = EMC_TASK_INTERP_IDLE;	    emcStatus->task.execState = EMC_TASK_EXEC_DONE;	    stepping = 0;	    steppingWait = 0;	    // now queue up command to resynch interpreter	    emcTaskQueueCommand(&taskPlanSynchCmd);	    retval = 0;	}	retval = emcTaskSetMode(mode_msg->mode);	break;    case EMC_TASK_SET_STATE_TYPE:	state_msg = (EMC_TASK_SET_STATE *) cmd;	retval = emcTaskSetState(state_msg->state);	break;	// interpreter commands    case EMC_TASK_PLAN_OPEN_TYPE:	open_msg = (EMC_TASK_PLAN_OPEN *) cmd;	retval = emcTaskPlanOpen(open_msg->file);	if (EMC_DEBUG & EMC_DEBUG_INTERP) {	    rcs_print("emcTaskPlanOpen(%s) returned %d\n", open_msg->file,		      retval);	}	if (retval > INTERP_MIN_ERROR) {	    retval = -1;	}	if (-1 == retval) {	    emcOperatorError(0, _("can't open %s"), open_msg->file);	} else {	    strcpy(emcStatus->task.file, open_msg->file);	    retval = 0;	}	break;    case EMC_TASK_PLAN_EXECUTE_TYPE:	stepping = 0;	steppingWait = 0;	execute_msg = (EMC_TASK_PLAN_EXECUTE *) cmd;	if (execute_msg->command[0] != 0) {	    if (emcStatus->task.mode == EMC_TASK_MODE_MDI) {		interp_list.set_line_number(--pseudoMdiLineNumber);	    }	    execRetval = emcTaskPlanExecute(execute_msg->command);	    if (EMC_DEBUG & EMC_DEBUG_INTERP) {		rcs_print("emcTaskPlanExecute(%s) returned %d\n",			  execute_msg->command, execRetval);	    }	    if (execRetval == 2 /* INTERP_ENDFILE */ ) {		// this is an end-of-file		// need to flush execution, so signify no more reading		// until all is done		emcTaskPlanSetWait();		if (EMC_DEBUG & EMC_DEBUG_INTERP) {		    rcs_print("emcTaskPlanSetWait() called\n");		}		// and resynch the interpreter WM		emcTaskQueueCommand(&taskPlanSynchCmd);		// it's success, so retval really is 0		retval = 0;	    } else if (execRetval != 0) {		retval = -1;	    } else {		// other codes are OK		retval = 0;	    }	}	break;    case EMC_TASK_PLAN_RUN_TYPE:	stepping = 0;	steppingWait = 0;	if (!taskplanopen && emcStatus->task.file[0] != 0) {	    emcTaskPlanOpen(emcStatus->task.file);	}	run_msg = (EMC_TASK_PLAN_RUN *) cmd;	programStartLine = run_msg->line;	emcStatus->task.interpState = EMC_TASK_INTERP_READING;	retval = 0;	break;    case EMC_TASK_PLAN_PAUSE_TYPE:	emcTrajPause();	if (emcStatus->task.interpState != EMC_TASK_INTERP_PAUSED) {	    interpResumeState = emcStatus->task.interpState;	}	emcStatus->task.interpState = EMC_TASK_INTERP_PAUSED;	retval = 0;	break;    case EMC_TASK_PLAN_RESUME_TYPE:	emcTrajResume();	emcStatus->task.interpState =	    (enum EMC_TASK_INTERP_ENUM) interpResumeState;	stepping = 0;	steppingWait = 0;	retval = 0;	break;    case EMC_TASK_PLAN_END_TYPE:	retval = 0;	break;    case EMC_TASK_PLAN_INIT_TYPE:	retval = emcTaskPlanInit();	if (EMC_DEBUG & EMC_DEBUG_INTERP) {	    rcs_print("emcTaskPlanInit() returned %d\n", retval);	}	if (retval > INTERP_MIN_ERROR) {	    retval = -1;	}	break;    case EMC_TASK_PLAN_SYNCH_TYPE:	retval = emcTaskPlanSynch();	if (EMC_DEBUG & EMC_DEBUG_INTERP) {	    rcs_print("emcTaskPlanSynch() returned %d\n", retval);	}	if (retval > INTERP_MIN_ERROR) {	    retval = -1;	}	break;     default:	// unrecognized command	if (EMC_DEBUG & EMC_DEBUG_TASK_ISSUE) {	    rcs_print_error("ignoring issue of unknown command %d:%s\n",			    cmd->type, emc_symbol_lookup(cmd->type));	}	retval = 0;		// don't consider this an error	break;    }    if (retval == -1) {	if (EMC_DEBUG & EMC_DEBUG_TASK_ISSUE) {	    rcs_print_error("error executing command %d:%s\n", cmd->type,			    emc_symbol_lookup(cmd->type));	}    }/*! \todo FIXME - debug */    if (EMC_DEBUG & EMC_DEBUG_TASK_ISSUE) {    	printf("emcTaskIssueCommand() returning: %d\n", retval);    }    return retval;}/*   emcTaskCheckPostconditions() is called for commands on the interp_list.   Immediate commands, i.e., commands sent from calls to emcTaskIssueCommand()   in emcTaskPlan() directly, are not handled here.   The return value is a state for emcTaskExecute() to wait on, e.g.,   EMC_TASK_EXEC_WAITING_FOR_MOTION, after the command has finished and   before any other commands can be sent out.   */static int emcTaskCheckPostconditions(NMLmsg * cmd){    if (0 == cmd) {	return EMC_TASK_EXEC_DONE;    }    switch (cmd->type) {    case EMC_OPERATOR_ERROR_TYPE:    case EMC_OPERATOR_TEXT_TYPE:    case EMC_OPERATOR_DISPLAY_TYPE:	return EMC_TASK_EXEC_DONE;	break;    case EMC_SYSTEM_CMD_TYPE:	return EMC_TASK_EXEC_WAITING_FOR_SYSTEM_CMD;	break;    case EMC_TRAJ_LINEAR_MOVE_TYPE:    case EMC_TRAJ_CIRCULAR_MOVE_TYPE:    case EMC_TRAJ_SET_VELOCITY_TYPE:    case EMC_TRAJ_SET_ACCELERATION_TYPE:    case EMC_TRAJ_SET_TERM_COND_TYPE:    case EMC_TRAJ_SET_SPINDLESYNC_TYPE:    case EMC_TRAJ_SET_OFFSET_TYPE:    case EMC_TRAJ_SET_ORIGIN_TYPE:    case EMC_TRAJ_PROBE_TYPE:    case EMC_TRAJ_CLEAR_PROBE_TRIPPED_FLAG_TYPE:    case EMC_TRAJ_SET_TELEOP_ENABLE_TYPE:    case EMC_TRAJ_SET_TELEOP_VECTOR_TYPE:	return EMC_TASK_EXEC_DONE;	break;    case EMC_TOOL_PREPARE_TYPE:    case EMC_TOOL_LOAD_TYPE:    case EMC_TOOL_UNLOAD_TYPE:    case EMC_TOOL_LOAD_TOOL_TABLE_TYPE:    case EMC_TOOL_SET_OFFSET_TYPE:    case EMC_SPINDLE_ON_TYPE:    case EMC_SPINDLE_OFF_TYPE:    case EMC_COOLANT_MIST_ON_TYPE:    case EMC_COOLANT_MIST_OFF_TYPE:    case EMC_COOLANT_FLOOD_ON_TYPE:    case EMC_COOLANT_FLOOD_OFF_TYPE:    case EMC_LUBE_ON_TYPE:    case EMC_LUBE_OFF_TYPE:	return EMC_TASK_EXEC_DONE;	break;    case EMC_TASK_PLAN_RUN_TYPE:    case EMC_TASK_PLAN_PAUSE_TYPE:    case EMC_TASK_PLAN_END_TYPE:    case EMC_TASK_PLAN_INIT_TYPE:    case EMC_TASK_PLAN_SYNCH_TYPE:    case EMC_TASK_PLAN_EXECUTE_TYPE:	return EMC_TASK_EXEC_DONE;	break;    case EMC_TRAJ_DELAY_TYPE:	return EMC_TASK_EXEC_WAITING_FOR_DELAY;	break;    case EMC_MOTION_SET_AOUT_TYPE:    case EMC_MOTION_SET_DOUT_TYPE:	return EMC_TASK_EXEC_DONE;	break;    default:	// unrecognized command	if (EMC_DEBUG & EMC_DEBUG_TASK_ISSUE) {	    rcs_print_error("postconditions: unrecognized command %d:%s\n",			    cmd->type, emc_symbol_lookup(cmd->type));	}	return EMC_TASK_EXEC_DONE;	break;    }    return EMC_TASK_EXEC_DONE; // unreached}/*  STEPPING_CHECK() is a macro that prefaces a switch-case with a check  for stepping. If stepping is active, it waits until the step has been  given, then falls through to the rest of the case statement.*/#define STEPPING_CHECK()                                                   \if (stepping) {                                                            \  if (! steppingWait) {                                                    \    steppingWait = 1;                                                      \    steppedLine = emcStatus->task.currentLine;                             \  }                                                                        \  else {                                                                   \    if (emcStatus->task.currentLine != steppedLine) {                      \      break;                                                               \    }                                                                      \  }                                                                        \}// executor functionstatic int emcTaskExecute(void){    int retval = 0;    int status;			// status of child from EMC_SYSTEM_CMD    pid_t pid;			// pid returned from waitpid()    // first check for an abandoned system command and abort it    if (emcSystemCmdPid != 0 &&	emcStatus->task.execState !=	EMC_TASK_EXEC_WAITING_FOR_SYSTEM_CMD) {	if (EMC_DEBUG & EMC_DEBUG_TASK_ISSUE) {	    rcs_print("emcSystemCmd: abandoning process %d\n",		      emcSystemCmdPid);	}	kill(emcSystemCmdPid, SIGINT);	emcSystemCmdPid = 0;    }    switch (emcStatus->task.execState) {    case EMC_TASK_EXEC_ERROR:	/*! \todo FIXME-- duplicate code for abort,	   also near end of main, when aborting on subordinate errors,	   and in emcTaskIssueCommand() */	// abort everything	emcTaskAbort();	// without emcTaskPlanClose(), a new run command resumes at	// aborted line-- feature that may be considered later	{	    int was_open = taskplanopen;	    emcTaskPlanClose();	    if (EMC_DEBUG & EMC_DEBUG_INTERP && was_open) {		rcs_print("emcTaskPlanClose() called at %s:%d\n", __FILE__,			  __LINE__);	    }	}	// clear out pending command	emcTaskCommand = 0;	interp_list.clear();	// clear out the interpreter state	emcStatus->task.interpState = EMC_TASK_INTERP_IDLE;	emcStatus->task.execState = EMC_TASK_EXEC_DONE;	stepping = 0;	steppingWait = 0;	// now queue up command to resynch interpreter	emcTaskQueueCommand(&taskPlanSynchCmd);	retval = -1;	break;    case EMC_TASK_EXEC_DONE:	STEPPING_CHECK();	if (!emcStatus->motion.traj.queueFull &&	    emcStatus->task.interpState != EMC_TASK_INTERP_PAUSED) {	    if (0 == emcTaskCommand) {		// need a new command		emcTaskCommand = interp_list.get();		// interp_list now has line number associated with this-- get		// it		if (0 != emcTaskCommand) {		    emcStatus->task.currentLine =			interp_list.get_line_number();		    // and set it for all subsystems which use queued ids		    emcTrajSetMotionId(emcStatus->task.currentLine);		    if (emcStatus->motion.traj.queueFull) {			emcStatus->task.execState =			    EMC_TASK_EXEC_WAITING_FOR_MOTION_QUEUE;		    } else {			emcStatus->task.execState =			    (enum EMC_TASK_EXEC_ENUM)			    emcTaskCheckPreconditions(emcTaskCommand);		    }		}	    } else {		// have an outstanding command		if (0 != emcTaskIssueCommand(emcTaskCommand)) {		    emcStatus->task.execState = EMC_TASK_EXEC_ERROR;		    retval = -1;		} else {		    emcStatus->task.execState = (enum EMC_TASK_EXEC_ENUM)			emcTaskCheckPostconditions(emcTaskCommand);		}		emcTaskCommand = 0;	// reset it	    }	}	break;    case EMC_TASK_EXEC_WAITING_FOR_MOTION_QUEUE:	STEPPING_CHECK();	if (!emcStatus->motion.traj.queueFull) {	    if (0 != emcTaskCommand) {		emcStatus->task.execState = (enum EMC_TASK_EXEC_ENUM)		    emcTaskCheckPreconditions(emcTaskCommand);	    } else {		emcStatus->task.execState = EMC_TASK_EXEC_DONE;	    }	}	break;    case EMC_TASK_EXEC_WAITING_FOR_PAUSE:	STEPPING_CHECK();	if (emcStatus->task.interpState != EMC_TASK_INTERP_PAUSED) {	    if (0 != emcTaskCommand) {		if (emcStatus->motion.traj.queue > 0) {		    emcStatus->task.execState =			EMC_TASK_EXEC_WAITING_FOR_MOTION_QUEUE;		} else {		    emcStatus->task.execState = (enum EMC_TASK_EXEC_ENUM)			emcTaskCheckPreconditions(emcTaskCommand);		}	    } else {		emcStatus->task.execState = EMC_TASK_EXEC_DONE;	    }	}	break;    case EMC_TASK_EXEC_WAITING_FOR_MOTION:	STEPPING_CHECK();	if (emcStatus->motion.status == RCS_ERROR) {	    // emcOperatorError(0, "error in motion controller");	    emcStatus->task.execState = EMC_TASK_EXEC_ERROR;	} else if (emcStatus->motion.status == RCS_DONE) {	    emcStatus->task.execState = EMC_TASK_EXEC_DONE;	}	break;    case EMC_TASK_EXEC_WAITING_FOR_IO:	STEPPING_CHECK();	if (emcStatus->io.status == RCS_ERROR) {	    // emcOperatorError(0, "error in IO controller");	    emcStatus->task.execState = EMC_TASK_EXEC_ERROR;	} else if (emcStatus->io.status == RCS_DONE) {	    emcStatus->task.execState = EMC_TASK_EXEC_DONE;	}	break;    case EMC_TASK_EXEC_WAITING_FOR_MOTION_AND_IO:	STEPPING_CHECK();	if (emcStatus->motion.status == RCS_ERROR) {	    // emcOperatorError(0, "error in motion controller");	    emcStatus->task.execState = EMC_TASK_EXEC_ERROR;	} else if (emcStatus->io.status == RCS_ERROR) {	    // emcOperatorError(0, "error in IO controller");	    emcStatus->task.execState = EMC_TASK_EXEC_ERROR;	} else if (emcStatus->motion.status == RCS_DONE &&		   emcStatus->io.status == RCS_DONE) {	    emcStatus->task.execState = EMC_TASK_EXEC_DONE;	}	break;    case EMC_TASK_EXEC_WAITING_FOR_DELAY:	STEPPING_CHECK();#if defined(LINUX_KERNEL_2_2)	if (taskExecDelayTimeout <= 0.0) {	    emcStatus->task.execState = EMC_TASK_EXEC_DONE;	} else {	    taskExecDelayTimeout -= EMC_TASK_CYCLE_TIME;	}#else	if (etime() >= taskExecDelayTimeout) {	    emcStatus->task.execState = EMC_TASK_EXEC_DONE;	}#endif	break;    case EMC_TASK_EXEC_WAITING_FOR_SYSTEM_CMD:	STEPPING_CHECK();	// if we got here without a system command pending, say we're done	if (0 == emcSystemCmdPid) {	    emcStatus->task.execState = EMC_TASK_EXEC_DONE;	    break;	}	// check the status of the system command	pid = waitpid(emcSystemCmdPid, &status, WNOHANG);	if (0 == pid) {	    // child is still executing	    break;	}	if (-1 == pid) {	    // execution error	    if (EMC_DEBUG & EMC_DEBUG_TASK_ISSUE) {		rcs_print("emcSystemCmd: error waiting for %d\n",			  emcSystemCmdPid);	    }	    emcSystemCmdPid = 0;	    emcStatus->task.

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久精品国产一区二区三区 | 国产一区二区三区四区五区入口| 久久综合狠狠综合| 色婷婷久久综合| 国产成人免费视频| 日本成人在线一区| 亚洲一区二区在线免费观看视频| 久久伊人中文字幕| 51精品秘密在线观看| 色狠狠桃花综合| 成人理论电影网| 国产精品综合在线视频| 免费精品视频最新在线| 亚洲一区二区三区爽爽爽爽爽| 国产农村妇女毛片精品久久麻豆| 日韩手机在线导航| 欧美军同video69gay| 色综合色狠狠天天综合色| 成人激情小说乱人伦| 国产一区二区不卡老阿姨| 蜜臀av一区二区| 日韩国产一区二| 性做久久久久久免费观看欧美| 《视频一区视频二区| 欧美极品另类videosde| 久久精品男人天堂av| 精品国产免费一区二区三区四区 | 精品少妇一区二区三区视频免付费| 99视频国产精品| 成人免费高清在线观看| 国产成人av自拍| 国产凹凸在线观看一区二区| 精品午夜久久福利影院| 精品亚洲aⅴ乱码一区二区三区| 日韩激情一区二区| 日韩av一二三| 日韩国产欧美在线视频| 美女在线观看视频一区二区| 午夜精品一区二区三区免费视频| 亚洲国产综合91精品麻豆| 亚洲电影一区二区| 日韩精品亚洲专区| 久久国产精品一区二区| 国产一区二区三区| 成人激情免费视频| 99精品国产一区二区三区不卡| 成人午夜视频在线观看| 成人av动漫在线| 在线观看91视频| 正在播放亚洲一区| 精品国产99国产精品| 国产婷婷一区二区| 日韩理论电影院| 亚洲超碰精品一区二区| 蜜桃精品视频在线| 国产一区啦啦啦在线观看| 国产成人99久久亚洲综合精品| av电影天堂一区二区在线观看| 色国产精品一区在线观看| 欧美日韩国产一二三| 精品国产乱码久久| 国产精品热久久久久夜色精品三区 | 91免费观看视频在线| 欧美性三三影院| 欧美成人精品高清在线播放| 国产亚洲婷婷免费| 一区二区在线观看视频在线观看| 91网站在线观看视频| 欧美日韩亚洲高清一区二区| 日韩欧美视频一区| 国产精品女同互慰在线看| 亚洲午夜在线观看视频在线| 蜜臀av一区二区在线免费观看| 国产成人三级在线观看| 91浏览器打开| 日韩精品一区二区三区视频| 国产精品毛片久久久久久久| 夜夜精品浪潮av一区二区三区| 天堂成人免费av电影一区| 国产美女精品人人做人人爽| 在线视频一区二区三区| 亚洲精品一区二区精华| 一区二区日韩电影| 国产精品一区二区在线观看不卡| 一本久久精品一区二区| 精品国产精品一区二区夜夜嗨| 国产精品乱码一区二区三区软件| 亚洲成a人片综合在线| 国产传媒欧美日韩成人| 欧美亚洲高清一区二区三区不卡| 精品国产一区二区亚洲人成毛片| 亚洲欧美影音先锋| 狠狠色综合播放一区二区| 在线观看视频一区二区欧美日韩| 精品成人佐山爱一区二区| 一区二区在线免费观看| 国产99精品在线观看| 3d动漫精品啪啪1区2区免费 | 国产精品福利一区| 国内精品久久久久影院薰衣草| 欧美午夜精品电影| 国产精品美女久久久久久久久久久| 视频一区视频二区中文| 91久久精品网| 中文字幕一区二区三| 韩国av一区二区三区四区| 欧美日韩日本视频| 亚洲婷婷综合色高清在线| 国产福利91精品一区| 欧美岛国在线观看| 日韩va欧美va亚洲va久久| 在线视频国内自拍亚洲视频| 亚洲国产精品成人综合| 韩国一区二区三区| 91麻豆精品国产自产在线| 亚洲一级不卡视频| 91免费在线播放| 日韩一区欧美小说| 国产99久久久精品| 国产校园另类小说区| 激情深爱一区二区| 日韩视频在线一区二区| 秋霞影院一区二区| 欧美日韩国产在线观看| 亚洲成va人在线观看| 欧美婷婷六月丁香综合色| 夜夜精品浪潮av一区二区三区| 99国产精品久久久久久久久久| 国产精品欧美精品| 99精品久久免费看蜜臀剧情介绍| 中文字幕的久久| 成人的网站免费观看| 国产精品全国免费观看高清| 成人午夜免费av| 国产精品乱人伦一区二区| 成人一区在线看| 国产精品的网站| 91免费看视频| 亚洲一区二区三区在线| 欧美日韩久久一区| 日本伊人精品一区二区三区观看方式| 欧美日韩亚洲综合一区二区三区| 亚洲一区二区三区影院| 8x福利精品第一导航| 日韩不卡免费视频| 精品国产乱码久久久久久老虎 | 欧美日韩国产综合草草| 日韩av中文字幕一区二区| 欧美大片一区二区| 国产精品18久久久久久久久久久久| 久久久精品tv| 成人av免费观看| 亚洲国产日韩一区二区| 91精品在线观看入口| 六月丁香综合在线视频| 国产无一区二区| 色激情天天射综合网| 日日夜夜精品视频免费| 精品国产成人在线影院| av高清久久久| 日韩影院免费视频| 国产欧美日韩亚州综合| 一本到三区不卡视频| 五月激情综合色| 2020日本不卡一区二区视频| 94-欧美-setu| 日韩激情视频在线观看| 亚洲国产成人午夜在线一区| 在线观看视频91| 国内精品嫩模私拍在线| 亚洲精品ww久久久久久p站| 欧美一区日韩一区| 99久久精品国产一区二区三区| 亚洲第四色夜色| 久久精品一区蜜桃臀影院| 日本韩国欧美三级| 韩国v欧美v亚洲v日本v| 亚洲欧美成人一区二区三区| 日韩欧美一级在线播放| 99久久精品免费观看| 美女久久久精品| 亚洲激情自拍偷拍| 欧美一区二区视频免费观看| 国产69精品一区二区亚洲孕妇 | 日日夜夜精品视频天天综合网| 国产欧美日韩一区二区三区在线观看 | 成人午夜av电影| 亚洲1区2区3区视频| 国产欧美一二三区| 欧美一区二区二区| 一本久久a久久精品亚洲| 韩国av一区二区三区四区| 亚洲国产精品久久久男人的天堂| 久久精品夜色噜噜亚洲aⅴ| 精品视频1区2区| 99热精品一区二区| 国产麻豆视频一区| 男人的j进女人的j一区| 一区二区在线看| 亚洲欧洲99久久|