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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? c0b6b1c7a85f001d1289bbda6de18a35

?? Vxworks環境下
??
?? 第 1 頁 / 共 2 頁
字號:
/*$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 flags;	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;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
韩国欧美一区二区| 国产成人精品1024| 国产精品色哟哟| 欧美男人的天堂一二区| 久久超碰97人人做人人爱| 中文字幕亚洲一区二区av在线| 666欧美在线视频| 91免费视频网址| 国产在线播放一区三区四| 亚洲小说春色综合另类电影| 国产日韩av一区| 欧美成人vps| 欧美日韩一区二区在线观看视频 | 另类调教123区 | 最新国产成人在线观看| 精品久久久久一区二区国产| 欧美日韩午夜在线视频| 不卡视频免费播放| 粉嫩蜜臀av国产精品网站| 青娱乐精品在线视频| 一区二区国产视频| 亚洲视频香蕉人妖| 国产精品初高中害羞小美女文| 久久综合久久鬼色| 欧美成人精品福利| 91精品国产综合久久久久久久 | 婷婷成人综合网| 亚洲黄色录像片| 中文字幕av一区 二区| 国产亚洲一二三区| 久久久国产午夜精品| 日韩一区国产二区欧美三区| 欧美精品久久99久久在免费线| 日本乱码高清不卡字幕| 在线视频你懂得一区| 91玉足脚交白嫩脚丫在线播放| 成人高清视频免费观看| www.欧美精品一二区| 成人激情av网| 成人sese在线| 97国产精品videossex| 91麻豆国产自产在线观看| 99re视频精品| 欧美亚洲国产bt| 欧美男人的天堂一二区| 日韩欧美自拍偷拍| 精品少妇一区二区三区免费观看| 日韩欧美一级二级| 日韩精品一区二区三区三区免费| 精品91自产拍在线观看一区| 日韩精品中文字幕一区二区三区| 欧美一区二区人人喊爽| 欧美v日韩v国产v| 国产亚洲欧美一级| 亚洲天堂免费看| 亚洲午夜日本在线观看| 日日摸夜夜添夜夜添精品视频| 人人精品人人爱| 狠狠色丁香久久婷婷综| 粉嫩av一区二区三区粉嫩| 99久久99久久精品免费观看| 精品视频一区三区九区| 日韩一区二区三区免费观看| 精品成人私密视频| 国产精品免费av| 一区二区三区免费| 久久福利资源站| 国产成人在线影院| 91麻豆国产香蕉久久精品| 欧美另类久久久品| 国产欧美日韩三级| 一区二区三区在线视频观看58| 亚洲成人av福利| 国产在线不卡视频| 在线观看91精品国产入口| 777午夜精品免费视频| 日韩一级二级三级| 国产精品美女久久福利网站| 亚洲va在线va天堂| 国产成人综合在线| 欧美日本高清视频在线观看| 久久综合色8888| 亚洲精品精品亚洲| 日日摸夜夜添夜夜添亚洲女人| 国产99一区视频免费| 欧美日韩综合一区| 国产欧美日韩中文久久| 日韩主播视频在线| 风流少妇一区二区| 欧美一区二区三区喷汁尤物| 中文字幕一区二区三区在线不卡| 视频一区视频二区中文| av电影在线观看完整版一区二区| 91麻豆精品国产91久久久久久 | 欧美三级中文字幕| 久久久综合网站| 午夜激情一区二区三区| thepron国产精品| 欧美zozo另类异族| 亚洲自拍偷拍综合| 国产超碰在线一区| 91精品国产综合久久久久久久久久| 中文成人av在线| 另类人妖一区二区av| 精品视频一区三区九区| 亚洲视频图片小说| 国产a久久麻豆| 欧美精品在线一区二区| 丝袜美腿亚洲一区| 欧美性大战久久| 精品亚洲porn| 久久成人av少妇免费| 在线观看日韩高清av| 国产亚洲福利社区一区| 麻豆成人免费电影| 欧美裸体bbwbbwbbw| 综合欧美亚洲日本| 国产一区二区看久久| 欧美一级黄色片| 丝袜诱惑亚洲看片| 欧美调教femdomvk| 亚洲精品视频免费看| 成人国产一区二区三区精品| 久久久影视传媒| 美女在线一区二区| 日韩一区二区在线看| 日韩综合在线视频| 337p亚洲精品色噜噜| 亚洲午夜羞羞片| 欧美在线视频日韩| 自拍偷拍欧美激情| 成人午夜电影网站| 国产视频不卡一区| 国产不卡免费视频| 久久久国产精品麻豆| 久久国产剧场电影| 久久综合给合久久狠狠狠97色69| 久久成人久久爱| 2020国产精品自拍| 国产精品一区二区久激情瑜伽| 日韩欧美123| 免费成人美女在线观看.| 91精选在线观看| 七七婷婷婷婷精品国产| 日韩免费看网站| 韩国女主播成人在线| 久久久亚洲高清| 成人国产一区二区三区精品| 亚洲免费高清视频在线| 欧美羞羞免费网站| 日本亚洲三级在线| 2024国产精品视频| 成人一二三区视频| 亚洲欧美一区二区不卡| 在线中文字幕一区二区| 亚洲国产精品麻豆| 日韩欧美aaaaaa| 成人中文字幕合集| 亚洲欧美电影一区二区| 欧美色图一区二区三区| 免播放器亚洲一区| 国产午夜精品久久久久久久 | 一区二区三区资源| 欧美巨大另类极品videosbest| 日韩国产一区二| 国产日韩在线不卡| 色美美综合视频| 五月婷婷综合在线| 久久亚洲精品国产精品紫薇| 国产91在线看| 一区二区三区色| 日韩一区二区三区免费观看| 国产suv一区二区三区88区| 亚洲欧洲av在线| 在线播放一区二区三区| 国产毛片精品视频| 亚洲女爱视频在线| 日韩欧美一区电影| 97久久超碰精品国产| 日韩精品视频网站| 国产精品无人区| 欧美丰满高潮xxxx喷水动漫| 国产成人综合在线观看| 亚洲一区二区在线免费看| 久久综合九色综合97婷婷| 在线免费不卡电影| 国产福利一区二区三区视频在线| 亚洲自拍欧美精品| 国产亚洲精久久久久久| 欧美日韩国产系列| 国产91在线观看| 免费看欧美女人艹b| 亚洲色图20p| 精品久久五月天| 欧美一a一片一级一片| 国产91高潮流白浆在线麻豆 | 91精品国产综合久久婷婷香蕉| jizzjizzjizz欧美| 毛片av中文字幕一区二区| 亚洲一区二区在线播放相泽|