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

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

?? e05560cea75f001d1289bbda6de18a35

?? 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,"","",flags,&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一区二区三区免费野_久草精品视频
欧日韩精品视频| 亚洲精品亚洲人成人网在线播放| 国产精品免费观看视频| 一区二区三区四区视频精品免费| 国产专区欧美精品| 欧美三区免费完整视频在线观看| 国产精品无遮挡| 日韩高清在线一区| 在线看国产日韩| 欧美国产综合一区二区| 久久国产剧场电影| 欧美日韩在线综合| 亚洲黄色av一区| 波多野结衣视频一区| 欧美videossexotv100| 亚洲国产日韩一区二区| 色综合欧美在线视频区| 国产精品午夜在线| 国产精品性做久久久久久| 日韩精品一区二区三区在线 | 五月天亚洲婷婷| 色激情天天射综合网| 最近日韩中文字幕| 99久久婷婷国产精品综合| 中文久久乱码一区二区| 成人黄色免费短视频| 久久欧美一区二区| 国产高清成人在线| 日本一区二区成人| jlzzjlzz欧美大全| 亚洲丝袜制服诱惑| 欧美在线影院一区二区| 一区二区三区中文字幕电影| 91色综合久久久久婷婷| 亚洲色欲色欲www| 色婷婷久久综合| 亚洲成人免费观看| 欧美一卡二卡在线| 麻豆高清免费国产一区| 久久免费电影网| 国产成人精品1024| 亚洲欧洲国产日本综合| 欧美午夜一区二区三区 | 国产精品网站在线观看| 国产成人综合自拍| 国产精品网站在线播放| 一本久久a久久精品亚洲| 亚洲午夜日本在线观看| 欧美日韩国产天堂| 精品一区二区三区视频在线观看 | 久久 天天综合| 日韩视频国产视频| 精品一区二区三区在线播放视频 | 7777精品伊人久久久大香线蕉超级流畅 | 久久综合狠狠综合| 91在线视频在线| 日韩和的一区二区| 久久久久久免费网| 91成人国产精品| 蜜臀av性久久久久蜜臀aⅴ流畅| 日韩免费一区二区| 99热99精品| 无码av中文一区二区三区桃花岛| 久久综合成人精品亚洲另类欧美| 成人精品免费视频| 亚洲一区视频在线| 久久色.com| 欧美在线一二三| 国产一区二区三区久久悠悠色av| 亚洲欧洲av一区二区三区久久| 欧美性色欧美a在线播放| 精品在线免费视频| 亚洲综合另类小说| 久久伊人蜜桃av一区二区| 色噜噜夜夜夜综合网| 久久99久久99精品免视看婷婷 | 欧美三级三级三级| 国内精品不卡在线| 一区二区日韩av| 国产香蕉久久精品综合网| 欧美日韩一区二区在线观看 | 久久爱www久久做| 亚洲另类春色校园小说| 久久久久国产成人精品亚洲午夜| 欧美伊人久久大香线蕉综合69| 国产精品一品视频| 日本91福利区| 亚洲图片一区二区| 国产精品高潮呻吟| 久久久精品免费网站| 91精品欧美综合在线观看最新| 99久久免费精品高清特色大片| 久久99精品一区二区三区| 亚洲一区二区精品久久av| 综合av第一页| 中文字幕第一页久久| 精品美女在线播放| 91精品蜜臀在线一区尤物| 在线观看av不卡| 色素色在线综合| 色综合天天视频在线观看| 成人免费黄色在线| 国产成人免费在线| 国产精一品亚洲二区在线视频| 免费日韩伦理电影| 青青草视频一区| 天天综合天天做天天综合| 亚洲第一久久影院| 亚洲成av人片一区二区三区| 亚洲最色的网站| 香蕉久久夜色精品国产使用方法 | 亚洲视频综合在线| 亚洲欧美韩国综合色| 亚洲素人一区二区| 亚洲免费av观看| 亚洲三级小视频| 亚洲精品久久久久久国产精华液| 国产精品久久久久久久久动漫 | 亚洲午夜精品一区二区三区他趣| 亚洲蜜臀av乱码久久精品| 国产精品美女视频| 国产精品麻豆久久久| 亚洲欧洲av一区二区三区久久| 中文字幕中文字幕在线一区| 《视频一区视频二区| 亚洲美女在线一区| 亚洲国产另类av| 日本视频一区二区| 国产精品911| 成人av在线资源网| 欧美偷拍一区二区| 制服丝袜亚洲播放| 精品国精品自拍自在线| 欧美经典三级视频一区二区三区| 中文字幕在线播放不卡一区| 亚洲欧美乱综合| 日韩精品1区2区3区| 国产精品自拍在线| 91麻豆国产自产在线观看| 欧美性淫爽ww久久久久无| 日韩午夜激情电影| 中文字幕av一区 二区| 亚洲成人资源网| 国产原创一区二区| 色综合天天做天天爱| 91精品国产入口| 国产亚洲精品7777| 夜夜嗨av一区二区三区网页| 美国十次综合导航| 91美女在线观看| 日韩欧美高清dvd碟片| **性色生活片久久毛片| 图片区小说区国产精品视频| 国产毛片一区二区| 欧美性高清videossexo| 国产色一区二区| 亚洲成人免费观看| 成a人片亚洲日本久久| 日韩视频免费观看高清完整版| 国产精品欧美久久久久无广告 | 91视频免费播放| 日韩欧美成人一区二区| 亚洲视频一区二区在线观看| 久久精品国产免费| 欧美在线视频你懂得| 国产欧美一区二区三区鸳鸯浴| 肉肉av福利一精品导航| 91免费视频大全| 久久久久久久久久看片| 日韩影院免费视频| 在线观看av一区二区| 中文字幕在线一区免费| 精品写真视频在线观看| 91麻豆精品国产自产在线观看一区 | 一本一本久久a久久精品综合麻豆| 日韩欧美在线123| 亚洲一区av在线| 成人91在线观看| 国产性做久久久久久| 久久精品国产在热久久| 欧美精品在线视频| 一区二区三区久久| 91性感美女视频| 国产精品久久夜| 成a人片国产精品| 国产视频一区二区三区在线观看| 另类欧美日韩国产在线| 欧美日韩卡一卡二| 亚洲成a人v欧美综合天堂下载 | 久久免费的精品国产v∧| 日本最新不卡在线| 欧美日韩免费在线视频| 亚洲综合久久久久| 欧美体内she精视频| 亚洲曰韩产成在线| 色999日韩国产欧美一区二区| 亚洲天堂免费在线观看视频| 91尤物视频在线观看| 亚洲视频在线观看一区| 91片在线免费观看|