Omron CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 Reference Manual page 65

Script language
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

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

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents