After calibration, turn on "Calibration ON" in the coordinate mode of the measurement area, and the output result will be converted to physical units.

Typical cases of expression application
5.1 Calculate the distance between two points and output it
Assuming that the detection positions of region 0 and region 1 are (R0. X, R0. Y) and (R1. X, R1. Y), respectively, it is desired to save the distance value in variable 0 and determine whether the distance is within the range of 10-20mm in decision 0.
Setup steps:
Select "Variable" in the expression, input variable 0: DIST (R0. X, R0. Y, R1. X, R1. Y)
Select 'Judge' and enter VR0 in the expression to determine 0. Set the upper limit to 20.000 and the lower limit to 10.000.
It can be left unchecked in "Data", and the judgment result will be automatically output to the OR signal of the parallel interface (if including judgment is selected).
5.2 Statistical measurement frequency
Enter RS0+1 in data 0, and the value will automatically accumulate after each measurement (RS0 is the register for power-off reset). If power on maintenance is required, VR variables can be used.
Scene and Scene Group Management
F160-2 allows up to 32 scenes to store different detection conditions. Scenario 0 is stored by default in internal flash memory, while Scenarios 1 to 31 require a Memory Card to be inserted for use. Scene Group packages 32 scenes, with a maximum of 32 scene groups and a total of 1024 scenes. Scene group 0 is still stored in flash memory, while scene groups 1 to 31 are stored on memory cards.
Switching scenes: Press the value on the right side of "Scn" on the basic screen, select the new scene number and confirm, and the system will immediately load the settings for that scene.
Copy Scene: In the scene selection interface, use SHIFT+ESC to bring up the copy/clear/comment menu, select copy and specify the target scene number.
Clear Scene: Similar operations can clear scene data.
Scene annotation: Each scene can be annotated with up to 8 characters for easy recognition.
Engineering Tip: If switching scenes in operating mode, the duration for which the BUSY signal remains ON depends on the duration of the switching operation. If the scene group is switched and the storage card access is slow, it may affect the production cycle. At this time, "Save at switch Scn Group" can be set to OFF in the system settings, but it must be ensured that the changes have been manually saved before switching scenes.
System settings and optimization
Several key settings in System Mode (SYS):
Camera settings: Specify the camera model, and if using smart lighting, also select the lighting model.
Output settings: Select the data output destination (serial/parallel/memory card) and output format (ASCII or binary). The ASCII format allows customization of integer and decimal places, negative sign representation, field separators, and more.
Display settings: You can choose the display image type (static freeze/real-time pass/last NG image/reduced image, etc.), whether to display the overall judgment result, processing time, etc.
Operation customization: Common functions can be assigned to function keys F1~F8, such as "Previous Scene", "Next Scene", "Clear Stored Images", "Capture Display Screen", etc.
Password protection: A 6-8 digit password can be set to prevent unauthorized mode or scene switching.
Startup conditions: It is possible to specify the scene and mode that will automatically enter after startup (it is recommended to set it to MON or RUN), and skip menu selection and camera settings screen to achieve quick startup.
Troubleshooting and Common Problems
8.1 Image Quality Issues
Possible causes and solutions for the phenomenon
The image is too bright or too dark, with insufficient or too strong illumination; Adjust the segmented light intensity of intelligent lighting when the shutter speed is too fast; Reduce the shutter speed; Use BGS to filter grayscale
The image is blurry and the object is moving too fast; If the focus is not accurate, increase the shutter speed; Adjust the camera focal length; Trigger using external synchronization
Noise interference and changes in environmental lighting; Use a light shield for electrical interference; Add filtering (median, smoothing)
8.2 Unstable measurement results
Edge jitter: Increase the noise level and width in edge detection.
Template matching failure: Reduce candidate level or expand search area; If the template itself is deformed, use flexible search or register multiple models.
Position compensation failure: Check if the position compensation area includes feature edges and if the compensation direction is set correctly. If only compensating for X and Y while ignoring the angle, it will cause false detection after the workpiece rotates.
8.3 Communication and output issues
Data not output to PLC: Confirm that the output target of Data in SYS/Output has been selected as "Parallel"; Check if the expression is assigned correctly; Confirm that the input module of the PLC and the output wiring of F160 are consistent.