Omron F160 Operation Manual page 227

Vision sensor
Hide thumbs Also See for F160:
Table of Contents

Advertisement

Details on Expressions
SeeAlso
216
Refer to page 223.
Type of
expression
Variable
VR.0 to VR.31
Data
RS.0 to RS.31
Judge
PR.0 to PR.31
3.
Arithmetic Operators
Operators
+
Addition
-
Subtraction
*
Multiplication
/
Real number
division
4.
Functions
Function
ABS
Calculates the absolute value.
ABS(argument)
MOD
Calculates the remainder when a number is divided by an ordinal
number.
MOD(dividend, ordinal number)
When multiplication and division are performed and real numbers
are used, the real numbers are rounded off to the nearest integer.
The result is the remainder from the division of the integer.
Examples
MOD(13, 4) = 1 (Remainder when 13 is divided by 4.)
MOD(25.68, 6.99) = 5 (Remainder when 26 is divided by 7.)
MAX
Gives the larger of two arguments.
MAX(argument 1, argument 2)
MIN
Gives the smaller of two arguments.
MIN(argument 1, argument 2)
SQRT
Calculates the square root. If the argument is negative, the calcu-
lation result will be 0 and the judgement will be NG.
SQRT(argument)
SIN
Calculates the sine. The result will be given between -1 and 1.
The angle in the expression is specified in degrees.
SIN(expression)
COS
Calculates the cosine. The result will be given between -1 and 1.
The angle in the expression is specified in degrees.
COS(expression)
Expression No.
Measurement
Judgement
result
VJ.0 to VJ.31
---
PJ.0 to PJ.31
Meaning
Meaning
Section 4-3

Advertisement

Table of Contents
loading

Table of Contents