OMRON
CHAPTER 6 – Functions and Methods
Revision 2.0
Page 63
Remarks
Argument Type
Description
pointname
Integer /
real
This is the name of the point to get the bit value from.
Indirection or point value may be used.
bit
integer
This specifies which bit to get the value of.
returnpoint
bool
This contains the return value ‘TRUE’ or ‘FALSE’.
Typical Example
pointname = 256;
returnpoint = GetBit(pointname,8)
The point ‘returnpoint’ contains ‘TRUE’.
InitialiseArray
Syntax
InitArray (arrayname, value)
Remarks
Argument Type
Description
arrayname
- - -
Name of point array.
value
- - -
Value to set all elements of the array to.
Typical Example
InitArray (MyArray, 0)
In this example, all elements of the array ‘MyArray’ are set to 0.
InputPoint
Syntax
returnstate = InputPoint(pointname, returnflag)
Remarks
Argument Type
Description
returnstate
bool
Returnstate
is ‘1’ if the function is successful, or ‘0’ otherwise.
pointname
point
The point name whose data is to be read.
returnflag
point
Optional Boolean point which is set to ‘TRUE’ when value is
returned from the PLC.
Содержание 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...