Download Print this page

Panasonic A230 User Manual page 238

Machine vision system

Advertisement

Inspection Results and Output
13.3
Numerical Calculation
Atan, Root, Distance
Atan is denoted by "@" and root is denoted by "$". Atan and root can be utilized in
calculations using ordinary calculation methods.
Parts of a programme enclosed in brackets are evaluated with priority over the rest of
the calculation.
For example, in the programme $ (CA01+CA02), the part in the brackets is evaluated
first.
Example:
The two coordinates of the locations in the diagram detected by
a gray scale edge checker can be used with the Root ($), Distance
(T) and Atan (@) functions to calculate the angle (θ) and the
length of each side.
Side a: CA01 = X2 – X1
Side b: CA02 = Y2 – Y1
Side c: Using the Root ($) function:
Angle θ: CA04 = @(CA02*10000/CA01)
Pythagoras's theorem
Trigonometry
13 − 12
(X1, Y1)
c
b
θ
(X2, Y2)
a
CA03 = $(CA01*CA01 + CA02*CA02) (Pythagoras's
theorem)
Using the Distance (T) function:
CA03 = CA01TCA02
In both cases, the result is output multiplied by 10000.
In the case of the Atan formula, the input is multiplied
by 10000, and the result is output multiplied by 100.
2
2
2
c
= a
+ b
2
2
c =
(a
+ b
)
−1
Angle θ = tan
(b/a)
c
b
θ
a
OCR Type A230

Advertisement

loading