Kkula
Browse Questions » WinCC Unified Systems: Pass a Variable into a Automation Code Automation System parameter

About User

Questions Asked: 3.6K

Answers Given: 0

0
  • Open
  • New

WinCC Unified Systems: Pass a Variable into a Automation Code Automation System parameter

Greetings, Siemens Community.
I'd like to do the following, but I'm not sure it's possible.
I'd like to write a function that verifies a few parameters before updating a
Tag
's value to the desired
value
.
Below is some code that is similar to what i want to do. What code should I use to accomplish this? Is there another option?
Sincerely,
Trocken
export function CheckPrijava_bool(Tag, Value) {
let loginVal = Tags("DB_SPICA_HMI_st_curr_User_HMI").Read();
if (loginVal > 0) {
let
temp
= Tag.Name();
Tags("
temp
").Write(Value);
return;
}

0 Likes 0 Favourites 0 Followers 0 Comments
Answers(0)