AGG Software Forums
November 21, 2024, 11:27:00 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome on our forum!
 
   Home   Help Search Login Register  

Pages: [1]
  Print  
Author Topic: OPC Scada Viewer - Scripting  (Read 31852 times)
Herbi
Newbie
*

Karma: +0/-0
Posts: 2


View Profile
« 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
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #1 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
Logged
Osmon
Newbie
*

Karma: +0/-0
Posts: 2


View Profile
« Reply #2 on: October 08, 2014, 03:08:52 PM »

So even so, is there any examples of scripting in OPC Scada Viewer??
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #3 on: October 08, 2014, 05:00:26 PM »

The scripting engine is mainly identical.
Logged
GeraldWag
Newbie
*

Karma: +0/-0
Posts: 1


View Profile
« Reply #4 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?
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #5 on: July 31, 2020, 05:53:06 PM »

Hello,

Are you really using OPC Scada Viewer? It cannot send data to Excel.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines