Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formula Function #1468

Open
KWYHDHJ opened this issue Oct 31, 2024 · 3 comments
Open

Formula Function #1468

KWYHDHJ opened this issue Oct 31, 2024 · 3 comments
Labels
feature New feature

Comments

@KWYHDHJ
Copy link

KWYHDHJ commented Oct 31, 2024

Describe the feature
Could you provide a recipe component that allows for batch configuration of multiple tags, supporting batch read and write operations to implement reading and writing operations for multiple tags?

Describe the solution you'd like
You can create a list component where each row can bind a label, provide a display column for the current value, and include an input box column for easy subsequent writing operations. Additionally, there should be a confirm button to execute batch writing operations.
Can you simply add a list class in the list component that supports writing operations on bound tags

This feature was discovered by me when using Siemens' WINCC UNIFIED before

@KWYHDHJ
Copy link
Author

KWYHDHJ commented Nov 1, 2024

Similar to the effect shown in the screenshot below, the first column has a custom name, the second column has a bound tag, and the third column supports tag writing operations。
QQ20241101-095405

@henjoe
Copy link

henjoe commented Nov 1, 2024

+1 for this Feature

It will be better to implement this in the Scripts.

For getTags() and setTags() make the initial parameter to be an array of TagIds.

let data = $getTag(['t_dasdssda-24124sd','t_ioweqwe-te1923j'])
// then you can read each individual Tag by
let tag1 = data[0]
let tag2 = data[1]

additionally it will be better for getTag to return not just the "value" but the whole Tag object. so we can.

let data = $getTag(['t_dasdssda-24124sd','t_ioweqwe-te1923j'])
// then you can read each individual Tag by
let tag1_value = data[0].value;
let tag2 = data[1].value;

tag1_name = data[0].name;
tag2_name = data[1].name;
// And all properties of the Tags can be obtained, even its Daq configuration and etc...

@MatthewReed303
Copy link
Collaborator

You can easily do batching already by using ODBC and Scripts, use database to store recipe names and contents/amounts in the database tables, you can then use the Fuxa table to display them and also select the line in the table etc see the https://github.com/frangoteam/FUXA/wiki/HowTo-ODBC at the bottom shows you how to write data to the Fuxa table, I will work on adding how to return selected data in the table.

@unocelli unocelli added the feature New feature label Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

No branches or pull requests

4 participants