Standard Operators
Standard operators with their allowed modifiers and operands are as listed below.
Operator | Modifiers | Supported operand types: Acc_type, Op_type | Semantics |
LD | N | Any, Any | Sets the accumulator equal to operand |
ST | N | Any, Any | Stores the accumulator into operand location. |
S | BOOL, BOOL | Sets operand to TRUE if accumulator is TRUE. | |
R | BOOL, BOOL | Sets operand to FALSE if accumulator is TRUE. | |
AND | N, ( | Any but REAL, Any butREAL | Logical or bitwise AND |
OR | N, ( | Any but REAL, Any butREAL | Logical or bitwise OR |
XOR | N, ( | Any but REAL, Any butREAL | Logical or bitwise XOR |
NOT | Any but REAL | Logical or bitwise NOT | |
ADD | ( | Any but BOOL | Addition |
SUB | ( | Any but BOOL | Subtraction |
MUL | ( | Any but BOOL | Multiplication |
DIV | ( | Any but BOOL | Division |
MOD | ( | Any but BOOL | Modulo-division |
GT | ( | Any but BOOL | Comparison: |
GE | ( | Any but BOOL | Comparison: = |
EQ | ( | Any but BOOL | Comparison: = |
NE | ( | Any but BOOL | Comparison: |
LE | ( | Any but BOOL | Comparison: |
LT | ( | Any but BOOL | Comparison: |
JMP | C, N | Label | Jumps to label |
CAL | C, N | FB instance name | Calls function block |
RET | C, N | Returns from called program, function, or function block. | |
) | Evaluates deferred operation. |