Herunterladen Inhalt Inhalt Diese Seite drucken

Das Programm-Beispiel Sample.c - HEIDENHAIN IK 320 Benutzerhandbuch

Vmebus-zählerkarte
Inhaltsverzeichnis

Werbung

9.2 Das Programm-Beispiel SAMPLE.C

/*----------------------------SAMPLE.C-------------------------------
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
#include <dos.h>
#include "vmerotec.h"//Header file for ROTEC VME interface
#include "ik320.h"
#include "sample.h"
/*--------------------------------------------------------------------
unsigned char extucErrorCode = 0, extucMessage = 0;
/*--------------------------------------------------------------------
unsigned short usIntervalOfCompPoints, usNumberOfCompPoints;
/*--------------------------------------------------------------------
void main()
{
}//End of main
/*--------------------------------------------------------------------
void MainMenu()
{
DR. JOHANNES HEIDENHAIN GmbH, Traunreut, Germany
Sample for IK 320
V 1.00
September 1995
-------------------------------------------------------------------*/
Global variables
------------------------------------------------------------------*/
Variables for Compensation run
------------------------------------------------------------------*/
Main
------------------------------------------------------------------*/
clrscr();
//Initialize VME interface (ROTEC specific functions)
VmeInit();
//Initialize IK 320
InitIK320(DIP_SWITCH_SI, DIP_SWITCH_SII);
//Display the main menu
MainMenu();
exit(0);
MainMenu
------------------------------------------------------------------*/
char cCharacter;
_setcursortype(_NOCURSOR);
do
{
if (extucErrorCode)
{
DisplayError();
}
if (extucMessage)
{
DisplayMessage();
}
clrscr();
fflush(stdin);
printf("1: Traverse over Reference Mark axis 1\n");
printf("2: Traverse over Reference Mark axis 2\n");
printf("3: Display Position Values\n");
printf("4: Compensation Run axis 1\n");
printf("5: Compensation Run axis 2\n");
!Á

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis