![background image](http://html1.mh-extra.com/html/omron/smart-sensor-zfx-c/smart-sensor-zfx-c_user-manual_1633245119.webp)
Additional Functions
116
ZFX-C User’s Manual
Setup Parameters
Item No.
Item Nos. are displayed as follows.
The parameters that can be set to expressions differ according to the measurement item.
"Possible output results" from measurement items
List of functions
The following describes the functions that are available for expressions.
General functions
Function
Description
ABS
Calculates the absolute value.
ABS (argument)
MOD
Calculates the remainder obtained by dividing the dividend by the ordinal.
MOD (dividend, ordinal)
If the numerical value to be handled is a real number when calculating the remainder,
numbers past the decimal point of the real number are rounded to the nearest whole num-
ber before calculation of the remainder is executed. The result is the remainder of division
of the integer.
Example: MOD(13,4)... Result: 1 (remainder obtained by dividing 13 by 4)
MOD (25.68,6.99)... Result: 1 (remainder obtained by dividing 26 by 7)
MAX
The largest value of the four arguments is returned.
MAX (argument 1, argument 2, argument 3, argument 4)
MIN
The smallest value of the four arguments is returned.
MIN (argument 1, argument 2, argument 3, argument 4)
SQRT
Calculates the square root.
When the argument is a minus number, "0" is returned as the calculation result to indicate
that the judgment result is an NG.
SQRT (argument)
AVE
Calculates the average.
AVE (Up to 4 arguments can be set.)
IMAX
The index (0 to 15) having the largest value of the maximum of 16 arguments is returned.
IMAX (argument 1, argument 2, argument 3, and so forth to argument 16)
Example: IMAX (10,54,25)
...... Result: 1
IMAX (-20.-54, -1)
... Result: 2
IMIN
The index (0 to 15) having the smallest value of the maximum of 16 arguments is
returned.
IMIN (argument 1, argument 2, argument 3, and so forth to argument 16)
Example: IMIN (10,54,25)
....... Result: 0
IMIN (-20.-54, -1)
.... Result: 1
Measurement items I000 to I127
Position correction P0
Region No. (0/1)
Position correction repeat No. (0/1)
Camera (0/1)
Summary of Contents for Smart Sensor ZFX-C
Page 2: ......
Page 125: ...Additional Functions 122 ZFX C User s Manual MEMO ...
Page 135: ...Checking Adjusting the Measurement ADJ Mode 132 ZFX C User s Manual MEMO ...
Page 221: ...Menu List 218 ZFX C User s Manual MEMO ...
Page 225: ...INDEX 222 ZFX C User s Manual MEMO ...
Page 226: ...INDEX ZFX C User s Manual 8 APPENDICES 223 MEMO ...