Omron FQ-CR1 User Manual page 69

Fixed mount multi code reader
Hide thumbs Also See for FQ-CR1:
Table of Contents

Advertisement

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)
First point
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.
DIST(first_position_X, first_position_Y, second_poistion_X, second_position_Y)
Example: Finding the distance between the centers of gravity of region 0 and region 1
The following calculation is performed internally.
( R 1 . X − R 0 . X )
• 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)
FQ User's Manual
(Horizontal)
Second point
DIST(R0.X,R0.Y,R1.X,R1.Y)
2
2
+ ( R 1 . Y − R 0 . Y )
Calculations and Judgements Using Inspection Item Data
67

Advertisement

Table of Contents
loading

Table of Contents