Inputpoint; Outputpoint; Pointexists - Omron CX-Supervisor Reference Manual

Script language reference
Hide thumbs Also See for CX-Supervisor:
Table of Contents

Advertisement

Point Commands

6-5-13 InputPoint

Note:

6-5-14 OutputPoint

Note:

6-5-15 PointExists

66
Typical Example
InitArray (MyArray, 0)
In this example, all elements of the array 'MyArray' are set to 0.
Syntax
returnstate = InputPoint(pointname, returnflag)
Remarks
Argument
Type
returnstate
bool
pointname
point
returnflag
point
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.
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'.
Syntax
returnstate = OutputPoint(pointname)
Remarks
Argument
Type
returnstate
bool
pointname
point
Typical Examples
OutputPoint(result)
The point 'result' is updated with its current value.
The value of a point connected to a PLC is not be set if the point is currently in
a "forced" state.
Syntax
returnpoint = PointExists(pointname)
Remarks
SECTION 6 Functions and Methods
Description
Returnstate is '1' if the function is successful, or
'0' otherwise.
The point name whose data is to be read.
Optional Boolean point which is set to 'TRUE'
when value is returned from the PLC.
Description
Returnstate is '1' if the function is successful, or
'0' otherwise.
The point to be updated.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents