Panelview Plus macro

asterof

Member
Join Date
May 2007
Location
Califonia
Posts
554
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 one that works
PLC tag is called USERLOG and is a string
 
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 one that works
PLC tag is called USERLOG and is a string

You don't need to monitor the system/user tag directly. You can assign macros to any user at login and logout in the runtime security editor.

In fact, you could use the same macro for every user on log in. It would be something like:

{[My_Shortcut]USERLOG} := {system/user}

Cheers,
Dustin
 
Macro Structure

using 3.x security the macro structure is

TAG ...............EXPRESSION

system/user .......userlog = CurrentUserName( )

SO I created one like this
and added it to the LOGIN entry in the user account
in the security editor, but I am not sure it is correct
 
Yea that did not work. So how would I enter that expression and what tag would be used

You cant write to the system/user tag, although I'm assuming that's not what you had in mind here in any case.

I dont have any software with me to test this, but i believe all you have to do is put your "userlog" tag under TAG and "system/user" under EXPRESSION. You shouldn't need the =CurrentUserName() piece in the expression.

Hope this helps.
 

Similar Topics

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,907
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...
Replies
2
Views
5,615
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,808
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,783
Hello, I made a change in alarm setup in factory view studio, where I changed a alarm message text. After that I made a run application and...
Replies
0
Views
70
Back
Top Bottom