![background image](http://html1.mh-extra.com/html/omron/smart-sensor-zfx-c/smart-sensor-zfx-c_user-manual_1633245120.webp)
Additional Functions
ZFX-C User’s Manual
3
SETTING THE MEAS
UREM
ENT CONDITIONS
117
Trigonometric functions
Geometrical functions
Logic functions
Function
Description
SIN
Calculates the sine. The result is returned in the range -1 to 1.
Specify the angle in the numerical expression in degrees.
SIN (numerical expression)
COS
Calculates the cosine. The result is returned in the range -1 to 1.
Specify the angle in the numerical expression in degrees.
COS (numerical expression)
ATAN
Calculates the arc tangent of the Y-axis and X-axis components.
The result is returned as a radian in the range -
π
to
π
.
ATAN (Y-axis component, X-axis component)
Example: To calculate the angle formed between a horizontal line and a straight line join-
ing the gravities of items 0 and 1
ATAN (I001.Y-I000.Y, I001.X-I000.X)
When both of the two arguments are 0, 0 is returned as the calculation result to indicate
that the judgment is NG.
Function
Description
ANGL
Calculates the angle formed by a straight line connecting two points (gravity and center of
model).
The angle is calculated with respect to the horizontal line. The result is returned in the
range -180 to 180.
ANGL (Y-axis component, X-axis component)
Example: To calculate the angle formed by a straight line joining the gravities of items 0
and 1
ANGL (I001.Y-I000.Y, I001.X-I000.X)
When both of the two arguments are 0, 0 is returned as the calculation result to indicate
that the judgment is NG.
DIST
Calculates the distance between two points (gravity and center of model).
DIST (X-axis coordinate of 1st point, Y-axis coordinate of 1st point, X-axis coordinate of
2nd point, Y-axis coordinate of 2nd point)
Example: To calculate the distance between the gravities of items 0 and 1
DIST (I000.X, I000.Y, I001.X, I001.Y)
The following calculation is performed internally:
Function
Description
AND
Calculates the logical product.
When either of the arguments is "0", "0" is returned as the calculation result, and "-1" is
returned for the other argument.
AND (argument1, argument 2)
(horizontal line)
2nd point
1st point
(I001.X-I000.X)
2
+ (I001.Y-I000.Y)
2
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 ...