Function List - Omron FQ2-S Series User Manual

Smart camera
Hide thumbs Also See for FQ2-S Series:
Table of Contents

Advertisement

Expression Notation
Expressions must have the following notation.
I0.X
Text string corresponding to the item:
position correction data, inspection item,
or calculation settings.
Filter item or position compensation item: Enter "P" and the item number.
Inspection item: Enter "I"and the inspection item number.
Calculation settings data: Enter "Z0". (Enter "Z1" on the FQ2-S4/CH.)
Example: Finding the distance between the centers of gravity of inspection item 1 and inspection item
2 using a function.
DIST(I1.X,I1.Y,I2.X,I2.Y)
Function
Example: Subtracting 120 from the calculation result of expression 0.
Result of expression 0
Example: Adding the judgement result of inspection items 0 and 1.
Judgement result for inspection item 1
Mathematical operator
Judgement result for inspection item 0

Function List

The following functions can be used in calculations.
Function
Description
Finds the sine. The result is a value between −1 and 1.
SIN
The angle in the expression is in degrees.
SIN(angle)
Finds the cosine. The result is a value between −1 and 1.
COS
The angle in the expression is in degrees.
COS(angle)
ATAN
Finds the arctangent of the value (Y component, X component). The result is a radian value between
−π and π.
ANGL(Y_component,X_component)
Example: Finding the angle between the straight line joining the centers of region 0 and region 1 and
horizontal.
ATAN(R1.Y-R0.Y,R1.X-R0.X)
If the two arguments are both 0, the result is 0 and the judgement is NG.
AND
Finds the logical AND.
If one of the arguments is 0, the calculation result is 0. Otherwise it is −1.
AND(argument_1,argument_2)
FQ2-S/CH User's Manual
Inspection item data
Constant
Mathematical operator
Calculations and Judgements Using Inspection Item Data
217

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fq2-ch seriesFq2-s/ch series

Table of Contents