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

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

?? 006f455cb05f001d1289bbda6de18a35

?? 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一区二区三区免费野_久草精品视频
青娱乐精品视频| 欧美日韩日日骚| 国产成人av一区二区| 久久99精品久久久| 狠狠久久亚洲欧美| 国内一区二区在线| 激情偷乱视频一区二区三区| 久久国产尿小便嘘嘘| 国内不卡的二区三区中文字幕| 麻豆国产精品777777在线| 久久精品国产秦先生| 久久99国产精品久久99| 国产乱妇无码大片在线观看| 国产成人精品免费网站| 不卡电影一区二区三区| 一本在线高清不卡dvd| 日本电影欧美片| 欧美精品99久久久**| 在线播放国产精品二区一二区四区 | 婷婷综合五月天| 五月天激情综合| 久草热8精品视频在线观看| 黄色资源网久久资源365| 风间由美一区二区av101| 99久久精品费精品国产一区二区| 91女神在线视频| 欧美在线|欧美| 日韩一区二区免费视频| 国产亚洲欧洲一区高清在线观看| 国产精品区一区二区三区| 亚洲精品自拍动漫在线| 婷婷一区二区三区| 国产成人综合亚洲网站| 91豆麻精品91久久久久久| 欧美丰满一区二区免费视频| 精品av久久707| 亚洲色图一区二区三区| 日韩专区在线视频| 国产精品影视在线| 91久久精品一区二区二区| 91麻豆精品国产91久久久 | 国产欧美日韩激情| 一区二区三区**美女毛片| 日本欧美一区二区| 成人免费看黄yyy456| 欧美性感一类影片在线播放| 精品理论电影在线观看| 成人欧美一区二区三区视频网页| 日韩综合在线视频| 成人黄色国产精品网站大全在线免费观看| 91久久久免费一区二区| 精品国产电影一区二区| 一区二区三区在线视频免费| 精久久久久久久久久久| 日本韩国欧美在线| 久久人人爽爽爽人久久久| 一区二区激情小说| 国产一区二区毛片| 欧美剧在线免费观看网站| 国产精品女人毛片| 蜜臀av亚洲一区中文字幕| 色综合婷婷久久| 久久久影视传媒| 日韩电影在线观看一区| 一本色道**综合亚洲精品蜜桃冫| 欧美大片拔萝卜| 亚洲自拍偷拍综合| 成人不卡免费av| 日韩精品一区二区三区蜜臀| 亚洲国产精品人人做人人爽| 北条麻妃国产九九精品视频| 精品久久一二三区| 日韩精品免费视频人成| 色伊人久久综合中文字幕| 国产蜜臀av在线一区二区三区| 日韩精品免费专区| 欧美亚洲丝袜传媒另类| 中文子幕无线码一区tr| 精品一区二区av| 欧美一卡二卡三卡| 亚洲成人在线网站| 色综合久久天天| 日本一区二区三区国色天香| 美国十次了思思久久精品导航| 欧美视频在线一区二区三区 | 久久精品理论片| 欧美色手机在线观看| 亚洲女同ⅹxx女同tv| www.欧美日韩国产在线| 国产精品你懂的在线欣赏| 国产成人免费视频一区| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 国产福利电影一区二区三区| 678五月天丁香亚洲综合网| 亚洲激情一二三区| 色婷婷精品久久二区二区蜜臂av| 国产精品美女久久福利网站| 国产成人综合视频| 欧美国产成人精品| 春色校园综合激情亚洲| 国产欧美日韩视频在线观看| 粉嫩嫩av羞羞动漫久久久| 日本一区二区三区国色天香| 成人亚洲一区二区一| 国产欧美一区二区三区网站| 国产露脸91国语对白| 国产欧美综合在线观看第十页| 国产精品一卡二卡在线观看| 久久人人爽爽爽人久久久| 国产高清不卡二三区| 日本一区二区三区在线观看| 成人精品视频一区二区三区尤物| 欧美韩日一区二区三区| 波多野结衣中文一区| 中文字幕亚洲欧美在线不卡| 99久久综合国产精品| 亚洲精品欧美二区三区中文字幕| 欧美视频一区二区三区在线观看| 一区二区日韩电影| 91精品国产综合久久久久久久| 免费三级欧美电影| 久久久久亚洲蜜桃| 93久久精品日日躁夜夜躁欧美| 亚洲精品欧美二区三区中文字幕| 日韩区在线观看| 国产在线视频不卡二| 国产欧美日韩视频一区二区| 91丝袜高跟美女视频| 亚洲h动漫在线| 精品国产三级电影在线观看| 国产·精品毛片| 亚洲夂夂婷婷色拍ww47| 制服丝袜av成人在线看| 国内外成人在线| 中文字幕视频一区二区三区久| 色天天综合久久久久综合片| 日本免费新一区视频| 国产视频亚洲色图| 在线亚洲欧美专区二区| 日韩av网站免费在线| 国产日韩欧美精品综合| 色网综合在线观看| 久久超级碰视频| 中文字幕永久在线不卡| 欧美丰满嫩嫩电影| 国产美女娇喘av呻吟久久 | 国产白丝网站精品污在线入口| 亚洲欧洲精品成人久久奇米网| 欧美精品色综合| 国产成人在线电影| 亚洲小说欧美激情另类| 久久久精品一品道一区| 欧美羞羞免费网站| 国产精品456露脸| 午夜欧美视频在线观看| 国产婷婷色一区二区三区| 欧美性videosxxxxx| 国产精品69毛片高清亚洲| 亚洲一二三专区| 国产欧美日韩一区二区三区在线观看| 一本大道综合伊人精品热热| 久久疯狂做爰流白浆xx| 亚洲视频在线一区| 精品日韩在线观看| 欧美性做爰猛烈叫床潮| 成人在线视频首页| 麻豆久久久久久| 亚洲一区二区三区中文字幕在线| 久久久久久久国产精品影院| 欧美日韩在线精品一区二区三区激情| 精品一区二区三区视频在线观看 | 麻豆精品在线观看| 亚洲免费在线观看视频| 久久久久久久久99精品| 欧美日本一道本| 91亚洲国产成人精品一区二区三| 久久99精品国产麻豆不卡| 午夜精品影院在线观看| 亚洲男人的天堂一区二区| 精品国产精品一区二区夜夜嗨| 欧美亚洲综合色| 91久久精品日日躁夜夜躁欧美| 激情五月婷婷综合网| 奇米一区二区三区| 亚洲专区一二三| 亚洲视频免费观看| 国产精品第五页| 中文字幕高清不卡| 久久久九九九九| 精品久久国产字幕高潮| 69av一区二区三区| 欧美高清视频在线高清观看mv色露露十八 | 日韩色视频在线观看| 欧美午夜不卡视频| 日本韩国欧美在线| 色94色欧美sute亚洲线路一久 | 成人免费毛片a| 成人性生交大合| 东方欧美亚洲色图在线| 国产精品自拍在线|