![AXIOMATIC Tri-Axial J1939 CAN Скачать руководство пользователя страница 33](http://html1.mh-extra.com/html/axiomatic/tri-axial-j1939-can/tri-axial-j1939-can_user-manual_3037103033.webp)
UMAX0608XX‐1000. Tri‐Axial J1939 CAN Inclinometer. Version 9B
Page: 33-66
Table 8. Unary Functions
Function Name
Description
Comment
Undefined
f(x) = x
Signal is not processed.
! Logical Not
f(x) = !x
x is converted into 4-byte unsigned integer before
function is applied.
~ Bitwise Not
f(x) = ~x
x is converted into 4-byte unsigned integer before
function is applied.
abs(x) Absolute
f(x) = x, if x≥0
f(x) = -x, if x<0
The following binary functions are defined in the function block:
Table 9. Binary Functions
Function Name
Description
Comment
Undefined
F[x;y] = Undefined
Output signal is undefined.
+ Addition
F[x;y] = x + y
- Subtraction
F[x;y] = x - y
* Multiplication
F[x;y] = x * y
/ Division
F[x;y] = x / y
Division by 0 gives 0.
% Modulus
F[x;y] = x % y
x and y are converted into 4-byte unsigned integers
before function is applied.
max(x,y) Maximum
F[x;y] = x, if x≥y
F[x;y] = y, if x<y
min(x,y) Minimum
F[x;y] = x, if x≤y
F[x;y] = y, if x>y
== Equal
F[x;y] = 1, if x=y
F[x;y] = 0, if x≠y
!= Not Equal
F[x;y] = 1, if x≠y
F[x;y] = 0, if x=y
> Great
F[x;y] = 1, if x>y
F[x;y] = 0, if x≤y
>= Great Equal
F[x;y] = 1, if x≥y
F[x;y] = 0, if x<y
< Less
F[x;y] = 1, if x<y
F[x;y] = 0, if x≥y
<= Less Equal
F[x;y] = 1, if x≤y
F[x;y] = 0, if x>y
|| Logical OR
F[x;y] = x
y
x and y are converted into 4-byte unsigned integers
before function is applied.
&& Logical AND
F[x;y] = x
y
x and y are converted into 4-byte unsigned integers
before function is applied.
| Bitwise OR
F[x;y] = x | y
x and y are converted into 4-byte unsigned integers
before function is applied.
& Bitwise AND
F[x;y] = x & y
x and y are converted into 4-byte unsigned integers
before function is applied.
^ Bitwise XOR
F[x;y] = x ^ y
x and y are converted into 4-byte unsigned integers
before function is applied.
<< Left Shift
F[x;y] = x << y
x and y are converted into 4-byte unsigned integers
before function is applied.
>> Right Shift
F[x;y] = x >> y
x and y are converted into 4-byte unsigned integers
before function is applied.