Omron F150-3 - MANUAL 2 Operation Manual page 144

Vision sensor expert menu
Table of Contents

Advertisement

Output Expressions
Function
ANGL
Calculates the angle between a straight line joining two points,
such as the center of gravity or the center of a model, and a hori-
zontal line. The result will be in the range − 180 to 180°.
First point
ANGL(Y component, X component)
• Example:
Set the following to calculate the angle between the straight line
joining the center of gravity for region 0 and the center of gravity
for region 1 and a horizontal line.
ANGL(R1.Y − R0.Y,R1.X − R0.X)
If both arguments are 0, the result will also be 0 and the judge-
ment will be NG.
ATAN
Calculates the arc tangent for the Y component/X component.
The result is given as a radian of – π to π .
ATAN(Y component, X component)
• Example:
Set the following to calculate the angle between a straight line
joining the center of gravity for region 0 and the center of gravity
for region 1 and a horizontal line.
ATAN(R1.Y–R0.Y,R1.X–R0.X)
If both arguments are 0, the calculation result will also be 0 and
the judgement will be NG.
DIST
Calculates the distance between two points, such as the center
of gravity and the center of the model.
DIST(X coordinate of first point, Y coordinate of first point, X
coordinate of second point, Y coordinate of second point).
• Example:
Set the following to calculate the distance between the center
of gravity for region 0 and center of gravity for region 1.
• The following calculation is performed internally.
JG
Horizontal line
Second point
DIST(R0.X,R0.Y,R1.X,R1.Y)
(
R1.X R0.X
If "JG" is set as a judgement output expression, judgement will
be performed in the following two stages.
1
Judgement is performed for each region based on the set
evaluation criteria giving a result of "0.000" (OK) or
"–1.000" (NG).
Meaning
)
(
)
2
2
+
R1.Y R0.Y
Section 3-5
Argu-
ments
2
2
4
127

Advertisement

Table of Contents
loading

This manual is also suitable for:

F150-3

Table of Contents