OMRON
CHAPTER 6 – Functions and Methods
Revision 2.0
Page 65
Typical Example
PointName=“Testpoint”
Exists=PointExists(PointName)
The Boolean point ‘Exists’ is set to ‘TRUE’ if a point called ‘TestPoint’ exists.
Note:
“PointName” is a text point which can be set to any string value.
SetBit
Syntax
returnstate = SetBit(pointname,bit,value)
Remarks
Argument Type
Description
returnstate
bool
Returnstate
is ‘1’ if the function is successful, or ‘0’ otherwise.
pointname
integer/
real
This is the name of the point to set the bit for. Indirection or
point arrays may be used.
bit
integer
This specifies the bit to set.
value
bool
This specifies the value to set the bit to.
Typical Example
testpoint = 0;
SetBit(testpoint,4,TRUE)
The point ‘testpoint’ contains the value 16.
PLC Commands
ClosePLC
Syntax
returnstate = ClosePLC(“plcname”)
Содержание 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...