Owner's manual
Publication 1746-RM001A-US-P
3-2 Expressions and Operators
Expressions and
Operators
An expression is a logical mathematical expression that involves operators,
constants, and variables. There are eight types of operators that may act on an
expression:
• arithmetic
• logical
• relational
• trigonometric
• functional
• logarithmic
• string
• special function
Expressions
Expressions are simple or complex.
Simple expression:
12*EXP(A)/100,H(1) + 55,
Complex expression:
(SIN(A)*SIN(A)+COS(A)* COS(A)/2)
A stand alone variable [var] or constant [const] is also considered an expression.
Expressions are shown as:
[expr]
Operators
An operator performs a defined operation on variables or constants. Operators
require either one or two operands. Typical two operand operators include
ADD(+), SUBTRACT(-), MULTIPLY(*) and DIVIDE(/). We call operators that
require only one operand, single-operand operators. Typical single-operand
operators are SIN, COS, and ABS.
Logical Exclusive OR .XOR. 3-6
Direct communications to port PRT1. @ 3-15
Direct communications to port PRT2. # 3-15
Table 3.1 Chapter Reference Guide
If you need (to) Use this mnemonic Page