Help - Search - Members - Calendar
Full Version: B&R Automation Studio 3.X
Forums.MrPLC.com > PLCs and Supporting Devices > Other PLCs
bjump
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
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
Thanks TimD

I found it on my own eventually. I wanted to kick myself when i found where it was.
sikenga
I have an B&R 2005 series and i dont know how can i make an backup, how to go online, under protocol ?
sikenga
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.
Invision Power Board © 2001-2010 Invision Power Services, Inc.