panelview plus macro/script

lostpatrol1

Member
Join Date
Aug 2002
Posts
67
hello,

I would like to set a bit on (i.e. statusscreen=1) when I press the goto statusscreen button.

How would I set up a macro/script for that?

TIA!
 
It isn't clear to me if you need this bit to be set when opening a Display named statusscreen, or when closing the application to access the Configuration menu ?!

In the first case, create a new Macro and in the tag window place your tag, then in the expression box place the number 1.
Then save the macro as for example Set_bit. This will assign a 1 to the tag when the macro is run.
Then open the display that you will open with the go to display button, Click the edit pull-down menu and select display settings. Click the behavior tab and click the ellipsis at the end of the startup window and chose the Set_bit macro.


If you instead need to write that bit when closing the application, then open the Startup editor (Application Explorer on the left, under System Folder) and right above the Initial Graphic selection, you may specify the macro to be run when the project will shutdown.


Hope this helps,


- fuzzy logic
 

Similar Topics

Trying to figure out how to write a macro that looks at the system/user and if it changes write the user variable out to the PLC tag. Anyone have...
Replies
4
Views
3,067
PanelView Plus Macro Help Hi, We are using a PanelView Plus 1500 with a Control Logix L71. There is a series of actions that need to occur when...
Replies
5
Views
2,926
I wonder if its possible to switch a language using macros. In my application I'm using PLC logic to select the language, but I don't if its...
Replies
2
Views
2,834
Does anyone have a macro to return display to security screen on auto logout of user? I need something to return to home screen if user leaves...
Replies
2
Views
5,796
I have been working on this for a while now and I can't seem to get it. I was finally able to view the 1500 on the PanelView under the serial...
Replies
1
Views
81
Back
Top Bottom