Omron CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 Reference Manual page 77

Script language
Table of Contents

Advertisement

CHAPTER 6 – Functions and Methods
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
returnstate
pointname
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
pointname
returnpoint
Page 64
Type
bool
Returnstate is '1' if the function is successful, or '0' otherwise.
point
The point to be updated.
Type
string
This text contains the point name.
point
Boolean point that contains the return value.
Description
Description
Revision 2.0
OMRON

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 and is the answer not in the manual?

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents