![background image](http://html1.mh-extra.com/html/omron/cx-supervisor-script-reference-rev2-0/cx-supervisor-script-reference-rev2-0_reference-manual_744212065.webp)
CHAPTER 6 – Functions and Methods
OMRON
Page 52
Revision 2.0
Typical Example
randomnumber = Rand(upperlimit)
A random integer in the range 0 to upperlimit is returned and contained in the point ‘randomnumber’.
Maximum upperlimit is 32767.
Note:
If ‘upperlimit’ is negative then the range is 0 to the negative number.
RunApplication
Description
Requests the operating system runs a new program. It will run in a separate process and
RunApplication does not wait for the application to be launched. The specified filename must be
executable i.e. have an extension of .EXE, .COM or .BAT.
Syntax
returnstate = RunApplication(“executable”)
Remarks
Argument Type
Description
returnstate
bool
Returnstate
is ‘1’ if the function is successful, or ‘0’ otherwise.
executable
string
Pathname of executable file.
Typical Example
RunApplication(“c:\myprog.exe”)
The executable file c:\myprog.exe is run.
RunHelp
Description
Invokes the Windows Help engine and loads a help file, showing a specific topic number.
Syntax
returnstate = RunHelp(“helpfile”,helpindex)
Содержание 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...