www.pudn.com > crestroncontrol.rar > LBBDataAnalyse.usp, change:2006-09-30,size:4976b


/******************************************************************************************* 
  SIMPL+ Module Information 
  (Fill in comments below) 
*******************************************************************************************/ 
/* 
Dealer Name: 
System Name: 
System Number: 
Programmer: 
Comments: 
*/ 
 
/******************************************************************************************* 
  Compiler Directives 
  (Uncomment and declare compiler directives as needed) 
*******************************************************************************************/ 
// #SYMBOL_NAME "" 
// #HINT "" 
// #DEFINE_CONSTANT 
// #CATEGORY ""  
// #DEFAULT_VOLATILE 
#DEFAULT_NONVOLATILE 
#ENABLE_STACK_CHECKING 
/* 
#HELP_BEGIN 
   (add additional lines of help lines) 
#HELP_END 
*/ 
 
/******************************************************************************************* 
  Include Libraries 
  (Uncomment and include additional librarys as needed) 
*******************************************************************************************/ 
// #CRESTRON_LIBRARY "" 
// #USER_LIBRARY "" 
 
/******************************************************************************************* 
  DIGITAL, ANALOG and SERIAL INPUTS and OUTPUTS 
  (Uncomment and declare inputs and outputs as needed) 
*******************************************************************************************/ 
// DIGITAL_INPUT  
// ANALOG_INPUT  
// STRING_INPUT  
// BUFFER_INPUT  
Buffer_input CmdData[100]; 
// DIGITAL_OUTPUT  
// ANALOG_OUTPUT  
// STRING_OUTPUT  
string_output AnalyseCmd; 
/******************************************************************************************* 
  Structure Definitions 
  (Uncomment and define structure definitions as needed) 
  Note:  Be sure to initialize all declared STRING variables as needed 
         For example, in Function Main: struct.myString = ""; 
*******************************************************************************************/ 
// STRUCTURE MyStruct1 
// { 
// }; 
 
// MyStruct1 struct; 
 
/******************************************************************************************* 
  Global Variables 
  (Uncomment and declare global variables as needed) 
  Note:  Be sure to initialize all declared STRING variables as needed 
         For example, in Function Main: myString = ""; 
*******************************************************************************************/ 
// INTEGER 
// STRING 
 
/******************************************************************************************* 
  Functions 
  (Add any additional functions here) 
  Note:  Functions must be physically placed before the location in 
         the code that calls them. 
*******************************************************************************************/ 
/* 
Function MyFunction1() 
{ 
    // TODO:  Add local variable declarations here 
 
    // TODO:  Add code here 
} 
*/ 
 
/* 
Integer_Function MyIntFunction1() 
{ 
    // TODO:  Add local variable declarations here 
 
    // TODO:  Add code here 
 
    Return (0); 
} 
*/ 
 
/* 
String_Function MyStrFunction1() 
{ 
    // TODO:  Add local variable declarations here 
 
    // TODO:  Add code here 
 
    Return (""); 
} 
*/ 
Function LBBAnalyse(integer cmd) 
{} 
/******************************************************************************************* 
  Event Handlers 
  (Uncomment and declare additional event handlers as needed) 
*******************************************************************************************/ 
/* 
PUSH input 
{ 
    // TODO:  Add code here 
} 
*/ 
 
/* 
RELEASE input 
{ 
    // TODO:  Add code here 
} 
*/ 
 
/* 
CHANGE input 
{ 
    // TODO:  Add code here 
} 
*/ 
 
/* 
EVENT 
{ 
    // TODO:  Add code here 
} 
*/ 
change CmdData 
{ 
	integer c1,c2,c3,c4,c5,icmd; 
	string strCmd[3],CmdTemp[5]; 
	 
	CmdTemp = CmdData; 
	c1 = GetC(CmdTemp); 
	c2 = GetC(CmdTemp); 
	c3 = GetC(CmdTemp); 
	c4 = GetC(CmdTemp); 
	c4 = GetC(CmdTemp); 	 
	if(c1 = '<') 
	{ 
		if(c5 = '>') 
		{ 
			makestring(strCmd,"%c%c%c",c2,c3,c4); 
			icmd = atoi(strCmd); 
			LBBAnalyse(icmd); 
		} 
	}   
	clearbuffer(CmdData); 
} 
 
/******************************************************************************************* 
  Main() 
  Uncomment and place one-time startup code here 
  (This code will get called when the system starts up) 
*******************************************************************************************/ 
/* 
Function Main() 
{ 
    // TODO:  Add code here 
    // Initialize declared global and local variables/arrays as needed. 
 
    // WaitForInitializationComplete(); 
    // If you are reading any Input or Output variables, uncomment 
    //   the WaitForInitializationComplete statement above and read 
    //   them afterwards.  Input/Output variables will not have 
    //   their correct values set until after the logic processor 
    //   runs and propagates the values to them. 
} 
*/