OMRON
CHAPTER 6 – Functions and Methods
Revision 2.0
Page 49
General Commands
Exponential
Description
Mathematical function to calculate a value raised to a power.
Syntax
result = Exp (value, exponent)
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.
Typical Example
MSBMask = Exp (2, 15)
In this example, ‘MSBMask’ is assigned the value 2
15
, i.e. 32,768.
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)
Содержание CX-SUPERVISOR - SCRIPT REFERENCE REV2.0
Страница 2: ...CX Supervisor Script Language Software Revision 2 0...
Страница 3: ......
Страница 5: ...CX Supervisor Script Language OMRON Page ii Revision 2 0...
Страница 7: ...CX Supervisor Script Language OMRON Page iv Revision 2 0...
Страница 9: ...CX Supervisor Script Language OMRON Page vi Revision 2 0...
Страница 13: ......
Страница 15: ...CHAPTER 1 Introduction OMRON Page 2 Revision 2 0...
Страница 19: ...CHAPTER 2 Expressions OMRON Page 6 Revision 2 0...
Страница 21: ...CHAPTER 3 Scripts OMRON Page 8 Revision 2 0...
Страница 151: ...CHAPTER 8 Colour Palette OMRON Page 138 Revision 2 0...