Calculations and Judgements Using Inspection Item Data
202
FQ2-S4 User’s Manual
Function
Description
ANGL
Finds the angle of the straight line joining two points (the center of gravity and center of the model).
The angle against the horizontal is found. The result is a value between
−
180 and 180.
ANGL
(Y_component,X_component)
Example: Finding the angle of the straight line joining the centers of region 0 and region 1
ANGL(R1.Y-R0.Y,R1.X-R0.X)
If the two arguments are both 0, the result is 0 and the judgement is NG.
MOD
Finds the remainder after dividing a non-ordinal number with an ordinal number.
MOD
(non-ordinal, ordinal)
If any of the arguments are real numbers, the decimals are rounded off before calculating the remain-
der. The remainder is the result of dividing integers.
Example: MOD(13,4) ... Result: 1 (remainder when 13 is divided by 4)
MOD(25.68,6.99) ... Result: 5 (remainder when 26 is divided by 7)
SQRT
Finds the square root.
If the argument is negative, the result is 0. The judgement will be NG.
SQRT
(argument)
DIST
• Finds the distance between two points (the center of gravity and the center of the model).
DIST
(first_position_X, first_position_Y, second_position_X, second_position_Y
)
Example: Finding the distance between the centers of gravity of region 0 and region 1
DIST
(R0.X,R0.Y,R1.X,R1.Y)
The following calculation is performed internally.
• Finds the length of a perpendicular line from point (x,y) to line ax + by + c = 0.
DIST
(X_coordinate_of_point, Y_coordinate_of_point, coefficient_a_of_line, coefficient_b_of_line,
coefficient_c_of_line)
First point
(Horizontal)
Second point
( R 1 . X
−
R 0 . X )
2
+
( R 1 . Y
−
R 0 . Y )
2
Summary of Contents for FQ2-S4
Page 1: ...User s Manual Smart Camera FQ2 S4 Cat No Z330 E1 01 ...
Page 58: ...Setting Up Ethernet 56 FQ2 S4 User s Manual MEMO ...
Page 214: ...Calculations and Judgements Using Inspection Item Data 212 FQ2 S4 User s Manual MEMO ...
Page 234: ...Adjusting Judgement Parameters during Operation 232 FQ2 S4 User s Manual MEMO ...
Page 458: ...Basic Troubleshooting 456 FQ2 S4 User s Manual MEMO ...
Page 591: ...Index FQ2 S4 User s Manual 589 Index 12 ...
Page 593: ......