AGG Software Forums

Online Help Center => Other questions => Topic started by: Herbi on November 26, 2013, 04:39:02 PM

Title: OPC Scada Viewer - Scripting
Post by: Herbi on November 26, 2013, 04:39:02 PM
Hi there
Can anyone provide an example of how to use the scripting feautre in the OPC Scada Viewer? e.g. to maniuplate a value before it is displayed (Value = Value / 10) by a vizualization block?
Thx
Herbi
Title: Re: OPC Scada Viewer - Scripting
Post by: Arthur Grasin on November 26, 2013, 06:14:45 PM
Hello, Herbi.

You need to use the "Scale" function instead. Just specify the expression like: X/10
Title: Re: OPC Scada Viewer - Scripting
Post by: Osmon on October 08, 2014, 12:08:52 PM
So even so, is there any examples of scripting in OPC Scada Viewer??
Title: Re: OPC Scada Viewer - Scripting
Post by: Arthur Grasin on October 08, 2014, 02:00:26 PM
The scripting engine is mainly identical.
Title: OPC Scada Viewer Scripting
Post by: GeraldWag on July 31, 2020, 12:04:28 PM
Hi,
i'm trying to scale OPC Value just before to send to excel export plugin.
In variable combo i see variable name :
ex. CODESYS.OPC.DA.SCREW_SPEED
I would, before to send excel, to scale this value by a factor 10.

I tried with
CODESYS.OPC.DA.SCREW_SPEED  = CODESYS.OPC.DA.SCREW_SPEED   10

with no result

Anyone could help me please?
Title: Re: OPC Scada Viewer - Scripting
Post by: Arthur Grasin on July 31, 2020, 02:53:06 PM
Hello,

Are you really using OPC Scada Viewer? It cannot send data to Excel.