beautypg.com

18 getprocessspeclayer – INFICON XTC/3 Thin Film Deposition Controller Communications Library Operating Manual User Manual

Page 46

background image

1 - 32

IP

N 07

4-

45

4-

P1

B

XTC/3 Communications Library Operating Manual

1.3.2.18 getProcessSpecLayer

int getProcessSpecLayer (SpecLayerData *val, int index, char* ErrMsg, unsigned
short *len, BOOL TCP);

Description

getProcessSpecLayer gets the film number of a layer at a process.

Arguments

SpecLayerData* val:

This is a 3-byte structure, which is first filled with the requested layer
number (first 2 bytes) before the function is called. The function response
returns the film number in the first byte of the structure. The remaining two
structure bytes are unused and should be ignored.

int index:

The process index (1 to NUM_OF_PROCESSES)

char* ErrMsg

BOOL TCP

Example

#include "XTC3Lib.h"
void main()
{

if(StartSocket()==0)

printf("Socket could not be initialized.");

if(!ConnectSocket("10.211.70.209"))

printf("Socket could not be connected!");

char ErrStr[256];
memset(ErrStr,0,256);
SpecLayerData val;
unsigned short layerNumber = 3;
memcpy(val.m_Data, &layerNumber,2);
unsigned short len = 0;
getProcessSpecLayer (&val, 1, ErrStr, &len, TRUE);
if(*ErrStr == 0)
{

printf("Data Transfer successful\n");
printf("The film number at layer %d is”
“%d\n",layerNumber,val.m_Data[0]);

}
else

printf(ErrStr);

CloseSocket();

}