<< Click to Display Table of Contents > Advanced Settings |
The following functions can be used when pressing the Advanced ... button on the Mark property page.
|
---|
☒ Set ☒ Get |
|||
---|---|---|---|
DLL Function |
int CCI_Return = ScSetDoubleValue(int Value_Type, double Parameter) double Parameter = ScGetDoubleValue(int Value_Type) |
||
ASCII Function |
int CCI_Return = ScCciSetDoubleValue(int Value_Type, double Parameter) double Parameter = ScCciGetDoubleValue(int Value_Type) |
||
Description |
Set or get the relevant power map values. |
||
Value_Type |
Type: int |
ID: |
|
Location: ScComSAMLightClientCtrlValueTypes |
|||
scComSAMLightClientCtrlDoubleValueTypeSizePowerMap |
18 |
||
Length of the power map. The value should be 16. (get only) |
|||
scComSAMLightClientCtrlDoubleValueTypePowerMapStartId |
19 |
||
Returns the start value of the power map. The value should be 10000. (get only) |
|||
scComSAMLightClientCtrlDoubleValueTypeMaxPower |
20 |
||
Maximum Power [Watt]. This is not used for CO2. |
|||
Parameter |
Type: double |
Unit: none |
|
The corresponding value. |
|||
CCI_Return |
Type: int |
||
CCI return number, see error list. |
|||
Notes |
•Power Map lookup table ranges and units: ofor DAC_A, DAC_B and 8-bit LP: [0.0, 255.0] bit ofor CO2 duty cycle: [0.0, 100.0] % |
||
C# Example: Set up linear PowerMap for a 10W YAG laser:
int CCI_Return_01 = cci.ScSetDoubleValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypeMaxPower, 10.0 ); double Length = cci.ScGetDoubleValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypeSizePowerMap ); double Start_ID = cci.ScGetDoubleValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypePowerMapStartId ); for( int i = 0; i < (int)Length; i++ ) { int CCI_Return_02 = cci.ScSetDoubleValue( ( int )Start_ID + i, 255.0 / ( Length - 1.0 ) * i ); } |
Table 77: PowerMap Settings
☒ Set ☒ Get |
|||
---|---|---|---|
DLL Function |
int CCI_Return = ScSetDoubleValue(int Value_Type, double Parameter) double Parameter = ScGetDoubleValue(int Value_Type) |
||
ASCII Function |
int CCI_Return = ScCciSetDoubleValue(int Value_Type, double Parameter) double Parameter = ScCciGetDoubleValue(int Value_Type) |
||
Description |
Set or get the control points of dynamic PixelMaps for grayscale bitmap marking. |
||
Value_Type |
Type: int |
ID: |
|
Location: ScComSAMLightClientCtrlValueTypes |
|||
scComSAMLightClientCtrlDoubleValueTypePixelCtrlPointsSize |
29999 |
||
Number of control points of the PixelMap. Range of size values: [2.0, 256.0] |
|||
scComSAMLightClientCtrlDoubleValueTypePixelCtrlPointsIn |
30000 |
||
Input grayscale value [bit] of the PixelMap. Range of bit values: [0.0, 255.0]. Up to 256 control points can be used. Range of PixelCtrlPointsIn IDs: [30000, 30255]. First input grayscale value must be 0.0 bit. Last input grayscale value must be 255.0 bit. |
|||
scComSAMLightClientCtrlDoubleValueTypePixelCtrlPointsOut |
30256 |
||
Output grayscale value [bit] of the PixelMap. Range of bit values: [0.0, 255.0]. Up to 256 control points can be used. Range of PixelCtrlPointsOut IDs: [30256, 30511]. |
|||
Parameter |
Type: double |
Unit: depends on constant |
|
The corresponding value. |
|||
CCI_Return |
Type: int |
||
CCI return number, see error list. |
|||
Notes |
•Settings > System > Extras > Dynamic Grayscale Map must be disabled. •Up to 256 lookup control points can be used. •The pen number has to be set by ScSetPen. System Pixel Map is set up by special pen number 1111. |
||
C# Example: Set up the System PixelMap with 7 nodes with linear interpolation between the nodes:
int CCI_Return_00 = cci.ScSetLongValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlLongValueTypePixelMapType, 1 ); int CCI_Return_01 = cci.ScSetPen( 1111 ); double[] PixelMap_In = { 0.0, 42.0, 85.0, 128.0, 170.0, 212.0, 255.0 }; double[] PixelMap_Out = {0.0, 44.9, 86.3, 124.0, 158.1, 188.6, 215.5 }; int CCI_Return_02 = cci.ScSetDoubleValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypePixelCtrlPointsSize, ( double )PixelMap_In.Length ); for( int i = 0; i < PixelMap_In.Length; i++ ) { int CCI_Return_03 = cci.ScSetDoubleValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypePixelCtrlPointsIn + i, PixelMap_In[ i ] ); int CCI_Return_04 = cci.ScSetDoubleValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypePixelCtrlPointsOut + i, PixelMap_Out[ i ] ); } |
Table 78: PixelMap Dynamic
|
☒ Set ☐ Get |
||
---|---|---|---|
DLL Function |
int CCI_Return = ScSetPixelMapForPen(int Pen, int Grayscale_0, int Grayscale_1, int Grayscale_2, int Grayscale_3, int Grayscale_4, int Grayscale_5) |
||
ASCII Function |
int CCI_Return = ScCciSetPixelMapForPen(int Pen, int Grayscale_0, int Grayscale_1, int Grayscale_2, int Grayscale_3, int Grayscale_4, int Grayscale_5) |
||
Description |
Set the % of grayscale values for legacy PixelMaps for grayscale bitmap marking. |
||
Pen |
Type: int |
Unit: none |
|
•[0, 255]: Pen Pixel Map of 0-based pen number •1111: System Pixel Map |
|||
Grayscale_0 |
Type: int |
Unit: [%] |
|
Grayscale value of the first slider |
|||
Grayscale_1 |
Type: int |
Unit: [%] |
|
Grayscale value of the second slider |
|||
Grayscale_2 |
Type: int |
Unit: [%] |
|
Grayscale value of the third slider |
|||
Grayscale_3 |
Type: int |
Unit: [%] |
|
Grayscale value of the fourth slider |
|||
Grayscale_4 |
Type: int |
Unit: [%] |
|
Grayscale value of the fifth slider |
|||
Grayscale_5 |
Type: int |
Unit: [%] |
|
Grayscale value of the sixth slider |
|||
CCI_Return |
Type: int |
||
CCI return number, see error list. |
|||
Notes |
•Settings > System > Extras > Dynamic Grayscale Map must be disabled. •6 lookup control points are used. •Range of % of grayscale values: [0.0, 100.0]. •PixelMaps can be set or get with PixelMap Static (2) as well. |
||
C# Example: Set up a linear system pixel map:
int CCI_Return = cci.ScSetPixelMapForPen( 1111, 0, 20, 40, 60, 80, 100 ); |
Table 79: PixelMap Static (1)
☒ Set ☒ Get |
|||
---|---|---|---|
DLL Function |
int CCI_Return = ScSetDoubleValue(int Value_Type, double Grayscale) double Grayscale = ScGetDoubleValue(int Value_Type) |
||
ASCII Function |
int CCI_Return = ScCciSetDoubleValue(int Value_Type, double Grayscale) double Grayscale = ScCciGetDoubleValue(int Value_Type) |
||
Description |
Set or get the grayscale values for legacy PixelMaps for grayscale bitmap marking. |
||
Value_Type |
Type: int |
ID: |
|
Location: ScComSAMLightClientCtrlValueTypes |
|||
scComSAMLightClientCtrlDoubleValueTypeStyleIDPixelMapZone |
4096 |
||
Range of StyleIDPixelMapZone IDs: [4096, 4101]. |
|||
Grayscale |
Type: double |
Unit: [%] |
|
Grayscale value in the range [0.0, 100.0]. |
|||
CCI_Return |
Type: int |
||
CCI return number, see error list. |
|||
Notes |
•Settings > System > Extras > Dynamic Grayscale Map must be disabled. •6 lookup control points are used. •The pen number has to be set by ScSetPen. System Pixel Map is set up by special pen number 1111. •PixelMaps can be set with PixelMap Static (1) as well. |
||
C# Example: Set up a linear pen pixel map:
double[] Pen_Pixel_Map = { 0.0, 20.0, 40.0, 60.0, 80.0, 100.0 }; for( int i = 0; i < 6; i++ ) { int CCI_Return = cci.ScSetDoubleValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypeStyleIDPixelMapZone + i, Pen_Pixel_Map[ i ] ); } |
Table 80: PixelMap Static (2)