Sigma – INFICON SQC-122 Thin Film Deposition Controller Communications Manual User Manual

Page 7

Advertising
background image

1318 Duff Drive

?

Fort Collins, Colorado 80524

?

(970) 416-9660

?

Fax (970) 416-9330

?

Sigma

instruments

SIGMACOM.DLL Function Descriptions

This dll acts as an interpreter between an application and the SQC122. The dll

transforms function calls to specific command sequences that the unit understands.

Transfer of data to the unit, in general, requires two function calls. The first

function call is to transfer the data to the unit. The data to be sent is usually contained in
the function’s parameter(s). The second function call is to ChkCommDone. This function
call ensures that the data was sent properly to the unit.

Data retrieval requires three function calls. The first function call is used to tell the

unit what data is being requested. The second function call is to ChkCommDone. This
function call is used to determine when all of the data has been transferred from the unit
to the dll or if an error occurred in the communications. The third function call is used to
retrieve the data from the dll.

InitComm

Parameters: 16 Bit Integer, 32 Bit Integer
Return : 16 Bit Integer.

InitComm is used to initialize the dll com port. The function’s first parameter is the
com port number to initialize (1 - 99 are valid). The second parameter is the baud
rate for the port. The function returns zero if initialization was successful or a bit
flag to indicate the failure of the initialization :

bit 0 : Communications Port handle is invalid.
bit 1 : Communications Port Set parameters invalid (Baud Rate)
bit 2 : Communications Port Set timeouts invalid.
bit 3 : Communications Port Set mask invalid.
bit 4 : Communications Port Error – Already exists.
bit 5 : Communications Port Set Read Thread fail.
bit 6 : Communications Port Set Read Thread priority fail.

Example:

ReturnVal =InitComm(1,19200)

initialize Com1 to 19200 baud

if (ReturnVal != 0)

if port did not initialize correctly

CloseComm()

close the port

Advertising