News:

Welcome on our forum!

Main Menu

OPC Scada Viewer - Scripting

Started by Herbi, November 26, 2013, 04:39:02 PM

Previous topic - Next topic

Herbi

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

Arthur Grasin

Hello, Herbi.

You need to use the "Scale" function instead. Just specify the expression like: X/10
If you like my work, please take a few seconds and add feedback about our site or our software [here]

Osmon

So even so, is there any examples of scripting in OPC Scada Viewer??

Arthur Grasin

The scripting engine is mainly identical.
If you like my work, please take a few seconds and add feedback about our site or our software [here]

GeraldWag

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?

Arthur Grasin

Hello,

Are you really using OPC Scada Viewer? It cannot send data to Excel.
If you like my work, please take a few seconds and add feedback about our site or our software [here]