Additional Functions
ZFX-C User’s Manual
3
SETTING THE MEASUREMENT 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)