Danfoss VLT5000 SyncPos Operating Instructions Manual page 95

Motion controller for danfoss vlt5000 series; danfoss vlt 5000flux series
Table of Contents

Advertisement

Operators
Symbol
Meaning
+
plus
minus
*
times
%
divided by
^
XOR
mod
modulo
rnd
division
abs
absolute amount Abs(expr)
Bit operators
Symbol
Meaning
&
and
|
or
~
invert
< <
left shift
> >
right shift
.
Bit
. b
Byte
.w
Word
.l
Long
Comparison Operations and Logical Operations
Comparison operations
Logical operations
94
Syntax / Example
3 + 3 = 6
9 – 3= 6
2 * 3 = 6
19 % 3 = 6
expr1 ^ expr2
127 ^ 255 = 128
expr1 mod expr2
250 mod 16 = 10
expr1 rnd expr2
250 rnd 16 = 16
abs (-5) = 5
Syntax / Example
7 & 6 = 6
2 | 4 = 6
~(–7) = 6
3 << 1 = 6
12 >> 1 = 6
expr1.expr2
7.1 = 1
7.3 = 1
7.4 = 0
expr1.b expr2
0x027F.b1 = 127
0x027F.b2 = 2
expr1.w expr2
0x0010FFFF.w2 = 16
expr1.l expr2
>
<
>=
<=
==
!=
AN D
O R
NOT
Programmable SyncPos motion controller
Description
Addition
Subtraction
Multiplication
Division (result is truncated)
Exclusive Or (binary operation)
Mathematic modulo (rest of an integer division)
Division with round-off (opposite to truncating)
Absolute amount of the expression
Description
bit-by-bit relationship
bit-by-bit relationship
bit-by-bit inversion
bit-by-bit shift to the left
bit-by-bit shift to the right
Returns the Bit expr2 from expr1
Returns the Byte expr2 from expr1
Returns the Word expr2 from expr1
Returns the Long expr2 from expr1 (standard)
greater than
less than
greater than or equal to
less than or equal to
the same as
not equal
and
or
not
MG. 1 0.J8.02 – VLT is a registered Danfoss trade mark

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents