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

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

?? c0848409b25f001d1289bbda6de18a35

?? Vxworks環(huán)境下
??
字號(hào):

/*
$Log$
*/
/*
** ---------------------------------------------------------------------
**                Copyright (c) Bosch Rexroth AG 1997 - 2008
**                        All Rights Reserved
** ---------------------------------------------------------------------
**
**    File: dab_h_toolmanage.c
** 
**    Responsible: MY
** 
**    Description of functions:
**          test file for cpl management like variable list or debug
**          
**         
**	     -  CPL Debugger
**           -  set/delete breakpoint
**	     -  CPL Variable list
**           -  Add watch point and so on
**       -  **
** 
** ---------------------------------------------------------------------
*/
/*F*/
/*======================================================================
**           >>>>    Include all necessary headfiles     <<<<
** ==================================================================== */


#include "dab_h_cpl.h" /*Jiang add it*/
#include "string.h"


/*F*/
/*======================================================================
**           >>>>    Local definitions               <<<<
** ==================================================================== */

/***********************************************************************/
/** Here are some variables defined used in the CPL debug example.**/

#define MAXFILESIZE  1024*3            /*the size of the buffer saving the context of the NC Program to be showed in the HMI*/
LOCAL struct File_Name_Id{
	long fileid;
	char filename[15];
}record[100];                          /* use it to record the file name and id list in the folder */

 char Currentfileselect[20];     /*It will save the file name only.*/
char CurrentFileWantToRun[100];        /*It will save the file name and it's path.*/
char Currentpath[20]="";               /*It will save the file path.*/






/*F*/
/*
************************************************************************
** >AUTHOR        : Jiang
**  FUNCTION NAME : Dab_h_SelContinueMode
** 
** >DESCRIPTION: This funciton is used to delete character 
**       For example //usr//user -> /usr/user
**               
** >NOTES:	
**             
**   
** >PARAMETER: none
** 
** >RETURN VALUE: none 
** 
** >INCLUDES :  none
** 
*/
void Delete_RepetCharacter(char* Changestring,char d){
	char *m = Changestring; 
	char *k =m+1;
	char* m1=NULL;
	char* k1=NULL;
	while(*m != '\0'){
		while(*m != '\0'){ 
			if((*m == d)&&(*k == d)) //if we discover the repeat
			{
				m1=m;
				k1=k;
				while(*m1 != '\0'){
					*m1=*k1;
					m1++;
					k1++;  //we should delete the front one by covering
				}
			}
			else break; //if we found no repeating 
		}// 
		m++;
		k++;
	}
}

/*F*/
/*
************************************************************************
** >AUTHOR        : MY
**  FUNCTION NAME : Dab_h_SelContinueMode
** 
** >DESCRIPTION: Example to set the continue mode
**               
**
** 
** >NOTES:	
**         
**         
**   
** >PARAMETER: none
** 
** >RETURN VALUE: none 
** 
** >INCLUDES :  none
** 
*/
EXPORT void Dab_h_SelContinueMode(void)
{
	   int loc_errncs;
	   int  status;	   
	   int  version;	   
	   int  savstate;	   
	   int  ipostate;
	   int  AktOpMode;
       Ncs_Error_t Ncs_Error_Code = Ncs_ErrOk;
       /*At first compare the NC mode,if there is no change,program will do nothing.*/
	   Ncs_Error_Code = Ncs_SavGetNcMode(1,&version,&AktOpMode,&savstate);
	   
	   
	   if (AktOpMode == NCS_SAV_OP_MODE_AUTOMATIC_C) 
		   TRT_SetValues(TRT_cid2,"Message_Display",
		   TRT_ATT_TEXT,"You have already in the Automatic Mode!",NULL);	
	   
	   
	   else{
		   /*At first we should know if the program is running*/
		   loc_errncs = Ncs_SavGetNcState(1,
			   &version,
			   &savstate,
			   &ipostate,
			   &status);
           /*if(savstate==3) that means program is running*/
		   /*if program is running ,we should tell the user to Reset the Channel*/
		   if(savstate==3){
			   TRT_SetValues(TRT_cid2,"Message_Display",
				   TRT_ATT_TEXT,"The Program is running,You should Reset Channel at first!",NULL);
			   
		   }
		   
		   else{
			   
			   /*if the program is not running,we should switch the NC mode.*/
			   loc_errncs=Ncs_SavOpModeSelect(1,
				   NCS_SAV_OP_MODE_AUTOMATIC_C,
				   &status);
			   
			   if ((status!=NCS_SAV_SERVICEOK_C) || (loc_errncs!=Ncs_ErrOk))
			   { 
				   /*Fehlerbehandlung */
				   
			   }
			   else
			   { 
				   /*At last HMI will tell the user success of changing mode.*/
				   TRT_SetValues(TRT_cid2,"Message_Display",
					   TRT_ATT_TEXT,"Current mode is Automatic",NULL);
				   
			   }
		   }	 
	   }
}

/*F*/
/*
************************************************************************
** >AUTHOR        : MY
**  FUNCTION NAME : Dab_h_SelDebugSTEPMode
** 
** >DESCRIPTION: Example to set the step debug mode
**               
**
** 
** >NOTES:	
**         
**         
**   
** >PARAMETER: none
** 
** >RETURN VALUE: none 
** 
** >INCLUDES :  none
** 
*/
EXPORT void Dab_h_SelDebugSTEPMode(void)
{
	int loc_errncs;
	   int  status;	   
	   int  version;	   
	   int  savstate;	   
	   int  ipostate;
	   int  AktOpMode;
       Ncs_Error_t Ncs_Error_Code = Ncs_ErrOk;
	   
       /*At first compare the NC mode,if there is no change,program will do nothing.*/
	   Ncs_Error_Code = Ncs_SavGetNcMode(1,&version,&AktOpMode,&savstate);
	   if (AktOpMode == NCS_SAV_OP_MODE_DEBUG_STEP_C) 
		   TRT_SetValues(TRT_cid2,"Message_Display",
		   TRT_ATT_TEXT,"You have already in the DubugStep Mode!",NULL);
	   
	   else{
		   
		   /*At first we should know if the program is running*/
		   loc_errncs= Ncs_SavGetNcState(1,
			   &version,
			   &savstate,
			   &ipostate,
			   &status);
		   
		   
		   /*if(savstate==3) that means program is running*/
		   /*if program is running ,we should tell the user to Reset the Channel*/
		   if(savstate==3){ 
			   TRT_SetValues(TRT_cid2,"Message_Display",
				   TRT_ATT_TEXT,"The Program is running,You should Reset Channel at first!",NULL);
			   
		   }
		   else{
			   
			   /*if the program is not running,we should switch the NC mode.*/
			   loc_errncs=Ncs_SavOpModeSelect(1,
				   NCS_SAV_OP_MODE_DEBUG_STEP_C,
				   &status);
			   
			   if ((status!=NCS_SAV_SERVICEOK_C) || (loc_errncs!=Ncs_ErrOk))
			   { 
				   
				   
			   }
			   else{ 
				   
				   /*At last HMI will tell the user success of changing mode.*/
				   TRT_SetValues(TRT_cid2,"Message_Display",
					   TRT_ATT_TEXT,"Current mode is DebugStep",NULL);
				   
			   }
		   }
	   }
}
/*F*/
/*
************************************************************************
** >AUTHOR        : MY
**  FUNCTION NAME : Dab_h_SelDebugPROGMode
** 
** >DESCRIPTION: Example to set the program continue debug mode
**               
**
** 
** >NOTES:	
**         
**         
**   
** >PARAMETER: none
** 
** >RETURN VALUE: none 
** 
** >INCLUDES :  none
** 
*/
EXPORT void Dab_h_SelDebugPROGMode(void)
{
	   int loc_errncs;
	   int  status;	   
	   int  version;	   
	   int  savstate;	   
	   int  ipostate;
	   int  AktOpMode;
       Ncs_Error_t Ncs_Error_Code = Ncs_ErrOk;
	   
       /*At first compare the NC mode,if there is no change,program will do nothing.*/
	   Ncs_Error_Code = Ncs_SavGetNcMode(1,&version,&AktOpMode,&savstate);
	   if (AktOpMode == NCS_SAV_OP_MODE_DEBUG_CONT_C) 
		   TRT_SetValues(TRT_cid2,"Message_Display",
		   TRT_ATT_TEXT,"You have already in the DubugProg Mode!",NULL);
	   else{
		   /*At first we should know if the program is running*/
		   loc_errncs= Ncs_SavGetNcState(1,
			   &version,
			   &savstate,
			   &ipostate,
			   &status);
		   
           /*if(savstate==3) that means program is running*/
		   /*if program is running ,we should tell the user to Reset the Channel*/
		   if(savstate==3){
			   TRT_SetValues(TRT_cid2,"Message_Display",
				   TRT_ATT_TEXT,"The Program is running,You should Reset Channel at first!",NULL);
			   
		   }
		   else{
			   /*if the program is not running,we should switch the NC mode.*/
			   loc_errncs=Ncs_SavOpModeSelect(1,
				   NCS_SAV_OP_MODE_DEBUG_CONT_C,
				   &status);
			   
			   if ((status!=NCS_SAV_SERVICEOK_C) || (loc_errncs!=Ncs_ErrOk))
			   { 
					   
			   }
			   else
			   { 
				   /*At last HMI will tell the user success of changing mode.*/
				   TRT_SetValues(TRT_cid2,"Message_Display",
					   TRT_ATT_TEXT,"Current mode is DebugContinue!",NULL);			   
			   }
		   } 
	   }
}

/*F*/
/*
************************************************************************
** >AUTHOR        : Jiang
**  FUNCTION NAME : DirShowtest
** 
** >DESCRIPTION: Example to Load directory into the HMI.
**               
**
** 
** >NOTES:	
**         
**         
**   
** >PARAMETER: none
** 
** >RETURN VALUE: none 
** 
** >INCLUDES :  none
** 
*/
EXPORT void Directory_Load(void){
	char buf[1024];
	char *entry;
	int  ret;
	char buffer[4096]="";
	char filebuffer[20];
	struct stat file_state;
	char BufferSelectPath[20]="";
	char item_base[5]="item";
	char imagebuf[50]="";
	char child_item[10]="";
	int  n=1;
	int  itemnumber=0;
	char tempr[3];
	
    TRT_SetValues(TRT_cid2, "FilesUnderFold",
		TRT_ATT_TEXT,"",
		NULL);
	//Get file path of access from HMI
	TRT_GetValues(TRT_cid2,"FoldSelect",
		TRT_ATT_TEXT,BufferSelectPath,NULL);
	
    //Mybe at here we will add a procress to modify the pathbuffer by delete redundant '/'! 
    Delete_RepetCharacter(BufferSelectPath,'/');
	
    TRT_SetValues(TRT_cid2,"FoldSelect",
		TRT_ATT_TEXT,BufferSelectPath,NULL);
	
	
	//How to prepare to add a item to a tree
	//at first you should know the parent item id 
	//at second you should know the item id of itself 
	//at 3rd you should know the item name which is be added to the tree.
	//at last you should add a ico to the item ,but it must not be done.
	sprintf(imagebuf,"%s\3%s\3%s\3%s\0",
		"item", "item0",BufferSelectPath,"folderop.ico");
	
	/* show root on the Tree view */
	TRT_SetValues(TRT_cid2, "Test_tree",
		/* del all already exist info on the tree view */
		TRT_ATT_LIST_DELETE_ITEMS, -1,
		/* add the item with the itemname and its icon */
		TRT_ATT_TREE_ITEMS_ADD_ID_IMAGE , imagebuf,
		NULL);
	
	//At first you should clear the filelist every time.
	TRT_SetValues(TRT_cid2, "FilesUnderFold",
		TRT_ATT_LIST_DELETE_ITEMS,-1,
		NULL); 
	
	//login the file system
	Ncs_Fsr_login("root", 0, 0, 0);
	
	//open a directory and record the "context" in the bufferXX
	
	ret=Ncs_Fsr_fopendir(BufferSelectPath,buf,1024);
    Ncs_Fsr_chdir(BufferSelectPath);
    Ncs_Fsr_getcwd(Currentpath);

	if (ret< 0)
	{
		TRT_SetValues(TRT_cid2,"Message_Display",
			TRT_ATT_TEXT,"Read_file_Error!!!",NULL);
		return;
	}
	entry=NULL;
	do
	{
		//extract entry from the bufferXX
		ret=Ncs_Fsr_fgetdirentry(buf,&entry);
		//Get the entry state
		Ncs_Fsr_stat(entry,&file_state);
		if(ret>0) 
		{   //prepare to got a filename;
            strcpy(filebuffer,entry);
			if(S_ISDIR(file_state.st_mode)!=0){
				//make a new item id as  
                sprintf(tempr,"%d",n);
				strcat(item_base,tempr);
				
				strcpy(child_item,item_base);
				sprintf(imagebuf,"%s\3%s\3%s\3%s\0",
					"item0", child_item, entry, "folder.ico");
			
				TRT_SetValues(TRT_cid2, "Test_tree",
					TRT_ATT_TREE_ITEMS_ADD_ID_IMAGE,imagebuf,
					NULL);
				n++;
			}
			else{
				
                TRT_SetValues(TRT_cid2, "FilesUnderFold",
					TRT_ATT_ITEM_CREATE,entry,
					NULL); 
				//do someting record in order to show file list in this fold
				record[itemnumber].fileid=itemnumber;
				strcpy(record[itemnumber].filename,entry);
                itemnumber++;
			}
		}
		if (ret< 0)
		{
			TRT_SetValues(TRT_cid2,"Message_Display",
				TRT_ATT_TEXT,"Get_Entry_Error!!!",
				NULL);
		}
	} while (ret>0);

	strcpy(BufferSelectPath,Currentpath);
    TRT_SetValues(TRT_cid2,"FoldSelect",
		TRT_ATT_TEXT,BufferSelectPath,
		NULL);
    Ncs_Fsr_fclosedir(buf);
	Ncs_Fsr_logout("root",0);
	
}




/*F*/
/*
************************************************************************
** >AUTHOR        : Jiang
**  FUNCTION NAME : FileReadTest
** 
** >DESCRIPTION: Example to Load directory into the HMI.
**               
**
** 
** >NOTES:	
**         
**         
**   
** >PARAMETER: none
** 
** >RETURN VALUE: none 
** 
** >INCLUDES :  none
** 
*/
EXPORT void FileReadTest(void){   
	
	char filenamewithpath[20]="";
	char fileselect[20]="";
	char filecontextfuffer[MAXFILESIZE];		/*have problem here.*/
	long itemid=0;
	char itemtxt[15]="";
	struct stat file_state;
	int error;
	char* point=NULL;							/*check the npg file.*/
	int number=0;
	int BreakpointPlace[20]={0};
	int i=0;
	int n=0;
	int m=0;
	char tempbuffer[4]="";
	char tablename_my[20]="";

	TRT_SetValues(TRT_cid2, "FileContext",       /* At first you shoud clear the old file context! */
		TRT_ATT_TEXT,"",
		NULL);
	error=Ncs_Fsr_login("root", 0, 0, 0);
	TRT_GetValues(TRT_cid2,"FoldSelect",
		TRT_ATT_TEXT,filenamewithpath,
		NULL);                                    /* you can get file path here*/
	                                       
	    strcat(filenamewithpath,"/");
		strcat(filenamewithpath,Currentfileselect); /* to get the filename*/ 
	
		Delete_RepetCharacter(filenamewithpath,'/');
		
		error=strcpy(CurrentFileWantToRun,filenamewithpath);
		error=Ncs_Fsr_stat(filenamewithpath,&file_state);
		error=Ncs_Fsr_read(Ncs_Fsr_open(filenamewithpath,O_RDONLY,0),
			               filecontextfuffer,
			               file_state.st_size+10); /*To ensure we have read the file complately.*/
	     //g_FileSize=file_state.st_size+10;                                    /*we shoud use it to creat a buffer.*/
		
	
		TRT_SetValues(TRT_cid2, "FileContext",     /*Send the file context to the Tilcon.*/
			TRT_ATT_TEXT,filecontextfuffer,
			NULL);
		
		TRT_SetValues(TRT_cid2, "Message_Display",
			TRT_ATT_TEXT,"Load file to CPL Successfully!",
			NULL);
	
        TRT_SetValues(TRT_cid2, "CurrentProg",     /*Show the program name and path*/
			TRT_ATT_TEXT,CurrentFileWantToRun,
			NULL);
	
		error=Ncs_Fsr_logout("root",0); 
}


?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人综合在线观看| 91精品黄色片免费大全| 天涯成人国产亚洲精品一区av| 91精品麻豆日日躁夜夜躁| youjizz久久| 麻豆精品蜜桃视频网站| 亚洲精品国产无套在线观| 精品国产乱码久久| 欧美视频第二页| 成人动漫av在线| 国产真实乱对白精彩久久| 亚洲第一激情av| 亚洲国产高清不卡| 精品久久久久香蕉网| 欧美视频中文字幕| 99re6这里只有精品视频在线观看| 日本在线不卡一区| 一区二区三区中文字幕精品精品| 99精品热视频| 午夜精品视频在线观看| 国产亚洲1区2区3区| 欧美日韩久久久久久| 日韩精品午夜视频| 久久久国产精品不卡| 亚洲男人电影天堂| 欧美专区日韩专区| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 国产另类ts人妖一区二区| 日韩高清一区二区| 亚洲不卡av一区二区三区| 亚洲一线二线三线视频| 亚洲综合无码一区二区| 亚洲乱码一区二区三区在线观看| 国产精品成人一区二区三区夜夜夜| 久久精品人人爽人人爽| 26uuu亚洲综合色欧美| 日韩一级二级三级| 日韩一区二区在线观看| 日韩午夜精品电影| 精品国产免费人成在线观看| 日韩欧美在线123| 日韩无一区二区| 日韩视频在线永久播放| 精品99999| 久久久影视传媒| 日本一区二区免费在线| 国产精品色哟哟网站| 国产精品成人一区二区三区夜夜夜| 国产精品国产三级国产普通话99| 中文字幕中文字幕一区| 亚洲一区二区视频在线观看| 五月婷婷综合在线| 国产在线一区二区| 不卡在线观看av| 欧美伊人久久久久久久久影院 | 中文字幕欧美区| 国产精品久久久久9999吃药| 亚洲精品国产视频| 天天色天天操综合| 久久99在线观看| 成人午夜电影小说| 日本福利一区二区| 日韩片之四级片| 日本一区二区三区久久久久久久久不 | 中文字幕精品—区二区四季| 日韩一区日韩二区| 天天综合网天天综合色| 国产一区二区三区蝌蚪| 99久久免费精品| 337p亚洲精品色噜噜| 久久免费视频色| 亚洲激情图片小说视频| 免费高清视频精品| 从欧美一区二区三区| 在线亚洲一区二区| 欧美精品一区二区不卡 | 国产精品传媒入口麻豆| 午夜精品福利一区二区三区蜜桃| 久久精品国产99久久6| www.在线成人| 制服丝袜日韩国产| 国产精品美女久久久久久| 丝袜脚交一区二区| 不卡在线视频中文字幕| 日韩亚洲欧美成人一区| 成人欧美一区二区三区黑人麻豆 | 欧美国产精品一区二区| 午夜精品福利一区二区三区蜜桃| 国产传媒日韩欧美成人| 欧美一区永久视频免费观看| 中文字幕精品一区| 久草精品在线观看| 欧美日韩一区中文字幕| 国产精品每日更新在线播放网址| 视频一区免费在线观看| 色婷婷久久久亚洲一区二区三区| 精品久久久久久久久久久久包黑料 | 95精品视频在线| 欧美大片国产精品| 亚洲福利视频一区| av电影一区二区| 精品粉嫩超白一线天av| 亚洲国产视频直播| 99精品一区二区三区| 精品99久久久久久| 日本欧美一区二区| 色婷婷狠狠综合| 国产精品丝袜黑色高跟| 精品综合免费视频观看| 911精品国产一区二区在线| 亚洲婷婷国产精品电影人久久| 国内一区二区视频| 日韩精品一区二区三区中文精品| 国产99久久久久久免费看农村| 4438x亚洲最大成人网| 亚洲激情六月丁香| 99re成人在线| 亚洲欧洲三级电影| 国产91丝袜在线播放| 日韩欧美的一区| 琪琪一区二区三区| 91精品国产高清一区二区三区| 亚洲最色的网站| 色噜噜狠狠色综合中国| 亚洲欧美视频在线观看| 91麻豆免费观看| 中文字幕在线观看一区二区| 国产99精品视频| 国产农村妇女精品| 国产·精品毛片| 国产精品人人做人人爽人人添| 国产乱码精品一区二区三区五月婷| 欧美一级夜夜爽| 精品在线一区二区三区| 精品国产一区二区三区av性色 | 日本亚洲电影天堂| 日韩一区二区免费在线电影 | 风间由美中文字幕在线看视频国产欧美| 精品美女一区二区| 国产综合色视频| 国产日韩欧美电影| 91在线免费看| 一区二区三区波多野结衣在线观看| 色综合中文字幕国产| 亚洲理论在线观看| 欧美日韩国产美| 日韩高清在线一区| 精品剧情v国产在线观看在线| 韩国三级电影一区二区| 国产女同互慰高潮91漫画| 成人av电影在线网| 亚洲国产日韩a在线播放性色| 5858s免费视频成人| 麻豆精品一区二区三区| 国产色产综合产在线视频| 成人av网站在线观看| 亚洲国产精品一区二区久久恐怖片| 91麻豆精品国产| 国产精品77777| 亚洲精品国产高清久久伦理二区| 欧美老肥妇做.爰bbww视频| 久久er精品视频| 国产精品人人做人人爽人人添| 91精彩视频在线观看| 日本色综合中文字幕| 久久精品视频免费| 91国产丝袜在线播放| 蜜桃精品在线观看| 国产精品蜜臀av| 欧美日韩国产一级片| 狠狠色丁香婷婷综合| 最新国产精品久久精品| 欧美日韩亚洲国产综合| 国产一区二区毛片| 亚洲精品国产无套在线观| 日韩免费视频一区| www.66久久| 奇米一区二区三区| 国产精品成人免费精品自在线观看| 欧美日韩亚洲综合| 国产.欧美.日韩| 午夜精品在线视频一区| 中文字幕免费一区| 欧美精品三级在线观看| 成人激情av网| 日本欧美久久久久免费播放网| 国产精品天干天干在线综合| 9191成人精品久久| 91蜜桃婷婷狠狠久久综合9色| 美女被吸乳得到大胸91| 亚洲乱码精品一二三四区日韩在线| 日韩一级黄色片| 欧美系列日韩一区| 成人午夜视频在线观看| 秋霞午夜鲁丝一区二区老狼| 亚洲免费av网站| 国产欧美日韩亚州综合| 欧美一级精品在线| 欧美性videosxxxxx| 97精品视频在线观看自产线路二|