The TempComp object gives access to the properties of the PC-DMIS Temperature Compensation command. For additional information about Temperature Compensation, see "Compensating for Temperature" in the "Setting Your Preferences" section of the PC-DMIS Help File.
In PC-DMIS, you can use four different WPF dialog boxes to control Temperature Compensation. The IDs you can access on each through automation are provided below:
Compensation Setup dialog box - Edit | Preferences | Temperature Compensation Setup
const int IDC_TEMP_COMP_CELSIUS = 2122;
const int IDC_TEMP_COMP_ON = 1774;
const int IDC_TEMP_SENS_NUM_X = 2091;
const int IDC_TEMP_COEFF_X = 2092;
const int IDC_TEMP_SENS_NUM_Y = 2093;
const int IDC_TEMP_COEFF_Y = 681;
const int IDC_TEMP_SENS_NUM_Z = 2094;
const int IDC_TEMP_COEFF_Z = 682;
const int IDC_TEMP_SENS_NUM_P = 2095;
const int IDC_TEMP_COEFF_P = 683;
Thermal Expansion Origin dialog box - Insert | Parameter Change | Thermal Expansion Origin
const int IDC_TEMP_ORIGIN_X = 2100;
const int IDC_TEMP_ORIGIN_Y = 696;
const int IDC_TEMP_ORIGIN_Z = 697;
Temperature Compensation Command dialog box - Insert | Parameter Change | Temperature Compensation
const int IDC_TEMP_COMP_CELSIUS = 2122;
const int IDC_TEMP_AUTOMATIC = 2101;
const int IDC_TEMP_COEFF_X = 2092;
const int IDC_TEMP_HI_X = 2098;
const int IDC_TEMP_LO_X = 2099;
const int IDC_TEMP_COEFF_Y = 681;
const int IDC_TEMP_HI_Y = 690;
const int IDC_TEMP_LO_Y = 693;
const int IDC_TEMP_COEFF_Z = 682;
const int IDC_TEMP_HI_Z = 691;
const int IDC_TEMP_LO_Z = 694;
const int IDC_TEMP_COEFF_P = 683;
const int IDC_TEMP_HI_P = 692;
const int IDC_TEMP_LO_P = 695;
const int IDC_TEMP_COEFF_LIST = 14395;
Temperature Compensation Command dialog box (Execution) - Ensure that the TEMPCOMP command is set to the Manual method, then execute the routine.
const int IDC_TEMP_COMP_CELSIUS = 2122;
const int IDC_TEMP_COMP_ON = 1774;
const int IDC_TEMP_CURTEMP_X = 2096;
const int IDC_TEMP_HI_X = 2098;
const int IDC_TEMP_LO_X = 2099;
const int IDC_TEMP_CURTEMP_Y = 684;
const int IDC_TEMP_HI_Y = 690;
const int IDC_TEMP_LO_Y = 693;
const int IDC_TEMP_CURTEMP_Z = 685;
const int IDC_TEMP_HI_Z = 691;
const int IDC_TEMP_LO_Z = 694;
const int IDC_TEMP_CURTEMP_P = 686;
const int IDC_TEMP_HI_P = 692;
const int IDC_TEMP_LO_P = 695;
With these WPF dialog boxes, it is not possible to access the control that visualizes the value. However, you can access the property that is bound to it. The supported property types are: boolean, integer, unsigned, and double. Because you can get only string, integer, and double values and you can only set integer and string values, the get / set values are converted according to the following rules: Boolean property: Integer property: Unsigned integer property: Double property: String property:
|