![background image](http://html1.mh-extra.com/html/omron/cx-supervisor-script-reference-rev2-0/cx-supervisor-script-reference-rev2-0_reference-manual_744212178.webp)
OMRON
APPENDIX D – Obsolete Features
Revision 2.0
Page 165
Remarks
Argument Type
Description
returnstate
bool
Returnstate
is ‘1’ if the function is successful, or ‘0’ otherwise.
graphid
string
The identifier of the trend graph to have a snapshot
pagename
string
Optional
parameter indicating the name of the page that the
graph is on.
Typical Examples
Snapshot(“Graph_1”, “TestPage1”)
The current data in trend graph ‘Graph1’ on ‘TestPage1’, is stored and is able to be viewed via the
EditGraph command.
Snapshot(“Graph_2”)
The current data in trend graph ‘Graph1’ on the current page, is stored and is able to be viewed via
the EditGraph command.
Note:
This command is provided for compatibility with SCS v2.0 applications. For newer
applications the data logging facilities should be used in preference.
GetPointValue
Syntax
returnpoint = GetPointValue(pointname,offset)
Remarks
Argument Type
Description
pointname
point
This is the name of the point whose contents are to be returned.
offset
integer
This specifies the offset into an array point. 0 if the point is not
an array point.
returnpoint
point
Point that contains the return value. The type of data returned is
dependant on the pointname specified.
Typical Example
pointname = 10;
returnpoint = GetPointValue(pointname,0)
The point ‘returnpoint’ contains the value 10. The offset is added to any offset specified for
pointname. For example:
returnpoint = GetPointValue(a[10],10)
Causes the 21st element (offsets begin at zero) of array ‘a’ to be retrieved.
Note:
It is often simpler to access an array element directly, e.g. returnpoint = a[20].
Summary of Contents for CX-SUPERVISOR - SCRIPT REFERENCE REV2.0
Page 2: ...CX Supervisor Script Language Software Revision 2 0...
Page 3: ......
Page 5: ...CX Supervisor Script Language OMRON Page ii Revision 2 0...
Page 7: ...CX Supervisor Script Language OMRON Page iv Revision 2 0...
Page 9: ...CX Supervisor Script Language OMRON Page vi Revision 2 0...
Page 13: ......
Page 15: ...CHAPTER 1 Introduction OMRON Page 2 Revision 2 0...
Page 19: ...CHAPTER 2 Expressions OMRON Page 6 Revision 2 0...
Page 21: ...CHAPTER 3 Scripts OMRON Page 8 Revision 2 0...
Page 151: ...CHAPTER 8 Colour Palette OMRON Page 138 Revision 2 0...