CHAPTER 6 – Functions and Methods
CopyArray
Syntax
CopyArray (SourceArray, DestArray)
Remarks
Argument
SourceArray
DestArray
Typical Example
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. If 'DestArray' is smaller than 'SourceArray' i.e. it contains two elements then
only elements [0] and [1] are set to 1 and 2 respectively.
Note:
'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.
DisableGroup
Syntax
returnstate = DisableGroup(groupname)
Remarks
Argument
returnstate
groupname
Page 58
Type
- - -
Name of point array to copy from.
- - -
Name of point array to copy to.
Type
bool
Returnstate is '1' if the function is successful, or '0' otherwise.
text
Name of the group containing the points to disable.
Description
Description
Revision 2.0
OMRON
Need help?
Do you have a question about the CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 and is the answer not in the manual?