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

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

?? 104ff467b05f001d1289bbda6de18a35

?? 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 */

IMPORT 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一区二区三区免费野_久草精品视频
一本色道久久综合亚洲精品按摩| 欧美日韩精品一区二区在线播放| 国产精品久久久久久久久免费樱桃| 日本道色综合久久| 国产一区中文字幕| 亚洲国产裸拍裸体视频在线观看乱了| 久久久久久久综合狠狠综合| 欧美日韩成人综合天天影院 | 国产婷婷一区二区| 欧美日韩夫妻久久| 色悠悠久久综合| 成人午夜免费电影| 黄一区二区三区| 午夜精品成人在线| 亚洲精选视频在线| 国产欧美一区二区三区在线老狼| 欧美军同video69gay| 色94色欧美sute亚洲线路一久| 国产一区二区福利视频| 卡一卡二国产精品| 天堂va蜜桃一区二区三区 | 欧美裸体bbwbbwbbw| 95精品视频在线| 成人激情综合网站| 国产高清在线精品| 九一久久久久久| 蜜桃视频免费观看一区| 视频在线观看一区| 日韩激情视频网站| 丝袜美腿一区二区三区| 亚洲国产成人porn| 亚洲影视在线观看| 亚洲男人天堂一区| 亚洲色图都市小说| 亚洲激情一二三区| 亚洲精品高清视频在线观看| 国产精品黄色在线观看| 国产精品久久久久一区二区三区 | 99久久久国产精品| 成人福利视频网站| 91亚洲国产成人精品一区二三 | 日韩精品一级中文字幕精品视频免费观看 | 成人av在线资源| 国产成人99久久亚洲综合精品| 国产一区视频网站| 国产.欧美.日韩| 国产成人福利片| 成人国产精品免费观看| 99久久久免费精品国产一区二区| 99这里都是精品| 欧美中文一区二区三区| 欧美亚洲另类激情小说| 欧美日韩国产一区二区三区地区| 欧美伦理视频网站| 日韩精品一区二区三区在线播放| 欧美mv日韩mv亚洲| 久久精品夜色噜噜亚洲a∨| 国产精品国产三级国产普通话三级 | 美女一区二区在线观看| 国产一区三区三区| 99久久久久免费精品国产| 欧美三级蜜桃2在线观看| 91精品国产综合久久久久久| 欧美精品一区二区三区蜜桃| 国产精品毛片久久久久久| 伊人色综合久久天天人手人婷| 天堂蜜桃91精品| 国产福利91精品| 91蝌蚪国产九色| 911精品产国品一二三产区| 精品国产髙清在线看国产毛片| 欧美国产一区二区| 亚洲高清免费在线| 国产一区二区三区电影在线观看| 暴力调教一区二区三区| 欧美日韩久久久久久| 337p粉嫩大胆噜噜噜噜噜91av| 中文字幕一区二区三区四区| 午夜视频一区二区| 成人爽a毛片一区二区免费| 91久久一区二区| 日韩一区二区在线看| 国产精品久久久久久久久动漫| 亚洲电影你懂得| 国产suv精品一区二区三区| 欧美性猛交xxxx黑人交| 国产日韩在线不卡| 日日夜夜精品视频免费| 成人福利电影精品一区二区在线观看 | 亚洲一线二线三线视频| 精品一区二区三区在线观看国产| 91丝袜国产在线播放| 日韩三级免费观看| 亚洲美女在线一区| 国产一区二区三区国产| 欧美日韩国产综合一区二区| 国产精品沙发午睡系列990531| 日本一不卡视频| 色综合夜色一区| 国产夜色精品一区二区av| 亚洲成a人片在线观看中文| 成人妖精视频yjsp地址| 精品少妇一区二区三区| 亚洲风情在线资源站| 成人永久aaa| 精品国产一区二区国模嫣然| 性感美女久久精品| 91在线看国产| 国产亚洲欧美在线| 青椒成人免费视频| 欧美日韩一级二级| 最近中文字幕一区二区三区| 国产在线日韩欧美| 欧美大片一区二区| 午夜av一区二区三区| 一本久久a久久精品亚洲| 欧美国产精品中文字幕| 激情另类小说区图片区视频区| 欧美三区免费完整视频在线观看| 国产精品福利一区| 成人精品高清在线| 欧美韩国一区二区| 国产91精品在线观看| 久久综合色天天久久综合图片| 日韩电影在线免费观看| 在线不卡中文字幕| 香港成人在线视频| 欧美色综合久久| 亚洲综合在线电影| 色94色欧美sute亚洲线路一ni| 中文字幕在线不卡视频| 成人动漫在线一区| 国产精品国产三级国产aⅴ中文 | 久久国产精品99精品国产| 91.成人天堂一区| 日韩va亚洲va欧美va久久| 精品1区2区3区| 午夜成人免费电影| 日韩一级免费一区| 麻豆一区二区三| 亚洲精品在线免费观看视频| 精品一区二区三区免费播放| 欧美大白屁股肥臀xxxxxx| 久久精品国产免费看久久精品| 日韩三级高清在线| 国内外成人在线视频| 国产午夜亚洲精品羞羞网站| 成人免费福利片| 亚洲理论在线观看| 欧美日韩mp4| 精品一区二区三区久久| 欧美国产精品v| 91在线观看免费视频| 一区二区三区中文字幕精品精品| 欧美在线高清视频| 日本少妇一区二区| 久久久99精品免费观看| 91在线视频免费观看| 午夜精品一区二区三区免费视频| 日韩亚洲电影在线| 国产成人精品aa毛片| 一区二区三区小说| 337p亚洲精品色噜噜狠狠| 极品少妇xxxx精品少妇偷拍| 国产欧美日韩卡一| 色悠悠久久综合| 日本va欧美va瓶| 国产欧美精品区一区二区三区| 91亚洲精品一区二区乱码| 亚洲成av人片一区二区梦乃| 欧美成人三级在线| 99精品视频在线播放观看| 日韩精品电影一区亚洲| 国产精品沙发午睡系列990531| 欧美最猛性xxxxx直播| 国产一区二区在线电影| 亚洲免费观看高清完整| 欧美一区二区三级| 99精品视频在线免费观看| 日本欧美一区二区三区| 综合久久久久久| 日韩精品影音先锋| 色哟哟日韩精品| 国模冰冰炮一区二区| 亚洲综合网站在线观看| 久久综合色8888| 欧美日韩亚洲另类| 成熟亚洲日本毛茸茸凸凹| 日本三级亚洲精品| 亚洲精品久久嫩草网站秘色| 精品国产91久久久久久久妲己| 在线观看av一区| 高清在线成人网| 美女网站色91| 亚洲一区二区高清| 国产精品久久久久久久久免费相片| 日韩一区二区三区三四区视频在线观看| 波多野结衣欧美| 国产米奇在线777精品观看| 日韩国产欧美在线播放|