OMRON
Note:
CX-Supervisor uses the OLE registration information (file extension associations) to
decide how to print a file. It invokes the parent application associated with a particular
file extension, instructing the application to start minimised and passing the "print"
command. For example, if the file extension .txt is associated with Notepad, then
Notepad is invoked to print the file.
Read
Syntax
returnstate = Read(RecordId, pointname, ...)
Remarks
Argument
Returnstate
RecordId
Pointname
Typical Examples
Read(1, value)
The point 'value' is loaded with the value read from the currently open file using the value of 1 as an
index into the file.
ReadOK = Read(indexno, value1, value2, value3)
The points 'value1', 'value2', 'value' are loaded using the value of indexno as an index into the file.
Pass or fail status is stored in 'ReadOK'.
Note:
It is advisable to use a RecordId less than 1024 whenever possible, in order to optimise
file access time (records 0 to 1023 are cached).
ReadMessage
Syntax
returnstate = ReadMessage ("filename", offset, textpoint, noofchars)
Revision 2.0
Type
bool
Returnstate is '1' if the function is successful, or '0' otherwise.
integer
An index into the file.
point
Name(s) of point(s) to be updated with the data read from the
open file.
CHAPTER 6 – Functions and Methods
Description
Page 85
Need help?
Do you have a question about the CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 and is the answer not in the manual?