Runapplication; Runhelp - Omron CX-Supervisor Reference Manual

Script language reference
Hide thumbs Also See for CX-Supervisor:
Table of Contents

Advertisement

General Commands
Note:
6-3-6

RunApplication

6-3-7

RunHelp

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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents