AGG Software Forums

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



Title: OPC Scada Viewer - Scripting
Post by: Herbi on November 26, 2013, 07: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, 09: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, 03: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, 05:00:26 PM
The scripting engine is mainly identical.


Title: OPC Scada Viewer Scripting
Post by: GeraldWag on July 31, 2020, 03: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, 05:53:06 PM
Hello,

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