Disablegroup; Disablepoint - Omron CX-Supervisor Reference Manual

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

Advertisement

Point Commands
Note:
6-5-3

DisableGroup

6-5-4

DisablePoint

Note:
62
InitArray (DestArray, 0)
First initialise 'DestArray'.
SourceArray [0] = 1
SourceArray [1] = 2
SourceArray [2] = 3
Then, initialise 'SourceArray' to {1, 2, 3}.
CopyArray (SourceArray, DestArray)
Finally, copy the content of the source array 'SourceArray' to the destination
array 'DestArray'.
The two arrays do not have to be the same size as each other, for example if
'DestArray' contains 20 elements, only elements [0], [1] and [2] are set to 1, 2
and 3 respectively, the remaining elements are unchanged i.e. O's.
'DestArray' is smaller than 'SourceArray' i.e. it contains two elements then only
elements [0] and [1] are set to 1 and 2 respectively.
'CopyArray' accepts arrays of different type i.e. Boolean arrays can be copied
into Real arrays, the only restriction is that Text arrays cannot be copied into
numeric arrays and vice- versa.
Syntax
returnstate = DisableGroup(groupname)
Remarks
Argument
Type
returnstate
bool
groupname
text
Typical Example
DisableGroup("<Default>")
All points belonging to the <Default> group is disabled thus preventing values
from being read\written.
Syntax
returnstate = DisablePoint(pointname)
Remarks
Argument
Type
returnstate
bool
Pointname
point
Typical Example
DisablePoint(point1)
The point 'point1' is disabled thus preventing values to be read/written.
This is useful for optimisation of communications.
SECTION 6 Functions and Methods
Description
Returnstate is '1' if the function is successful, or
'0' otherwise.
Name of the group containing the points to
disable.
Description
Returnstate is '1' if the function is successful, or
'0' otherwise.
Name of point to be disabled.
If

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents