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

Script language
Table of Contents

Advertisement

OMRON
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
Argument
returnstate
scriptfile
Typical Examples
returnstate = ExecuteJScriptFile("c:\jscript.txt")
This will execute the Java Script stored in "c:\jscript.txt".
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
Argument
returnstate
param1
param2
param3
Revision 2.0
CHAPTER 6 – Functions and Methods
Type
bool
1 if the function is successful otherwise 0.
Text
The name of the file with the Java Script to execute.
Type
bool
1 if the function is successful otherwise 0.
Text
Optional. Parameter of data to send
Text
Optional. Parameter of data to send
Text
Optional. Parameter of data to send
Description
Description
Page 131

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents