V 10 1 LANG:1 0 PANEL,-1 -1 251 101 N "_3DFace" 2 "$frameTitle" "$sDpName" "main() { string model; dyn_string exceptionInfo; fwDevice_getModel(makeDynString($sDpName), model, exceptionInfo); connectToDevice(); }" 0 E E E E 1 -1 -1 0 0 -7 ""0 1 E "connectToParent() { int x,y; dyn_string exceptionInfo; dyn_dyn_string hierarchyInfo; fwDevice_getHierarchy($sDpName, hierarchyInfo, exceptionInfo); if(dpExists(hierarchyInfo[2][1] + \".Status.On\")) { getValue(\"powerLedPosition\", \"position\", x, y); addSymbol(myModuleName(), myPanelName(), \"objects/fwGeneral/fwLedWithAlert.pnl\", \"LED\", makeDynString(\"$sDpName:\"+hierarchyInfo[2][1], \"$sDpSubName:\"+\".Status.On\", \"$color1:FwStateOKPhysics\", \"$color0:_3DFace\"), x,y,0,0.7,0.7); dpConnect(\"EP_textFieldInCB\", TRUE, hierarchyInfo[2][1] + \".Status.On:_online.._value\"); } } connectToDevice() { int x,y; dyn_errClass err; getValue(\"powerLedPosition\", \"position\", x, y); addSymbol(myModuleName(), myPanelName(), \"objects/fwGeneral/fwLedWithAlert.pnl\", \"LED\", makeDynString(\"$sDpName:\"+$sDpName, \"$sDpSubName:\"+\".Status.On\", \"$color1:FwStateOKPhysics\", \"$color0:_3DFace\"), x,y,0,0.7,0.7); if( dpSubStr( $sDpName + \".Status.On:_online.._value\", DPSUB_DP_EL ) == \"\" ) { setValue(\"\", \"color\", \"_dpdoesnotexist\"); return; } dpConnect(\"EP_textFieldInCB\", TRUE, $sDpName + \".Status.On\"); err = getLastError(); if (dynlen(err) > 0) setValue(\"\", \"color\", \"_dpdoesnotexist\"); } EP_textFieldInCB(string dp, bool boNewValue) { if(boNewValue) powerState.text = \"ON\"; else powerState.text = \"OFF\"; } fwWriteValue(string sDpe, float fValue) { string cleanValue, format; dyn_string exceptionInfo; format = dpGetFormat(sDpe); if(format == \"\") { if(dpElementType(sDpe) == DPEL_FLOAT) format = \"%.3f\"; else if(dpElementType(sDpe) == DPEL_INT) format = \"%d\"; else format = \"%s\"; } else format = \"%\" + substr(format, strpos(format, \".\")); sprintf(cleanValue, format, fValue); this.text = cleanValue; } InvalidColour(string dp, bool invalid) { string elementColour; if(invalid) this.backCol = \"FwDead\"; else this.backCol = \"_3DFace\"; }" 0 2 "CBRef" "1" "EClose" "main() { int i; }" 0 "" DISPLAY_LAYER, 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 LAYER, 0 1 LANG:1 0 30 0 "FRAME1" "" 1 0 -7 E E E 1 E 1 E N "_WindowText" E N {0,0,0} E E E E 0 0 0 0 0 0 E E E 1 1 LANG:1 0 1 "dashclr"N "_Transparent" "main() { string f = \"Arial Black,8,-1,5,50,0,0,0,0,0\"; this.font = f; this.text = $frameTitle; }" 0 E 0 0 1 0 1 E 0.757575757575758 0 0.59880239520958 0 4.19161676646707 0 E 0 -7 331 161 1 LANG:1 98 -*-MS Shell Dlg-*-r-normal-*-11-*-100-100-*-*-iso8859-1|-11,0,0,0,505,0,0,0,0,0,0,0,0,MS Shell Dlg 0 "" 1 LANG:1 11 Frame Title 6 13 "powerLedPosition" "" 1 4 36 E E E 1 E 0 E N {153,204,51} E N "_Transparent" E E E E 26 0 0 0 0 0 E E E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 3 1 0 1 E 1 0 1 -2 -26 0 E 12 45 32 65 14 14 "TextField18" "" 1 72 19 E E E 1 E 1 E N "_WindowText" E N "_3DFace" E E E E 28 0 0 0 0 0 E E E 0 1 LANG:1 0 0 1 LANG:1 84 -*-Arial-*-r-normal-*-11-*-100-100-*-*-iso8859-1|-11,0,0,0,505,0,0,0,0,0,0,0,0,Arial 0 "" 70 17 150 41 2 "0s" 0 0 0 0 0 -1 E "main() { dyn_string exceptionInfo; dpConnect(\"fwDisplayRamping\", TRUE, $sDpName + \".Status.RampUp:_online.._value\", $sDpName + \".Status.RampDown:_online.._value\"); dpConnect(\"InvalidColour\", TRUE, $sDpName + \".Status.RampUp:_online.._invalid\"); } fwDisplayRamping(string dpa1, bool rUp, string dpa2, bool rDown) { if(rUp){ this.backCol = \"yellow\"; this.text = \"RAMP UP\"; } else if(rDown){ this.backCol = \"yellow\"; this.text = \"RAMP DOWN\"; } else{ this.backCol = \"_3DFace\"; this.foreCol = \"blue\"; this.text = \"STABLE VOLT\"; } }" 0 E 2 27 "PRIMITIVE_TEXT9" "" 1 75 86 E E E 1 E 1 E N "_Window" E N "_GediBackground" E E E E 54 0 0 0 0 0 E E E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 1 1 2 1 E U 1 E 120 49 155 66 0 2 2 "0s" 0 0 0 192 0 0 120 49 1 1 LANG:1 84 -*-Arial-*-r-normal-*-13-*-100-100-*-*-iso8859-1|-13,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 1 LANG:1 5 Imeas 2 28 "txtUsense" "" 1 150 86 E E E 1 E 1 E N {0,0,0} E N "_InputFieldBackground" E E E E 56 0 0 0 0 0 E E E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" "main() { dyn_string exceptionInfo; dpConnect(\"fwWriteValue\", TRUE, $sDpName + \".MeasurementSenseVoltage:_online.._value\"); // fwColour_connectItemBackColToStatus($sDpName + \".MeasurementSenseVoltage\", exceptionInfo); }" 0 E 0 1 1 0 1 E U 1 E 33.9473684210532 49 87.947368421053 65 1 2 0 "3.3f" 7 0 0 66 0 0 33.9473684210532 49 1 1 LANG:1 84 -*-Arial-*-r-normal-*-13-*-100-100-*-*-iso8859-1|-13,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 1 LANG:1 5 Text1 2 29 "PRIMITIVE_TEXT12" "" 1 -564.99287166719 -635 E E E 1 E 1 E N "_Window" E N "_GediBackground" E E E E 58 0 0 0 0 0 E E E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 1 1 2 1 E 0.99304865938431 0 1 -284.881773531228 -184 1 E 299 233 315 250 0 2 2 "0s" 0 0 0 64 0 0 299 233 1 1 LANG:1 84 -*-Arial-*-r-normal-*-13-*-100-100-*-*-iso8859-1|-13,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 1 LANG:1 2 Us 2 32 "PRIMITIVE_TEXT15" "" 1 210 86 E E E 1 E 1 E N "_Window" E N "_ButtonShadow" E E E E 64 0 0 0 0 0 E E E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 1 1 2 1 E U 1 E 93.947368421053 49 109.947368421053 65 0 2 2 "0s" 0 0 0 65 0 0 93.947368421053 49 1 1 LANG:1 84 -*-Arial-*-r-normal-*-11-*-100-100-*-*-iso8859-1|-11,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 1 LANG:1 1 V 2 33 "txtUterm" "" 1 150 86 E E E 1 E 1 E N {0,0,0} E N "_InputFieldBackground" E E E E 66 0 0 0 0 0 E E E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" "main() { dyn_string exceptionInfo; dpConnect(\"fwWriteValue\", TRUE, $sDpName + \".MeasurementTerminalVoltage:_online.._value\"); // fwColour_connectItemBackColToStatus($sDpName + \".MeasurementTerminalVoltage\", exceptionInfo); }" 0 E 0 1 1 0 1 E U 1 E 34.0000000000002 74 88 90 1 2 0 "3.3f" 7 0 0 66 0 0 34.0000000000002 74 1 1 LANG:1 84 -*-Arial-*-r-normal-*-13-*-100-100-*-*-iso8859-1|-13,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 1 LANG:1 5 Text1 2 34 "PRIMITIVE_TEXT17" "" 1 210 86 E E E 1 E 1 E N "_Window" E N "_ButtonShadow" E E E E 68 0 0 0 0 0 E E E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 1 1 2 1 E U 1 E 94 74 110 90 0 2 2 "0s" 0 0 0 65 0 0 94 74 1 1 LANG:1 84 -*-Arial-*-r-normal-*-11-*-100-100-*-*-iso8859-1|-11,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 1 LANG:1 1 V 2 35 "txtCurrent" "" 1 150 86 E E E 1 E 1 E N {0,0,0} E N "_InputFieldBackground" E E E E 70 0 0 0 0 0 E E E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" "main() { dyn_string exceptionInfo; dpConnect(\"fwWriteValue\", TRUE, $sDpName + \".MeasurementCurrent:_online.._value\"); // fwColour_connectItemBackColToStatus($sDpName + \".MeasurementCurrent\", exceptionInfo); }" 0 E 0 1 1 0 1 E U 1 E 162 49 216 65 1 2 0 "3.3f" 7 0 0 66 0 0 162 49 1 1 LANG:1 84 -*-Arial-*-r-normal-*-13-*-100-100-*-*-iso8859-1|-13,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 1 LANG:1 5 Text1 2 36 "PRIMITIVE_TEXT19" "" 1 210 86 E E E 1 E 1 E N "_Window" E N "_ButtonShadow" E E E E 72 0 0 0 0 0 E E E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 1 1 2 1 E U 1 E 222 49 238 65 0 2 2 "0s" 0 0 0 65 0 0 222 49 1 1 LANG:1 84 -*-Arial-*-r-normal-*-11-*-100-100-*-*-iso8859-1|-11,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 1 LANG:1 1 A 14 46 "TextField1" "" 1 311.214285714286 27.4166666666666 E E E 1 E 1 E N "_WindowText" E N "_Window" E E E E 92 0 0 0 0 0 E E E 0 1 LANG:1 0 0 1 LANG:1 84 -*-Arial-*-r-normal-*-16-*-100-100-*-*-iso8859-1|-16,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 182 20 199 37 2 "0s" 0 0 0 0 0 -1 E "main() { dyn_string exceptionInfo; fwColour_connectItemBackColToStatus($sDpName + \".\", exceptionInfo); if(dynlen(exceptionInfo) > 0) fwExceptionHandling_display(exceptionInfo); }" 0 E 2 47 "PRIMITIVE_TEXT30" "" 1 83.6921745152355 83 E E E 1 E 1 E N "_Window" E N "_GediBackground" E E E E 94 0 0 0 0 0 E E E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 1 1 2 1 E 0.868421052631579 0 1 4.63157894736842 -2 1 E 172 22 199 39 0 2 2 "0s" 0 0 0 192 0 0 172 22 1 1 LANG:1 84 -*-Arial-*-r-normal-*-13-*-100-100-*-*-iso8859-1|-13,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 1 LANG:1 5 Alert 13 48 "Button1" "" 1 205 21 E E E 1 E 1 E N "_ButtonText" E N "_Button" E E E E 96 0 0 0 0 0 E E E 0 1 LANG:1 0 0 1 LANG:1 84 -*-Arial-*-r-normal-*-13-*-100-100-*-*-iso8859-1|-13,0,0,0,505,0,0,0,0,0,0,0,0,Arial 0 "" 203 19 242 39 T 1 LANG:1 3 ACK "// SimpleCtrlScriptStart {invalid} main() { ChildPanelOnCentralModal( \"fwDeviceEditorNavigator/fwAction.pnl\", \"Action Panel\", makeDynString(\"$sDpName:\" + $sDpName)); }" 0 E E E 2 49 "powerState" "" 1 45 182 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E E E 98 0 0 0 0 0 E E E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 1 1 0 1 E U 0 E 38 21 95 38 0 2 0 "0s" 0 0 0 192 0 0 38 21 1 1 LANG:1 87 -*-Arial-bold-r-normal-*-13-*-100-100-*-*-iso8859-1|-13,0,0,0,758,0,0,0,0,0,0,0,0,Arial 0 "" 1 LANG:1 8 (ON/OFF) 2 51 "txtPowSense" "" 1 150 86 E E E 1 E 1 E N {0,0,0} E N "_InputFieldBackground" E E E E 102 0 0 0 0 0 E E E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" "main() { dyn_string exceptionInfo; dpConnect(\"EP_textFieldIn\", $sDpName + \".MeasurementCurrent:_online.._value\", $sDpName + \".MeasurementSenseVoltage:_online.._value\"); } EP_textFieldIn(string dp1, float Current, string dp2, float Voltage) { float power; string valueString; power = fabs(Current * Voltage); sprintf(valueString, \"%3.3f\", power); setValue(\"\", \"text\", dpValToString(dp1, valueString, TRUE) ); }" 0 E 0 1 1 0 1 E U 1 E 161.947368421052 74 215.947368421052 90 1 2 0 "3.2f" 6 0 0 66 0 0 161.947368421052 74 1 1 LANG:1 84 -*-Arial-*-r-normal-*-13-*-100-100-*-*-iso8859-1|-13,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 1 LANG:1 5 Text1 2 52 "PRIMITIVE_TEXT35" "" 1 210 86 E E E 1 E 1 E N "_Window" E N "_ButtonShadow" E E E E 104 0 0 0 0 0 E E E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 1 1 2 1 E U 1 E 221.947368421052 74 237.947368421052 90 0 2 2 "0s" 0 0 0 65 0 0 221.947368421052 74 1 1 LANG:1 84 -*-Arial-*-r-normal-*-11-*-100-100-*-*-iso8859-1|-11,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 1 LANG:1 1 W 2 53 "PRIMITIVE_TEXT36" "" 1 -846.026462057469 -768 E E E 1 E 1 E N "_Window" E N "_GediBackground" E E E E 106 0 0 0 0 0 E E E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 1 1 2 1 E 0.99304865938431 0 1 -284.921549155909 -160 1 E 299 233 315 250 0 2 2 "0s" 0 0 0 64 0 0 299 233 1 1 LANG:1 84 -*-Arial-*-r-normal-*-13-*-100-100-*-*-iso8859-1|-13,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 1 LANG:1 2 Ut 2 54 "PRIMITIVE_TEXT37" "" 1 75 86 E E E 1 E 1 E N "_Window" E N "_GediBackground" E E E E 108 0 0 0 0 0 E E E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 1 1 2 1 E U 1 E 121 73 154 90 0 2 2 "0s" 0 0 0 192 0 0 121 73 1 1 LANG:1 84 -*-Arial-*-r-normal-*-13-*-100-100-*-*-iso8859-1|-13,0,0,0,404,0,0,0,0,0,0,0,0,Arial 0 "" 1 LANG:1 5 P(Us) 0 LAYER, 1 1 LANG:1 0 0 LAYER, 2 1 LANG:1 0 0 LAYER, 3 1 LANG:1 0 0 LAYER, 4 1 LANG:1 0 0 LAYER, 5 1 LANG:1 0 0 LAYER, 6 1 LANG:1 0 0 LAYER, 7 1 LANG:1 0 0 0