|
@@ -812,7 +812,38 @@ if (($MSmode == 5) or ($MSmode == 4))
|
|
|
$adeiChannel[10][30]);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+ //############# HV PID set point display #################
|
|
|
+
|
|
|
+ $APR_text = "APR set point";
|
|
|
+
|
|
|
+ // voltage monitoring readout K35 used for APR target value calculation
|
|
|
+ $color = "#777777";
|
|
|
+ $factor_m = 1972.462;
|
|
|
+ $factor_m_rel_error = 1.0e-6;
|
|
|
+ $offset = 0;//4.97e-06; // ORCA does not use offset for defining APR
|
|
|
+ $offset_error = 3.4e-07;
|
|
|
+ $gain = 1;//0.999999323; // ORCA does not use gain for defining APR
|
|
|
+ $gain_error = 8.9e-08;
|
|
|
+ $value = ($APR_value - $offset) * $gain * $factor_m;
|
|
|
+ $voltage_error = abs($value * $factor_m_rel_error * 1e3); // in mV
|
|
|
+ if ($voltage_error*100 < 1) { $voltage_error = 0.2; }
|
|
|
+
|
|
|
+ // voltage display APR
|
|
|
+ $link = $APR_link;
|
|
|
+ $text = "APR target voltage 436-CFB-0-1500-0033, only valid if K35 is used for APR control.";
|
|
|
+
|
|
|
+ // coordinate offset on display
|
|
|
+ $Xoffset = 660;
|
|
|
+ $Yoffset = 373;
|
|
|
+
|
|
|
+ // only show in case K35 is active
|
|
|
+ if (($K35_RunFlag > 0) & ($APR_on > 0))
|
|
|
+ {
|
|
|
+ placeTextWithLink($Yoffset+20, $Xoffset-54, "U<sub>set</sub> = ".sprintf('%.3F', $value ) ." V" , 270, 4, $color, $text, $link);
|
|
|
+ }
|
|
|
+
|
|
|
} // end of PCS7 mode switch
|
|
|
|
|
|
|
|
@@ -1028,7 +1059,7 @@ if ($PSmode == 5)
|
|
|
$link = $adeiChannel[10][2*$pp];
|
|
|
|
|
|
if ($pp == 7) placeTextWithLink($ringsPosY[$pp], $ringsPosX[$pp], sprintf('%.1F V', -$value), 150, 5, $color, $text, $link);
|
|
|
- else placeTextWithLink($ringsPosY[$pp], $ringsPosX[$pp], sprintf('%.1F V', -$value), 60, 2, $color, $text, $link);
|
|
|
+ else placeTextWithLink($ringsPosY[$pp], $ringsPosX[$pp], sprintf('%.0F V', -$value), 60, 2, $color, $text, $link);
|
|
|
}
|
|
|
}
|
|
|
|