![background image](http://html1.mh-extra.com/html/omron/cx-supervisor-script-reference-rev2-0/cx-supervisor-script-reference-rev2-0_reference-manual_744212071.webp)
CHAPTER 6 – Functions and Methods
OMRON
Page 58
Revision 2.0
CopyArray
Syntax
CopyArray (SourceArray, DestArray)
Remarks
Argument Type
Description
SourceArray
- - -
Name of point array to copy from.
DestArray
- - -
Name of point array to copy to.
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 Type
Description
returnstate
bool
Returnstate
is ‘1’ if the function is successful, or ‘0’ otherwise.
groupname
text
Name of the group containing the points to disable.
Содержание 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...