10.07.2015 Views

QuickScript .NET Functions 1 - Wonderware

QuickScript .NET Functions 1 - Wonderware

QuickScript .NET Functions 1 - Wonderware

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>QuickScript</strong> .<strong>NET</strong> <strong>Functions</strong> 1Quick ReferenceSystemFunctionCreateObject(ProgID)Now()DescriptionCreates an ActiveX (COM) object.Returns the current time.WWDDEFunctionWWExecute(application, topic,command)WWPoke(application, topic, item,textValue)WWRequest(application, topic,item, attribute)DescriptionUsing the DDE protocol, executes acommand to a specified applicationand topic and returns the status.Using the DDE protocol, pokes a valueto a specified application, topic, anditem and returns the status.Using the DDE protocol, makes a onetimerequest for a value from aparticular application, topic, and itemand returns the status.The WWDDE functions will return:1: The command was sent successfully0: The application is busy-1: When there is an error.Visit us at: 2013-08 For more information, contact us at:www.wonderware.com/trainingtraining.wonderware@invensys.com


MathFunctionAbs(number)ArcCos(number)ArcSin(number)ArcTan(number)Cos(number)Exp(number)Int(number)Log(number)Log10()LogN(number, base)Pi()Round(number, precision)Sgn(number)Sin(number)Sqrt(number)Tan(number)Trunc(number)DescriptionReturns the absolute value (unsignedequivalent) of a specified number.Returns an angle between 0 and 180 degreeswhose cosine is equal to the number specified.Returns an angle between -90 and 90 degreeswhose sine is equal to the number specified.Returns an angle between -90 and 90 degreeswhose tangent is equal to the numberspecified.Returns the cosine of an angle in degrees.Returns the result of the exponent e raised toReturns the next integer less than or equal to aReturns the natural log (base e) of a number.Returns the base 10 log of a number.Returns the values of the logarithm of x toReturns the value of Pi.Rounds a real number to a specified precisionDetermines the sign of a value (whether it ispositive, zero, or negative) and returns theresult.Returns the sine of an angle in degrees.Returns the square root of a number.Returns the tangent of an angle given inTruncates a real (floating point) number bysimply eliminating the portion to the right ofthe decimal point, including the decimal point,and returns the result.© Copyright 2013 Invensys Systems, Inc. All rights reserved.<strong>QuickScript</strong> .<strong>NET</strong> <strong>Functions</strong> 1 2013-08 Quick Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!