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)
Summary of Contents for CX-SUPERVISOR - SCRIPT REFERENCE REV2.0
Page 2: ...CX Supervisor Script Language Software Revision 2 0...
Page 3: ......
Page 5: ...CX Supervisor Script Language OMRON Page ii Revision 2 0...
Page 7: ...CX Supervisor Script Language OMRON Page iv Revision 2 0...
Page 9: ...CX Supervisor Script Language OMRON Page vi Revision 2 0...
Page 13: ......
Page 15: ...CHAPTER 1 Introduction OMRON Page 2 Revision 2 0...
Page 19: ...CHAPTER 2 Expressions OMRON Page 6 Revision 2 0...
Page 21: ...CHAPTER 3 Scripts OMRON Page 8 Revision 2 0...
Page 151: ...CHAPTER 8 Colour Palette OMRON Page 138 Revision 2 0...