<< Click to Display Table of Contents > 

Client Control Interface Manual > Pen Settings > Laser-Specials > SPI

SPI
Previous pageReturn to chapter overviewNext page

The following tab is available, if an SPI laser is configured. It can be found via Mark → Edit... → SPI. The following commands can be set via CCI:

•SPI CW Mode

•SPI Waveform

•SPI Simmer Value

 

SPI CW Mode
 

☒ Set

☒ Get

DLL Function

int CCI_Return = ScSetLongValue(int Value_Type, int CW_Mode)

int CW_Mode = ScGetLongValue(int Value_Type)

ASCII Function

int CCI_Return = ScCciSetLongValue(int Value_Type, int CW_Mode)

int CW_Mode = ScCciGetLongValue(int Value_Type)

Description

Set or get the status of the CW mode.

Value_Type

Type: int

ID:

Location: ScComSAMLightClientCtrlValueTypes

scComSAMLightClientCtrlLongValueTypeSpiCw

21

CW_Mode

Type: int

Unit: none

•0: Disable

•1: Enable

CCI_Return

Type: int

CCI return number, see error list.

Notes

•The pen number has to be set by ScSetPen.

C# Example: Switch on the CW mode:

 

int CCI_Return = cci.ScSetLongValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlLongValueTypeSpiCw, 1 );

C# Example: Get the current state of the CW mode:
 
int CW_Mode = cci.ScGetLongValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlLongValueTypeSpiCw );

Table 93: SPI G3 CW mode

SPI Waveform
 

☒ Set

☒ Get

DLL Function

int CCI_Return = ScSetLongValue(int Value_Type, int Waveform)

int Waveform = ScGetLongValue(int Value_Type)

ASCII Function

int CCI_Return = ScCciSetLongValue(int Value_Type, int Waveform)

int Waveform = ScCciGetLongValue(int Value_Type)

Description

Set or get the waveform.

Value_Type

Type: int

ID:

Location: ScComSAMLightClientCtrlValueTypes

scComSAMLightClientCtrlLongValueTypeSpiWaveform

20

Waveform

Type: int

Unit: none

Waveform value.

CCI_Return

Type: int

CCI return number, see error list.

Notes

•The pen number has to be set by ScSetPen.

C# Example: Set the waveform value to 57:

 

int CCI_Return = cci.ScSetLongValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlLongValueTypeSpiWaveform, 57 );

C# Example: Get the current waveform value:
 
int Wave_Form = cci.ScGetLongValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlLongValueTypeSpiWaveform );

Table 94: SPI Waveform

SPI Simmer

 

☒ Set

☒ Get

DLL Function

int CCI_Return = ScSetDoubleValue(int Value_Type, double Simmer)

double Simmer = ScGetDoubleValue(int Value_Type)

ASCII Function

int CCI_Return = ScCciSetDoubleValue(int Value_Type, double Simmer)

double Simmer = ScCciGetDoubleValue(int Value_Type)

Description

Set or get the simmer value for Spi Laser.

Value_Type

Type: int

ID:

Location: ScComSAMLightClientCtrlValueTypes

scComSAMLightClientCtrlDoubleValueTypeSpiLaserSimmer

45

Simmer

Type: int

Unit: [%]

Simmer value.

CCI_Return

Type: int

CCI return number, see error list.

Notes

•The pen number has to be set by ScSetPen.

C# Example: Set the simmer value to 100%:
 

int CCI_Return = cci.ScSetDoubleValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypeSpiLaserSimmer, 100.0 );

C# Example: Get the current simmer value:
 

double Simmer = cci.ScGetDoubleValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypeSpiLaserSimmer );

Table 95: SPI Simmer