General Commands - Omron CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 Reference Manual

Script language
Table of Contents

Advertisement

OMRON

General Commands

Exponential
Description
Mathematical function to calculate a value raised to a power.
Syntax
result = Exp (value, exponent)
Remarks
Argument
result
value
exponent
Typical Example
MSBMask = Exp (2, 15)
In this example, 'MSBMask' is assigned the value 2
PlayOLE
Description
Initiate an OLE verb or 'method' on an OLE 2 object. The verb number is object dependent so refer
to the object's documentation. This function is now largely obsolete as most objects are nowadays
ActiveX objects.
Syntax
returnstate = PlayOLE("objectname",OLEVerbNumber)
Revision 2.0
Type
integer
Point name to receive returned result of value raised to
the power of exponent.
integer
Number to raise.
integer
Power to raise value by.
15
, i.e. 32,768.
CHAPTER 6 – Functions and Methods
Description
Page 49

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents