OMRON
CHAPTER 6 – Functions and Methods
Revision 2.0
Page 85
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 Type
Description
Returnstate
bool
Returnstate
is ‘1’ if the function is successful, or ‘0’ otherwise.
RecordId
integer
An index into the file.
Pointname
point
Name(s) of point(s) to be updated with the data read from the
open file.
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)
Содержание 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...