Plant SCADA 2023 R2

Dear Experts,

We have Plant SCADA 2023 R2 latest version.

The customer asked for a way to enter data into the trends server. We need to use that in case of any communication failure or system failure.

Is this possible?

I searched through the trends functions and found this one TrnEventSetTable.

I am not sure how to use it and if this is the right way to do it or if there is another way?

Your support is appreciated.

  • Hi  ,

    I think TrnEventSetTable is only used if you have configured and use "Event" Trend tags. If you are using periodic trends, you would use the TrnSetTable cicode function.

    See help references for each here:

    https://docs.aveva.com/bundle/plant-scada/page/1193822.html

    https://docs.aveva.com/bundle/plant-scada/page/1193875.html

    There are examples of these functions being used in the Citect Toolbox, where some tools were developed to insert data into the Trend system.

    Kind regards

    Olivier

  • Writing values to the trends is one option. That would allow you to overwrite previous bad sensor values with manual readings. However, if you're just concerned about the current value, tag properties might be easier/better. You can put a tag in override mode, then write an override value to the tag. That override value will be shown on any graphics that display the tag, and would also be recorded to the trends as the current value. If your tag name is Tag1, write Tag1.OverrideMode = 1 to enter override mode, using the current field value. Then, write Tag1.Override = <the manual reading> to set the value to your manual reading, overriding the value from the field (I/O device). When the communications are restored, set Tag1.OverrideMode = 0 to return to normal operation.

    The graphics will indicate the value is in override mode by changing the background color.

    For more details, see the help page: System Model > Variable Tags > Refer to Variable Tags > Set a Tag to Override Mode

    Another option is to use Memory mode on the I/O Device. If there are no communications to a device, you can edit the I/O Device properties and set Memory: TRUE. SCADA will no longer communicate with the device and the variables for that device will be shown as 0 or the last persisted value until you write a new value. This is often used when a device is not yet connected to the network but you want to develop and test graphics for it.