How to make a dynamic tag for WinCC Alarm Logging using C-Script

D.Scorgie89

Member
Join Date
Nov 2013
Location
Johannesburg
Posts
1
Hi All,

What i am trying to achieve is a dynamic tag(Device_1)[Text tag 16 bit] that monitors the state of another tag (Config_1)[unsigned 8 bit] in order to change its text description.

This tag (Config_1) has 23 possible states that all need to be represented in a text format. These states are all numerical but i need the numerical to trigger a text.
i.e.

0 = Relay
1 = PLC
2 = Analog

So as the state in Config_1 changes i need the text in Device_1 to change. I have tried doing this in C-Script through WinCC but C is not my strong point.

I tried using the GetTag[]state and SetTag[] functions but to no avail. All online searches haven't given much assistance.

Please Help.

Thanks
 

Similar Topics

Hey Guys! Wondering if anyone here knows if it's possible to address area blocks in a PLC via pointers in WinCC Flexible. I need to...
Replies
6
Views
4,518
I have spent multiple hours looking for a solution for the following problem. I have an HMI application that is meant to be installed at 3...
Replies
1
Views
1,207
I have never used a RedLion HMI before, but I am fixing to. I have three identical yet separate processes where each will have its own RedLion...
Replies
2
Views
1,706
So I am currently trying to create a data-viewer within FT View. I need the operator to be able to select two different datasets from a list of...
Replies
1
Views
1,316
Hello, I have a requirement to manage the text alignment dynamically. So, for example: 1. English Texts should be displayed from Left in...
Replies
0
Views
90
Back
Top Bottom