Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

Script to determine who is logged on

EcoStruxure Geo SCADA Expert Forum

Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • Remote Operations
  • EcoStruxure Geo SCADA Expert Forum
  • Script to determine who is logged on
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
sbeadle
Kirk sbeadle Kirk
307
AndrewScott
Admiral AndrewScott
96
BevanWeiss
Spock BevanWeiss
90
AdamWoodlandToo
Lt. Commander AdamWoodlandToo
36
View All
Related Products
product field
Schneider Electric
EcoStruxure™ Geo SCADA Expert

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to EcoStruxure Geo SCADA Expert Forum
Solved
jlx
Ensign jlx
Ensign

Posted: ‎2020-11-08 02:49 PM . Last Modified: ‎2023-05-03 12:07 AM

0 Likes
4
2478
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2020-11-08 02:49 PM . Last Modified: ‎2023-05-03 12:07 AM

Script to determine who is logged on

Hello, I have a remote site that is running a Geo SCADA standalone to a RTU. I also have a Enterprise SCADA running GeoSCADA. These two sites poll the same controller for DNP3 events, however the systems aren't sync'd in any way (Other than the DNP3 events being polled via radio). 

 

I need to know from the Enterprise SCADA who modified a setpoint or clicked a button. Only way I can think to achieve this is to create a script on the local Geo SCADA that would lookup who is logged on and update a DNP3 point based on user ID. Two questions:

 

Question 1: Is there a better way to sync these two SCADAs without having to write a script (Keeping in mind the Enterprise SCADA is on Radio comms)

 

Question 2: My script below works, however it could be better in that if users are added I would have to update the script. How do I determine who is logged on via ST, other than my current approach? 

 

PROGRAM ActiveUser

VAR

u01on AT %I(System.Security.Users.Engineer.IsLoggedOn): BOOL;
u01id AT %I(System.Security.Users.Engineer.Id): DINT;
u02on AT %I(System.Security.Users.Operator.IsLoggedOn): BOOL;
u02id AT %I(System.Security.Users.Operator.Id): DINT;
u03on AT %I(System.Security.Users.Supervisor.IsLoggedOn): BOOL;
u03id AT %I(System.Security.Users.Supervisor.Id): DINT;
u04on AT %I(System.Security.Users.SysAdmin.IsLoggedOn): BOOL;
u04id AT %I(System.Security.Users.SysAdmin.Id): DINT;

Output AT %M(System.Security.ActiveUserID): DINT;

END_VAR;


IF u01on = 1 THEN
Output := u01id;
ELSIF u02on = 1 THEN
Output := u02id;
ELSIF u03on = 1 THEN
Output := u03id;
ELSIF u04on = 1 THEN
Output := u04id;
ELSE
Output := 99;
END_IF;

END_PROGRAM

 

Thank you!

Labels
  • Labels:
  • DNP3
  • ViewX
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2020-11-08 09:22 PM

1 Like
0
2466
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2020-11-08 09:22 PM

Does this Logic routine actually do what you want?

 

I thought the problem was 2 ClearSCADAs and 1 cup RTU..  but your logic only appears to look at the one Enterprise SCADA.

 

As Jesse mentioned, looking at the Event Journal is probably the 'nicest' way to identify which user performed an action on the points associated with the shared RTU.  But this would need to be the Event Journal on each ClearSCADA instance right? (i.e. User A might be logged into ClearSCADA A and issuing the control, or User B might be logged into ClearSCADA B and issuing the control).

This situation is quite a bit trickier.  If you only have a radio link between the Enterprise SCADA and the Local SCADA that adds some more challenges.

 

What you could do is:

Have an ODBC point at each end which provides the username and timestamp of the last person that executed a command to the RTU. At the Enterprise SCADA end, also have an OPC (or other comms link) to the Local SCADA to read out the username/timestamp from the Local SCADA.  Then at the Remote SCADA you just look at which timestamp is more advanced.  and they were the last user to issue a control.  If you want that info for each point... it starts to all add up, and the radio link might not be so nice (strings are never good telemetry data).

 


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..

See Answer In Context

  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

Replies 4
Anonymous user
Not applicable

Posted: ‎2020-11-08 05:14 PM . Last Modified: ‎2023-03-20 11:40 PM

0 Likes
1
2474
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2020-11-08 05:14 PM . Last Modified: ‎2023-03-20 11:40 PM

Is that a script or logic? It looks like logic. They are two very different things in Geo SCADA!

 

My first suggestion to refine your approach would be to query the CDBUser table for that same field/column.

 

The other is rather than seeing who is logged in, query the event journal so you can see exactly who did what and when.

 

Adam's table here might also be useful.

  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

AdamWoodland
AdamWoodland Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2020-11-08 06:13 PM

In response to Anonymous user
0 Likes
0
2471
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2020-11-08 06:13 PM

If the logic program is called from a script on a mimic (you mention clicking a button), you can always pass the user name in as an input using VAR_INPUT.

 

As Jesse says, logic and scripting are two very different beasts, need to be careful what you're using and how (for example logic has no context of a user)

  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2020-11-08 09:22 PM

1 Like
0
2467
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2020-11-08 09:22 PM

Does this Logic routine actually do what you want?

 

I thought the problem was 2 ClearSCADAs and 1 cup RTU..  but your logic only appears to look at the one Enterprise SCADA.

 

As Jesse mentioned, looking at the Event Journal is probably the 'nicest' way to identify which user performed an action on the points associated with the shared RTU.  But this would need to be the Event Journal on each ClearSCADA instance right? (i.e. User A might be logged into ClearSCADA A and issuing the control, or User B might be logged into ClearSCADA B and issuing the control).

This situation is quite a bit trickier.  If you only have a radio link between the Enterprise SCADA and the Local SCADA that adds some more challenges.

 

What you could do is:

Have an ODBC point at each end which provides the username and timestamp of the last person that executed a command to the RTU. At the Enterprise SCADA end, also have an OPC (or other comms link) to the Local SCADA to read out the username/timestamp from the Local SCADA.  Then at the Remote SCADA you just look at which timestamp is more advanced.  and they were the last user to issue a control.  If you want that info for each point... it starts to all add up, and the radio link might not be so nice (strings are never good telemetry data).

 


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

andrew101
Ensign andrew101
Ensign

Posted: ‎2023-03-21 04:04 AM

0 Likes
0
1203
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2023-03-21 04:04 AM

Is there a way, a method or logic to log off a user that is currently logged on?

Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of