V 10
1
LANG:1 8 (NoName)
PANEL,455 292 504 373 N "_3DFace" 0
EEE E E 1 -1 -1 0  135 50
"" 0 1
EE 2
"CBRef""1"
"EClose"E
""
DISPLAY_LAYER, 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
LAYER, 0 
1
LANG:1 6 Layer1
2 0
"Text6"
""
1 130 50 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
1 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
dyn_errClass err;

  if( dpSubStr( \"SCTmops1:Monitoring.Crate_Ramp_Off:_original\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

//dpconnect to environmenatl project datapoint
  dpConnect(\"EP_textFieldInCB\",
           \"SCTmops1:Fatl.Numb:_original.._value\");

  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}


EP_textFieldInCB(string dp1, float ramp_status)
{
// sending back confirmation to environmantal, necessary for Acknowledgement
  dpSet(\"SCTmops1:Fatl.Indx:_original.._value\",ramp_status);
  if ( ramp_status>0 )
 	{
	setValue( \"\", \"text\", \"ON\" );
	setValue( \"\", \"backCol\", \"alarmKamUnq\" );
	EP_childPanelOn();
	EP_sendPDO();
	}
}


EP_childPanelOn()
{
  ChildPanelOnCentral(\"subpanels/Environmental_Error1.pnl\", \"Env Error\", \"\");
}


EP_sendPDO()
{
dyn_errClass err;
int lv, icard, channel, i,crate;
int set;
string datapoint;

 for(crate=0;crate<=1;crate++)
   {
   sprintf(datapoint,\"Crate%02d.Controller.CCch_Set.Send:_original.._value\",crate);
   channel = 255| (( 0 & 0x00ff )<<8);
   dpSetWait(datapoint,channel);
   }
 	err = getLastError();
	if (dynlen(err) > 0)
		errorDialog(err);

}
// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTmops1:Monitoring.Crate_Ramp_Off}
// DPConfig {:_original.._value}
// DPType {bool}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 132 52 198 68
1 2 0 "s" 0 0 0 64 0 0  132 52
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 5 Text4
0
LAYER, 1 
1
LANG:1 6 Layer2
0
LAYER, 2 
1
LANG:1 6 Layer3
0
LAYER, 3 
1
LANG:1 6 Layer4
0
LAYER, 4 
1
LANG:1 6 Layer5
0
LAYER, 5 
1
LANG:1 6 Layer6
0
LAYER, 6 
1
LANG:1 6 Layer7
0
LAYER, 7 
1
LANG:1 6 Layer8
0
0