0% found this document useful (0 votes)
300 views

Quick Reference - QuickScript NET Functions 1 Rev A

intouch

Uploaded by

irfanWPK
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
300 views

Quick Reference - QuickScript NET Functions 1 Rev A

intouch

Uploaded by

irfanWPK
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

System

QuickScript .NET Functons 1


Quick Reference
Visit us at: 2013-08 For more information, contact us at:
www.wonderware.com/training [email protected]
Function Description
CreateObject(ProgID) Creates an ActiveX (COM) object.
Now() Returns the current time.
WWDDE
Function Description
WWExecute(application, topic,
command)
Using the DDE protocol, executes a
command to a specified application
and topic and returns the status.
WWPoke(application, topic, item,
textValue)
Using the DDE protocol, pokes a value
to a specified application, topic, and
item and returns the status.
WWRequest(application, topic,
item, attribute)
Using the DDE protocol, makes a one-
time request for a value from a
particular application, topic, and item
and returns the status.
The WWDDE functions will return:
1: The command was sent successfully
0: The application is busy
-1: When there is an error.
Math
QuickScript .NET Functions 1 2013-08 Quick Reference
Copyright 2013 Invensys Systems, Inc. All rights reserved.
Function Description
Abs(number)
Returns the absolute value (unsigned
equivalent) of a specified number.
ArcCos(number)
Returns an angle between 0 and 180 degrees
whose cosine is equal to the number specified.
ArcSin(number)
Returns an angle between -90 and 90 degrees
whose sine is equal to the number specified.
ArcTan(number)
Returns an angle between -90 and 90 degrees
whose tangent is equal to the number
specified.
Cos(number) Returns the cosine of an angle in degrees.
Exp(number) Returns the result of the exponent e raised to
Int(number) Returns the next integer less than or equal to a
Log(number) Returns the natural log (base e) of a number.
Log10() Returns the base 10 log of a number.
LogN(number, base) Returns the values of the logarithm of x to
Pi() Returns the value of Pi.
Round(number, precision) Rounds a real number to a specified precision
Sgn(number)
Determines the sign of a value (whether it is
positive, zero, or negative) and returns the
result.
Sin(number) Returns the sine of an angle in degrees.
Sqrt(number) Returns the square root of a number.
Tan(number) Returns the tangent of an angle given in
Trunc(number)
Truncates a real (floating point) number by
simply eliminating the portion to the right of
the decimal point, including the decimal point,
and returns the result.

You might also like