![background image](http://html1.mh-extra.com/html/omron/cx-supervisor-script-reference-rev2-0/cx-supervisor-script-reference-rev2-0_reference-manual_744212077.webp)
CHAPTER 6 – Functions and Methods
OMRON
Page 64
Revision 2.0
Typical Examples
InputPoint(point)
returnflag = FALSE
InputPoint(point, returnflag)
A request is made that the current value of point ‘point’ should be read. In the second example,
returnflag is set to ‘TRUE’ when the value is returned from the PLC.
Note:
The value is not returned immediately - it is not possible to use the returned value in
the same script as the InputPoint command. Instead, the value should be accessed from
within an “On Condition” script which has an expression of ‘returnflag = TRUE’.
OutputPoint
Syntax
returnstate = OutputPoint(pointname)
Remarks
Argument Type
Description
returnstate
bool
Returnstate
is ‘1’ if the function is successful, or ‘0’ otherwise.
pointname
point
The point to be updated.
Typical Examples
OutputPoint(result)
The point ‘result’ is updated with its current value.
Note:
The value of a point connected to a PLC is not be set if the point is currently in a
“forced” state.
PointExists
Syntax
returnpoint = PointExists(pointname)
Remarks
Argument Type
Description
pointname
string
This text contains the point name.
returnpoint
point
Boolean point that contains the return value.
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...