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

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

?? 004a3c68af5f001d1289bbda6de18a35

?? Vxworks環(huán)境下
??
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/*$Log:**** Rev /main/NC_V0_integration/5** Date: Nov 1 17:22:0 2007 abdeaity** Kommentar HMI Demo V2 **** Rev /main/NC_V0_integration/4** Date: Jun 1 15:14:9 2007 abdeaity** Kommentar:exclude pxr0xx.h**** Rev /main/NC_V0_integration/3** Date: May 9 16:9:57 2007 abdeaity** Kommentar: clear SF3464+ new functions**** Rev /main/NC_V0_integration/2** Date: Mar 13 13:57:44 2007 rolfglei** Log-Syntax geaendert*//*** ---------------------------------------------------------------------**                Copyright (c) Bosch Rexroth AG 1997 - 2007**                        All Rights Reserved** ---------------------------------------------------------------------** **    File: dab_h_axis_if.c** **    Responsible: AB**  **    Description of functions: **          This file is an example to understand how to get data from **          NC kernel and to display it on a Tilcon Window.**          in this file we will:**	     -  get the axis number of the system **	     -  start a mechanism to get the actual axis values so that **               if a value of an axes in the system was changed this **               application recieve an event  and will display the **               actuele values** ** ---------------------------------------------------------------------*//*======================================================================**           >>>>    C - Standard Headerfiles        <<<<** ==================================================================== */#ifdef HWDS_WINDOWS #include <windows.h>       /* required for all Windows applications */#endif#include <stdio.h>/*lint -e46*//*lint -e49*//*lint -e10*/#include <tilcon/TRTAPI.h> 	// Tilcon API functions/*lint +e46*//*lint +e49*//*lint +e10*//*======================================================================**           >>>>    General definitions for c-files <<<<**        these lines are generated automatically , do not modify !** ==================================================================== */#include <ty3c_mac.h>/*F*//*======================================================================**           >>>>    MTX - Headerfiles               <<<<** ==================================================================== */#ifndef NCS1BAS_INCLUDED#include "ncs1bas.h"#endif#ifndef NCS1MCO_INCLUDED#include "ncs1mco.h"#endif#ifndef NCS1SAV_INCLUDED#include "ncs1sav.h"#endif/*======================================================================**           >>>>    Headerfiles of the subsystem    <<<<** ==================================================================== */#ifndef DAB_H_ENGINE_IF_INCLUDED#include "dab_h_engine_if.h"#endif#ifndef DAB_H_AXIS_IF_INCLUDED#include "dab_h_axis_if.h"#endif#ifndef DAB_H_OBJIDS_INCLUDED#include "dab_h_ObjIDs.h"#endif#ifndef DAB_H_MEM_INCLUDED#include "dab_h_mem.h"#endif/*======================================================================**       >>>>     Local definitions      <<<<** ==================================================================== */#define CHAN 1LOCAL int FeedAxisNmb;LOCAL int AuxAxisNmb;LOCAL int AxisNumberDone;/*static int SpindleNmb;*/LOCAL Ncs_MCoAxisDataInt_t drivetypes;typedef struct{  double *AxValue;  int size;  int version;  int abbruch;} OwnActAxPosValue_t;LOCAL OwnActAxPosValue_t OwnActAxPosValue;LOCAL OwnActAxPosValue_t OwnActAxEndPosValue;LOCAL OwnActAxPosValue_t OwnActAxRestwegValue;IMPORT char CurrentFileWantToRun[100]; //It will save the file name and it's path./*F*//*************************************************************************** >AUTHOR        : Jiang**  FUNCTION NAME : ** ** >DESCRIPTION:**   After load a program activate a procress to active a NC program            ** ** >NOTES: ** ** >PARAMETER:** ** >RETURN VALUE:** ** >INCLUDES : ** */EXPORT int Dab_h_CreateProcress(char* program){	int flags;	int loc_errncs;	int status;	flags = NCS_SAV_FLAG_LINK_BEFORE_READY_C;	loc_errncs=Ncs_SavProcessCreate(1,program,"","",flags,&status);		if ((status!=NCS_SAV_SERVICEOK_C) || (loc_errncs!=Ncs_ErrOk))	{ //Error handle; 	}	else	{ //service successful;  	}	return loc_errncs; } /* OF Dab_h_CreateProcress*//*F*//*************************************************************************** >AUTHOR        : Jiang**  FUNCTION NAME : ** ** >DESCRIPTION:**   After load a program deactiveate a procress to active a NC program            ** ** >NOTES: ** ** >PARAMETER:** ** >RETURN VALUE:** ** >INCLUDES : ** */EXPORT int Dab_h_DeleteProcress(char* program){	int loc_errncs;	int status;	//flags = NCS_SAV_FLAG_PROCESSDELETE_C;	loc_errncs=Ncs_SavProcessCreate(1,program,"","",NCS_SAV_FLAG_PROCESSDELETE_C,&status);		if ((status!=NCS_SAV_SERVICEOK_C) || (loc_errncs!=Ncs_ErrOk))	{ //Error handle; 	}	else	{ //service successful;  	}	return loc_errncs; }EXPORT void Dab_h_InitAxisinterface(void){  int size;  while(!AxisNumberDone)  {    Dab_h_Delay(500);  } /* OF  While */	    size =((FeedAxisNmb+AuxAxisNmb)*(int)sizeof(double));  /*get mem for act. position value*/  OwnActAxPosValue.AxValue=(double *)Dab_h_Memalloc((unsigned int)size);   if(!OwnActAxPosValue.AxValue) /* if no memory more*/  {/* Traitement of the Error*/  }  /* get mem for act. end position values*/  OwnActAxEndPosValue.AxValue=(double *)Dab_h_Memalloc((unsigned int)size);  if(!OwnActAxEndPosValue.AxValue) /* if no memory more*/  {/* Traitement of the Error*/  }  /* get mem for restweg  values*/  OwnActAxRestwegValue.AxValue=(double *)Dab_h_Memalloc((unsigned int)size);  if(!OwnActAxRestwegValue.AxValue) /* if no memory more*/  {/* Traitement of the Error*/  }  /* initialisation*/  OwnActAxPosValue.size=size;  OwnActAxPosValue.abbruch=0;  OwnActAxPosValue.version=0;  OwnActAxEndPosValue.size=size;  OwnActAxEndPosValue.abbruch=0;  OwnActAxEndPosValue.version=0;  OwnActAxRestwegValue.size=size;  OwnActAxRestwegValue.abbruch=0;  OwnActAxRestwegValue.version=0;}  /* OF Dab_h_InitAxisInterface*//*F*//*************************************************************************** >AUTHOR        : AB**  FUNCTION NAME : GetAxisNmb_Rec** ** >DESCRIPTION:recieve function when we Request axis number from System.**           this function will be called automaticlly when a response**           for  the function Dab_h_GetAxisNmb_Req  is arrived from NCS.**           the response will bes extracted  whith NCS extract function**               ** ** >NOTES: this funktion has been assigned to the request in **          Dab_h_GetAxisNmb_Req ** ** >PARAMETER: ncsmsg: Pointer of received Message** ** >RETURN VALUE: 1 if an error was occurred else 0** ** >INCLUDES :      none** */LOCAL int GetAxisNmb_Rec (Ncs_Msg_t *ncsmsg,Ncs_RecPara_t para){  /* Ncs_MCoAxisDataInt_t *ldrivetypes = (Ncs_MCoAxisDataInt_t *)para;*/  Ncs_Error_t loc_errncs;/* Error status of the NCS*/  int status;  char Output[3];  loc_errncs=Ncs_MCoRqDriveTypes_X(ncsmsg ,/*NCS message*/                                                                     /*Pointer to a buffer for data*/                                      /*Structur(integer field)*/                                  (int*)para,                                             /*buffer size*/                                                 sizeof(Ncs_MCoAxisDataInt_t),                                   &status);/*returns the error status*/  if ((status!=NCS_SAV_SERVICEOK_C) || (loc_errncs!=Ncs_ErrOk))  { /*Treatment of Errors*/    return 1;  }  else  { //* OK */    /*Return the number of primary axes from the data structur*/         /*determined with Ncs_MCoRqDriveTypes*/    FeedAxisNmb=Ncs_MCoGetFeedAxisNmb_X((int*)para,0);    /*Return the number of Auxiliary  axes from the data structur */    /*determined with Ncs_MCoRqDriveTypes*/    AuxAxisNmb=Ncs_MCoGetAuxAxisNmb_X((int*)para,0);    /* SpindleNmb=Ncs_MCoGetSpindleAxisNmb_X((int*)ldrivetypes,0);*/	AxisNumberDone=1;	/* Output in Tilcon interface, */	/* before that will the dataformat changed according to Tilcon */		/* int to char*/	sprintf(Output, "%d", FeedAxisNmb); 	(void)TRT_SetValues(TRT_cid2,AXIS_NMBR_DISPLAY_ID,		      TRT_ATT_TEXT, Output,NULL);  }  {        /*To do ....for Example Data Display */  }	  return 0;}  /* OF GetAxisNmb_Rec *//*F*//*************************************************************************** >AUTHOR        : AB**  FUNCTION NAME : Dab_h_GetAxisNmb_Req** ** >DESCRIPTION:  Asyncron Request of the Axis number** >NOTES:** ** >PARAMETER: none** ** >RETURN VALUE: none** ** >INCLUDES:"dab_h_sxis_if.h"** */EXPORT void  Dab_h_GetAxisNmb_Req (void){  Ncs_Error_t loc_errncs;/* Error status of the NCS*/  AxisNumberDone=0;	   /* General asynchronous variable service(see the ncs Help)*/  loc_errncs=Ncs_MCoGetService_A(GetAxisNmb_Rec,/*Receive function*/                                 /*Parameter of Receive function*/                                 (Ncs_RecPara_t)drivetypes,                                 Ncs_MCoNoChannel_C,                                 /*Service ID*/                                 Ncs_MCoRqDriveTypes_Id);  if (loc_errncs!=Ncs_ErrOk)  {     /* Treatment of Errors */			  }}  /* OF Dab_h_GetAxisNmb_Req *//*F*//*************************************************************************** >AUTHOR        : AB**  FUNCTION NAME : GetAxisValues_Rec** ** >DESCRIPTION: recieve function when we Request axis Values **           from System.**           this function will be called automaticlly when a response**           for  the function Dab_h_GetAxisValues_Req is received **           from NCS.**           the response will bes extracted  whith NCS extract function**               ** ** >NOTES:** ** >PARAMETER: ncsmsg Pointer of received Message**             para : User Parameter** ** >RETURN VALUE:** ** >INCLUDES:** */LOCAL int GetAxisValues_Rec (Ncs_Msg_t *ncsmsg,Ncs_RecPara_t para){  double * ptrvalue;  int Draw_X=0,Draw_Y=0; /* for drawing */            OwnActAxPosValue_t *ldata = (OwnActAxPosValue_t*)para;  Ncs_Error_t loc_errncs; /* Error status of the NCS*/  int status;  long TilconError=0;  char Output[30];            /* Evaluat th asynchronous NCS response that contain Axis values*/  /* see the ncs Help*/  loc_errncs=Ncs_MCoDoubleValue_X(ncsmsg,                                  &(ldata->version),                                  ldata->AxValue,                                  (int)ldata->size,                                  &status);  if ((status!=NCS_SAV_SERVICEOK_C) || (loc_errncs!=Ncs_ErrOk))  { /*Fehlerbehandlung*/		       return 1;  }  else  { /*ok*/ /*to do whith data ldata->AxValue*/     {       /* as example we display the neue axis Values on the display*/             /* 1. Axis */      ptrvalue=ldata->AxValue;                     sprintf(Output, "% .3f", *ptrvalue);      TilconError=TRT_SetValues(TRT_cid2,IST_X_DISPL_ID,                                TRT_ATT_TEXT,Output,NULL);      TilconError=TRT_SetValues(TRT_cid2,"Table_MachinPostiion_ID#0#1",                                TRT_ATT_TEXT,Output,NULL);      Draw_X=(int)((*ptrvalue));      /* 2.Axis */      ptrvalue++;      sprintf(Output, "% .3f", *ptrvalue);      TilconError+=TRT_SetValues(TRT_cid2,IST_Y_DISPL_ID,                                 TRT_ATT_TEXT,Output,NULL);      TilconError+=TRT_SetValues(TRT_cid2,"Table_MachinPostiion_ID#1#1",                                 TRT_ATT_TEXT,Output,NULL);      Draw_Y=(int)((*ptrvalue));      /* 3. Axis */      ptrvalue++;      sprintf(Output, "% .3f", *ptrvalue);      TilconError+=TRT_SetValues(TRT_cid2,IST_Z_DISPL_ID,                                 TRT_ATT_TEXT,Output,NULL);      TilconError+=TRT_SetValues(TRT_cid2,"Table_MachinPostiion_ID#2#1",                                 TRT_ATT_TEXT,Output,NULL);      /* Oscilloscop Test*/      /* as Example we draw the machine move on a Spectograph*/      /* for mor infos a bout this funktion see Tilcon Help*/      TilconError+=TRT_SpectrographUpdateCell (TRT_cid2,/*chanal id*/                                                OSCILOSCOPE_DISPLAY_ID,/*Name*/                                                Draw_X,                                                Draw_Y, /*Draw position*/                                               'c',                                                0, 44);/*Color*/      if(TilconError)      {        /*Treatment of Errors if an objekt not defined*/      }    }		   		    }  if (!ldata->abbruch)  {                /* if the Pannel of coordinates  is not displayed stop the loop*/                /* send a new asynchronous request */    /* this Service returns the Axis values whose ID later than*/    /* the ID that has been preset by the input parameter"version"*/    loc_errncs=Ncs_MCoGetServiceEvent_A(GetAxisValues_Rec,                                        (Ncs_RecPara_t)&OwnActAxPosValue,                                        Ncs_MCoNoChannel_C,                                        (int)ldata->version,                                        Ncs_MCoActAxPosValue_Id);  }  if (loc_errncs!=Ncs_ErrOk)  { /*Treatment of Error */ 	          return 2;  }  return 0;  }  /* OF GetAxisValues_Rec *//*F*//*************************************************************************** >AUTHOR        : AB**  FUNCTION NAME : Dab_h_GetAxisValues_Req** ** >DESCRIPTION: Asyncron Request of the Axis number**               if we call this funktion we start the mechanism to **               receive an event from NCS when the axis Values has been**               changed in the system.** ** >NOTES:** ** >PARAMETER:none** ** >RETURN VALUE:none** ** >INCLUDES:"dab_h_axis_if.h"** */EXPORT void Dab_h_GetAxisValues_Req (void){     Ncs_Error_t loc_errncs;

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
538在线一区二区精品国产| 日韩三级中文字幕| 日本一区二区视频在线| 午夜精品爽啪视频| 一本色道久久综合精品竹菊| 日韩免费一区二区| 亚洲国产色一区| 91麻豆6部合集magnet| 国产性色一区二区| 国产寡妇亲子伦一区二区| 欧美人xxxx| 亚洲一区二区三区四区在线免费观看| 丁香六月久久综合狠狠色| 亚洲国产精品高清| 国产精品一区免费在线观看| 日韩一二三四区| 亚洲激情第一区| 欧洲激情一区二区| 亚洲六月丁香色婷婷综合久久| 国产精品一级片在线观看| 日韩亚洲欧美在线观看| 日本视频在线一区| 欧美日韩免费观看一区二区三区| 一区二区三区鲁丝不卡| 欧美日韩国产三级| 亚洲国产成人av网| 欧美中文字幕久久| 亚洲福利视频导航| 日韩欧美在线123| 日本美女一区二区| 欧美精品丝袜中出| 国产精品看片你懂得| 99精品在线观看视频| 亚洲天堂福利av| 91在线国产福利| 亚洲国产视频直播| 在线成人午夜影院| 另类综合日韩欧美亚洲| 精品av久久707| 国产精品自在欧美一区| 国产欧美一区二区精品秋霞影院| 久久99日本精品| 久久久精品一品道一区| 91在线国内视频| 亚洲午夜av在线| 91精品国产一区二区三区香蕉| 免费人成精品欧美精品 | 中文一区在线播放| 成人午夜av在线| 中国色在线观看另类| 欧美中文字幕一区二区三区亚洲| 天堂资源在线中文精品| 51精品国自产在线| 亚洲午夜一区二区三区| 日韩欧美成人午夜| 成人亚洲精品久久久久软件| 1区2区3区精品视频| 91福利精品视频| 蜜桃av噜噜一区| 国产亚洲污的网站| 日本高清不卡一区| 丝袜脚交一区二区| 欧美一级高清片| 国产成人丝袜美腿| 一区二区三区免费| 7777精品伊人久久久大香线蕉| 成人综合婷婷国产精品久久| 一区二区三区av电影| 日韩欧美区一区二| 96av麻豆蜜桃一区二区| 日韩成人一区二区| 国产欧美一区二区精品忘忧草| youjizz国产精品| 美女视频一区在线观看| 国产精品久99| 欧美久久免费观看| av一区二区三区| 奇米综合一区二区三区精品视频| 国产欧美一区二区精品性| 91精品蜜臀在线一区尤物| 国产一区日韩二区欧美三区| 亚洲男人电影天堂| 日韩欧美国产一二三区| 在线区一区二视频| 国产真实精品久久二三区| 综合久久综合久久| 日韩欧美一区在线| 91麻豆免费视频| 奇米精品一区二区三区四区| 久久奇米777| 欧美日韩久久久久久| 国产乱码精品1区2区3区| 亚洲第四色夜色| 久久综合给合久久狠狠狠97色69| 色综合天天综合色综合av| 日韩中文字幕1| 日本一区二区三区在线不卡| 精品日韩一区二区三区| 色婷婷狠狠综合| 韩国女主播一区二区三区| 日韩中文字幕麻豆| 亚洲男女一区二区三区| 久久综合色播五月| 91精品国产91综合久久蜜臀| 91丨porny丨户外露出| 久久99精品久久久久久动态图 | 日韩毛片一二三区| 久久久天堂av| 欧美一区二区三区四区在线观看 | 亚洲国产一区二区三区青草影视| 国产欧美一区二区精品性| 日韩亚洲欧美在线| 欧美天天综合网| 97精品视频在线观看自产线路二| 极品少妇一区二区| 久久成人18免费观看| 性久久久久久久久| 亚洲青青青在线视频| 国产亚洲欧洲一区高清在线观看| 欧美一级午夜免费电影| 在线免费观看成人短视频| 精品午夜一区二区三区在线观看 | 亚洲愉拍自拍另类高清精品| 国产精品网曝门| 2014亚洲片线观看视频免费| 欧美裸体一区二区三区| 欧美日韩国产精品成人| 99精品视频免费在线观看| 国产二区国产一区在线观看| 国产精品一二二区| 国产中文字幕精品| 精品综合久久久久久8888| 欧美a级理论片| 偷窥少妇高潮呻吟av久久免费| 国产精品第13页| 亚洲欧美日韩在线| 亚洲欧洲色图综合| 日本一区二区综合亚洲| 国产精品成人一区二区三区夜夜夜| 久久久久久久久久美女| 日韩一区二区视频| 精品国产乱码久久久久久图片| 精品少妇一区二区三区在线视频| 日韩一区二区在线播放| 欧美色爱综合网| 欧美一区二区三区在线视频| 欧美日韩国产精品成人| 欧美日韩电影一区| 欧美va在线播放| 欧美大白屁股肥臀xxxxxx| 欧美xxx久久| 国产精品视频麻豆| 亚洲国产精品t66y| 亚洲国产成人午夜在线一区| 亚洲久草在线视频| 一区二区三区在线视频观看 | 国产三级欧美三级日产三级99| 日韩欧美二区三区| 欧美精品一区二区三区在线播放 | 日韩视频免费观看高清完整版| 欧美va日韩va| 国产精品网站在线播放| 樱桃视频在线观看一区| 日本成人中文字幕| 国产高清亚洲一区| 91黄色免费网站| 欧美一区二区大片| 亚洲国产精品高清| 亚洲成av人综合在线观看| 激情欧美一区二区三区在线观看| 风间由美性色一区二区三区| 色88888久久久久久影院野外| 欧美精品少妇一区二区三区| 国产视频亚洲色图| 亚洲制服丝袜在线| 国产一区二区三区精品视频| 色婷婷综合久久久久中文 | 欧美日韩免费在线视频| 精品粉嫩aⅴ一区二区三区四区| 国产精品麻豆欧美日韩ww| 亚洲成av人在线观看| 国产在线精品一区在线观看麻豆| 97久久超碰国产精品| 91精品国产综合久久久蜜臀粉嫩| 日本一区二区三区在线观看| 午夜久久电影网| 成人综合婷婷国产精品久久蜜臀| 欧美美女网站色| 国产精品电影一区二区三区| 日本色综合中文字幕| 成人99免费视频| 欧美一级理论片| 亚洲丝袜另类动漫二区| 美女性感视频久久| 色婷婷久久久亚洲一区二区三区| 精品国产一区二区国模嫣然| 亚洲精品国产精华液| 国产乱码精品一区二区三区忘忧草 | 久久久精品蜜桃| 图片区小说区国产精品视频|