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

Script language
Table of Contents

Advertisement

CHAPTER 6 – Functions and Methods
ExecuteJScript
Description
Creates aliases allowing Java Script to be executed in line. See Appendix C for a list of supported
functions and details of the Windows Scripting Host.
Syntax
@JSCRIPT
@ENDSCRIPT
Typical Examples
@JSCRIPT
Point("PointName") = OLE_1.Height;
@ENDSCRIPT
This Java Script will write the value of the property 'Height' from the OLE object 'OLE1' into the
Point named 'PointName'.
Note:
The Java Script can not include the { or } characters. To use these, put the script in a
text file and use the ExecuteJScriptFile function.
ExecuteVBScriptFile
Description
Allows Visual Basic script stored in a text file to be executed. This uses the windows scripting host
which must be installed. See chapter 5 for a list of supported functions.
Syntax
returnstate = ExecuteVBScriptFile(scriptfile)
Remarks
Argument
returnstate
scriptfile
Typical Examples
returnstate = ExecuteVBScriptFile("c:\vbscript.txt")
This will execute the Visual Basic Script stored in "c:\vbscript.txt".
Page 130
Type
bool
1 if the function is successful otherwise 0.
Text
The name of the file with the Visual Basic Script to execute.
Description
Revision 2.0
OMRON

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?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents