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 #120 background imageLoading...
Page #120 background image
ActiveX Functions SECTION 6 Functions and Methods
119
6-19-7 ExecuteJScriptFile
Description
Allows Java script stored in a text file to be executed. This uses the windows
scripting host which must be installed. See Appendix C for a list of supported
functions.
Syntax
returnstate = ExecuteJScriptFile(scriptfile)
Remarks
Typical Examples
returnstate = ExecuteJScriptFile("c:\jscript.txt")
This will execute the Java Script stored in "c:\jscript.txt".
6-19-8 GenerateEvent
Description
This command is only used in conjunction with a remote connection using a
CX-Supervisor Communications control (see User Manual Chapter 15,
Connecting to remote applications). This command allows the Server machine
to post unsolicited data back to the client machine. This data is captured in the
client's "OnEvent" handler.
The data for the parameters is entirely at the designer's discretion, depending
on what the client needs to be informed of.
Syntax
returnstate = GenerateEvent(param1, param2, param3)
Remarks
Typical Examples
returnstate = GenerateEvent ("Archive", "", "")
An 'Archive'event is sent to the client application that may force the client to
perform some specified archive operation. The second and third parameters
are not used.
returnstate = GenerateEvent ("[Alarm Set]", "Boiler
alarm", "95.5")
An event is sent to the client application which can be interpreted as 'The
Boiler alarm has been set with a process value of 95.5'.
Argument Type Description
returnstate bool 1 if the function is successful otherwise 0.
scriptfile Text The name of the file with the Java Script to
execute.
Argument Type Description
returnstate bool 1 if the function is successful otherwise 0.
param1 Text Optional. Parameter of data to send
param2 Text Optional. Parameter of data to send
param3 Text Optional. Parameter of data to send

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