beautypg.com

28 setall – INFICON XTC/3 Thin Film Deposition Controller Communications Library Operating Manual User Manual

Page 57

background image

1 - 43

IP

N 07

4-

45

4-

P1

B

XTC/3 Communications Library Operating Manual

1.3.2.28 setAll

int setAll (XTC3AllData *val, char* ErrMsg, BOOL TCP);

Description

This function is used for uploading all the instrument parameters, which are:

Š

General = XTC3_MAX_GEN_PARAM x 4 bytes

Š

Film = NUM_OF_FILMS x MAX_FILM_PARAM x 4 bytes

Š

IOMap = (NUM_OF_RELAYS + NUM_OF_TTLs +
XTC3_NUM_OF_INPUTS) bytes

Š

All Film Names (XTC/3M only): NUM_OF_FILMS x (up to
XTC3_TITLE_LENGTH, null terminator included)

Š

Up to

PART_NUM_OF_PROCESSES

Processes filled each with

(NUM_OF_LAYERS + XTC3_TITLE_LENGTH + 2) x

PART_NUM_OF_PROCESSES

)

NOTE: See command UB1 and QB1 in the User’s Guide document.

The whole packet amounts to a maximum of XTC3_ALL_SIZE bytes.

Arguments

XTC3AllData *val:

This structure is first filled with all the instrument parameters (see
description above) which amounts to a maximum of XTC3_ALL_SIZE
bytes.

The variable m_Length is a 2 byte short that represents the length of data
being marshaled in array val->m_Data.

char* ErrMsg

BOOL TCP

Example

// This example will send all Parameters to the XTC/3
// instrument. For simplicity, it will first do a getAll
// (see above) and, once the structure is filled, it will
// change a couple of parameters and send it through.
// Note that this example uses serial communications.

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

SetXTC3Port(1);
SetBaud(115200);
SetTimeOut(5000);
if(TC_E_SUCCESS != XTC3Open())
{
printf("Cannot open port\n");