bjump
Nov 3 2008, 08:21 AM
Hey all,
I am familiarizing myself with B&R's automation studio. I am using AS 3.0.71.10. I was looking at their coffee machine example, which utilizes a visualization. They are using a structured text program to control the visualization. There is an integer variable, which they have named 'setPage' that they use to switch pages in the visualization. I have also seen this similar technique used in the C language as well.
What i can't figure out is how that variable switches the page. Is it tied to another variable somewhere? When that integer is changes, where is it tied to the page index? I just can't figure it out.
Thanks in advance,
Brian
TimD
Nov 10 2008, 04:34 AM
QUOTE
(* change page from global buttons *)
IF (gMainLogic.cmd.vis.newPage = 65535) AND (setPage <> setPageOld) THEN
IF (setPage = 0) THEN
setPage := setPageOld;
ELSE
gMainLogic.cmd.vis.newPage := setPage;
setPageOld := setPage;
END_IF
END_IF
This is the code that links the setPage to the global variable.
That global variable is linked to the page ChangeDataPoint. Open the 'visu' and check the properties.
http://img136.imageshack.us/my.php?image=visuca7.jpg
bjump
Nov 24 2008, 11:36 AM
Thanks TimD
I found it on my own eventually. I wanted to kick myself when i found where it was.
sikenga
Dec 15 2008, 12:49 PM
I have an B&R 2005 series and i dont know how can i make an backup, how to go online, under protocol ?
sikenga
Dec 15 2008, 01:11 PM
I have an B&R 2005 series and i dont know how can i make an backup, how to go online, under protocol ?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.