CHAPTER 6 – Functions and Methods
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
returnstate
executable
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)
Page 52
Type
bool
Returnstate is '1' if the function is successful, or '0' otherwise.
string
Pathname of executable file.
Description
Revision 2.0
OMRON
Need help?
Do you have a question about the CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 and is the answer not in the manual?
Questions and answers