3.4 Step 4: Set the measurement area and measurement method
F160-2 supports up to 32 measurement regions (Regions 0~31), and each region can independently choose a measurement method. The 17 measurement methods provided by the expert menu include:
Area (Variable Box): Suitable for objects with changes in size and position, automatically searches for upper, lower, left, and right edges, and dynamically adjusts the measurement box.
Defect (Variable Box): Similar to area measurement, but used for detecting defects.
Center of gravity and area: The simplest binary measurement of center of gravity/area.
Center of gravity and axial angle: In addition to the center of gravity and area, the equivalent principal axis angle of the ellipse is also calculated.
OCR single character: recognize characters, built-in dictionary, output character codes.
Classification: Pre register multiple models (up to 36 indexes, with a maximum of 5 models per index), and output the index number of the most similar model. The system will automatically generate auxiliary models between registered models to improve stability.
Defect: Detect defects on unpatterned surfaces, measuring areas can be rectangles, circles, arcs, or lines.
Density data: Calculate the average grayscale and deviation within the area.
Edge spacing: Detect a set of edges and output the number of edges, average spacing, maximum/minimum spacing, etc.
Edge position: detects the position of a single edge.
Edge width: Detect a pair of edges and calculate the width.
Grayscale search/precise search: Based on grayscale template matching, precise search supports sub-pixel localization, with higher accuracy but slightly slower speed.
Flexible search: Multiple templates can be registered, suitable for workpieces with inconsistent shapes.
Label: Mark the white area after binarization, which can count the number of labels, specify the area and center of gravity of the labels.
Relative search: Simultaneously detect two templates (reference point and measurement point) and output the relative position between the two.
Rotation search: Search templates within a specified angle range and output rotation angles and positions.
For each method, it is necessary to set a binarization threshold (if binarization is involved), draw the measurement area, set judgment conditions (upper and lower limits), and optional detailed conditions (such as edge level, noise threshold, pixel skipping, etc.).
3.5 Step 5: Set output expression
The expression function allows users to perform arithmetic operations, logical operations, or function calculations on measurement results and output the results to external devices. Expressions can reference the following:
Measurement values: such as R0. X (X coordinate of region 0), R1. AR (area of region 1), etc.
Position compensation results: P0.X, P1.Y, etc.
Variables: VR0~VR31 (intermediate calculation result), VJ0~VJ31 (intermediate judgment result).
Data: RS0~RS31 (numerical only, not judgmental).
Judgment: PR0~PR31, PJ0~PJ31.
The supported operators include addition, subtraction, multiplication, division, modulo, maximum, minimum, absolute, square root, sine, cosine, arctangent, two-point distance, two-point angle, and logical AND/OR/NOT. Expressions can be used to generate custom judgment conditions and can also be used for data output.
3.6 Step 6: Set Display Content
In monitoring or operating mode, characters, values, and graphics can be overlaid on the image for display. Up to 32 display items can be added, including:
Fixed string: customizable text, font size, and color.
Measurement data: displayed in the form of expression results.
Judgment result: Display "OK" or "NG" based on the expression result, and customize the display string for OK/NG.
Area Name: Display annotations for the measurement area.
Measurement time: date and time.
Fixed shapes: lines, rectangles, circles, arcs, etc., used for visual reference.
Dynamic graphics: Draw lines, rectangles, circles, or cursor based on measurement results, such as drawing a cross at the detected edge position.
3.7 Step 7: Monitoring Mode and Operating Mode
After completing all settings, enter monitoring mode first and manually trigger the measurement (press the TRIG key) to verify if the conditions are correct. After confirming that there are no errors, switch to the running mode, and the measurement results will be output to external devices through parallel or serial interfaces.
Calibration and coordinate output
F160-2 defaults to outputting coordinates in pixels. If actual physical dimensions (mm, cm, etc.) need to be output, calibration must be performed. There are four calibration methods:
Sampling calibration: Register a model, place the measurement object on the image, input the actual coordinates of the point, sample 2 or 3 points, and the system automatically calculates the conversion parameters.
Specify point calibration: Manually specify points (pixel coordinates) on the image, enter actual coordinates, at least 2 points.
Specify coordinate axis: Set the origin, rotation angle, and magnification (mm/pixel).
Parameter input: Directly input the 6 parameters (A~F) of the affine transformation.