OMRON
CHAPTER 6 – Functions and Methods
Revision 2.0
Page 131
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
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.
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
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
Содержание CX-SUPERVISOR - SCRIPT REFERENCE REV2.0
Страница 2: ...CX Supervisor Script Language Software Revision 2 0...
Страница 3: ......
Страница 5: ...CX Supervisor Script Language OMRON Page ii Revision 2 0...
Страница 7: ...CX Supervisor Script Language OMRON Page iv Revision 2 0...
Страница 9: ...CX Supervisor Script Language OMRON Page vi Revision 2 0...
Страница 13: ......
Страница 15: ...CHAPTER 1 Introduction OMRON Page 2 Revision 2 0...
Страница 19: ...CHAPTER 2 Expressions OMRON Page 6 Revision 2 0...
Страница 21: ...CHAPTER 3 Scripts OMRON Page 8 Revision 2 0...
Страница 151: ...CHAPTER 8 Colour Palette OMRON Page 138 Revision 2 0...