EasyManuals Logo

Omron CX-Supervisor Reference Manual

Omron CX-Supervisor
164 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #56 background imageLoading...
Page #56 background image
General Commands SECTION 6 Functions and Methods
55
6-3 General Commands
6-3-1 Exponential
Description
Mathematical function to calculate a value raised to a power.
Syntax
result = Exp (value, exponent)
Remarks
Typical Example
MSBMask = Exp (2, 15)
In this example, 'MSBMask' is assigned the value 215, i.e. 32,768.
6-3-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)
Remarks
Argument Type Description
result integer Point name to receive returned result of value
raised to the power of exponent.
value integer Number to raise.
exponent integer Power to raise value by.
Argument Type Description
returnstate bool Returnstate is '1' if the function is successful, or
'0' otherwise.
objectname string The identifier of the OLE object to be played.
OLEVerbNumber integer The verb number has a specific meaning to the
OLE application. Typical values are:
0: specifies the action that occurs when an
end-user double clicks the object in its
container. The object determines this action
(often 'edit' or 'play').
-1: instructs the object to show itself for editing
or viewing. Usually an alias for some other
object-defined verb.
-2: instructs an object to open itself for editing
in a window separate from that of its container.
-3: causes an object to remove its user
interface from the view. Applies only to objects
that are activated in-place.
Positive numbers designate object specific
verbs.

Table of Contents

Other manuals for Omron CX-Supervisor

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CX-Supervisor and is the answer not in the manual?

Omron CX-Supervisor Specifications

General IconGeneral
BrandOmron
ModelCX-Supervisor
CategorySoftware
LanguageEnglish

Related product manuals