OMRON
CHAPTER 4 – CX-Supervisor Script Language
Revision 2.0
Page 13
or
DO UNTIL expression
Remarks
Argument Description
pointname
The pointname to be assigned a value based on the bitwise operation.
expression
The value to be assigned to
pointname
, or to be evaluated as a Boolean
expression. The expression can include the following operators with points
and constants:
•
Bitwise AND, ‘BITAND’ or ‘&’.
•
Bitwise OR, ‘BITOR’ or ‘|’.
•
Bitwise XOR, ‘XOR’ or ‘^’.
•
Bitwise Shift Left, ‘SHL’ or ‘<<’.
•
Bitwise Shift Right, ‘SHR’ or ‘>>’.
Typical Examples
MSB = value & 128
The Boolean point ‘MSB’ is set ‘TRUE’ if the binary representation of ‘value’ has the bit set which
is worth 128.
Pattern = value << 2
The binary representation of ‘value’ is shifted left twice, and stored in ‘pattern’. Each Shift Left
operation has the effect of doubling the value, so two shifts quadruple the value.
Logical Operators
Syntax
pointname = expression
or
IF expression
or
DO WHILE expression
or
DO UNTIL expression
Содержание 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...