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.
Содержание 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...