Event Curve with add. Infos (text and icon)

Find and share HowTos to various installations / configurations!
3 posts • Page 1 of 1
horst.schevel
Posts:5
Joined: Mon Jan 28, 2019 1:18 pm

Event Curve with add. Infos (text and icon)

Post by horst.schevel »

Hello Community members,

I have in my project a state information of an optional drive system. This state information is stored in a value, archived and connected to a PLC. The value itself is between 0 and 4 and value >3 defines ON, <=3 defines OFF.
My idea is now to show this value in an Event curve with additional text (ON and OFF) and icons (i.e. LED green, LED red).
To be able to do this I have to create:
a) a datapoint “optDrive_State” type string with config _archive
b) a trend with an event curve connected to “optDrive_State”
c) a script to fill up the datapoint “optDrive_State” with the additional text and icons as JSON-String.

My Question is related to c):
Do I have to use dpConnect in a panel, which is all the time open (i.e. my main frame)? Another option would be to run the script in a Control Manager, but still dpConnect is to be used.
Or is there a possibility to use the powerconfig _dp_fct? As per my understanding only mathematic functions can be realized with _dp_fct.

My problem with dpConnect is, that I have several of these optional drive systems (~400) and would need worst case ~400 dpConnect. I want to be sure to went the correct direction in regards to performance.

Thanks in advance for your response.

Best regards

Horst Schevel

gschijndel
Posts:376
Joined: Tue Jan 15, 2019 3:12 pm

Re: Event Curve with add. Infos (text and icon)

Post by gschijndel »

The additional texts could also be set with the 'curveValuesTexts'.

For a trend curve no dpe is needed, you could for example put the state information in a trend curve. Read the values from the trend, make the json strings event values from this data and put these in the event curve.

A control manager would be the preferred option for this, since this would only run on the server (also when there are no UIs running) and not in all UIs (avoiding multiple writing of the same values).
All non-waiting functions can be used in a _dp_fct.
The dpConnects are not a problem, since a _dp_fct would also use a dpConnect to retrieve the data.

horst.schevel
Posts:5
Joined: Mon Jan 28, 2019 1:18 pm

Re: Event Curve with add. Infos (text and icon)

Post by horst.schevel »

Thanks gschijndel, for these informations.

Best regards

Horst Schevel

3 posts • Page 1 of 1