Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

CR1000KD - Flashing Label - Cool Feature


Karl Nov 29, 2011 11:51 PM

Just learned that it is possible to make a custom menu label to change based on a variable state or value in the program. Which makes it possible to have a semi-dynamic display to help bring certain items to the operators attention. In the sample program below if the boolean variable OnOff is true the label will alternate between "Alarm" and "".

-------------------------------------------
Public PTemp, batt_volt
Public OnOff As Boolean,OnOffTxt As String

DataTable (Test,1,1000)
DataInterval (0,15,Sec,10)
Minimum (1,batt_volt,FP2,0,False)
Sample (1,PTemp,FP2)
EndTable

DisplayMenu ("MyMenu",-2)
DisplayValue (OnOffTxt,OnOff)
EndMenu

BeginProg
Scan (1,Sec,0,0)
PanelTemp (PTemp,250)
Battery (batt_volt)
If OnOff Then
If OnOffTxt = "" Then
OnOffTxt = "ALARM"
Else
OnOffTxt = ""
EndIf
Else
OnOffTxt = "ALARM"
EndIf

CallTable Test
NextScan
EndProg

Log in or register to post/reply in the forum.