buttons Posted April 29, 2009 Share Posted April 29, 2009 Hello, I am wondering if you can create a component or a sort of edit box to change parameters in a sequence. For example, in my control sequence if I want to record after temperature goes above 100, and then later would like to change the parameter on the main screen. If my sequence is output=1 while (systime() < starttime + 86400) if (temp[0] > 100) beginlog.mylog ( I know this line is wrong, I am a beginner) endif endwhile Is there a link I can put to the line that specifies 100, so that when I change the number on a button on the main page it will change it in the sequence? Link to comment Share on other sites More sharing options...
AzeoTech Posted April 29, 2009 Share Posted April 29, 2009 Yes, just create a global variable: global setpoint = 100 output = 1 while (...) if (temp[0] > setpoint) ... Then change the setpoint from a component action. Don't use an edit box unless you read the blog entry on why you shouldn't use edit boxes except in popups. Link to comment Share on other sites More sharing options...
buttons Posted April 30, 2009 Author Share Posted April 30, 2009 I know it may be bad to use an edit box, but I just want to try it. How do I configure the edit box? I have global setpoint What do I put in the Set Channel box, if anything. I am a little confused with the properties box. Link to comment Share on other sites More sharing options...
AzeoTech Posted May 2, 2009 Share Posted May 2, 2009 The variable name goes in the Set Channel. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.