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

We Value Your Feedback!
Could you please spare a few minutes to share your thoughts on Cloud Connected vs On-Premise Services. Your feedback can help us shape the future of services.
Learn more about the survey or Click here to Launch the survey
Schneider Electric Services Innovation Team!

Adding ID Information Relatively

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
  • Adding ID Information Relatively
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
37
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
Back to EcoStruxure Geo SCADA Expert Forum
abdullah123456789
Lt. Commander abdullah123456789
Lt. Commander

Posted: ‎2023-04-03 06:09 AM . Last Modified: ‎2023-05-02 11:45 PM

0 Likes
6
965
  • 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-04-03 06:09 AM . Last Modified: ‎2023-05-02 11:45 PM

Adding ID Information Relatively

 

Hello,

I created an ODBC query using an ODBC Data Sources on Geo Scada Expert 2021. Afterwards, I was able to generate an ODBC signal and obtain the data over this signal. All these data are retrieved via SQL. But I was able to create this query by using the ID of the signal I used in the query on the View Status screen. So I can add this data manually. But what I want is to use the Relative property to automatically select the Signal ID information in View Status based on the file path where the signal is located. How can I go about this?

 

I marked the part where the Signal ID is located below. I should not manually enter the value 69250 at this point. This value needs to be automatically added from the file path.

Untitled.png

 

I can see the ID information of the signal from the View Status section as follows.

Untitled.png

Labels
  • Labels:
  • SCADA
  • 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
Replies 6
AndrewScott
Admiral AndrewScott
Admiral

Posted: ‎2023-04-03 09:54 AM

0 Likes
1
957
  • 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-04-03 09:54 AM

What "relative property" are you referring to?

An object ID is just a unique identifier - they are automatically allocated in the order in which the database objects are created.

An SQL query has no concept of being 'relative' to something.

 

The query appears to be finding the lowest value each day. Have you considered using a Minimum Accumulator to calculate this? See Types of Master Station Accumulator.


Andrew Scott, R&D Principal Technologist, AVEVA
Reply

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

abdullah123456789
Lt. Commander abdullah123456789
Lt. Commander

Posted: ‎2023-04-03 10:47 AM

In response to AndrewScott
0 Likes
0
955
  • 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-04-03 10:47 AM

Let me explain the relative issue as follows: I created instances after using templates, and in this way, I had the opportunity to make changes more quickly. And I used the relative property on the animations screen of the templates to make definitions such as naming on these instances. Thus, I was able to make the change in all instances in the relevant template automatically in one go. You can see the example below. Thanks to the Relative option selected in the image, all changes can be made in instances at once.Capture.PNG

 

Similarly, is it possible to automatically assign the ID of the instance by entering the file path on the template in the yellow-marked ID section of the SQL query I shared before? I am also adding what I mentioned about the file path below. Can't I somehow write "Id"= ..Enstr.FE.Signals.SignalName.Id instead of "Id"=69250?

Untitled.png

 

I tried using the method you said, but I couldn't get a positive result. It did not perform the filtering the way I wanted. What I need is not a single minimum value, I need multiple values to be filtered out.

Reply

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

AndrewScott
Admiral AndrewScott
Admiral

Posted: ‎2023-04-03 10:55 AM

0 Likes
0
953
  • 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-04-03 10:55 AM

You're trying to combine two unrelated technologies.

 

Mimics animations use expressions which can include OPC DA tags for variables, where an OPC tag can be relative to the mimic.

SQL queries are just a fixed piece of text, there are no variables.


Andrew Scott, R&D Principal Technologist, AVEVA
Reply

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

geoffpatton
Captain geoffpatton
Captain

Posted: ‎2023-04-03 11:17 AM

0 Likes
0
952
  • 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-04-03 11:17 AM

If you are Querying on a mimic with an embedded List you can build your query in the Animations... of the List object. I there you can use a combination of text and relative references. getting the right number of single and double quotes and everything working as a string for the created Query can take a bit to work out.

 

This thread will give you an idea of the formatting. I think the help for the SQL animation also give some example.

https://community.se.com/t5/EcoStruxure-Geo-SCADA-Expert/Using-Embedded-lists-in-templates/m-p/23506...

 

To query this from anywhere else and you will have to query CDBPoint and filter that to get the ID and then use it in the historic Query. I usually need to ask for help on SQL when I get to this point so I can not give an example.

Reply

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

sbeadle
Kirk sbeadle Kirk
Kirk

Posted: ‎2023-04-04 02:37 AM

0 Likes
0
929
  • 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-04-04 02:37 AM

Here's how to modify the query to find the data by point name:

SELECT TOP( 1000000 )
"RecordId", "RecordTime" AS "~Time", "FormattedValue", "StateDesc", "QualityDesc", "ReasonDesc", "StatusDesc", "SuppressionTypeDesc", CDBHISTORIC."Foreground", CDBHISTORIC."Background", CDBHISTORIC."Blink", "FileOffset" AS "_FileOffset"
FROM
CDBPOINT LEFT JOIN CDBHISTORIC USING ( ID )
WHERE
"FullName" = 'Demo Items.Historic Demo.AI1' AND "~Time" BETWEEN { OPC 'H - 23H' } AND { OPC 'H - 23H+1D' }
ORDER BY
"~Time" DESC, "_FileOffset" DESC
Reply

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

sbeadle
Kirk sbeadle Kirk
Kirk

Posted: ‎2023-04-04 02:42 AM

0 Likes
0
929
  • 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-04-04 02:42 AM

The ODBC query you created is designed to read in tabular data and insert it into individual analog points. This may not be what you want.

You might use the embedded lists on mimics as suggested by Geoff. They will use the SQL like I added above.

But you can insert the SQL into an animation expression in the embedded SQL list. See the help:

https://tprojects.schneider-electric.com/GeoSCADAHelp/Geo%20SCADA%202022/Default.htm#MimicsGuide/Sql...

Note that you will need to watch how you animate the group/folder name the point is in to make a relative reference - check the use of single quotes for strings and double-quotes for animation "tags".

 

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