OMRON
Further Point Assignment
Syntax
pointname = expression
Remarks
Argument
pointname
expression
Typical Examples
lift = height + rate/5.0
The Integer or Real point 'lift' is assigned the value calculated by the value of point 'rate' divided by
5, plus the value of point 'height'. Precedence can be changed by the introduction of parenthesis.
lift = lift - 0.2
The Integer or Real point 'lift' is assigned the value calculated by the current value of point 'lift'
minus 0.2.
distance = distance * time
The Integer or Real point 'distance' is assigned the value calculated by the current value of point
'distance' multiplied by point 'time'.
References
Refer to chapter 4, Logic and Arithmetic for details of the use of arithmetic and logic functions.
Refer to chapter 4, Punctuation for details of the use of parenthesis.
Revision 2.0
CHAPTER 4 – CX-Supervisor Script Language
The point name to be assigned a value.
The value to be assigned to pointname. The expression may be of type
Boolean, Integer or Real and can include other points, logical or arithmetical
expressions. Mathematical precedence is applied as follows:
•
Parenthesis (highest).
•
Unary minus and NOT logical operator.
•
Multiplication, division and modulus.
•
Addition and subtraction.
•
Greater than, less than, greater than or equal to, and less than or equal to
relational operators.
•
Shift Left (SHL) and Shift Right (SHR).
•
Equal to and not equal to relational operators.
•
Bitwise AND, XOR, OR.
•
AND logical operator, OR logical operator (lowest).
Description
Page 11
Need help?
Do you have a question about the CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 and is the answer not in the manual?
Questions and answers