WW SQL multiple select at once

ThatRA_Guy

Member
Join Date
Jan 2022
Location
Aalborg
Posts
2
Hey

I have a recipe edit page where i need to translate multiple numbers into text.
The window contains a recipe in the background with the following structure:

[0] FunctionID, Operation, Setpoint1, Setpoint2, Setpoint 3.
[1] FunctionID, Operation, Setpoint1, Setpoint2, Setpoint 3.
[2] FunctionID, Operation, Setpoint1, Setpoint2, Setpoint 3.
...

All this information is numbers. To reprecent this to the operator, i need to translate is to text. The translation is stored in a SQL.

My question is now, would is cause an issue to have each field as embedded symbol, which is running a SQL query triggers by "DataChange"?

When loading a new recipe, that could result in 25 query's simultaneously.

Below is an idea for the "DataChange" script. I have not tested it. So it is rough draft.

Symbol.PNG Script.PNG RecipeStructure.PNG
 
Hey

I have a recipe edit page where i need to translate multiple numbers into text.
The window contains a recipe in the background with the following structure:

[0] FunctionID, Operation, Setpoint1, Setpoint2, Setpoint 3.
[1] FunctionID, Operation, Setpoint1, Setpoint2, Setpoint 3.
[2] FunctionID, Operation, Setpoint1, Setpoint2, Setpoint 3.
...

All this information is numbers. To reprecent this to the operator, i need to translate is to text. The translation is stored in a SQL.

My question is now, would is cause an issue to have each field as embedded symbol, which is running a SQL query triggers by "DataChange"?

When loading a new recipe, that could result in 25 query's simultaneously.

Below is an idea for the "DataChange" script. I have not tested it. So it is rough draft.
Why not read all data in one SQL query into memory and then push to local memory tags and display. Then the the datachange function calls one SQL query to refresh rather than loads of queries ?
 
Why not read all data in one SQL query into memory and then push to local memory tags and display. Then the the datachange function calls one SQL query to refresh rather than loads of queries ?

How would you go about storing the data in a memory tag?
The result from the SQL, does not easily fit into the generic datatypes in InTouch.

Could you write an example?
 

Similar Topics

Hi all, I'm trying to connect my WAGO PLC to multiple databases. It is currently connected to a single MySQL database using the library...
Replies
0
Views
921
I set up an additonal transaction in RSSQL adding data to another SQL server but I can't seem to start the transaction without shutting down the...
Replies
0
Views
1,438
Hi all, I'm having difficulties trying to connect FactoryTalk View SE Local Station (V13.00) to MS SQL Server Express. I state that they are...
Replies
2
Views
131
Hi all, I have FTV v13 installed on my VM. I made an ME application and exported it in v11, as that's the version being used on the Panelviews at...
Replies
3
Views
394
Dear colleagues, I am reaching out for assistance with an issue I am having. I have a code that can successfully insert data from FactoryTalk...
Replies
6
Views
1,047
Back
Top Bottom