EasyManuals Logo

Omron CX-Supervisor Reference Manual

Omron CX-Supervisor
164 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #58 background imageLoading...
Page #58 background image
General Commands SECTION 6 Functions and Methods
57
pointname = Rand(upperlimit)
Remarks
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.
6-3-6 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
Typical Example
RunApplication("c:\myprog.exe")
The executable file c:\myprog.exe is run.
6-3-7 RunHelp
Description
Invokes the Windows Help engine and loads a help file, showing a specific
topic number.
Syntax
returnstate = RunHelp("helpfile",helpindex)
Remarks
Argument Type Description
upperlimit integer The maximum negative or positive integer
value that the Rand function can generate.
pointname Integer
point
Point that contains the integer returned from
the Rand function.
Note: If 'upperlimit' is negative then the range is 0 to the negative number.
Argument Type Description
returnstate bool Returnstate is '1' if the function is successful, or
'0' otherwise.
executable string Pathname of executable file.
Argument Type Description
returnstate bool Returnstate is '1' if the function is successful, or
'0' otherwise.
helpfile string Pathname of helpfile to be run.
helpindex integer Index into a help topic as defined by the help
file being run.

Table of Contents

Other manuals for Omron CX-Supervisor

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CX-Supervisor and is the answer not in the manual?

Omron CX-Supervisor Specifications

General IconGeneral
BrandOmron
ModelCX-Supervisor
CategorySoftware
LanguageEnglish

Related product manuals