Omron FQ2-S4 User Manual

Omron FQ2-S4 User Manual

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

Advertisement

Quick Links

Smart Camera
FQ2-S4
User's Manual
Cat. No. Z330-E1-01

Advertisement

Table of Contents
loading

Summary of Contents for Omron FQ2-S4

  • Page 1 Smart Camera FQ2-S4 User's Manual Cat. No. Z330-E1-01...
  • Page 2 FQ2-S4. When using the FQ2-S4, be sure to observe the following: • The FQ2-S4 must be operated by personnel knowledgeable in electrical engineering. • To ensure correct use, please read this manual thoroughly to deepen your understanding of the product.
  • Page 3 (Please Read) Introduction User's Manual Installation and Connections Taking Images Setting Up Inspections Testing and Saving Settings Operation Convenient Functions Controlling Operation and Outputting Data with a Parallel Connection Connecting through Ethernet Connecting with RS-232C Troubleshooting Appendices Smart Camera FQ2-S4...
  • Page 4 LOSS OF PROFITS OR COMMERCIAL LOSS IN ANY WAY CONNECTED WITH THE PRODUCTS, WHETHER SUCH CLAIM IS BASED ON CONTRACT, WARRANTY, NEGLIGENCE, OR STRICT LIABILITY. In no event shall responsibility of OMRON for any act exceed the individual price of the product on which liability is asserted.
  • Page 5 Performance data given in this document is provided as a guide for the user in determining suitability and does not constitute a warranty. It may represent the result of OMRON’s test conditions, and the users must correlate it to actual application requirements. Actual performance is subject to the OMRON Warranty and Limitations of Liability.
  • Page 6: Meanings Of Signal Words

    Dispose of the Touch Finder as industrial waste, and never disassemble, apply pressure that would deform, heat to 100 °C or higher, or incinerate the Touch Finder. High-voltage parts inside; danger of electrical shock. Do not open the product cover. FQ2-S4 User’s Manual...
  • Page 7: Precautions For Safe Use

    • If the AC Adapter is dropped or damaged, turn OFF the power, remove the power plug from the outlet, and contact your dealer. There is a risk of fire if you continue using the AC Adapter. FQ2-S4 User’s Manual...
  • Page 8 • Do not drop or subject the products to shock. • Use the special Sensor (FQ2-S4), Touch Finder (FQ2-D), Sensor Data Unit (FQ-SDU), Cables (FQ-WN, FQ-WD, FQ-WU, and FQ-VP), Battery (FQ-BAT1), and AC Adapter (FQ-AC). Using other than the specified products may cause fire, burning, malfunction or failure.
  • Page 9: Precautions For Correct Use

    • Use only combinations of the Sensor and Touch Finder specified in this manual. Using other combinations may cause malfunction or damage. • Do not turn the power OFF in the following instances. Doing so will damage data that is in the process of being saved. FQ2-S4 User’s Manual...
  • Page 10 PC are indicated enclosed by brackets "[ ]". Visual Aids ■ Indicates points that are important to achieve the full product performance, Important such as operational precautions. Indicates application procedures. Note Indicates pages where related information can be found. FQ2-S4 User’s Manual...
  • Page 11: Table Of Contents

    1. Introduction 1-1 FQ2-S4-series Vision Sensors ........20 1-2 Measurement Process .
  • Page 12 Detail Settings ..........116 FQ2-S4 User’s Manual...
  • Page 13 Shape Search II Inspection Item ........147 Setup Procedure for the Shape Search II Inspection Item ....147 FQ2-S4 User’s Manual...
  • Page 14 Edge Pitch Inspection Item ........173 Setup Procedure for Edge Width Inspection Item ..... . 173 FQ2-S4 User’s Manual...
  • Page 15 Function List ..........201 FQ2-S4 User’s Manual...
  • Page 16 Displaying a Frozen Image ........244 FQ2-S4 User’s Manual...
  • Page 17 Changing the Sensor Name ........278 FQ2-S4 User’s Manual...
  • Page 18 Sample Ladder Programming ........400 9-4 Controlling Operation and Outputting Data with TCP No-protocol Communications ......401 FQ2-S4 User’s Manual...
  • Page 19 Search Position Compensation ........497 FQ2-S4 User’s Manual...
  • Page 20 Revision History ..........590 FQ2-S4 User’s Manual...
  • Page 21: Introduction

    Introduction 1-1 FQ2-S4-series Vision Sensors....... . 20 1-2 Measurement Process ........21 1-3 Startup Display and Display Elements .
  • Page 22: Fq2-S4-Series Vision Sensors

    1-1 FQ2-S4-series Vision Sensors The FQ2-S4 Series features Vision Sensors with integrated cameras and controllers. They can be used to easily achieve simple inspections and measurements and to easily read and verify IDs. You can use parallel controls, no-protocol communications on Ethernet, PLC Link communications on Ethernet, and EtherNet/IP communications on Ethernet as standard features.
  • Page 23: Measurement Process

    • The overall judgement of all inspection items are output using OR logic. • You can output detailed measurement result from the inspection items. Output • Measurement data and image data can be logged in memory in the Sensor or in an SD card. Logging FQ2-S4 User’s Manual Measurement Process...
  • Page 24: Startup Display And Display Elements

    When the Touch Finder is started, IP addresses are automatically set for each Sensor. To allocate specific IP addresses, set the IP address of each Sensor and the Touch Finder. Setting Up Ethernet: p. 53 Startup Display and Display Elements FQ2-S4 User’s Manual...
  • Page 25: Display Elements

    • Camera image file: An image that was saved in external memory with (Log Image Button) is displayed. Run Mode In Run Mode, measurements are performed, and measurement results are output. p. 223 FQ2-S4 User’s Manual Startup Display and Display Elements...
  • Page 26: Basic Operational Flow

    1-4 Basic Operational Flow The following flow shows the basic operation of FQ2-S4-series Vision Sensors. Section 2 Installation and Connections and Wiring Connections Section 1 Starting the Sensor 1-3 Startup Display and Display Elements Section 3 Taking Images Image Setup ([Image] Tab Page)
  • Page 27: Installation And Connections

    Installation and Connections 2-1 System Configuration ........26 2-2 Part Names and Functions .
  • Page 28: System Configuration

    External Lighting Touch Finder or PC Tool Special Ethernet Cable (RJ45/M12) Switching Hub The Setup Tool can detect up to 32 Sensors and it can connect to up to eight Sensors at the same time. System Configuration FQ2-S4 User’s Manual...
  • Page 29 W4S1-0@@ Used to connect multiple Sensors to one Touch Finder or PC Tool. Sensor Data Unit FQ-WU0@@ This cable connects the FQ2-S4 Sensor to the Sensor Data Unit. cable Parallel cable for FQ-VP1@@@ This cable connects the Parallel Interface Sensor Data Unit to an external device.
  • Page 30 You can connect to a Sensor on a different network than the Touch Finder or PC Tool through a router. • To connect to a Sensor, directly specify the IP address of the Sensor. Automatic connection to a Sensor is not possible. • Use a fixed IP address for the Sensor to connect to. System Configuration FQ2-S4 User’s Manual...
  • Page 31: Part Names And Functions

    2-2 Part Names and Functions FQ2-S4@@@@@-@@@ (Sensors with Built-in Lighting) Name Description Lighting LEDs for illumination Camera lens This lens can be focused. I/O Cable connector An FQ-WD or FQ-WU I/O Cable is used to connect the Sensor to the power supply and external I/O.
  • Page 32 FQ2-S4@-@@@ (Sensors with C-mounts) Bottom Sensor Mounted to Base Name Description C-mount lens mounting surface The C-mount lens and macro ring are attached here. Determine the appro- priate CCTV lens (C-mount lens) to use based on the field of view required for the size of the measurement object.
  • Page 33: Touch Finder

    Insert the connector until it locks in place. (11) Strap holder This is a holder for attaching the strap. (12) AC power supply connector Used to connect the AC adapter. *1: Applicable to the FQ2-D31 only. FQ2-S4 User’s Manual Part Names and Functions...
  • Page 34: Sensor Data Units

    Sensor Data Unit Sensor Data Unit Sensor Data Unit Name Description Sensor connector Connects to the FQ2-S4. Power supply and ground termi- Connects to the 24-V power source and the ground line. nal block Parallel I/O connector Connects to the I/O connector.
  • Page 35: Installation

    2-3 Installation Installing the Sensor FQ2-S4@@@@@ (Sensors with Built-in Lighting) Installation Procedure Align the tabs on one side of the Mounting Bracket with the slot on the Sensor. Mounting The FQ-XL Mounting Bracket can be attached to the back, Bracket side, or front of the Sensor.
  • Page 36: Fq2-S4@-@@@ (Sensors With C-Mounts)

    Insert a flat-blade screwdriver between the Mounting Brack- et and the Sensor case on either side and remove the Mounting Bracket. Mounting Bracket FQ2-S4@-@@@ (Sensors with C-mounts) Installation Procedure Directly Mounting the Sensor Mount the Sensor with M3 screws. Tightening torque: 0.54 N·m...
  • Page 37: Lens Selection

    SV-1614V SV-2514V 1000 SV-3518V SV-5018V t0.5 SV-7527V t0.5 SV-10035V t0.5 t: Macro ring t0.5 Examples t0: Macro ring is not required. t5: A 5-mm macro ring is required. 1000 Y axis of field of view (mm) FQ2-S4 User’s Manual Installation...
  • Page 38 200 mm and a 2-mm macro ring is required. Camera Macro ring t@ (mm) Camera lens Camera installation distance (mm) Measurement object Field of view (mm) Lens Models and Dimensions Maximum outside diameter 1-32 UNF Filter threads (C-mount threads) Total length Installation FQ2-S4 User’s Manual...
  • Page 39 33.5 mm M27 P0.5 3Z4S-LE SV-5018V 47.97 mm F1.8 32 mm 37.0 mm M30.5 P0.5 3Z4S-LE SV-7527V 76.71 mm F2.7 32 mm 42.0 mm M30.5 P0.5 3Z4S-LE SV-10035V 95.4 mm F3.5 32 mm 43.9 mm M30.5 P0.5 FQ2-S4 User’s Manual Installation...
  • Page 40: Installation Precautions

    • To prevent interference by noise, do not mount the Sensor on panels which contain high-voltage devices. • To keep the level of noise from the surrounding environment to a minimum, install the Sensor and Touch Finder at least 10 m away from power lines. Installation FQ2-S4 User’s Manual...
  • Page 41: Mounting To Din Track

    • Always turn OFF the Touch Finder power before attaching or detaching the Panel Mount Adapter. Attaching or detaching with the power turned ON may cause a failure. Set the Touch Finder in the Panel Mount Adapter. FQ2-S4 User’s Manual Installation...
  • Page 42: Using The Touch Finder As A Portable Device (With Battery)

    There are two types of straps (FQ-XH, sold separately), a Neck Strap and a Hand Strap. Neck Strap Hand Strap Attach the Mini-strap to the Touch Finder. There are a total of four holes for attaching the Mini-strap on the left and on the right of the Touch Finder. Installation FQ2-S4 User’s Manual...
  • Page 43: Mounting To Din Track

    • Always hook the clip at the top of the Sensor Data Unit on the DIN Track first. If the lower clip is hooked on first, the Touch Finder will not be mounted very securely. Removal Procedure Pull down on the slider on the Sensor Data Unit. Lift the Sensor Data Unit at the bottom and remove it from the DIN Track. FQ2-S4 User’s Manual Installation...
  • Page 44: Wiring

    2-4 Wiring Wiring the Sensor Connect the I/O Cable to the I/O Cable connector located at the bottom of the Sensor. FQ2-S4@@@@@ (Sensors with Built-in Lighting or Sensors with C-mounts) Brown Power supply Blue Black OUT0 (OR) Orange OUT1 (BUSY)
  • Page 45: I/O Signal Circuit Diagrams

    Attach the enclosed LED warning label to the cable or other location. The LED warning label must be attached to a location that is readily visible from the Sensor. Attachment Example Warning Label Warning Label 12-6 LED Safety: p. 575 FQ2-S4 User’s Manual Wiring...
  • Page 46 Tightening torque: 0.54 N·m) Frame ground For the I/O connector harness, use an FQ-VP1@@@ Parallel Cable for the FQ-SDU1 or a MIL-standard harness, such as the OMRON XZ2F. (The Cables are sold separately.) Signal Application Power supply (24 V) These terminals are for the external power supply (24 V).
  • Page 47 Trigger delay Imaging element Shutter time shutter signal SHTOUT 10 ms The SHTOUT signal turns ON for approximately 10 ms (fixed) when the shutter time (exposure period) elapses after the trigger is input from an external device. FQ2-S4 User’s Manual Wiring...
  • Page 48 RS-232C connector 0.54 N·m) Frame ground For the I/O connector harness, use an FQ-VP2@@@ Parallel Cable for the FQ-SDU2 or a MIL-standard harness, such as the OMRON XZ2F. (The Cables are sold separately.) Signal Application Power supply (24 V) These terminals are for the external power supply (24 V).
  • Page 49 Pin numbers will depend on the external device being connected. Refer to the manual for the personal computer or PLC being connected. Use a compatible connector. • Recommended items Manufacturer Model Socket OMRON Corporation XM3D-0921 Hood OMRON Corporation XM2S-0913 FQ2-S4 User’s Manual Wiring...
  • Page 50 Align the connector with the socket and press it straight into place, then fix it with the screws on both sides of the connector. Important Turn OFF the power supply before connecting or disconnecting a Cable. Peripheral devices may be damaged if the cable is connected or disconnected with the power ON. Wiring FQ2-S4 User’s Manual...
  • Page 51 Supply power from a DC power supply for which measures have been applied to prevent high voltages (e.g., a safety extra-low-voltage circuit). If UL certification is required for the overall system, use a UL Class II DC power supply. FQ2-S4 User’s Manual Wiring...
  • Page 52 If UL certification is required for the overall system, use a UL Class II DC power supply. • When using the FQ2-D31, do not connect a switching regulator and AC Adapter (FQ-AC@) at the same time. Wiring FQ2-S4 User’s Manual...
  • Page 53: Charging The Battery

    The CHARGE indicator will be lit while the battery is being charged. It will go out when charging the battery has been com- pleted. Note The Touch Finder will operate even if the AC adapter is connected when no battery is mounted in the Touch Finder. FQ2-S4 User’s Manual Wiring...
  • Page 54 Li-ion00 • California regulations concerning perchlorate: This product is a lithium battery that contains perchlorate, which is regulated by the State of California. Please com- ply with these regulations. For details see the following URL: www.dtsc.ca.gov/hazardouswaste/perchlorate/ Wiring FQ2-S4 User’s Manual...
  • Page 55: Setting Up Ethernet

    ● Using a DHCP Server • Sensor (Setup Mode) − [Sensor settings] − [Network] − [Ethernet] − [IP address setting] Press [DHCP]. • Touch Finder (Setup Mode) − [TF settings] − [Ethernet]] − [AUTO] Press [ON]. FQ2-S4 User’s Manual Setting Up Ethernet...
  • Page 56: Connecting To Sensors From External Devices Such As Plcs

    Set the IP address and subnet mask according to the network where the external devices, such as PLCs, are connected. Note If you connect OMRON CS/CJ-series PLCs to the Ethernet, the following default IP addresses are assigned to the PLCs. • IP address: 192.168.250.node_address...
  • Page 57 • If you connect the PC Tool to a Sensor on a different network through a router, set fixed IP addresses. • If you use an EtherNet/IP connections, set fixed IP address for the Sensors. FQ2-S4 User’s Manual Setting Up Ethernet...
  • Page 58 MEMO Setting Up Ethernet FQ2-S4 User’s Manual...
  • Page 59: Taking Images

    Taking Images 3-1 Selecting a Sensor for Configuration......58 3-2 Setting Conditions for Taking Images ......59 3-3 Adjusting Image Quality .
  • Page 60: Selecting A Sensor For Configuration

    There are different methods that you can use to connect the Sensors. For example, you can automatically connect to the Sensors that are recognized by the Touch Finder, or you can manually register the Sensors to connect. 7-5 Connecting to More Than One Sensor: p. 248 Selecting a Sensor for Configuration FQ2-S4 User’s Manual...
  • Page 61: Setting Conditions For Taking Images

    Apply filters to adjust the images that were taken. p. 75 Compensating for Position Offset (Position Compensation Items) Recognize measurement objects that are not in a consistent location and move them to the center of the image. FQ2-S4 User’s Manual Setting Conditions for Taking Images...
  • Page 62: Adjusting Image Quality

    Do not force the screw if it does not rotate anymore. This will damage the Sensor. • Do not turn the focus adjustment screw with a force that is greater than 0.1 N·m. This may damage it. Adjusting Image Quality FQ2-S4 User’s Manual...
  • Page 63: Adjusting Image Brightness With External Lighting

    If the Sensor is used on a high-speed line, check that the images are not blurred under actual operating conditions. Brightness Correction Mode (FQ2-S4@@@@@/FQ2-S4@@@@@-M) If the brightness changes inconsistently with each image, turn ON the Brightness Correction Mode.
  • Page 64 Move the bar to the left or right to adjust the gain. Moving it to the right will increase the gain and make the image brighter. Moving it to the left will reduce the gain and make the image darker. Press [OK]. Press [Back]. Adjusting Image Quality FQ2-S4 User’s Manual...
  • Page 65 Default: 16 Important • To ensure stable operation when the FQ2-S4@@@@@/FQ2-S4@@@@@-M is connected, we recommend that you set the gain to 16. • If the recommended value is exceeded, the brightness will not be stable and measurement values may be inconsistent.
  • Page 66: Taking Clear Images Of Moving Objects

    • Relationship between Shutter Speed and the Brightness Adjustment Value in HDR Mode Slow Fast Moving speed Brightness Shutter speed 1/60,000 1/250 Refer to the following page for the setting methods for the shutter speed and brightness. Adjusting the Brightness: p. 61 Adjusting Image Quality FQ2-S4 User’s Manual...
  • Page 67: Improving The Image Quality Of Metallic And Other Shiny Surfaces

    Set the best level for the HDR Mode. As shown below, the higher the level, the wider the combined dy- namic range will be. Level 1 Level 2 Level 3 Level 4 Dark Bright FQ2-S4 User’s Manual Adjusting Image Quality...
  • Page 68: Adjusting The Colors Of The Image (White Balance) (Only For Sensors With Color Cameras)

    ] – [White balance] on the right side of the display. Press the [Auto] Button. The Sensor will automatical- ly adjust the colors. Move the bar to the left (light) or right (dark) to fine- tune the colors. Press [OK]. Adjusting Image Quality FQ2-S4 User’s Manual...
  • Page 69: Adjusting The Timing Of Taking Images

    Press [OK]. Note The delay time can be set using the adjustment bar or by directly entering a value. Move the bar to the left or right. Directly input the delay time. FQ2-S4 User’s Manual Adjusting the Timing of Taking Images...
  • Page 70: Adjusting External Lighting Timing

    The delay time for preventing mutual interference must be longer than the shutter time. When the lighting built into the Sensor is used, the shutter time is 4 ms max. Therefore make the delay at least 4 ms. Adjusting the Timing of Taking Images FQ2-S4 User’s Manual...
  • Page 71: Adjusting The Images That Were Taken

    Source image: Previous image [Prev.] adjustment 2: Search Position Compensation (position compensation item) Processed image (processes 0, 1, Source image: Previous image [Prev.] and 2) Measurements are performed with inspection items. FQ2-S4 User’s Manual Adjusting the Images That Were Taken...
  • Page 72: Filtering The Images (Filter Items)

    Extracts horizontal edges between light and dark in the image. (extract horizontal edges) Extract vertical edges Extracts vertical edges between light and dark in the image. Enhance edges Enhances image edges between light and dark. Adjusting the Images That Were Taken FQ2-S4 User’s Manual...
  • Page 73 The filter is applied to the image that is taken by the Camera. Prev. (previous image) The filter is applied to the image that resulted from the previous filter items or posi- tion compensation items in the processing order. FQ2-S4 User’s Manual Adjusting the Images That Were Taken...
  • Page 74 Select the type of color filter to use. If you select [Custom filter], set the gains for red, green, and blue. • HSV Set the following ranges: [Std. Hue], [Hue range], and [Chroma]. Press [OK]. Press [Back]. Adjusting the Images That Were Taken FQ2-S4 User’s Manual...
  • Page 75 Lower limit Upper limit Input value You can use either of the following methods to set the upper and lower limits of the brightness range to extract with the Background Suppression item. FQ2-S4 User’s Manual Adjusting the Images That Were Taken...
  • Page 76 Set the upper and lower limit values of the brightness range. (for Sensors with Monochrome Cameras (or after a Color Gray Filter)) Press [Back]. Press [OK]. Press [Back]. Adjusting the Images That Were Taken FQ2-S4 User’s Manual...
  • Page 77: Compensating For Position Offset (Position Compensation Items)

    • Edge position comp. (Edge Position Compensation) • 2Edge position comp. (Two-edge Position Compensation) • 2Edge midpoint comp. (Two-edge Midpoint Compensation) • Edge rot. pos. comp. (Edge Rotation Position Compensation) FQ2-S4 User’s Manual Adjusting the Images That Were Taken...
  • Page 78 If you apply the results of position compensation to the Camera image, only the position information from position compensation is applied to the image to be measured. Using Filter Items for Processing with Position Compensation Items: p. 77 Adjusting the Images That Were Taken FQ2-S4 User’s Manual...
  • Page 79 Search Position If the source image is set to the camera image. Compensation the results of position compensation are applied to the item Camera image. Measurements are performed with inspection items. FQ2-S4 User’s Manual Adjusting the Images That Were Taken...
  • Page 80 You can select the image to which to apply the results of position compensation processing. Applying the Results of Position Compensation: p. 76 • Interpolation You can select the precision of position compensation. Adjusting the Images That Were Taken FQ2-S4 User’s Manual...
  • Page 81: Search Position Compensation

    Note To perform position compensation for a rotated image pattern, use the Shape Search Position Compensation item. [Image] − [Image adjustment] Press an unused number and then press [Add pos. comp.]. FQ2-S4 User’s Manual Adjusting the Images That Were Taken...
  • Page 82 −99,999.9999 to 99,999.9999 Reference Y This is the Y coordinate of the position where the model was registered. Correlation This is the correlation. 0 to 100 Adjusting the Images That Were Taken FQ2-S4 User’s Manual...
  • Page 83 [Image] − [Image adjustment] − [Edge position comp.] − [Modify] − [Details] - [Scroll parameter] − [Interpolation] The settings are the same as those for the Shape Search Position Compensation item. Interpolation: p. 78 FQ2-S4 User’s Manual Adjusting the Images That Were Taken...
  • Page 84 Press an unused number and then press [Add pos. comp.]. − Press [Edge] [2Edge position comp.] Make any detailed settings as required for the position compensation processing. Refer to Detailed Settings for Search Position Compensation, below. Press [OK]. Press [Back]. Adjusting the Images That Were Taken FQ2-S4 User’s Manual...
  • Page 85 • Measurement Data That Can Be Used for External Outputs and Calculations The following values can be used as measurement data and output to external devices via Ethernet or used in calculations. FQ2-S4 User’s Manual Adjusting the Images That Were Taken...
  • Page 86 0 direction for edge 1 Color of edge to be found [Image] − [Image adjustment] Press an unused number and then press [Add pos. comp.]. Adjusting the Images That Were Taken FQ2-S4 User’s Manual...
  • Page 87 This is the amount of position com- pensation for the Y coordinate. −99,999.9999 to 99,999.9999 Edge 0 position X This is the X coordinate of the mea- sured edge 0 position. FQ2-S4 User’s Manual Adjusting the Images That Were Taken...
  • Page 88: Edge Rotation Position Compensation

    Press an unused number and then press [Add pos. comp.]. − Press [Edge] [Edge rot. pos. Comp.] Make any detailed settings as required for the position compensation processing. Refer to Detailed Settings for Edge Rotation Position Compensation, below. Adjusting the Images That Were Taken FQ2-S4 User’s Manual...
  • Page 89 Scroll θ −180 to 180 This is the amount of position compensa- tion. −99,999.9999 to 99,999.9999 Edge 0 position X This is the X coordinate of the measured edge 0 position. FQ2-S4 User’s Manual Adjusting the Images That Were Taken...
  • Page 90 This is the Y coordinate of the edge 1 1 reference position position when it was registered. −180 to 180 Reference angle This is the angle when the edge was reg- istered. Adjusting the Images That Were Taken FQ2-S4 User’s Manual...
  • Page 91: Setting Up Inspections

    Setting Up Inspections 4-1 Inspection Item Selection Guide......90 4-2 Setup Procedure for Inspection Items ......93 4-3 Configuring Inspection Items .
  • Page 92: Inspection Item Selection Guide

    Judging if there is a mark Search or p. 137 Shape p. 147 Search II Detecting positions with patterns Measurement objects of the same color and pattern can be Search p. 137 detected. OMRON OMRON FQ2-S4 User’s Manual Inspection Item Selection Guide...
  • Page 93 Judging the number of pins Edge Pitch p. 147 shape Judging according to colors Detecting parts Color Data p. 178 Judging according to sizes Judging if there is silver paste Area p. 182 FQ2-S4 User’s Manual Inspection Item Selection Guide...
  • Page 94 Inspection Example Inspection Refer- items used ence Judging according to shapes and quantities Judging the number of labels Labeling p. 188 Inspection Item Selection Guide FQ2-S4 User’s Manual...
  • Page 95: Setup Procedure For Inspection Items

    The basic steps for setting up inspection items are shown below. Configuring Inspection Items Step 1 Teaching Step 2 Setting Judgement Parameters Step 3 If measurements are unstable Setting Detailed Items Step 4 Re-teaching Step 5 FQ2-S4 User’s Manual Setup Procedure for Inspection Items...
  • Page 96: Configuring Inspection Items

    1.--- and set it in the same way. Note If more than seven inspection items are set, drag the icon at the bottom of the menu upward to display the next inspection item numbers. Configuring Inspection Items FQ2-S4 User’s Manual...
  • Page 97: Modifying Existing Inspection Items

    Press the number of the inspection item to be delet- Press [Delete] on the menu. Note Executing Similar Measurements in Different Places → Copy an inspection item that is already registered: [Copy]. → Change the name of an inspection item: [Rename]. FQ2-S4 User’s Manual Configuring Inspection Items...
  • Page 98: Reading And Verifying Character Strings

    *2 Normally only uppercase letters can be recognized. Lowercase letters can be recognized if model dictionaries are used. Each lowercase letter must be registered individually. Model Dictionaries: p. 105 Note User fonts can be registered separately to enable recognition. Dictionary File Registration: p. 105 Reading and Verifying Character Strings FQ2-S4 User’s Manual...
  • Page 99: Setup Procedure For Character Recognition

    Press an unused inspection item number and press [Add item.]. Press [OCR]. Registering inspection items: p. 94 Note Drag the arrow ( ) at the bottom of the menu to display all of the inspection items. FQ2-S4 User’s Manual Reading and Verifying Character Strings...
  • Page 100 @: Any symbol (recognized characters: ‘ - . : / ) *: Skip (No judgement is made for the judgement conditions (similarity or stability). The detected character count is also not incremented.) Reading and Verifying Character Strings FQ2-S4 User’s Manual...
  • Page 101 The master data contains the character strings that are registered to verify whether the read character strings match specific character strings. Step 4 Verification Conditions: p. 101 Press [Back] to end teaching. FQ2-S4 User’s Manual Reading and Verifying Character Strings...
  • Page 102 90 and the similarity of the second candidate is 25, then the stability is 80 − 25 = 55.) To prevent misreading similar characters, set a high value for the stability. Reading and Verifying Character Strings FQ2-S4 User’s Manual...
  • Page 103 After a character string is registered, a reference item number, such as “Ref. 00,” will be displayed to the right of the character string in the master data. FQ2-S4 User’s Manual Reading and Verifying Character Strings...
  • Page 104 Registers a character string in the master data. Auto teach No. OFF (default) Sets the character string in which to automatically register the read result for Master data 0 to 31 teaching from an external device. Reading and Verifying Character Strings FQ2-S4 User’s Manual...
  • Page 105: Setting The Measurement Parameters

    Slender char. th. 1 to 10 Sets the ratio of the height to the width of the detection character rectan- gle to judge as thin characters (I, J, 1, :, and /). FQ2-S4 User’s Manual Reading and Verifying Character Strings...
  • Page 106: Changing The Output Code For Errors (Default: Ng)

    [Output parameter] [Error string] Troubleshooting Unstable Read Results • The read results may be unstable if the contrast is low. Adjust the brightness to improve the contrast. • Adjust the detailed parameters. Reading and Verifying Character Strings FQ2-S4 User’s Manual...
  • Page 107: Using Model Dictionaries To Recognize Custom Characters

    Use the following procedures to create and set model dictionaries. Creating a Dictionary Press the Tool Button and then [Model dictionary]. Press the dictionary in which to register characters. Press [Modify] on the menu. Press [Add]. FQ2-S4 User’s Manual Reading and Verifying Character Strings...
  • Page 108 Each line can contain up to 32 characters. Press [Extraction]. The extracted characters will be displayed on the up- per left of the display. Press [OK] to register the characters. Reading and Verifying Character Strings FQ2-S4 User’s Manual...
  • Page 109 An attempt was made to register more than 10 characters. Delete the data that does not need to be registered. Displaying Registered Characters To display the registered characters, select the char- acters on the upper left of the display. The registered characters will be displayed. FQ2-S4 User’s Manual Reading and Verifying Character Strings...
  • Page 110 − [Meas. Parameter] to enable changing the mea- surement parameters. Extracting Characters Based on Specified Character Formats To extract characters based on a specified character − [Modify chara.] on the right of the format, press display. Reading and Verifying Character Strings FQ2-S4 User’s Manual...
  • Page 111 [Add item.] [OCR] [Details] Tab Page Press [Dictionary param.]. Press [Dictionary ref.] and select the dictionary to use. Press [Individual char.] and select the letter or num- ber to use. Press [Back]. FQ2-S4 User’s Manual Reading and Verifying Character Strings...
  • Page 112: Outputting Read Characters To An External Device

    This is the similarity of read charac- 0 to 100 ter N (N = 0 to 127). Individual stability This is the stability of read character 0 to 100 N (N = 0 to 127). Reading and Verifying Character Strings FQ2-S4 User’s Manual...
  • Page 113: Measurement Data That Can Be Logged For Ocr

    • The characters may not be in the measurement region. Check to see if the measurement region is set cor- rectly. • The specified character format may not agree with the format of the read characters. Check the character format. FQ2-S4 User’s Manual Reading and Verifying Character Strings...
  • Page 114: Reading Bar Codes

    • Code type Detailed Parameters: p. 116 • Direction (for Pharma only) Detailed Parameters: p. 116 • Reverse decode (for Pharma only) Detailed Parameters: p. 116 Reading Bar Codes FQ2-S4 User’s Manual...
  • Page 115: Setup Procedure For Bar Code

    Press [Yes] to register the barcode read result in the master data. The master data contains the character strings from the barcodes that are registered to verify whether the read character strings match specific character strings. Press [Back] to end teaching. FQ2-S4 User’s Manual Reading Bar Codes...
  • Page 116 2. [Manual]: Registers a character string that is entered di- rectly in the master data. You can use a soft- ware keyboard to register a character string with up to 32 characters. Reading Bar Codes FQ2-S4 User’s Manual...
  • Page 117 Registers a character string in the master data. Auto teach No. Off (default) Sets the character string in which to automatically register the read result for teaching from an external device. Master data 0 to 31 FQ2-S4 User’s Manual Reading Bar Codes...
  • Page 118: Reflect In Total Judgement

    Be sure to always specify the code type. Specify other items as necessary. If master data is automatically registered, the code type, the composite codes on/off setting, and the read direction are automatically set. Reading Bar Codes FQ2-S4 User’s Manual...
  • Page 119: Outputting Read Characters To An External Device

    Changing the Character String That Is Output for Read Errors You can change the character string that is output for read errors. − − − − − − [Inspect] [Inspection] [Add item.] [Bar code] [Details] Tab Page [Output parameter] [Error string] FQ2-S4 User’s Manual Reading Bar Codes...
  • Page 120: Changing The Items That Are Displayed On The Test Measurement And Run Display

    −2: Verification OFF, or reading error Index The verification result (master data No.) is out- −1: Verification is NG, put. 0 to 31: Master data No. Num. of characters The number of characters read is output. 0 to 1024 Reading Bar Codes FQ2-S4 User’s Manual...
  • Page 121: Measurement Data That Can Be Logged (Bar Code)

    A teaching error message is displayed If bar codes cannot be read during an automatic registration. The reading may be unstable due to low contrast.Adjust the brightness to improve the contrast of the bar code. Adjusting the Brightness: p. 61 FQ2-S4 User’s Manual Reading Bar Codes...
  • Page 122: Reading 2D-Codes

    Detailed Parameters: p. 125 • Specifying the Code Color (Data Matrix, QR Code, or Micro QR Code only) Detailed Parameters: p. 125 • Shape (Data Matrix, QR Code, or Micro QR Code only) Detailed Parameters: p. 125 Reading 2D-codes FQ2-S4 User’s Manual...
  • Page 123: Setup Procedure For 2D-Code

    Press [Yes] to register the read result in the master data. The master data contains the character strings from the 2D codes that are registered to verify whether the read character strings match specific character strings. Press [Back] to end teaching. FQ2-S4 User’s Manual Reading 2D-codes...
  • Page 124 Kana characters, and control codes. You can use the following characters as wildcards. *: A wildcard for a character string of 0 or more characters ?: A wildcard for one character ASCII code table: p. 124 Reading 2D-codes FQ2-S4 User’s Manual...
  • Page 125 Registers a character string in the master data. Auto teach No. OFF (default) Sets the character string in which to automatically register the read result for teaching from an external device. Master data 0 to 31 Press [Back]. FQ2-S4 User’s Manual Reading 2D-codes...
  • Page 126 Note ASCII code table The following table shows the ASCII codes that can be used for manual registration of master data and also for registering characters of Limits. Upper 4 bits Lower 4 bits Reading 2D-codes FQ2-S4 User’s Manual...
  • Page 127: Reflect In Total Judgement

    Refer to the description for the communications format for the setting procedure and output specifications to output the character string. Outputting Character Strings • EtherNet/IP: p. 346 • PLC Link: p. 383 • TCP No-protocol Communications: p. 408 FQ2-S4 User’s Manual Reading 2D-codes...
  • Page 128: Changing The Character String That Is Output For Read Errors

    Displays the number of characters that were read. Characters Displays the character string that was read. Unstable Reading Results Reading Is Unstable Due to Low Contrast Adjust the brightness to improve the contrast of the 2D code. Adjusting the Brightness: p. 61 Reading 2D-codes FQ2-S4 User’s Manual...
  • Page 129: Measurement Data That Can Be Used For External Outputs And Calculations

    If 2D-codes cannot be read during an automatic registration, a teaching error message is displayed. The reading may be unstable due to low contrast.Adjust the brightness to improve the contrast of the 2D-code. Adjusting the Brightness: p. 61 FQ2-S4 User’s Manual Reading 2D-codes...
  • Page 130: Reading Dpm 2D Codes

    Press an unused inspection item number and press [Add item.]. Press [2D-code (DPM)]. 4-3 Configuring Inspection Items: p. 94 Note Drag the arrow ( ) at the bottom of the menu to display all of the inspection items. Reading DPM 2D Codes FQ2-S4 User’s Manual...
  • Page 131 Press [Yes] to register the read result in the master data. The master data contains the character strings from the 2D codes that are registered to verify whether the read character strings match specific character strings. Press [Back] to end teaching. FQ2-S4 User’s Manual Reading DPM 2D Codes...
  • Page 132 You can specify whether to reflect the judgement result of the judgement conditions for character recognition in the overall judgement. (The default is to reflect them.) [Inspect] − [Inspection] − [Add item.] − [2D-code (DPM)] − [Details] Tab Page − [Output parameter] − [Reflect] Reading DPM 2D Codes FQ2-S4 User’s Manual...
  • Page 133 When you register a character string from the master data, the item number of the inspection item that is be- ing referenced, such as “Ref. 00,” will be dis- played. FQ2-S4 User’s Manual Reading DPM 2D Codes...
  • Page 134 ASCII code table The following table shows the ASCII codes that can be used for manual registration of master data and also for registering characters of Limits. Upper 4 bits Lower 4 bits Reading DPM 2D Codes FQ2-S4 User’s Manual...
  • Page 135: Detailed Parameters

    Auto (default) Timeout 1 to 9999 ms (default value: Sets the timeout time in read processing. A read error occurs if measure- 9999) ment does not end after the preset timeout time is exceeded. FQ2-S4 User’s Manual Reading DPM 2D Codes...
  • Page 136: Outputting Read Characters To An External Device

    Refer to the description for the communications format for the setting procedure and output specifications to output the character string. Outputting Character Strings • EtherNet/IP: p. 346 • PLC Link: p. 383 • TCP No-protocol Communications: p. 408 Reading DPM 2D Codes FQ2-S4 User’s Manual...
  • Page 137: Changing The Character String That Is Output For Read Errors

    −1: Verification is NG, 0 to 31: Master data No. When logging data is output, the data is output in the order of the above table. 7-6 Logging Measurement Data and Image Data: p. 252 FQ2-S4 User’s Manual Reading DPM 2D Codes...
  • Page 138: If An Error Occurs

    If scanning of the 2D code fails, a teaching error message appears. It is likely that low contrast caused unstable scanning. Adjust the brightness to increase the contrast of the 2D code. Increasing the Brightness of the Image: p. 61 Reading DPM 2D Codes FQ2-S4 User’s Manual...
  • Page 139: Inspecting With The Search Inspection Item

    Press an unused inspection item number and press [Add item.]. Press [Search]. Registering inspection items: p. 94 Note Drag the arrow at the bottom of the menu upward to display all of the inspection items. FQ2-S4 User’s Manual Inspecting with the Search Inspection Item...
  • Page 140 Defaults: Lower limit: −180, Upper limit: 180 Count Range: 0 to 32 Adjust the upper and lower limits of the detection count for an OK Defaults: Lower limit: 0, Upper limit: 32 judgement. Inspecting with the Search Inspection Item FQ2-S4 User’s Manual...
  • Page 141: Increasing Measurement Position Accuracy

    Sorts the results in order from the smallest measure- ment Y position to the largest. Pos.Y descending order (descending order of position Y) Sorts the results in order from the largest measure- ment Y position to the smallest. FQ2-S4 User’s Manual Inspecting with the Search Inspection Item...
  • Page 142: Select The Results To Output

    You can specify whether to reflect the judgement results of an inspection item in the overall judgement. (The default is to reflect them.) [Inspect] − [Inspection] − [Add item.] − [Search] − [Details] Tab Page − [Output parameter] Inspecting with the Search Inspection Item FQ2-S4 User’s Manual...
  • Page 143: Unstable Search Results

    Changing the measurement region: p. 144 • Reduce the angle range setting. Adjust the [Angle range] parameter to reduce the range in which a search for the model is performed. Setting the angle range: p. 141 FQ2-S4 User’s Manual Inspecting with the Search Inspection Item...
  • Page 144: Editing The Model And Measurement Regions

    Press the shape of the region that you want to use. Draw the region. Press [OK]. Note Up to 8 shapes can be combined to create a region for one model. Inspecting with the Search Inspection Item FQ2-S4 User’s Manual...
  • Page 145 Use the cross-key to align the figure with the search Coordinates object. The position of the figure can be adjusted by pressing the cross-key. Pressing it once will change the coordinate values by one pixel. FQ2-S4 User’s Manual Inspecting with the Search Inspection Item...
  • Page 146 Note The detection coordinates will automatically return to the center coordinates of the model if you change the model region. Inspecting with the Search Inspection Item FQ2-S4 User’s Manual...
  • Page 147 When logging data is output, the data is output in the order of the above table. If more than one item is stored, results are output for each model. 7-6 Logging Measurement Data and Image Data: p. 252 FQ2-S4 User’s Manual Inspecting with the Search Inspection Item...
  • Page 148: Errors

    A teaching error message will appear if the contrast of the image within the model registration region is too low. Select a region with a larger contrast between light and dark areas compared to the region that was registered as the model and re-register it as the model. Inspecting with the Search Inspection Item FQ2-S4 User’s Manual...
  • Page 149: Inspecting With The Shape Search Ii Inspection Item

    [Add item.]. Press [Shape Search II]. Registering inspection items: p. 94 Note Drag the arrow at the bottom of the menu upward to display all of the inspection items. FQ2-S4 User’s Manual Inspecting with the Shape Search II Inspection Item...
  • Page 150 Defaults: Lower limit: −180, Upper limit: 180 Count Range: 0 to 32 Adjust the upper and lower limits of the detection count for an OK Defaults: Lower limit: 0, Upper limit: 32 judgement. Inspecting with the Shape Search II Inspection Item FQ2-S4 User’s Manual...
  • Page 151: Obtaining Multiple Results Simultaneously

    Y position to the largest. Pos.Y descending order (descending order of position Y) Sorts the results in order from the largest measure- ment Y position to the smallest. FQ2-S4 User’s Manual Inspecting with the Shape Search II Inspection Item...
  • Page 152: Select The Results To Output

    You can specify whether to reflect the judgement results of an inspection item in the overall judgement. (The default is to reflect them.) [Inspect] − [Inspection] − [Add item.] − [Shape Search II] − [Details] Tab Page − [Output parameter] Inspecting with the Shape Search II Inspection Item FQ2-S4 User’s Manual...
  • Page 153: Unstable Shape Search Ii Results

    Adjust the brightness: p. 61 Correlation Is Inconsistent Due to Variations in the Measurement Object Inconsistent portions can be masked so that they are omitted from matching. Model masking: p. 143 FQ2-S4 User’s Manual Inspecting with the Shape Search II Inspection Item...
  • Page 154: Increasing Processing Speed

    The region within which the model is searched can be changed. In the default settings, the whole display is set as the measurement region. You can edit the measurement region in the same way as for a search region. Changing the Measurement Region: p. 144 Inspecting with the Shape Search II Inspection Item FQ2-S4 User’s Manual...
  • Page 155 When logging data is output, the data is output in the order of the above table. If more than one item is stored, results are output for each model. 7-6 Logging Measurement Data and Image Data: p. 252 FQ2-S4 User’s Manual Inspecting with the Shape Search II Inspection Item...
  • Page 156: Errors

    A teaching error message will appear if the contrast of the image within the model registration region is too low. Select a region with a larger contrast between light and dark areas compared to the region that was registered as the model and re-register it as the model. Inspecting with the Shape Search II Inspection Item FQ2-S4 User’s Manual...
  • Page 157: Inspecting With The Sensitive Search Inspection Item

    Press an unused inspection item number and press [Add item.]. Press [Sensitive Search]. Registering inspection items: p. 94 Note Drag the arrow at the bottom of the menu upward to display all of the inspection items. FQ2-S4 User’s Manual Inspecting with the Sensitive Search Inspection Item...
  • Page 158 Defaults: Lower limit: 0, Upper limit: 221 will increase for larger percentages of areas with no pattern. This param- eter is valid when setting a plain inspection area for a divided model. Inspecting with the Sensitive Search Inspection Item FQ2-S4 User’s Manual...
  • Page 159: Reflect In Total Judgement

    Candidate level 0 to 100 Only objects with a correlation that is higher than the specified candidate level are output. Note The processing time changes if you change the candidate level. FQ2-S4 User’s Manual Inspecting with the Sensitive Search Inspection Item...
  • Page 160: Changing The Number Region Divisions

    If you change the angle range, perform teaching again. p. 138 Correlation Is Inconsistent Due to Low Contrast Adjust the brightness to improve the contrast of the mark. Adjust the brightness: p. 61 Inspecting with the Sensitive Search Inspection Item FQ2-S4 User’s Manual...
  • Page 161: Increasing Processing Speed

    The region within which the model is searched can be changed. In the default settings, the whole display is set as the measurement region. You can edit the measurement region in the same way as for a search region. Changing the Measurement Region: p. 144 FQ2-S4 User’s Manual Inspecting with the Sensitive Search Inspection Item...
  • Page 162 DVN[0] to DVN[99] Deviation (sub-region) This is the density deviation of the 0 to 221 region that was found. 4-17 Calculations and Judgements Using Inspection Item Data: p. 197 Inspecting with the Sensitive Search Inspection Item FQ2-S4 User’s Manual...
  • Page 163: Errors

    A teaching error message will appear if the contrast of the image within the model registration region is too low. Select a region with a larger contrast between light and dark areas compared to the region that was registered as the model and re-register it as the model. FQ2-S4 User’s Manual Inspecting with the Sensitive Search Inspection Item...
  • Page 164: Inspecting With The Edge Position Inspection Item

    Press an unused inspection item number and press [Add item.]. Press [Edge position]. Registering inspection items: p. 94 Note Drag the arrow at the bottom of the menu upward to display all of the inspection items. Inspecting with the Edge Position Inspection Item FQ2-S4 User’s Manual...
  • Page 165 − [Result type] on the right of the display. Press Absolute value (default): The measured coordinates are output as absolute values. Relative value: The difference from the reference value is output. FQ2-S4 User’s Manual Inspecting with the Edge Position Inspection Item...
  • Page 166: Reflect In Total Judgement

    2. The minimum color change is 0%. The maximum color change is 100%. 3. The location where the color change intersects with the edge level is detected as the edge. 100% Maximum color change Measurement Edge level region Minimum color change Inspecting with the Edge Position Inspection Item FQ2-S4 User’s Manual...
  • Page 167 A bar showing the threshold level moves up and down on the graphic as the edge level/noise level value changes. A cross-key cursor will also appear at the detected edge position. Edge level (Blue) Noise level (Yellow) Screen display when the edge level are changing. FQ2-S4 User’s Manual Inspecting with the Edge Position Inspection Item...
  • Page 168 The RGB values of the extraction color can be checked and adjusted using the color palette. ] − [Color palette], a color palette will appear. If you press [ When a color is pressed on the color palette, its RGB values will be displayed. Inspecting with the Edge Position Inspection Item FQ2-S4 User’s Manual...
  • Page 169: Increasing Processing Speed For Edge Position

    When logging data is output, the data is output in the order of the above table. If more than one item is stored, results are output for each model. 7-6 Logging Measurement Data and Image Data: p. 252 FQ2-S4 User’s Manual Inspecting with the Edge Position Inspection Item...
  • Page 170: Errors

    • Set the color again if necessary. • If there is an edge and it cannot be detected, make sure the [Edge level] parameter on the [Details] Tab Page is correct. Edge level: p. 164 Inspecting with the Edge Position Inspection Item FQ2-S4 User’s Manual...
  • Page 171: Inspecting With The Edge Width Inspection Item

    Press an unused inspection item number and press [Add item.]. Press [Edge Width]. Registering inspection items: p. 94 Note Drag the arrow at the bottom of the menu upward to display all of the inspection items. FQ2-S4 User’s Manual Inspecting with the Edge Width Inspection Item...
  • Page 172 Range: −99,999.9999 or 99,999.999 Default: Upper limit: 99,999.9999, Lower limit: −99,999.9999 When the result type is set to ratios: Range: 0.000 to 999.9999(%) Default: Upper limit: 999.9999, Lower limit: 0.000 Inspecting with the Edge Width Inspection Item FQ2-S4 User’s Manual...
  • Page 173: Changing Edge Detection Conditions (Sensors With Monochrome Cameras Only)

    This is the difference between the ref- 0 to 99999.9999 edge width) erence edge width and the measured edge width. 4-17 Calculations and Judgements Using Inspection Item Data: p. 197 FQ2-S4 User’s Manual Inspecting with the Edge Width Inspection Item...
  • Page 174: Measurement Data That Can Be Logged For Edge Width

    • Set the color again if necessary. • If there is an edge and it cannot be detected, make sure the [Edge level] parameter on the [Details] Tab Page is correct. Edge level: p. 164 Inspecting with the Edge Width Inspection Item FQ2-S4 User’s Manual...
  • Page 175: Inspecting With The Edge Pitch Inspection Item

    Press an unused inspection item number and press [Add item.]. Press [Edge Pitch]. Registering inspection items: p. 94 Note Drag the arrow at the bottom of the menu upward to display all of the inspection items. FQ2-S4 User’s Manual Inspecting with the Edge Pitch Inspection Item...
  • Page 176 Blue for OK. Red for NG. − [Display setting] on the right Display Settings Display. Press of the display to switch to the Display Settings Display. Press [OK] to enter the value. Inspecting with the Edge Pitch Inspection Item FQ2-S4 User’s Manual...
  • Page 177: Changing Edge Detection Conditions (Sensors With Monochrome Cameras Only)

    If the measurement result is not stable, adjust the [Edge level], [Noise level], and [Set color.] parameters. p. 164 Increasing Edge Pitch Processing Speed Make the measurement region smaller to reduce the processing time. Changing the measurement region: p. 144 FQ2-S4 User’s Manual Inspecting with the Edge Pitch Inspection Item...
  • Page 178: Measurement Data That Can Be Used For External Outputs And Calculations

    A teaching error message will appear if the edge pitch cannot be detected when teaching. Perform the following. • If the color of the measurement object has changed from the specified color, set the color again and try teaching again. Inspecting with the Edge Pitch Inspection Item FQ2-S4 User’s Manual...
  • Page 179 • Set the color again if necessary. • If there is an edge and it cannot be detected, make sure the [Edge level] parameter on the [Details] Tab Page is correct. Edge level: p. 164 FQ2-S4 User’s Manual Inspecting with the Edge Pitch Inspection Item...
  • Page 180: Inspecting With Color Data Inspection Item

    Press an unused inspection item number and press [Add item.]. Press [Color Data]. Registering inspection items: p. 94 Note Drag the arrow at the bottom of the menu upward to display all of the inspection items. Inspecting with Color Data Inspection Item FQ2-S4 User’s Manual...
  • Page 181 − [Display setting] on the right Display Settings Display. Press [ Blue for OK. Red for NG. of the display to switch to the Display Settings Display. Press [OK] to enter the value. FQ2-S4 User’s Manual Inspecting with Color Data Inspection Item...
  • Page 182: Reflect In Total Judgement

    0 to 221 ation ation within the region. (For Sensors with Monochrome Cameras) This is 0 to 217 the deviation within the region. 4-17 Calculations and Judgements Using Inspection Item Data: p. 197 Inspecting with Color Data Inspection Item FQ2-S4 User’s Manual...
  • Page 183: Measurement Data That Can Be Logged (Color Data)

    7-6 Logging Measurement Data and Image Data: p. 252 Increasing Processing Speed for Color Data Make the measurement region smaller to reduce the processing time. Changing the measurement region: p. 144 FQ2-S4 User’s Manual Inspecting with Color Data Inspection Item...
  • Page 184: Inspecting With The Area Inspection Item

    Press an unused inspection item number and press [Add item.]. Press [Area]. Registering inspection items: p. 94 Note Drag the arrow at the bottom of the menu upward to display all of the inspection items. Inspecting with the Area Inspection Item FQ2-S4 User’s Manual...
  • Page 185 − [Display setting] on the right Blue for OK. Red for NG. Display Settings Display. Press of the display to switch to the Display Settings Display. Press [OK] to enter the value. FQ2-S4 User’s Manual Inspecting with the Area Inspection Item...
  • Page 186: Reflect In Total Judgement

    Areas with that color will be automatically detected. Continuous measurements will be performed for the im- ages that are displayed. Only the extracted color will appear on the display. Press [OK]. Press [TEACH]. Press [Back] to end teaching. Inspecting with the Area Inspection Item FQ2-S4 User’s Manual...
  • Page 187 • You can invert the black/white extraction results. ] − [Reverse] and select [Yes]. Press [ • You can select whether to display a binary image. ] − [Binary image display] and select [OFF] or [ON]. Press [ FQ2-S4 User’s Manual Inspecting with the Area Inspection Item...
  • Page 188: Changing The Area Detection Conditions

    Input Image Image Following Fill Outline Increasing Processing Speed for Area Make the measurement region smaller to reduce the processing time. Changing the measurement region: p. 144 Inspecting with the Area Inspection Item FQ2-S4 User’s Manual...
  • Page 189: Measurement Data That Can Be Used For External Outputs And Calculations

    If the specified color is not found during teaching, the reference area will be registered as 0. If having no area is OK, adjust the judgement parameters with this value as the reference. FQ2-S4 User’s Manual Inspecting with the Area Inspection Item...
  • Page 190: Inspecting With The Labeling Inspection Item

    Press an unused inspection item number and press [Add item.]. Press [Labeling]. Registering Inspection Items: p. 94 Note Drag the arrow at the bottom of the menu upward to display all of the inspection items. Inspecting with the Labeling Inspection Item FQ2-S4 User’s Manual...
  • Page 191 Set the range for each of the following parameters. Con- tinuous measurements will be performed for the images that are taken. Press [OK] to accept the value. Lower limit Upper limit Blue for OK. Red for NG. FQ2-S4 User’s Manual Inspecting with the Labeling Inspection Item...
  • Page 192: Unstable Labeling Results

    Labeling with that color will be automatically detected. Continuous measurements will be performed for the im- ages that are displayed. Only the extracted color will appear on the display. Press [OK]. Press [TEACH]. Press [Back] to end teaching. Inspecting with the Labeling Inspection Item FQ2-S4 User’s Manual...
  • Page 193 • You can invert the black/white extraction results. − [Reverse] and select [Yes]. Press • You can select whether to display a binary image. − [Binary image display] and select [OFF] or [ON]. Press FQ2-S4 User’s Manual Inspecting with the Labeling Inspection Item...
  • Page 194: Changing The Label Detection Conditions

    Areas outside the measurement region are set to the color for measure- ment. Inspecting with the Labeling Inspection Item FQ2-S4 User’s Manual...
  • Page 195: Changing The Label Extraction Conditions

    X coordinate) (default) Pos. X descending order (descending order of X coordinate) Pos. Y ascending order (ascending order of Y coordinate) Pos. Y descending order (descending order of Y coordinate) FQ2-S4 User’s Manual Inspecting with the Labeling Inspection Item...
  • Page 196: Reflect In Total Judgement

    Changing the Model Registration Region to a Shape Other Than a Rectangle: p. 142 Measurement region Important If the measurement region is changed, perform teaching if required. p. 189 Inspecting with the Labeling Inspection Item FQ2-S4 User’s Manual...
  • Page 197: Increasing The Processing Speed

    −99,999.9999 to 99,999.9999 Ref. position Y (refer- This is the Y coordinate of the reference posi- ence position Y) tion. 4-17 Calculations and Judgements Using Inspection Item Data p. 197 FQ2-S4 User’s Manual Inspecting with the Labeling Inspection Item...
  • Page 198: Measurement Data That Can Be Logged For Labeling

    A teaching error message will appear if the reference area registered during teaching is 0. Perform the following. • If the color of the measurement object has changed from the specified color, set the color again and try teaching again. Inspecting with the Labeling Inspection Item FQ2-S4 User’s Manual...
  • Page 199: Calculations And Judgements Using Inspection Item Data

    You can reflect the judgement results (JG) of the calculations in the overall judgement. (You can also set the output parameters so that the judgement results are not reflected in the overall judgement.) FQ2-S4 User’s Manual Calculations and Judgements Using Inspection Item Data...
  • Page 200 252 Touch Finder Ethernet output (SD card)/ Computer The results can be allocated The results can be to data 0 to 31 for Ethernet recorded as logging data. output. Calculations and Judgements Using Inspection Item Data FQ2-S4 User’s Manual...
  • Page 201: Examples For Calculation

    • Distance between two points = DIST (I0.X,I0.Y,I1X,I1.Y) Procedure (Calculation) − Press [Inspect] [Calculation]. Setting Expressions Press [Expression] on the [Settings] Tab Page. Press the expression number that you want to use. FQ2-S4 User’s Manual Calculations and Judgements Using Inspection Item Data...
  • Page 202 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) Inspection item data Function Example: Subtracting 120 from the calculation result of expression 0. Constant Mathematical operator Result of expression 0 Calculations and Judgements Using Inspection Item Data FQ2-S4 User’s Manual...
  • Page 203: Function List

    If the argument is 0, the calculation result is −1. Otherwise it is 0. NOT(argument) Finds the absolute value. ABS(argument) Returns the larger of the two arguments. MAX(argument_1, argument_2) Returns the smaller of the two arguments. MAX(argument_1, argument_2) FQ2-S4 User’s Manual Calculations and Judgements Using Inspection Item Data...
  • Page 204 + ( R 1 . Y − R 0 . Y ) • Finds the length of a perpendicular line from point (x,y) to line ax + by + c = 0. DIST (X_coordinate_of_point, Y_coordinate_of_point, coefficient_a_of_line, coefficient_b_of_line, coefficient_c_of_line) Calculations and Judgements Using Inspection Item Data FQ2-S4 User’s Manual...
  • Page 205 You can specify whether to reflect the judgement results of a calculation in the overall judgement. (The default is to reflect them.) − − − − [Inspect] [Calculation] [Details] Tab Page [Output parameter] [Reflect] FQ2-S4 User’s Manual Calculations and Judgements Using Inspection Item Data...
  • Page 206 −99999.9999 to 99999.9999 Scroll X −99999.9999 to 99999.9999 Scroll Y −99999.9999 to 99999.9999 Ref. position X −99999.9999 to 99999.9999 Ref. position Y −99999.9999 to 99999.9999 Reference X −99999.9999 to 99999.9999 Reference Y Calculations and Judgements Using Inspection Item Data FQ2-S4 User’s Manual...
  • Page 207 Edge1 ref. position Y (edge 1 reference posi- tion Y) −99999.9999 to 99999.9999 Ref. midpoint X (refer- ence midpoint X) −99999.9999 to 99999.9999 Ref. midpoint Y (refer- ence midpoint Y) FQ2-S4 User’s Manual Calculations and Judgements Using Inspection Item Data...
  • Page 208 −15: Out of range error −2: Verification OFF or reading error, −2 Index No. −1: Verification is NG, 0 to 31: Master data No. Num. of char. 0 to 1024 Calculations and Judgements Using Inspection Item Data FQ2-S4 User’s Manual...
  • Page 209 Angle −99999.9999 to 99999.9999 Reference X −99999.9999 to 99999.9999 Reference Y −180 to 180 Reference angle −99999.9999 to 99999.9999 Detection X −99999.9999 to 99999.9999 Detection Y Count 0 to 32 FQ2-S4 User’s Manual Calculations and Judgements Using Inspection Item Data...
  • Page 210 −13: Teaching not performed error −14: Figure not registered error −15: Out of range error D. edge width 0 to 99999.9999 Ref. edge width 0 to 99999.9999 Edge width 0 to 99999.9999 Calculations and Judgements Using Inspection Item Data FQ2-S4 User’s Manual...
  • Page 211 −99999.9999 to 99999.9999 Gravity Y Reference area 0 to 999999999 −99999.9999 to 99999.9999 Ref. position X (refer- ence position X) −99999.9999 to 99999.9999 Ref. position Y (refer- ence position Y) FQ2-S4 User’s Manual Calculations and Judgements Using Inspection Item Data...
  • Page 212 This is the result of expression 21. Data 22 This is the result of expression 22. Data 23 This is the result of expression 23. Data 24 This is the result of expression 24. Calculations and Judgements Using Inspection Item Data FQ2-S4 User’s Manual...
  • Page 213 This are the judgement results of expressions OK, −1: Judgement is NG 0 to 31. −999999999.9999 to 999999999.9999 Results 0 to 31 This is the results of expressions 1 to 31. FQ2-S4 User’s Manual Calculations and Judgements Using Inspection Item Data...
  • Page 214 MEMO Calculations and Judgements Using Inspection Item Data FQ2-S4 User’s Manual...
  • Page 215: Testing And Saving Settings

    Testing and Saving Settings 5-1 Performing Test Measurements............214 5-2 Shortening the Measurement Takt Time ..........216 5-3 Adjusting the Judgement Parameters..........219 5-4 Checking a List of All Inspection Item Results ........221 5-5 Saving Data to the Sensor..............222...
  • Page 216: Performing Test Measurements

    This Sensor can save measured images in the Sensor’s built-in memory or on an SD card. Test measurements can be performed using these saved images. This function is useful for adjusting the judgement parameters when objects are not available. [Test] − [Continuous test] − (Any display) − Press Performing Test Measurements FQ2-S4 User’s Manual...
  • Page 217 • [Camera image file]: Images that were saved as logged images with the (Log Image) Button. The display switches to the saved image and mea- surements are taken again. Saving images: p. 271 FQ2-S4 User’s Manual Performing Test Measurements...
  • Page 218: Shortening The Measurement Takt Time

    During the measurement time, this Sensor will not accept the next trigger. This means that the measurement time is the basic measurement takt time. Inputting a trigger Measurement time = Measurement takt time File Measurement Display Image input logging Shortening the Measurement Takt Time FQ2-S4 User’s Manual...
  • Page 219: Increasing Image Input Speed

    Y coordinate of the partial input end • FQ2-S4@@@@@/FQ2-S4@@@@@-M point Range: 7 to 479, Default: 0 • FQ2-S4@@@@@-08@ Range: 7 to 827, Default: 0 • FQ2-S4@-@@@ Range: 7 to 1,023, Default: 0 FQ2-S4 User’s Manual Shortening the Measurement Takt Time...
  • Page 220: Changing The Image Input Mode

    High-speed or Standard Pixel sampling can be applied to the input image to Mode Default for FQ2-S4@@@@@/FQ2-S4@@@@@-M: reduce image input time. High-speed, Default for FQ2-S4@@@@@-08/FQ2-S4@-13@: Standard Important If you change the image input mode, perform teaching again. Shortening the Measurement Takt Time...
  • Page 221: Adjusting The Judgement Parameters

    [OK Teach]. Display a sample image of a bad object and press [NG Teach]. Repeat these steps for at least three samples each. Press [Back]. The best judgement parameters will be set automatically. Press [OK]. FQ2-S4 User’s Manual Adjusting the Judgement Parameters...
  • Page 222 Number of registered Press [NG Teach] to register. Press [OK Teach] to register. samples Measurement value Important There are no judgement condition settings for the following inspection items. Bar code and 2D-code Adjusting the Judgement Parameters FQ2-S4 User’s Manual...
  • Page 223: Checking A List Of All Inspection Item Results

    [Test] − [Continuous test] Press [All results/region] to display the list. Note Judgement parameters can also be changed from this display. Select an inspection item and press [ ] – [Adjust judgement]. FQ2-S4 User’s Manual Checking a List of All Inspection Item Results...
  • Page 224: Saving Data To The Sensor

    • Measurement data and image data cannot be saved in this way. Logging measurement data: p. 253 • Settings data can also be backed up to an external memory. Saving settings: p. 262 Saving Data to the Sensor FQ2-S4 User’s Manual...
  • Page 225: Operation

    Operation 6-1 Starting Operation........224 6-2 Configuring the Run Mode Display .
  • Page 226: Starting Operation

    You can move from Setup Mode to Run Mode by using the following procedure. Press [Run]. Press [Switch to Run mode.]. Press [Yes]. If you press [No], the setting will not be saved and you will move to Run Mode. Starting Operation FQ2-S4 User’s Manual...
  • Page 227 When moving to Run Mode, the signal will change as shown below and data can be input from and output to an external device. Run Mode Setup Mode Display The BUSY signal that was always ON will turn OFF. BUSY signal FQ2-S4 User’s Manual Starting Operation...
  • Page 228: Configuring The Run Mode Display

    (Run Mode) − [Select display] Note If [Logging setting] is not set to [ON], you will not be able to display trend monitors or histograms in Run Mode. Enabling File Logging: p. 256 Configuring the Run Mode Display FQ2-S4 User’s Manual...
  • Page 229 • Position comp.: The result of position compensation is displayed. • All Region: The measurement regions for all inspection items are displayed. • Calculation: Displays the results for each expression registered to an inspection item. FQ2-S4 User’s Manual Configuring the Run Mode Display...
  • Page 230: Checking The Trend Of Measurement Results With Graphs

    • Changing the Display Range of the Vertical Axis ] − [Display range] on the right of the trend monitor. Press [ Set the minimum and maximum values of the measurement values. Checking the Trend of Measurement Results with Graphs FQ2-S4 User’s Manual...
  • Page 231: Histograms

    • Changing the Display Range of the Horizontal Axis ] − [Display range] on the right of the histogram. Press [ Select the maximum measurement value, the minimum measurement value, and the class. FQ2-S4 User’s Manual Checking the Trend of Measurement Results with Graphs...
  • Page 232 Logging settings are applied to the histogram as well. However, they are not applied to histograms displayed in Setup Mode. Check recent measurement trends (recent results logging): p. 258 Checking the Trend of Measurement Results with Graphs FQ2-S4 User’s Manual...
  • Page 233: Adjusting Judgement Parameters During Operation

    Press [OK]. The judgement results with the changed judgement parameters will appear. Important The changed judgement parameters will not be reflected in the measurement result until [OK] is pressed. FQ2-S4 User’s Manual Adjusting Judgement Parameters during Operation...
  • Page 234 MEMO Adjusting Judgement Parameters during Operation FQ2-S4 User’s Manual...
  • Page 235: Convenient Functions

    Convenient Functions 7-1 Changing the Scene to Change the Line Process ......234 7-2 Calibration .....................237 7-3 Display Functions .................244 7-4 Monitoring the Signal I/O Status............247 7-5 Connecting to More Than One Sensor..........248 7-6 Logging Measurement Data and Image Data ........252 7-7 Saving Sensor Settings ................262 7-8 SD Card Operations ................264 7-9 Convenient Functions for Operation...........267...
  • Page 236: Changing The Scene To Change The Line Process

    Z • Maximum Number of Scenes With the FQ2-S4-series Vision Sensors, you can create up to 32 scenes. • Settings Included with Scenes The following settings are changed when the scene is changed: Camera image ([Image] Tab Page) and Inspection Items ([Inspect] Tab Page).
  • Page 237: Creating New Scenes

    • Changing Scenes with an EtherNet/IP Command p. 362 • Changing Scenes with a TCP No-protocol Command p. 419 • Changing Scenes with a FINS/TCP No-protocol Command p. 438 FQ2-S4 User’s Manual Changing the Scene to Change the Line Process...
  • Page 238: Setting The Startup Scene

    OFF in the default settings.) Startup scene Set the scene number to use at startup. Standard models: 0 to 31, Single-function models: 0 to 8, Default: 0 Changing the Scene to Change the Line Process FQ2-S4 User’s Manual...
  • Page 239: Calibration

    Search for a registered model and enter the actual coordinates p. 240 ence) of the position where the model is detected. Parameter Enter the numeric values of the parameters directly to calculate p. 242 the calibration data. FQ2-S4 User’s Manual Calibration...
  • Page 240: Setting The Calibration Pattern

    If you want to include the coordinate system in the calibration, specify three positions. (Setup Mode) − [Calibration] Select the data region to set from [Calibration data 0] to [Calibration data 31]. Press [Modify]. [ ] − Press [Specify point] on the right of the display. Calibration FQ2-S4 User’s Manual...
  • Page 241 Enter the actual X and Y coordinates and press [OK]. Repeat the above steps 4 to 8 to set the coordinates of the remaining positions. When you have finished setting the coordinates for all of the positions, press [Generate parameters]. FQ2-S4 User’s Manual Calibration...
  • Page 242 Same Magnification in X and Y Directions Measure two positions and enter the actual coordinates of them. Model Different Magnifications in X and Y Directions Measure three positions and enter the actual coordinates of them. Calibration FQ2-S4 User’s Manual...
  • Page 243 [ ] − Press [Actual coord.] on the right of the display. Enter the actual X and Y coordinates and press [OK]. Repeat the above steps 4 to 8 to set the coordinates of the remaining positions. FQ2-S4 User’s Manual Calibration...
  • Page 244 Upperleft, Lowerleft, or Select the location of the origin of the coordinate system. Center Upper left Default: Lowerleft Center Lower left Magnification 0.0001 to 9.9999 Set the actual dimension that corresponds to one pixel. Default: 1.0000 Calibration FQ2-S4 User’s Manual...
  • Page 245: Selecting The Calibration Pattern To Use

    Select the calibration pattern from [Calibration data 0] to [Calibration data 31]. Press [Back]. Note If the selected calibration data has not been set yet, a message will be displayed asking if you want to go to the cali- bration setting display. FQ2-S4 User’s Manual Calibration...
  • Page 246: Display Functions

    You can display a frozen image to stop image refreshing and display the last image that was input. (Setup Mode) Press Press [Camera]. Press [Freeze]. Press the [Back] Button to return to the [Display] Dis- play. Display Functions FQ2-S4 User’s Manual...
  • Page 247: Displaying A Saved Image

    Updating the Display and Measurement Results Only for NG Measurement Results In Run Mode, you can specify updating the display of the image and measurement results only when the measurement result is NG. (Run Mode) Press Press [Last NG image]. Press [Back]. FQ2-S4 User’s Manual Display Functions...
  • Page 248: Automatically Changing To The Display For Any Sensor With An Ng Result

    (Setup Mode or Run Mode) − [TF settings] − [LCD Backlight] − [ECO mode] Changing the Brightness of the Touch Finder The brightness of the LCD backlight can be changed to any of five levels. (Setup Mode or Run Mode) − [TF settings] − [LCD Backlight] − [Brightness] Display Functions FQ2-S4 User’s Manual...
  • Page 249: Monitoring The Signal I/O Status

    FQ-SDU1@: TRIG, DSA, RST, IN0 to IN7, RUN, OR, BUSY, ERR, STG, SHT, ACK, GATE, and D0 to D15 FQ-SDU2@: TRIG, RST, IN0 to IN5, RUN, OR, BUSY, ERR, STG, SHT, and ACK FQ2-S4 User’s Manual Monitoring the Signal I/O Status...
  • Page 250: Connecting To More Than One Sensor

    You can set any of the Sensors for connection to the Touch Finder and register them. (Run Mode) − [Sensor monitor] − [Multi sensor] ] − Press [ [Specify sensor] on the right of the dis- play. Press a blank line and then press [Add]. Connecting to More Than One Sensor FQ2-S4 User’s Manual...
  • Page 251 • You cannot select the check box if a Sensor that was registered by the user cannot be detected. • The names of Sensors that are on the same network as the Touch Finder are given in parentheses. FQ2-S4 User’s Manual Connecting to More Than One Sensor...
  • Page 252: Selecting The Display When More Than One Sensor Is Connected

    Select a number from the list of display positions. The display for the Sensor will be displayed in the posi- tion that corresponds to the specified number. Connecting to More Than One Sensor FQ2-S4 User’s Manual...
  • Page 253 [ON], the Touch Finder will display another Sensor that it has detected. If a previously connected Sensor is then detected by the Touch Finder, it will display the image from it in the previous display position. FQ2-S4 User’s Manual Connecting to More Than One Sensor...
  • Page 254: Logging Measurement Data And Image Data

    • Starting and Stopping Logging Executing file logging. p. 257 Execution of recent Execution of file logging results logging • Saving Recent Results Logging Data p. 260 • Deleting Logged Data p. 260 Logging Measurement Data and Image Data FQ2-S4 User’s Manual...
  • Page 255: Logging All Data (File Logging)

    Setting Logging Conditions Use the following procedures to set the conditions to log data. [In/Out] − [Log setting] • Image Data Press [Image logging]. Change the logging conditions, and then press [Back]. FQ2-S4 User’s Manual Logging Measurement Data and Image Data...
  • Page 256 Press the parameter for which to log data to select it. Note The procedure to select the measurement data to log is the same for recent results logging. Logging Measurement Data and Image Data FQ2-S4 User’s Manual...
  • Page 257 Select the item for which to add to or change the file name and then press [Logging image file] or [Logging data file]. Press [File name prefix]. Enter the file name (up to 15 alphanumeric characters) and press [OK]. Press [OK]. FQ2-S4 User’s Manual Logging Measurement Data and Image Data...
  • Page 258: File Format

    File Format Image data: Image data is saved in a special format for OMRON Vision Sensors. (The file name extension is IFZ.) Measurement data: Measurement data is saved in the following CSV format. Item Format Description Date YYYY/MM/DD This is the date that the measurement data was obtained from the Sensor.
  • Page 259 • If logging data to an SD card, the write time varies depending on the amount of the available space on the SD card. Reference value: For SDHC class 4, the time required to write image data is approx. 200 to 800 ms. FQ2-S4 User’s Manual Logging Measurement Data and Image Data...
  • Page 260: Checking Recent Measurement Trends (Recent Results Logging)

    Logging image (image data) These are the same as for file logging. Logging data (measurement data) Note The logging parameters for image data and measurement data are the same as those for file logging. Logging Measurement Data and Image Data FQ2-S4 User’s Manual...
  • Page 261 The results of logging can be checked using the trend monitors, histograms, or statistical data. p. 226 Use the following menu command to check the image data. (Setup Mode) − − [Log] FQ2-S4 User’s Manual Logging Measurement Data and Image Data...
  • Page 262 *1: Files are stored in the following folder when the PC Tool is used. \My Documents\OMRON FQ\SDCard *2: You can add a character string to the beginning of the file name. *3: You can change the “img” at the beginning of the file name. Logging Measurement Data and Image Data FQ2-S4 User’s Manual...
  • Page 263 The data is saved in the following CSV format. Number of measurements, number of OKs, number of NGs, OK rate, NG rate (delimiter) Image data: Image data is saved in a special format for OMRON Vision Sensors. (The file name extension is IFZ.) Measurement data: Measurement data is saved in CSV format.
  • Page 264: Saving Sensor Settings

    CLB) Calibration group data (file The calibration settings for all scenes are backed up. name extension: CGP) *1 For the PC Tool, data will be saved in the following folder: \\..\My Documents\OMRON FQ Saving Sensor Settings FQ2-S4 User’s Manual...
  • Page 265: Restoring Data To The Sensor From External Memory

    Restoring Data to the Sensor from External Memory (Setup Mode) − [Load from file] Press the data to be restored. The selected data will be read from external memory and displayed. Press the file to load. FQ2-S4 User’s Manual Saving Sensor Settings...
  • Page 266: Sd Card Operations

    Captured images (The file name extension is BMP.) Camera image data (The file name extension is IFZ.) *1: For the PC Tool, data will be saved in the following folder: \\..\My Documents\OMRON FQ Note The PC Tool does not support SD card operations.
  • Page 267: Inserting And Removing Sd Cards

    Do not restart or turn OFF the power supply to the Sensor or Touch Finder while a message is being displayed saying that data is being saved to or read from the SD card. The settings or system data may be corrupted. FQ2-S4 User’s Manual SD Card Operations...
  • Page 268: Checking The Available Space On The Sd Card

    The following information in the SD card inserted in the Touch Finder can be checked. Formatting an SD Card (Setup Mode or Run Mode) − [TF settings] − [SD card] − [Format] Press [Yes] to start formatting. SD Card Operations FQ2-S4 User’s Manual...
  • Page 269: Convenient Functions For Operation

    • This password restricts only the operation to switch from Run Mode to Setup Mode. It does not restrict other operations. • If you forget the password, contact your OMRON representative for the procedure to clear the password. • The password is deleted when the Sensor is initialized.
  • Page 270: Capturing The Displayed Image

    Make sure an SD card is inserted in the Touch Finder before capturing display images. Note For the PC Tool, data will be saved in the following folder: \\..\My Documents\OMRON FQ Saving the Currently Displayed Camera Image You can save the Camera image that is displayed on the Touch Finder or computer.
  • Page 271: Setting The Startup Run Display Pattern

    You can set up the Sensor only from one of the two Touch Finders at any one time. Touch Finder Touch Finder Sensor Switching Hub You can monitor the same Sensor at the same time from a locally installed Touch Finder and a remotely installed Touch Finder. FQ2-S4 User’s Manual Convenient Functions for Operation...
  • Page 272 Monitoring or setup Trend monitors and histograms can be displayed only if logging is enabled. grams Therefore, they can be displayed only on the Touch Finder for which logging is enabled as described above. Convenient Functions for Operation FQ2-S4 User’s Manual...
  • Page 273: Convenient Functions For Setup

    The image data can be saved in the SD card each time measurements are performed. (Run Mode) − [Logging] Logging All Data (File Logging): p. 253 − You can also save the data in Setup Mode by using (Display Arrangement) (Log Image Button). FQ2-S4 User’s Manual Convenient Functions for Setup...
  • Page 274 (Setup Mode) − − [Log] • Image Files in a SD Card (Setup Mode) − − [Logging image file] or [Camera image file] Arranging the Display - Displaying a Saved Image: p. 245 Convenient Functions for Setup FQ2-S4 User’s Manual...
  • Page 275: Setting The Retry Function

    Normal retry, exposure (shutter speed) retry, scene retry, and trigger retry cannot be used at the same time. When scene retry is ON, the normal retry and exposure retry modes in the same scene are OFF. When normal retry, exposure retry, or scene retry is ON, trigger retry is OFF. FQ2-S4 User’s Manual Setting the Retry Function...
  • Page 276 Press [Exposure retry] for the retry mode. • Set the brightness (shutter speed) step, increment count, and decrement count. [Inspect] − [Retry details] Set the shutter speed step, increment count, and decrement count. Setting the Retry Function FQ2-S4 User’s Manual...
  • Page 277 1st to 32nd Register the scenes for scene switching. Register the scenes to switch in order from Åg1st". If there are any scenes for scene switching that are not registered, the remaining scenes are ignored. FQ2-S4 User’s Manual Setting the Retry Function...
  • Page 278 Press [Trigger retry] for the retry mode. Important To use trigger retry, the I/O input mode must be set to expanded mode. [In/Out] − [I/O setting] − [I/O terminals] − [Input] tab − [Input mode] Press "Expanded mode". Setting the Retry Function FQ2-S4 User’s Manual...
  • Page 279: Functions Related To The System

    (Setup Mode or Run Mode) − [TF settings] − [Restart] Checking Versions • Checking the Sensor Version (Setup Mode) − [Sensor settings] − [Information] • Checking the Touch Finder Version (Setup Mode or Run Mode) − [TF settings] − [Information] FQ2-S4 User’s Manual Functions Related to the System...
  • Page 280: Checking The Touch Finder Battery Level

    [In/Out] − [I/O setting] − [I/O setting] − [Output] − [BUSY LED] Setting the Inspection Timeout Time The time after which inspection times out can be set (msec). (Run Mode) − [Sensor settings] − [Timeout] Functions Related to the System FQ2-S4 User’s Manual...
  • Page 281: Controlling Operation And Outputting Data With A Parallel Connection

    Controlling Operation and Outputting Data with a Parallel Connection 8-1 Controlling Operation and Outputting Data with the Sensor's Standard Parallel Connection ......... . 280 8-2 Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit .
  • Page 282: Controlling Operation And Outputting Data With The Sensor's Standard Parallel Connection

    BUSY BUSY signal ON while measurements are in progress signal turns ON and the READY signal turns OFF. READY signal OFF while measurements are in progress Controlling Operation and Outputting Data with the Sensor's Standard Parallel Connection FQ2-S4 User’s Manual...
  • Page 283: Setting The Measurement Trigger

    The measurement trigger can be chosen from the following two types: • One-shot measurement: One measurement is performed for each external trigger. • Continuous measurement: Measurements are performed continuously. FQ2-S4 User’s Manual Controlling Operation and Outputting Data with the Sensor's Standard Parallel Connection...
  • Page 284 When the Brightness Correction Mode is ON, the timing when images are taken is delayed. Timing Chart When the Brightness Correction Mode Is ON: p. 61 Controlling Operation and Outputting Data with the Sensor's Standard Parallel Connection FQ2-S4 User’s Manual...
  • Page 285 (1) IN5 signal ON (IN0 to IN4 are OFF) Or other device (2) Performs continuous measurements Note This function can be used only when the input mode is set to Expanded Mode. FQ2-S4 User’s Manual Controlling Operation and Outputting Data with the Sensor's Standard Parallel Connection...
  • Page 286 2. Continuous measurements end when IN5 is turned OFF. Settings [In/Out] − [I/O setting] − [I/O terminals] − [Input] − [Input mode] Press [Expanded mode]. Controlling Operation and Outputting Data with the Sensor's Standard Parallel Connection FQ2-S4 User’s Manual...
  • Page 287 • I/O Signal Allocations Signal Address Output signals OUT1 (BUSY signal) CIO 0.01 Input signals CIO 1.08 CIO 1.09 CIO 1.10 CIO 1.11 CIO 1.12 CIO 1.15 FQ2-S4 User’s Manual Controlling Operation and Outputting Data with the Sensor's Standard Parallel Connection...
  • Page 288: Setting The Outputs

    ON while measurements are being processed (depends on BUSY output conditions) Turned ON when overall judgement is NG. OR signal (OR output: ON for NG) Overall judgement Controlling Operation and Outputting Data with the Sensor's Standard Parallel Connection FQ2-S4 User’s Manual...
  • Page 289 As described above, if terminals OUT0 to OUT2 are all assigned to individual judgement output signals, the BUSY signal and ERROR signal assigned as the default settings will no longer be output. FQ2-S4 User’s Manual Controlling Operation and Outputting Data with the Sensor's Standard Parallel Connection...
  • Page 290 (depends on BUSY output conditions) OR signal Overall judgement (OR output: ON for NG) Held until the next judgement result is output Controlling Operation and Outputting Data with the Sensor's Standard Parallel Connection FQ2-S4 User’s Manual...
  • Page 291 Press [Output mode] and press [Level output] or [One-shot output]. Press [Output delay] and set the one-shot output de- lay. Press [OK]. Press [Output time] and set the one-shot output time. Press [OK]. FQ2-S4 User’s Manual Controlling Operation and Outputting Data with the Sensor's Standard Parallel Connection...
  • Page 292 All timing charts in this manual show the operation of the BUSY signal with positive polarity (the default setting). If you change the polarity of the BUSY signal, take this into consideration when reading the timing charts. Controlling Operation and Outputting Data with the Sensor's Standard Parallel Connection FQ2-S4 User’s Manual...
  • Page 293 OUT2 Polarity Negative The output signal that is assigned to OUT0 to OUT3 is turned ON when the Sen- sor can receive the trigger. FQ2-S4 User’s Manual Controlling Operation and Outputting Data with the Sensor's Standard Parallel Connection...
  • Page 294: Controlling The Sensor From An External Device

    To change to scene 1 in Standard Mode, specify 00001. White Purple Yellow Trigger to change the scene Orange OUT1 Processing in progress (default) (BUSY) Controlling Operation and Outputting Data with the Sensor's Standard Parallel Connection FQ2-S4 User’s Manual...
  • Page 295 [Expanded mode]: Scene 0 to 15 Note Even in Expanded Mode, you can use menu commands or Ethernet no-protocol commands to change to scenes 0 to 31. FQ2-S4 User’s Manual Controlling Operation and Outputting Data with the Sensor's Standard Parallel Connection...
  • Page 296 If the cycle time is too long, the PLC may not be able to detect when the BUSY signal is ON. If necessary, turn OFF W0.00 after a suitable time elapses. Controlling Operation and Outputting Data with the Sensor's Standard Parallel Connection FQ2-S4 User’s Manual...
  • Page 297 IN5 signal ON for 1 ms min. 3 The BUSY signal turns ON while the parameters are being re-registered. BUSY signal Start re-registering End re-registering FQ2-S4 User’s Manual Controlling Operation and Outputting Data with the Sensor's Standard Parallel Connection...
  • Page 298 If the cycle time is too long, the PLC may not be able to detect when the BUSY signal is ON. If necessary, turn OFF W0.00 after a suitable time elapses. Controlling Operation and Outputting Data with the Sensor's Standard Parallel Connection FQ2-S4 User’s Manual...
  • Page 299 BUSY signal is OFF to clear the error. Allow 5 ms min. and then turn ON IN5. IN5 signal ON for 1 ms min. BUSY signal ERROR signal FQ2-S4 User’s Manual Controlling Operation and Outputting Data with the Sensor's Standard Parallel Connection...
  • Page 300 Allow 5 ms min. and then turn ON IN5. measurement values. ON for 1 ms min. IN5 signal The measurement values are BUSY signal cleared from the Sensor. Controlling Operation and Outputting Data with the Sensor's Standard Parallel Connection FQ2-S4 User’s Manual...
  • Page 301 Allow 5 ms min. and then turn ON IN5. ON for 1 ms min. IN5 signal BUSY signal Saving data in Saving data Sensor completed. in Sensor started. FQ2-S4 User’s Manual Controlling Operation and Outputting Data with the Sensor's Standard Parallel Connection...
  • Page 302 3 The BUSY signal turns ON while ON for 1 ms min. IN5 signal external teaching is being executed. BUSY signal Start external teaching End external teaching Controlling Operation and Outputting Data with the Sensor's Standard Parallel Connection FQ2-S4 User’s Manual...
  • Page 303 If the cycle time is too long, the PLC may not be able to detect when the BUSY signal is ON. If necessary, turn OFF W0.00 after a suitable time elapses. FQ2-S4 User’s Manual Controlling Operation and Outputting Data with the Sensor's Standard Parallel Connection...
  • Page 304: Controlling Operation And Outputting Data With A Parallel Interface Sensor Data Unit

    A measurement trigger is input as the TRIG signal from a proximity sensor, PLC, or other external device. One measurement is performed when the TRIG signal turns ON. (1) TRIG signal ON Or other device Trigger input Sensor (2) Performs measurements once Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit FQ2-S4 User’s Manual...
  • Page 305: Setting Output Data

    • You can adjust the timing for outputting the OR signal and the ON time after judgement processing. Adjusting the Judgement Output Timing: p. 288 FQ2-S4 User’s Manual Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit...
  • Page 306 [In/Out] − [I/O setting] − [Output data set] − [Par. Jdg Output] − [Basic] Tab Page Press [Judgement condition]. Set the correlation range that is to be judged as OK. Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit FQ2-S4 User’s Manual...
  • Page 307 [In/Out] − [I/O setting] − [Output data set] − [Par. Jdg Output] − [Basic] Tab Page Press [Data settings]. Press [Data 0]. Press [I0. Search]. Press [Position X X]. FQ2-S4 User’s Manual Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit...
  • Page 308 A value of −32,767 is output. Binary data A value of 32,768 is output. A value of −999 is output. A value of 999 is output. Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit FQ2-S4 User’s Manual...
  • Page 309 BUSY signal Measurements executed. OR signal Overall judgement Parallel D signals judgement output (D0 to D15) GATE ON delay Output time GATE signal Output period FQ2-S4 User’s Manual Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit...
  • Page 310: Aligning The Data Output Timing With The External Device

    Press [Output control] and select the output control method. • None: p. 309 • Handshaking p. 312 • Synchronized Output: p. 314 Set the communications specifications for data out- put. Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit FQ2-S4 User’s Manual...
  • Page 311 The GATE signal will not be output if there is no data set for parallel judgement output and parallel data output. If only the OR signal is output, read the OR signal when the BUSY signal turns OFF. FQ2-S4 User’s Manual Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit...
  • Page 312 TRIG signal is shorter than the total output time, the output data buffer will eventually overflow and output data will be discarded. Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit FQ2-S4 User’s Manual...
  • Page 313 The ERROR signal will turn ON if the input command is not executed normally. Set at least one data output for parallel judgement output and then read the OR signal when the GATE signal turns FQ2-S4 User’s Manual Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit...
  • Page 314 The BUSY signal will be ON while measurements are being executed. Therefore, you can monitor the status of the BUSY signal to detect when measurements have been completed. Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit FQ2-S4 User’s Manual...
  • Page 315 If more than one data item is being output for one measurement and you do not turn ON the DSA signal within the specified timeout time after the GATE signal turns OFF, a timeout error will oc- cur. (This is timeout time 3.) FQ2-S4 User’s Manual Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit...
  • Page 316 • Use a measurement trigger only for single measurements. If you perform continuous measurements by inputting a command, the output timing will not be correct and the Sensor may malfunction. Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit FQ2-S4 User’s Manual...
  • Page 317 Each time the TRIG signal turns ON after that, the measurement result (D0) from when the TRIG signal turned ON two times previously is output. FQ2-S4 User’s Manual Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit...
  • Page 318: Changing The Settings Of The I/O Signals

    Changing the Output Timing and Output Time of the STGOUT Signal You can change the output settings of the STGOUT signal to adjust when and for how long the external lighting is lit. Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit FQ2-S4 User’s Manual...
  • Page 319: Controlling Operation From An External Device

    This command clears the OR signal and D signals. p. 324 nals Saving data in the Sensor This command saves the current settings (scene data and system data) p. 326 in the Sensor. FQ2-S4 User’s Manual Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit...
  • Page 320 When the command has been completed normally, this signal is turned ON for the time that is set for the ACK output time. Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit FQ2-S4 User’s Manual...
  • Page 321 This signal is the trigger for clearing measurement values. Set the IN0 to IN6 signals, wait for at least 5 ms, and then turn ON the IN7 signal. FQ2-S4 User’s Manual Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit...
  • Page 322 IN0 to IN6 1000001 signals Allow 5 ms min. and then turn ON IN7. ON for 1 ms min. IN7 signal ACK signal ACK output time Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit FQ2-S4 User’s Manual...
  • Page 323 This signal is the trigger for clearing an error. Set the IN0 to IN6 signals, wait for at least 5 ms, and then turn ON the IN7 signal. FQ2-S4 User’s Manual Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit...
  • Page 324 This signal is ON during re-registration of the model and reference color. When the command has been completed normally, this signal is turned ON for the time that is set for the ACK output time. Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit FQ2-S4 User’s Manual...
  • Page 325 This signal is ON while teaching is being executed. When the command has been completed normally, this signal is turned ON for the time that is set for the ACK output time. FQ2-S4 User’s Manual Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit...
  • Page 326 IN0 to IN6 1000010 signals Allow 5 ms min. ON for 1 ms min. and then turn ON IN7. IN7 signal ACK signal ACK output time Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit FQ2-S4 User’s Manual...
  • Page 327 This signal is the trigger for clearing the OR and D signals. Set the IN0 to IN6 signals, wait for at least 5 ms, and then turn ON the IN7 signal. FQ2-S4 User’s Manual Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit...
  • Page 328 This signal is the trigger for saving data in the Sensor. Set the IN0 to IN6 signals, wait for at least 5 ms, and then turn ON the IN7 signal. Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit FQ2-S4 User’s Manual...
  • Page 329: Connecting Through Ethernet

    Connecting through Ethernet 9-1 Introduction ..........328 9-2 Outputting Data and Controlling Operation through EtherNet/IP .
  • Page 330: Introduction

    8-2 Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit: p. 302 If an RS-232C Sensor Data Unit is mounted, you can transfer data through an RS-232C connection using TCP no- protocol commands. 10. Connecting with RS-232C: p. 445 Introduction FQ2-S4 User’s Manual...
  • Page 331: Outputting Data And Controlling Operation Through Ethernet/Ip

    Test the operation under actual conditions before you start actual operation of the system. FQ2-S4 User’s Manual Outputting Data and Controlling Operation through EtherNet/IP...
  • Page 332 The memory locations that are used to exchange data across a connection are specified as tags. You can specify memory addresses or variables for tags. A group of tags consists of an output tag set and an input tag set. Outputting Data and Controlling Operation through EtherNet/IP FQ2-S4 User’s Manual...
  • Page 333: Fq2 Communications For Ethernet/Ip Connections

    The FQ2 complies with EtherNet/IP conformance test version A8. To connect to OMRON Controllers and communicate through EtherNet/IP, you use the Network Configurator to set up tag data links (i.e., tags, tag sets, and connection settings).
  • Page 334 After a single measurement or continuous measurements, the data is automatically stored in the output area (i.e., I/O memory addresses or variable) that is specified for the input tag in the PLC via the connection from the Vision Sensor to the PLC. Outputting Data and Controlling Operation through EtherNet/IP FQ2-S4 User’s Manual...
  • Page 335 • Output data 0 to 64 • Character string to output The response area (2) and output area (3) are assigned to continuous memory addresses or to a variable. FQ2-S4 User’s Manual Outputting Data and Controlling Operation through EtherNet/IP...
  • Page 336 NJ501 or NJ301 Compatible CJ1W-EIP21 SYSMAC CJ2 CJ2H or CJ2M Compatible (model with CJ1W-EIP21 built-in port only) SYSMAC CJ1 CJ1H or CJ1G CJ1W-EIP21 CJ1M CJ1W-EIP21 SYSMAC CS CS1H, CS1D, or CS1G CS1W-EIP21 Outputting Data and Controlling Operation through EtherNet/IP FQ2-S4 User’s Manual...
  • Page 337: Setting Up Ethernet/Ip Communications

    (Setup Mode) − [Sensor settings] − [Data output] − [Link data output] Press [Communication type]. Press [EtherNet/IP]. Set the EtherNet/IP communications parameters as [Handshake setting] Set to [Yes] described in the following table. [Handshake setting] Set to [No] FQ2-S4 User’s Manual Outputting Data and Controlling Operation through EtherNet/IP...
  • Page 338 • The smaller the setting of this parameter is, the more the measurement processing time will be affected. For the lowest setting of 4 ms, the processing time will increase by approximately 5% to 10%. Outputting Data and Controlling Operation through EtherNet/IP FQ2-S4 User’s Manual...
  • Page 339 Set the time that is required for the PLC to read the measurement results. Important Set the cycle time of the PLC so that it is longer than the packet interval (RPI). FQ2-S4 User’s Manual Outputting Data and Controlling Operation through EtherNet/IP...
  • Page 340: Tag Data Link Setting Methods

    • To connect the FQ2 to an NJ/CJ-series CPU Unit, install the EDS file that defines the connection information for the FQ2 in the Network Configurator. Download the EDS file from the OMRON website. • After tag data links are set, the Vision Sensor will automatically be restarted to enable the settings.
  • Page 341 Although the data size can be set as high as 502 bytes, with the current version use the default setting of 20 bytes. The packet interval (RPI) is set in the connection settings between the PLC and the Sensor. No setting is required here. FQ2-S4 User’s Manual Outputting Data and Controlling Operation through EtherNet/IP...
  • Page 342 • The following assembly object is required to specify instances when the EDS file is not used. Assembly Object Settings Parameter name Setting Remarks Instance ID Output connection Input connection Outputting Data and Controlling Operation through EtherNet/IP FQ2-S4 User’s Manual...
  • Page 343: Setting The Data To Output Automatically After Measurements

    To register something to data 1 and higher, repeat this process. The settings will be enabled after you restart the Sensor. FQ2-S4 User’s Manual Outputting Data and Controlling Operation through EtherNet/IP...
  • Page 344 Format: LPC(start_number,number_of_data,data_1, data_2,...data_5) You can omit data 2 to data 5. To register something to data 1 and higher, repeat this process. The settings will be enabled after you restart the Sensor. Outputting Data and Controlling Operation through EtherNet/IP FQ2-S4 User’s Manual...
  • Page 345 Output data 15 (4 bytes) I0.SY[3] (Reference SY 4th point) Note The inspection results will be output according to the sorting method that is set for multi-point output for the inspec- tion item. FQ2-S4 User’s Manual Outputting Data and Controlling Operation through EtherNet/IP...
  • Page 346 Inspection item 2: Position Y 1st point for Shape Search II Inspection item 2: Position X 10th point for Shape Search II Inspection item 2: Position Y 10th point for Shape Search II Outputting Data and Controlling Operation through EtherNet/IP FQ2-S4 User’s Manual...
  • Page 347 72 bytes The previous data will be Output data 7 bytes overwritten. Adjust the Zeros are written to timing with handshaking to unused bytes. get the data. Output data 63 FQ2-S4 User’s Manual Outputting Data and Controlling Operation through EtherNet/IP...
  • Page 348 1 to 128 for OCR Sets the output range. 1 to 1024 for Bar code, 2D- code, or 2D-code (DPM) NG String output on/off Yes (default) Sets whether to output an NG string. Outputting Data and Controlling Operation through EtherNet/IP FQ2-S4 User’s Manual...
  • Page 349 Inspection item 0: Characters “ABC” ‘B’ ‘C’ ‘0’ Inspection item 1: Characters “0123” ‘1’ ‘2’ ‘3’ Filled with zeros. (Only when the character string length is not a multiple of 4.) FQ2-S4 User’s Manual Outputting Data and Controlling Operation through EtherNet/IP...
  • Page 350: Memory Assignments And Commands

    Turn ON this signal to turn OFF the error (ERR) signal Command/ from the Vision Sensor. response com- munications Turn OFF this signal from the PLC when the error (ERR) signal goes OFF. Outputting Data and Controlling Operation through EtherNet/IP FQ2-S4 User’s Manual...
  • Page 351 This signal turns OFF when overall judgement is OK. Error This signal turns ON when an error is detected in the Sensor status Vision Sensor. change output This signal is OFF while the Vision Sensor is operating normally. FQ2-S4 User’s Manual Outputting Data and Controlling Operation through EtherNet/IP...
  • Page 352 Response data Response data This I/O port contains the response data of the executed command. Important If measurements are executed in parallel, the EtherNet/IP BUSY signal will also turn ON. Outputting Data and Controlling Operation through EtherNet/IP FQ2-S4 User’s Manual...
  • Page 353 Output data size setting as follows: 32 bytes: Output data 0 to 7 64 bytes: Output data 0 to 15 128 bytes: Output data 0 to 31 256 bytes: Output data 0 to 63 FQ2-S4 User’s Manual Outputting Data and Controlling Operation through EtherNet/IP...
  • Page 354 U_EIPFlag The data type that was defined above (1) CommandCode DWORD 32-bit bit string data CommandParam1 UDINT 32-bit integer data CommandParam2 UDINT 32-bit integer data CommandParam3 DINT 32-bit integer data Outputting Data and Controlling Operation through EtherNet/IP FQ2-S4 User’s Manual...
  • Page 355 − − − − − − − GATE Flag Command code Command CodeEcho Response code Response Code Response data Response Data S_EIP Output Area Input Bits DATA0 Output Data DATA8 FQ2-S4 User’s Manual Outputting Data and Controlling Operation through EtherNet/IP...
  • Page 356 The defined variables are used to access the communications areas for the Sensor using the following notation. • Command Area Signal name Variable name EIPOutput.ControlFlag.F[0] TRIG EIPOutput.ControlFlag.F[1] ERCLR EIPOutput.ControlFlag.F[15] EIPOutput.ControlFlag.F[16] Command code EIPOutput.CommandCode Command parameter 1 EIPOutput.CommandParam1 Command parameter 2 EIPOutput.CommandParam2 Command parameter 3 EIPOutput.CommandParam3 Outputting Data and Controlling Operation through EtherNet/IP FQ2-S4 User’s Manual...
  • Page 357 Set the connections as shown in the following table. Originator device (PLC) settings Target device (Sensor) settings Input tag set: D0 Output tag set: Input101 Output tag set: D100 Input tag set: Output100 FQ2-S4 User’s Manual Outputting Data and Controlling Operation through EtherNet/IP...
  • Page 358 Command code in Command name Function Reference command area (hex) 00201000 Get Scene Number Acquires the current scene number. p. 362 00301000 Select Scene Changes to the specified scene number. p. 362 Outputting Data and Controlling Operation through EtherNet/IP FQ2-S4 User’s Manual...
  • Page 359 The measurement results are written to the output area if data output is set. The measurement results are not output if data output is not set. Setting the Data To Output Automatically after Measurements: p. 341 FQ2-S4 User’s Manual Outputting Data and Controlling Operation through EtherNet/IP...
  • Page 360 The command code for which the 0000 0000 0001 0000 response applies is stored. 0000 0000 0000 0000 Response code Command execution result 0000 0000 0000 0000 0: OK, FFFFFFFF: NG Outputting Data and Controlling Operation through EtherNet/IP FQ2-S4 User’s Manual...
  • Page 361 The command code for which the 0000 0000 0001 0000 response applies is stored. 0000 0000 0000 0000 Response code Command execution result 0000 0000 0000 0000 0: OK, FFFFFFFF: NG FQ2-S4 User’s Manual Outputting Data and Controlling Operation through EtherNet/IP...
  • Page 362 The command code for which the 0000 0000 0000 0000 response applies is stored. 0000 0000 0000 0000 Response code Command execution result 0000 0000 0000 0000 0: OK, FFFFFFFF: NG 0000 0000 0000 0000 Outputting Data and Controlling Operation through EtherNet/IP FQ2-S4 User’s Manual...
  • Page 363 Command execution result 0000 0000 0000 0000 0: OK, FFFFFFFF: NG 0000 0000 0000 0000 Response data Latest error code 0000 0000 0000 0000 Errors Stored in the Error History p. 452 FQ2-S4 User’s Manual Outputting Data and Controlling Operation through EtherNet/IP...
  • Page 364 The command code for which the 0000 0000 0011 0000 response applies is stored. 0000 0000 0000 0000 Response code Command execution result 0000 0000 0000 0000 0: OK, FFFFFFFF: NG Outputting Data and Controlling Operation through EtherNet/IP FQ2-S4 User’s Manual...
  • Page 365 0000 0000 0000 0000 0000 0000 0000 0000 Data number 0000 0000 0000 0000 0000 0000 0000 0000 Acquired data (1,000 times the value) 0000 0000 0000 0000 FQ2-S4 User’s Manual Outputting Data and Controlling Operation through EtherNet/IP...
  • Page 366 0000 0000 0000 Response code Command execution result 0000 0000 0000 0000 0: OK, FFFFFFFF: NG 0000 0000 0000 0000 Acquired data (1,000 times the value) 0000 0000 0000 0000 Outputting Data and Controlling Operation through EtherNet/IP FQ2-S4 User’s Manual...
  • Page 367 0000 Response code Command execution result 0000 0000 0000 0000 0: OK, FFFFFFFF: NG 0000 0000 0000 0000 Response data Software version (1,000 times the 0000 0000 0000 0000 value) FQ2-S4 User’s Manual Outputting Data and Controlling Operation through EtherNet/IP...
  • Page 368: Timing Chart For Ethernet/Ip Communications

    (3) The TRIG signal turns OFF when the BUSY signal turns ON. (4) The OR of the measurement results is output when measurements are completed. (5) The BUSY signal turns OFF when the BUSY output condition is met. Outputting Data and Controlling Operation through EtherNet/IP FQ2-S4 User’s Manual...
  • Page 369 When the Vision Sensor detects that the Control Command Execution Bit (EXE) signal is OFF, it automatically turns OFF the Control Command Completed (FLG) signal and the Command Execution Active (BUSY) signal, and turns ON the READY signal. FQ2-S4 User’s Manual Outputting Data and Controlling Operation through EtherNet/IP...
  • Page 370 Control Command Completed (FLG) signal. The BUSY signal remains ON until continuous measurements are completed. During continuous measurements, an OR of the measurement results is output each time a measurement is completed. Outputting Data and Controlling Operation through EtherNet/IP FQ2-S4 User’s Manual...
  • Page 371 Response Completed hold time. Area (GATE) signal Output data 1 to 64 (DATA1 to DATA64) Output Area Here, the Vision Sensor ends measurements and can output data. FQ2-S4 User’s Manual Outputting Data and Controlling Operation through EtherNet/IP...
  • Page 372 Sensor or increase the measurement interval. These are the connection settings for tag data links. Make these settings from the Network Configurator. Outputting Data and Controlling Operation through EtherNet/IP FQ2-S4 User’s Manual...
  • Page 373: Sample Ladder Programming

    ● Data Output after Measurements When Handshaking Is Enabled Data Output Execution Completed (GATE) condition Data Output Request Bit (DSA) Data Output Completed (GATE) RSET Data Output Request Bit (DSA) FQ2-S4 User’s Manual Outputting Data and Controlling Operation through EtherNet/IP...
  • Page 374: Plc Link Connections

    PLC. PLC (master) Vision Sensor (slave) CPU Unit After measurements I/O memory (Communications area) Data Output area Up to 256 specified data items can be automatically output. Output character string Ethernet (PLC Link communications) PLC Link Connections FQ2-S4 User’s Manual...
  • Page 375 • An FQ2 Sensor operates as a TCP server. Therefore, the TCP connection must be made from the PLC. Refer to the manual for the PLC for TCP connection methods. • The port number on the FQ2 Vision Sensor is always 9877. FQ2-S4 User’s Manual PLC Link Connections...
  • Page 376 QJ71E71-B5 Q10UDECPU, Q13UDECPU, Q20UDECPU, Q26UDECPU QnUDCPU Q03UDCPU, Q04UDCPU, Q06UDCPU, Q10UDCPU, Q13UDCPU, Q20UDCPU, Q26UDCPU QnUCPU Q00UJCPU, Q00UCPU, Q01UCPU, Q02UCPU Basic model QnCPU Q00JCPU, Q00CPU, Q01CPU MELSEC-Q High-performance QCPU Q02CPU, Q02HCPU, A1SJ71QE71N3-T model Q06HCPU, Q12HCPU, Q25HCPU PLC Link Connections FQ2-S4 User’s Manual...
  • Page 377: Setting Up Plc Link Communications

    Press [Command], [Response], and [Output] and set the memory area ([Area type]) and first word ([Ad- dress]) in the I/O memory of the PLC to allocate to each of these communications areas. When you are finished, press [Back]. FQ2-S4 User’s Manual PLC Link Connections...
  • Page 378 PLC Link communications. Set the number of bytes. Any Default: 256 bytes output data that is beyond this value is discarded. Connection mode Sets the TPC connection mode. TCP server or TCP client Default: TCP server PLC Link Connections FQ2-S4 User’s Manual...
  • Page 379: Setting The Data To Output Automatically After Measurements

    The following procedure shows how to assign the measured position X of [0. Search] to data 0 for a binary output. [In/Out] − [I/O setting] − [Output data setting] − [Link data output] − [Output data set] Press [0. Data 0]. Press [Data setting]. Press [I0. Search]. Press [Position X X]. FQ2-S4 User’s Manual PLC Link Connections...
  • Page 380 Used to select the inspection items for which to output data and insert the parameters to output into the expression. Example: Selecting Parameters for the Search Item at Inspection Item 0 Inspection item: I0. Search Judgement result: Judgement JG, Correlation: Corre. CR PLC Link Connections FQ2-S4 User’s Manual...
  • Page 381 Data is output for each detected measurement point. Format: LPC(start_number,number_of_data,data_1, data_2,...data_5) You can omit data 2 to data 5. To register something to data 1 and higher, repeat this process. The settings will be enabled after you restart the Sensor. FQ2-S4 User’s Manual PLC Link Connections...
  • Page 382 I0.SX[3] (Reference SX 4th point) Output data 15 (4 bytes) I0.SY[3] (Reference SY 4th point) Note The inspection results will be output according to the sorting method that is set for multi-point output for the inspec- tion item. PLC Link Connections FQ2-S4 User’s Manual...
  • Page 383 The output data that is assigned is output to the output area as shown below. Any output data that exceeds the set value of the [Max output data] (number of output data upper value) parameter setting (256 bytes) is discarded. FQ2-S4 User’s Manual PLC Link Connections...
  • Page 384 Set either a floating point decimal or a fixed decimal for the output form. Item Description Setting range Output form Set the output form for numerical data. Floating point or fixed point (default: fixed point) PLC Link Connections FQ2-S4 User’s Manual...
  • Page 385 Read result 1: ABC Read result 2: 0123 [Data output] − [Data 0]: 3 (Number of characters: 1) [Data output] − [Data 1]: 4 (Number of characters: 2) The following information will be output for the above. FQ2-S4 User’s Manual PLC Link Connections...
  • Page 386 Inspection item 1: Number of characters ‘A’ Inspection item 0: Characters “ABC” ‘B’ ‘C’ ‘0’ Inspection item 1: Characters “0123” ‘1’ ‘2’ ‘3’ Filled with zeros. (Only when the character string length is not a multiple of 4.) PLC Link Connections FQ2-S4 User’s Manual...
  • Page 387: Memory Assignments For Plc Link Communications

    Turn OFF this signal from PLC when the error (ERR) signal goes OFF. Command code Command code This I/O port stores the command code. Command/ Response Commu- Parameters 1 to Command parameters These I/O ports store the command parameters. nications FQ2-S4 User’s Manual PLC Link Connections...
  • Page 388 This signal turns ON when the Vision Sensor Data output after finishes outputting data. measurements If handshaking is enabled, the GATE signal turns OFF automatically when you turn OFF the Data Output Request (DSA) signal from the PLC. PLC Link Connections FQ2-S4 User’s Manual...
  • Page 389 Note If the size of data that is output exceeds the set value of the number of output data upper value setting, the remain- ing data will be discarded. Allocating Output Data p. 381 FQ2-S4 User’s Manual PLC Link Connections...
  • Page 390 First word of com- Command name Function Reference mand area (hex) 1000 0020 Get Scene Number Acquires the current scene number. p. 393 1000 0030 Select Scene Changes to the specified scene number. p. 393 PLC Link Connections FQ2-S4 User’s Manual...
  • Page 391 The measurement results are written to the output area if data output is set. The measurement results are not output if data output is not set. Setting the Data To Output Automatically after Measurements: p. 377 FQ2-S4 User’s Manual PLC Link Connections...
  • Page 392 0000 Command code The command code for which the 0000 0000 0001 0000 response applies is stored. 0000 0000 0000 0000 Response code Command execution result 0000 0000 0000 0000 0: OK, FFFFFFFF: NG PLC Link Connections FQ2-S4 User’s Manual...
  • Page 393 Command (PLC to Vision Sensor) First word of Bits Contents command 12 to 15 8 to 11 4 to 7 0 to 3 area 0100 0000 0001 0000 Command code 0000 0000 0001 0000 FQ2-S4 User’s Manual PLC Link Connections...
  • Page 394 0001 0000 Response (Vision Sensor to PLC) First word of Bits Contents response area 12 to 15 8 to 11 4 to 7 0 to 3 There is no response for a reset operation. PLC Link Connections FQ2-S4 User’s Manual...
  • Page 395 0000 Command code The command code for which the 0000 0000 0011 0000 response applies is stored. 0000 0000 0000 0000 Response code Command execution result 0000 0000 0000 0000 0: OK, FFFFFFFF: NG FQ2-S4 User’s Manual PLC Link Connections...
  • Page 396 0000 0000 0000 0000 0000 0000 0000 0000 Data number 12-2 External Reference 0000 0000 0000 0000 Parameters p. 491 0000 0000 0000 0000 Acquired data (1,000 times the value) 0000 0000 0000 0000 PLC Link Connections FQ2-S4 User’s Manual...
  • Page 397 0000 0000 0000 0000 Response code Command execution result 0000 0000 0000 0000 0: OK, FFFFFFFF: NG 0000 0000 0000 0000 Acquired data (1,000 times the value) 0000 0000 0000 0000 FQ2-S4 User’s Manual PLC Link Connections...
  • Page 398 0000 0000 0000 0000 Response code Command execution result 0000 0000 0000 0000 0: OK, FFFFFFFF: NG 0000 0000 0000 0000 Response data Software version (1,000 times the 0000 0000 0000 0000 value) PLC Link Connections FQ2-S4 User’s Manual...
  • Page 399 Response code Command execution result 0000 0000 0000 0000 0: OK, FFFFFFFF: NG 0000 0000 0000 0000 Response data Latest error code 0000 0000 0000 0000 Errors Stored in the Error History p. 452 FQ2-S4 User’s Manual PLC Link Connections...
  • Page 400: Timing Chart For Plc Link Communications

    PLC Link settings, the Control Command Completed (FLG) signal and Command Execution Active (BUSY) signal will be forced Response data OFF. Control Command Completed (FLG) signal (5) (6) PLC Link Connections FQ2-S4 User’s Manual...
  • Page 401 1. Data is output automatically when the Output data 0 to Vision Sensor completes a measurement. 255 (DATA0 to * The PLC turns ON the Control DATA255) Command Completed (FLG) signal and then gets the output data. FQ2-S4 User’s Manual PLC Link Connections...
  • Page 402: Sample Ladder Programming

    I/O and use PLC Link communications to output data. ● Data Output after Measurements When Handshaking Is Enabled Data Output Execution Completed (GATE) condition Data Output Request Bit (DSA) Data Output Completed (GATE) RSET Data Output Request Bit (DSA) PLC Link Connections FQ2-S4 User’s Manual...
  • Page 403: Controlling Operation And Outputting Data With Tcp No-Protocol Communications

    ASCII or binary format through a continuous serial connection. There is no handshaking from the external device to confirm if it can receive the data. FQ2-S4 User’s Manual Controlling Operation and Outputting Data with TCP No-protocol Communications...
  • Page 404: Setting Up No-Protocol Communications

    0 to 255 Set it in the form a.b.c.d. Default: 10.5.5.1 Note If you connect an external OMRON CS/ CJseries PLC to Ethernet, the following default IP address is assigned to the PLC. • IP address: 192.168.250.node_address Port No.
  • Page 405: Setting The Data To Output Automatically After Measurements

    To register something to data 1 and higher, repeat this process. The settings will be enabled after you restart the Sen- sor. FQ2-S4 User’s Manual Controlling Operation and Outputting Data with TCP No-protocol Communications...
  • Page 406 You can omit data 2 to data 5. To register something to data 1 and higher, repeat this process. The settings will be enabled after you restart the Sensor. Controlling Operation and Outputting Data with TCP No-protocol Communications FQ2-S4 User’s Manual...
  • Page 407 I0.SX[3] (Reference SX 4th point) I0.SY[3] (Reference SY 4th point) *1 The inspection results will be output according to the sorting method that is set for multi-point output for the inspection item. FQ2-S4 User’s Manual Controlling Operation and Outputting Data with TCP No-protocol Communications...
  • Page 408 OFF, comma, tab, space, CR, LF, separator or CR+LF Default: OFF For Binary Decimal Set the decimal output form for numerical Floating point or fixed point output form data. (default: Fixed point) Controlling Operation and Outputting Data with TCP No-protocol Communications FQ2-S4 User’s Manual...
  • Page 409 4 bytes 4 bytes 4 bytes Delimiter The measurement data multiplied by 1,000 is output continuously at 4 bytes per data. Negative numbers are output as two’s complements. FQ2-S4 User’s Manual Controlling Operation and Outputting Data with TCP No-protocol Communications...
  • Page 410 Sets whether to specify the range of characters to output. Output string setup 1 to 128 for OCR Sets the output range. 1 to 1024 for Bar code, 2D- code, or 2D-code (DPM) Controlling Operation and Outputting Data with TCP No-protocol Communications FQ2-S4 User’s Manual...
  • Page 411: Controlling The Sensor From An External Device (Procedure For No-Protocol Command/Response Communications)

    Place a delimiter at the end of the command. No space is required before the delimiter. The delimiter is always CR. <Command Format> Command Parameter 1 Parameter 2 Parameter 3 Space Space Space Delimiter (0x20) (0x20) (0x20) FQ2-S4 User’s Manual Controlling Operation and Outputting Data with TCP No-protocol Communications...
  • Page 412 • The number of parameters is incorrect. • The parameter range is incorrect. • The parameter content is incorrect. • Operation could not be performed normally for the operation command. Controlling Operation and Outputting Data with TCP No-protocol Communications FQ2-S4 User’s Manual...
  • Page 413: Command List

    426 tion of the Sensor software. VERGET/H None Acquires the Sensor model p. 427 information. ERRGET None Acquires the latest error code p. 428 of the Sensor. FQ2-S4 User’s Manual Controlling Operation and Outputting Data with TCP No-protocol Communications...
  • Page 414 The measurement result is output as the response when data output is set. The measurement result is not output when data output is not set. Setting the Data To Output Automatically after Measurements: p. 403 Controlling Operation and Outputting Data with TCP No-protocol Communications FQ2-S4 User’s Manual...
  • Page 415 The measurement result is not output when data output is not set. Setting the Data To Output Automatically after Measurements: p. 403 FQ2-S4 User’s Manual Controlling Operation and Outputting Data with TCP No-protocol Communications...
  • Page 416 Set the data output to output measurement results. If data output is not set, only the command response is output. Setting the Data To Output Automatically after Measurements: p. 403 Controlling Operation and Outputting Data with TCP No-protocol Communications FQ2-S4 User’s Manual...
  • Page 417 Clear Measurement Values This command clears the measurement values. <Command Format> Command Delimiter <Response Format> When the Command Is Processed Normally Delimiter When the Command Is Not Processed Normally Delimiter FQ2-S4 User’s Manual Controlling Operation and Outputting Data with TCP No-protocol Communications...
  • Page 418 This command saves the current system data and scene groups to the Sensor. <Command Format> Command Delimiter <Response Format> When the Command Is Processed Normally Delimiter When the Command Is Not Processed Normally Delimiter Controlling Operation and Outputting Data with TCP No-protocol Communications FQ2-S4 User’s Manual...
  • Page 419 When the Command Is Processed Normally If process is completed normally, the Sensor is restarted. There is therefore no response. When the Command Is Not Processed Normally Delimiter FQ2-S4 User’s Manual Controlling Operation and Outputting Data with TCP No-protocol Communications...
  • Page 420 This command acquires the scene number currently being used. <Command Format> Delimiter Delimiter <Response Format> When the Command Is Processed Normally Delimiter Scene number (2 digits max.) Delimiter Controlling Operation and Outputting Data with TCP No-protocol Communications FQ2-S4 User’s Manual...
  • Page 421 When the Command Is Processed Normally Delimiter When the Command Is Not Processed Normally Delimiter <Parameter Descriptions> Scene number Specifies the scene number (0 to 31) to change to. FQ2-S4 User’s Manual Controlling Operation and Outputting Data with TCP No-protocol Communications...
  • Page 422 Specifies the external reference data number. number 12-2 External Reference Parameters: p. 491 Acquired value Returns the image adjustment data or threshold value. 12-2 External Reference Parameters: p. 491 Controlling Operation and Outputting Data with TCP No-protocol Communications FQ2-S4 User’s Manual...
  • Page 423 External reference data Specifies the external reference data number. number 12-2 External Reference Parameters: p. 491 Set value Specifies the set value. 12-2 External Reference Parameters: p. 491 FQ2-S4 User’s Manual Controlling Operation and Outputting Data with TCP No-protocol Communications...
  • Page 424 Specifies the external reference data number. (0 to 9999) number 12-2 External Reference Parameters: p. 491 Acquired value Returns the data for the specified inspection item. 12-2 External Reference Parameters: p. 491 Controlling Operation and Outputting Data with TCP No-protocol Communications FQ2-S4 User’s Manual...
  • Page 425 Specifies the external reference data number. (0 to 9999) number 12-2 External Reference Parameters: p. 491 Acquired value Returns the data for the specified inspection item. 12-2 External Reference Parameters: p. 491 FQ2-S4 User’s Manual Controlling Operation and Outputting Data with TCP No-protocol Communications...
  • Page 426 Refer to 12-2 External Reference Parameters p. 491 for details. Acquired text string Returns the text string data for the specified inspection item. Refer to 12-2 External Reference Parameters p. 491 for details. Controlling Operation and Outputting Data with TCP No-protocol Communications FQ2-S4 User’s Manual...
  • Page 427 Refer to 12-2 External Reference Parameters p. 491 for details. Text string data Specifies the text string data for the specified inspection item. Refer to 12-2 External Reference Parameters p. 491 for details. FQ2-S4 User’s Manual Controlling Operation and Outputting Data with TCP No-protocol Communications...
  • Page 428 Returns the software version. Example: When the software version is 1.60, the response is 1.60. Date Returns the date. Example: When the date is 13 May 2012, the response is 2012/05/13. Controlling Operation and Outputting Data with TCP No-protocol Communications FQ2-S4 User’s Manual...
  • Page 429 F CR Delimiter Delimiter When the Command Is Not Processed Normally Delimiter <Parameter Descriptions> Model Returns the model. Example: When the model is FQ2-S40010F, the response is FQ2-S40010F. FQ2-S4 User’s Manual Controlling Operation and Outputting Data with TCP No-protocol Communications...
  • Page 430 When the Command Is Not Processed Normally Delimiter <Parameter Descriptions> Error code Returns the latest error code. If there is no error history, the response is 00000000. 11-1 Error Histories: p. 452 Controlling Operation and Outputting Data with TCP No-protocol Communications FQ2-S4 User’s Manual...
  • Page 431 ITEMDATA 100 Single-byte space Example 3: Measurement when Data Output Is Not Set Example 4: Measurement when Data Output Is Set 1.0000 0.0000 0.0000 306.0000 2.0000 0.0000 0.0000 0.0000 FQ2-S4 User’s Manual Controlling Operation and Outputting Data with TCP No-protocol Communications...
  • Page 432: Controlling Operation And Outputting Data With Fins/Tcp No-Protocol Commands

    Range for Receiving FINS Commands The FQ2 can receive FINS commands that are sent by an OMRON CPU Unit on the same Ethernet network. The FQ2 can send responses to the received commands to the CPU Unit that sent the commands.
  • Page 433: Setting Up Communications (Fins/Tcp)

    MRC (1 byte) SRC (1 byte) 00101010 Setting Up Communications (FINS/TCP) Communications are set up in the same way as for TCP no-protocol communications. Setting Up No-protocol Communications p. 402 FQ2-S4 User’s Manual Controlling Operation and Outputting Data with FINS/TCP No-protocol Commands...
  • Page 434: List Of Fins Commands

    Sets the inspection item data. p.442 280F 00403000 Acquires the version information of the Sensor p.443 software. 280F 00205000 Acquires the latest error code of the Sensor. p.443 Controlling Operation and Outputting Data with FINS/TCP No-protocol Commands FQ2-S4 User’s Manual...
  • Page 435: Fins Command Details

    Setting the Data To Output Automatically after Measurements: p. 433 • Each data item requires 4 bytes. Up to 1,024 bytes of data can be received. FQ2-S4 User’s Manual Controlling Operation and Outputting Data with FINS/TCP No-protocol Commands...
  • Page 436 (1 byte) (1 byte) (4 bytes) End code 00102040 ● End Codes End code (hex) Meaning 0000 Command execution ended normally. FFFF Command execution ended in an error. Controlling Operation and Outputting Data with FINS/TCP No-protocol Commands FQ2-S4 User’s Manual...
  • Page 437 (1 byte) (1 byte) (4 bytes) End code 00104010 ● End Codes End code (hex) Meaning 0000 Command execution ended normally. FFFF Command execution ended in an error. FQ2-S4 User’s Manual Controlling Operation and Outputting Data with FINS/TCP No-protocol Commands...
  • Page 438 (1 byte) (1 byte) (4 bytes) End code 00104020 ● End Codes End code (hex) Meaning 0000 Command execution ended normally. FFFF Command execution ended in an error. Controlling Operation and Outputting Data with FINS/TCP No-protocol Commands FQ2-S4 User’s Manual...
  • Page 439 0000 Command execution ended normally. FFFF Command execution ended in an error. ● Parameter Descriptions Scene number Returns the acquired scene number (the number of the current scene). FQ2-S4 User’s Manual Controlling Operation and Outputting Data with FINS/TCP No-protocol Commands...
  • Page 440 Meaning 0000 Command execution ended normally. FFFF Command execution ended in an error. ● Parameter Descriptions Scene number Specifies the scene number (0 to 31) to change to. Controlling Operation and Outputting Data with FINS/TCP No-protocol Commands FQ2-S4 User’s Manual...
  • Page 441 External reference num- Specifies the external reference number. 12-2 External Reference Parameters: p. 491 Acquired value Returns the image adjustment data or threshold value. 12-2 External Reference Parameters: p. 491 FQ2-S4 User’s Manual Controlling Operation and Outputting Data with FINS/TCP No-protocol Commands...
  • Page 442 External reference num- Specifies the external reference number. 12-2 External Reference Parameters: p. 491 Set value Specifies the set value. 12-2 External Reference Parameters: p. 491 Controlling Operation and Outputting Data with FINS/TCP No-protocol Commands FQ2-S4 User’s Manual...
  • Page 443 External reference num- Specifies the external reference number. 12-2 External Reference Parameters: p. 491 Acquired value Returns the data for the specified inspection item. 12-2 External Reference Parameters: p. 491 FQ2-S4 User’s Manual Controlling Operation and Outputting Data with FINS/TCP No-protocol Commands...
  • Page 444 Specifies the number of the inspection item to set. External reference num- Specifies the external reference number. 12-2 External Reference Parameters: p. 491 Setting Specifies the set value. 12-2 External Reference Parameters: p. 491 Controlling Operation and Outputting Data with FINS/TCP No-protocol Commands FQ2-S4 User’s Manual...
  • Page 445 00205000 Error code ● Parameter Descriptions Error code Returns the latest error code. If there is no error record, the response is 00000000. 11-1 Error Histories: p. 452 FQ2-S4 User’s Manual Controlling Operation and Outputting Data with FINS/TCP No-protocol Commands...
  • Page 446 MEMO Controlling Operation and Outputting Data with FINS/TCP No-protocol Commands FQ2-S4 User’s Manual...
  • Page 447: Connecting With Rs-232C

    Connecting with RS-232C 10-1 Introduction to RS-232C Connections ..........446 10-2 Controlling Operation and Outputting Data with RS-232C No-proto- col Communications ...................447...
  • Page 448: Introduction To Rs-232C Connections

    You can use the ACK signal in the parallel outputs. Refer to the following section for the specifications of the ACK signal. 8-2 Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit: p. 302 Introduction to RS-232C Connections FQ2-S4 User’s Manual...
  • Page 449: Controlling Operation And Outputting Data With Rs-232C No-Protocol Communications

    ASCII or binary format through a continuous serial connection. There is no handshaking from the external device to confirm if it can receive the data. FQ2-S4 User’s Manual Controlling Operation and Outputting Data with RS-232C No-protocol Communications...
  • Page 450: Setting Up No-Protocol Communications

    RS-232C communications parameters. [Sensor settings] − [Data output] − [No-protocol data] Press [Communication type] − [No protocol (RS-232C)]. Set the RS-232C communications parameters. Note If you connect to an OMRON PLC, set the PLC to Host Link communications. Item Description Parameter Baud rate [bps] Set the baud rate to use for RS-232C communications.
  • Page 451: Setting The Data To Output Automatically After Measurements

    You can send commands from an external device to control the Sensor. The commands and the command formats are the same as for no-protocol communications for an Ethernet connection. Controlling the Sensor from an External Device: p. 409 FQ2-S4 User’s Manual Controlling Operation and Outputting Data with RS-232C No-protocol Communications...
  • Page 452 MEMO Controlling Operation and Outputting Data with RS-232C No-protocol Communications FQ2-S4 User’s Manual...
  • Page 453: Troubleshooting

    Troubleshooting 11-1 Error Histories ......... . 452 11-2 Error Messages .
  • Page 454: Error Histories

    SD card. SD card. Note: If an error that is indicated by this icon occurs, the ERROR operation indicator will light and the ERROR signal will turn ON. Error Histories FQ2-S4 User’s Manual...
  • Page 455 (Setup Mode) − [Sensor settings] − [Error history] − [Delete history] • Deleting the History of Errors That Were Detected in the Touch Finder (Setup Mode or Run Mode) − [TF settings] − [Error history] − [Delete history] FQ2-S4 User’s Manual Error Histories...
  • Page 456: Error Messages

    Follow the instructions that are given in the error message. If the following messages appear, the hardware may be faulty. Contact your OMRON representative. • System error. • Application system error. Please reboot.
  • Page 457: Basic Troubleshooting

    61 (FQ2-S4@@@@@/FQ2-S4@@@@@-M When the Brightness Correction Mode is ON, the timing when images only) are taken changes. Check that the images of the measured objects taken when the Brightness Correction Mode is ON are appropriate. FQ2-S4 User’s Manual Basic Troubleshooting...
  • Page 458 MEMO Basic Troubleshooting FQ2-S4 User’s Manual...
  • Page 459: Appendices

    Appendices 12-1 Menu Tables ..........458 12-2 External Reference Parameters....491 12-3 Specifications and Dimensions....550 12-4 Updating the Software......569 12-5 Connecting a Previous Touch Finder (FQ- D30/D31) to the FQ2-S Sensor ......570 12-6 LED Safety..........575 12-7 Requirements from Regulations and Stan- dards ..............576 12-8 Detailed EtherNet/IP Communications Specifications...........580...
  • Page 460: Menu Tables

    Pixel sampling can be applied to the Normal (default) or Fast Scene p. 218 input image to reduce image input time. Shutter speed Sets the shutter speed for Normal Mode. FQ2-S4@-@@@ Scene p. 63 (Normal mode) 1/1 to 1/60,000 FQ2-S4@@@@@-08@...
  • Page 461 Suppression level The range in which to enhance the con- Scene p. 73 (for Background trast and the brightness range to extract Suppression Item are set for the Background Suppression Only) item. FQ2-S4 User’s Manual Menu Tables...
  • Page 462 G: 0 to 255 Color Displays a palette for color specification. palette Detec- Specifies whether to detect a change in Color IN (Default) or Color Scene tion color as an edge. mode Menu Tables FQ2-S4 User’s Manual...
  • Page 463: Inspect Tab Page

    (DPM), Search, Shape Search II, Sensi- item. tive Search, Edge Position, Edge Width, Edge Pitch, Color Data, Area, Labeling Modify p. 95 Delete p. 95 Copy Rename 15 alphanumeric characters FQ2-S4 User’s Manual Menu Tables...
  • Page 464 1 to 10 (default: 3) Scene char. th. of the detection rectangle to judge as thin characters (I, J, 1, :, and /). Continuous test Same as [Continuous test] on the [Test] Tab Page. Scene Menu Tables FQ2-S4 User’s Manual...
  • Page 465 Square (dafault) or Square or Rect. Scene (for Data- Matrix Only) Timeout Sets the timeout time for read pro- 1 to 9999 ms (default: 9999) Scene cessing. Continuous test Same as [Continuous test] on the [Test] Tab Page. Scene FQ2-S4 User’s Manual Menu Tables...
  • Page 466 Reading time is reduced if Fast Mode is used. Timeout Sets the timeout time for read pro- 0 to 9999 ms (default: 9999) Scene cessing. Continuous test Same as [Continuous test] on the [Test] Tab Page. Scene Menu Tables FQ2-S4 User’s Manual...
  • Page 467 Background Specifies the background color of the Black (default), white, red, green, or Scene color extracted image. blue Insp. region Moves the measurement region or Scene p. 181 adjusts the size of the measurement region. FQ2-S4 User’s Manual Menu Tables...
  • Page 468 Scene p. 170 values: Range: −99,999.9999 or 99,999.999 Default: Upper limit: 99,999.9999, Lower limit: −99,999.9999 • When the result type is set to ratios: Range: 0.000 to 999.9999(%) Default: Upper limit: 999.9999, Lower limit: 0.000 Menu Tables FQ2-S4 User’s Manual...
  • Page 469 Y for an OK judgement. upper limit: 99,999.9999, lower limit: −99,999.9999) −180 to 180 (defaults: upper limit: 180, Master angle Sets the upper and lower limits of the Scene lower limit: −180) master angle for an OK judgement. FQ2-S4 User’s Manual Menu Tables...
  • Page 470 183 Auto Automatically adjusts the judgement OK Teach or NG Teach Scene p. 219 adjustment parameters by using actual work- (Except for pieces which are considered as good Labeling and or faulty products. Edge Pitch) Menu Tables FQ2-S4 User’s Manual...
  • Page 471 Sets the beginning and end characters 1 to 1024 (defaults: beginning: 1, end: Scene verif. to verify for each line. 1024) range to Line 4 verif. range Copy Copies or clears registered master Scene data. Delete FQ2-S4 User’s Manual Menu Tables...
  • Page 472 Specifies whether to reflect the judge- Yes (default) or No Scene ment results of an inspection item in the overall judgement. Error string Sets the character string that is output 20 alphanumeric characters (default: Scene for read errors. Menu Tables FQ2-S4 User’s Manual...
  • Page 473 Pos.X descending order, Pos.Y ascend- ing order, Pos.Y descending order Reflect You can specify whether to reflect the None, Yes (default) Scene p. 140 ment results of an inspection item in the overall judgement. FQ2-S4 User’s Manual Menu Tables...
  • Page 474 165, noise. p. 175, p. 171 Reflect You can specify whether to reflect the No, Yes (default), Scene p. 164, judgement results of an inspection p. 175, item in the overall judgement. p. 171 Menu Tables FQ2-S4 User’s Manual...
  • Page 475 Pos. X descending order, Pos. Y ascending order, Pos. Y descending order Reflect You can specify whether to reflect the No, Yes (default), Scene p. 194 judgement results of an inspection item in the overall judgement. FQ2-S4 User’s Manual Menu Tables...
  • Page 476: In/Out Tab Page

    Delete Log Resets the log data without turning OFF System p. 260 the power supply. Menu Tables FQ2-S4 User’s Manual...
  • Page 477 You can change the BUSY indicator to a BUSY (default), RUN System p. 278 RUN indicator. Output control You can select the data output method. None (default), Handshaking, or Sync. System p. 309 (Only when the FQ-SDU1@ is con- Output nected.) FQ2-S4 User’s Manual Menu Tables...
  • Page 478 System p. 316 output signals (Only when the FQ-SDU is connected.) Input mode Specifies whether to use functions other Standard mode (default) or Expanded System p. 293 than scene switching for external parallel mode commands. Menu Tables FQ2-S4 User’s Manual...
  • Page 479 OFF: Spaces are inserted for unused digits. Example: The following examples are for when five integer digits and three decimal digits are set and the data is 100.000. ON: 00100.000 OFF: _100.000 (The underscore indi- cates a space.) FQ2-S4 User’s Manual Menu Tables...
  • Page 480 You can specify whether to reflect the No, Yes (default) Scene p. 305 judgement results of an inspection item in the overall judgement. Data output Sets whether to output the judgement No, Yes (default) Scene p. 305 results. Menu Tables FQ2-S4 User’s Manual...
  • Page 481: Test Tab Page

    Trend Monitor Displays the individual judgement results p. 214 saved in the Sensor in a trend monitor. Histogram Displays the individual judgement results saved in the Sensor in a histogram. FQ2-S4 User’s Manual Menu Tables...
  • Page 482: Run Tab Page (From Setup Display)

    Menu command Description Setting range Data Refer- ence Select scene p. 234 Select Switches to a registered scene. Rename Used to delete, copy, or change the 15 alphanumeric characters name of a scene. Copy Clear Menu Tables FQ2-S4 User’s Manual...
  • Page 483 Calibra- tion sponds to one pixel. tion data Clear Clears the parameter settings for the cal- ibration data. Copy Copies the calibration data. Rename Changes the name of the calibration 15 alphanumeric characters max. data. FQ2-S4 User’s Manual Menu Tables...
  • Page 484 Loads calibration group data. Dictionary data Loads dictionary data. All dictionary data Loads all dictionary data. Sensor system data Loads system data. All Sensor data Loads all Sensor data. Touch Finder data Loads Touch Finder data. Menu Tables FQ2-S4 User’s Manual...
  • Page 485 53 (Valid only when the [IP address setting] (Default: 255.255.255.0) is set to [Fixed].) Gateway Sets the default gateway address. (When 1.0.0.1 to 223.255.255.254 System the [IP address setting] is set to [Fixed].) (Default: 10.5.5.7) FQ2-S4 User’s Manual Menu Tables...
  • Page 486 Auxiliary Bit Area (AR) DM Area (DM) EM Area (EM0 to EMC) PLC Link (MELSEC QnU/Q/QnAS) Data Register File Register Link Register Set the first address of the command 0 to 99,999 (default: 0) System area. Menu Tables FQ2-S4 User’s Manual...
  • Page 487 EtherNet/IP. Timeout Sets the timeout time when handshaking 0.1 to 120.0 s (default: 10 s) System p. 337 is enabled. This can be set only when the communi- cations type is set to EtherNet/IP. FQ2-S4 User’s Manual Menu Tables...
  • Page 488 [Comm. type] is set to [PLClink (MELSEC)]. Initialize Initializes the Sensor settings and saved p. 277 data. Restart Restarts the Sensor. Update Updates the Sensor system to the most p. 569 recent data. Menu Tables FQ2-S4 User’s Manual...
  • Page 489 Latest image, Last NG image p. 245 update mode LCD back- Brightness Sets the brightness. 0 to 5 System p. 246 light Enables (ON) or disables (OFF) ECO ON, OFF System p. 246 mode Mode. FQ2-S4 User’s Manual Menu Tables...
  • Page 490 278 the touch screen positions and pointers. Initialize Initializes the Touch Finder settings. p. 277 Restart Restarts the Touch Finder. p. 277 Update Updates the Touch Finder system to the p. 569 most recent data. Menu Tables FQ2-S4 User’s Manual...
  • Page 491 The same as for Setup Mode. (This does not apply to the PC Tool.) p. 277 The resolution of the measurement image can be set on the PC Tool. Sensor setting Switches to Setup Mode. p. 224 FQ2-S4 User’s Manual Menu Tables...
  • Page 492: Common Menu Commands

    You can save the Camera image that is p. 245 Button displayed on the Touch Finder or com- puter. Capture Button Used to capture the current display and p. 268 save it in external memory, e.g., an SD card. Menu Tables FQ2-S4 User’s Manual...
  • Page 493: External Reference Parameters

    0.0001 to 9.9999 0.11 sition Standard hue Setting/Acqui- 0 to 359 sition Hue range Setting/Acqui- 10 to 180 sition Chroma upper limit Setting/Acqui- 0 to 255 sition Chroma lower limit Setting/Acqui- 0 to 255 sition FQ2-S4 User’s Manual External Reference Parameters...
  • Page 494: Weak Smoothing

    −14: Figure not registered error, −15: Out of range error Mea- Source image Setting/Acqui- 0: Camera image, sure- sition 1: Previous image ment Setting method Setting/Acqui- 0: Filtering OFF, 1: Filtering ON condi- sition tions External Reference Parameters FQ2-S4 User’s Manual...
  • Page 495: Erosion, Median, Extract Edges, Extract Horizontal Edges, Extract

    −2: No judgement (not mea- −2 Mea- Judgement Acquisition sure- only sured), ment 0: Judgement is OK, −1: Judgement is NG, result −13: Teaching not performed error, −14: Figure not registered error, −15: Out of range error FQ2-S4 User’s Manual External Reference Parameters...
  • Page 496 0 to 255 sition B lower limit Setting/Acqui- 0 to 255 sition B upper limit Setting/Acqui- 0 to 255 sition Grayscale lower limit Setting/Acqui- 0 to 255 sition Grayscale upper limit Setting/Acqui- 0 to 255 sition External Reference Parameters FQ2-S4 User’s Manual...
  • Page 497: Shape Search Position Compensation

    Reference angle Setting/Acqui- sition −180 to 180 Rotation angle upper Setting/Acqui- limit sition −180 to 180 −180 Rotation angle lower Setting/Acqui- limit sition Mea- Candidate level Setting/Acqui- 0 to 100 sure- sition ment condition FQ2-S4 User’s Manual External Reference Parameters...
  • Page 498 1: Data logging ON Data logging switch for Setting/Acqui- 0: Data logging OFF, position Y sition 1: Data logging ON Data logging switch for Setting/Acqui- 0: Data logging OFF, correlation sition 1: Data logging ON External Reference Parameters FQ2-S4 User’s Manual...
  • Page 499: Search Position Compensation

    Output Reflect Setting/Acqui- 0: Yes, 1: No parame- sition Mea- Position compensation Setting/Acqui- 0: None, 1: Bilinear sure- precision sition ment Position compensation Setting/Acqui- 0: Camera image, condi- image sition 1: Previous image tions FQ2-S4 User’s Manual External Reference Parameters...
  • Page 500 Y display sition Correlation display Setting/Acqui- 0: Display, 1: Do not display sition Position X display Setting/Acqui- 0: Display, 1: Do not display sition Position Y display Setting/Acqui- 0: Display, 1: Do not display sition External Reference Parameters FQ2-S4 User’s Manual...
  • Page 501: Edge Position Compensation

    Acquisition Logged data only 99,999.9999 −99,999.9999 to Standard position X Acquisition Logged data only 99,999.9999 −99,999.9999 to Standard position Y Acquisition Logged data only 99,999.9999 Output Reflect Setting/Acqui- 0: Yes, 1: No parame- sition FQ2-S4 User’s Manual External Reference Parameters...
  • Page 502 X lower limit sition 99,999.9999 ment −99,999.9999 to Position compensation Setting/Acqui- 99,999.9999 Adjust judge- Y upper limit sition 99,999.9999 ment −99,999.9999 to −99,999.9999 --- Position compensation Setting/Acqui- Adjust judge- Y lower limit sition 99,999.9999 ment External Reference Parameters FQ2-S4 User’s Manual...
  • Page 503 0: ON, 1: OFF Detected edge position Setting/Acqui- Detected edge position X X display sition display 0: ON, 1: OFF Detected edge position Setting/Acqui- Detected edge position Y Y display sition display 0: ON, 1: OFF FQ2-S4 User’s Manual External Reference Parameters...
  • Page 504: Two-Edge Position Compensation

    Acquisition Logged data only 99,999.9999 Standard position X1 Acquisition Å|99,999.9999 to Logged data only 99,999.9999 −99,999.9999 to Standard position Y1 Acquisition Logged data only 99,999.9999 Output Reflect Setting/Acqui- 0: Yes, 1: No parame- sition External Reference Parameters FQ2-S4 User’s Manual...
  • Page 505 Noise level 1 Setting/Acqui- 0 to 442 sition Monochrome density Setting/Acqui- (Monochrome Cameras) change 1 sition 0: Light to Dark, 1: Dark to Light Measurement method Setting/Acqui- (Monochrome Cameras) sition 0: Projection, 1: Differentia- tion FQ2-S4 User’s Manual External Reference Parameters...
  • Page 506 0: Data logging OFF, for detected edge posi- sition 1: Data logging ON tion X1 Data logging switch Setting/Acqui- 0: Data logging OFF, for detected edge posi- sition 1: Data logging ON tion Y1 External Reference Parameters FQ2-S4 User’s Manual...
  • Page 507: Two-Edge Midpoint Compensation

    99,999.9999 −99,999.9999 to Detected edge mid- Acquisition Logged data point position Y only 99,999.9999 −99,999.9999 to Standard position X0 Acquisition Logged data only 99,999.9999 −99,999.9999 to Standard position Y0 Acquisition Logged data only 99,999.9999 FQ2-S4 User’s Manual External Reference Parameters...
  • Page 508 Edge color G1 Setting/Acqui- 0 to 255 sition Edge color B1 Setting/Acqui- 0 to 255 sition Density change 1 Setting/Acqui- 0: Color IN, 1: Color OUT sition Edge level 1 Setting/Acqui- 0 to 100 sition External Reference Parameters FQ2-S4 User’s Manual...
  • Page 509 X lower limit sition 99,999.9999 ment −99,999.9999 to Position compensation Setting/Acqui- 99,999.9999 Adjust judge- Y upper limit sition 99,999.9999 ment −99,999.9999 to −99,999.9999 --- Position compensation Setting/Acqui- Adjust judge- Y lower limit sition 99,999.9999 ment FQ2-S4 User’s Manual External Reference Parameters...
  • Page 510 Detected edge position Setting/Acqui- 0: ON, 1: OFF Y0 display sition Detected edge position Setting/Acqui- 0: ON, 1: OFF X1 display sition Detected edge position Setting/Acqui- 0: ON, 1: OFF Y1 display sition External Reference Parameters FQ2-S4 User’s Manual...
  • Page 511: Edge Rotation Position Compensation

    Setting method Setting/Acqui- 0: Cancel position compen- condi- sition sation, tions 1: Position compensation based on internal edge position measurement Position compensation Setting/Acqui- 0: Camera image, image sition 1: Previous image FQ2-S4 User’s Manual External Reference Parameters...
  • Page 512 Noise level 1 Setting/Acqui- 0 to 442 sition Monochrome density Setting/Acqui- (Monochrome Cameras) change 1 sition 0: Light to Dark, 1: Dark to Light Measurement method Setting/Acqui- (Monochrome Cameras) sition 0: Projection, 1: Differentia- tion External Reference Parameters FQ2-S4 User’s Manual...
  • Page 513 Data logging switch Setting/Acqui- 0: Data logging OFF, for detected edge posi- sition 1: Data logging ON tion Y1 Data logging switch Setting/Acqui- 0: Data logging OFF, for detected edge angle sition 1: Data logging ON FQ2-S4 User’s Manual External Reference Parameters...
  • Page 514: Bar Code

    2: Verify master data 1 31: Verify master data 31 Partial verif. on/off Settings/ 0: None Acquisition 1: Enable Last compared digit Settings/ 1 to 1024 1024 Acquisition First compared digit Settings/ 1 to 1024 Acquisition External Reference Parameters FQ2-S4 User’s Manual...
  • Page 515 1: Data logging ON tions Data logging switch for Setting/Acqui- 0: Data logging OFF judgement sition 1: Data logging ON Data logging switch for Setting/Acqui- 0: Data logging OFF number of characters sition 1: Data logging ON FQ2-S4 User’s Manual External Reference Parameters...
  • Page 516: Code

    Acquisition Error string Settings/ 20 characters max. Acquisition Partial output on/off Settings/ 0: None Acquisition 1: Enable Output last digit Settings/ 1 to 1024 1024 Acquisition Output first digit Settings/ 1 to 1024 Acquisition External Reference Parameters FQ2-S4 User’s Manual...
  • Page 517 1: Data logging ON Display Number of characters Setting/Acqui- 0: OFF setting display sition 1: ON Character display Setting/Acqui- 0: OFF sition 1: ON Use the ITEMDATA2 command to set and/or acquire a text string. FQ2-S4 User’s Manual External Reference Parameters...
  • Page 518: Codes (Dpm)

    Acquired only 0 to 100 −2 Index number Acquired only -2: Verification OFF or read- Logged ing error, -1: Verification is NG, 0 to 31: Master data Output Reflect Setting/Acqui- 0: Yes, 1: No parame- sition External Reference Parameters FQ2-S4 User’s Manual...
  • Page 519 Output starting digit Set/acquired 1 to 1024 Mea- Auto length Set/acquired 0: OFF 1:ON sure- ment result Output NG String output on/off Set/acquired 0: OFF 1: ON parame- Error string Setting/Acqui- 0: OFF 1: ON sition FQ2-S4 User’s Manual External Reference Parameters...
  • Page 520 Output beginning digit Setting/Acqui- 1 to 128 (memory link) sition 202+3×N Verifica- Master data N Setting/Acqui- 32 characters max. (N=0 to tion con- sition dition 300+N Reference unit number Setting/Acqui- 0 to 31 (N=0 to sition External Reference Parameters FQ2-S4 User’s Manual...
  • Page 521: Ocr

    Read character Acquisition only 128 characters max. string Similarity Acquisition only 0 to 100 Logged data Stability Acquisition only 0 to 100 Logged data Output parame- Reflect Setting/Acquisition 0: Yes, 1: No FQ2-S4 User’s Manual External Reference Parameters...
  • Page 522 Measurement Format character Setting/Acquisition 32 characters max. conditions string 0 Format character Setting/Acquisition 32 characters max. string 1 Format character Setting/Acquisition 32 characters max. string 2 Format character Setting/Acquisition 32 characters max. string 3 External Reference Parameters FQ2-S4 User’s Manual...
  • Page 523 1: Data logging ON ters 4) Data logging switch Setting/Acquisition 0: Data logging OFF, (similarity (individ- 1: Data logging ON ual)) Data logging switch Setting/Acquisition 0: Data logging OFF, (stability (individ- 1: Data logging ON ual)) FQ2-S4 User’s Manual External Reference Parameters...
  • Page 524 3) 1023+N Verification begin- Setting/Acquisition 1 to 32 × 2 (N = 0 ning digit 1N to 3) 1031+N Master data 1N Setting/Acquisition 32 characters max. × 2 (N = 0 to 3) External Reference Parameters FQ2-S4 User’s Manual...
  • Page 525 × 2 (N = 0 to 3) −1: OFF, −1 1141 Reference unit Setting/Acquisition number 7 0 to 31 1142+N Verification end Setting/Acquisition 1 to 32 × 2 (N = 0 digit 7N to 3) FQ2-S4 User’s Manual External Reference Parameters...
  • Page 526 3) 1243+N Verification begin- Setting/Acquisition 1 to 32 × 2 (N = 0 ning digit 12N to 3) 1251+N Master data 12N Setting/Acquisition 32 characters max. × 2 (N = 0 to 3) External Reference Parameters FQ2-S4 User’s Manual...
  • Page 527 × 2 (N = 0 to 3) −1: OFF, −1 1361 Reference unit Setting/Acquisition number 18 0 to 31 1362+N Verification end Setting/Acquisition 1 to 32 × 2 (N = 0 digit 18N to 3) FQ2-S4 User’s Manual External Reference Parameters...
  • Page 528 3) 1463+N Verification begin- Setting/Acquisition 1 to 32 × 2 (N = 0 ning digit 23N to 3) 1471+N Master data 23N Setting/Acquisition 32 characters max. × 2 (N = 0 to 3) External Reference Parameters FQ2-S4 User’s Manual...
  • Page 529 × 2 (N = 0 to 3) −1: OFF, −1 1582 Reference unit Setting/Acquisition number 29 0 to 31 1582+N Verification end Setting/Acquisition 1 to 32 × 2 (N = 0 digit 29N to 3) FQ2-S4 User’s Manual External Reference Parameters...
  • Page 530 Individual similarity Acquisition only 0 to 100 (N= 0 to 127) 3500+N Individual stability Acquisition only 0 to 100 (N= 0 to 127) *1: To acquire the detected text string, use the ITEMDATA2 command. External Reference Parameters FQ2-S4 User’s Manual...
  • Page 531: Search

    Setting/Acqui- limit sition −99,999.9999 to Detec- Detection point X Setting/Acqui- tion coor- sition 99,999.9999 dinate −99,999.9999 to Detection point Y Setting/Acqui- sition 99,999.9999 Mea- Sub-pixel Setting/Acqui- 0: No, 1: Yes sure- sition ment condition FQ2-S4 User’s Manual External Reference Parameters...
  • Page 532 99,999.9999 −99,999.9999 to Extraction condition, Y Setting/Acqui- 99,999.9999 upper limit sition 99,999.9999 −99,999.9999 to −99,999.9999 --- Extraction condition, Y Setting/Acqui- lower limit sition 99,999.9999 Detection count Setting/Acqui- 1 to 32 sition External Reference Parameters FQ2-S4 User’s Manual...
  • Page 533 0: Absolute value, 1: Rela- tern sition tive value Position Y display pat- Setting/Acqui- 0: Absolute value, 1: Rela- tern sition tive value Measured angle display Setting/Acqui- 0: Absolute value, 1: Rela- pattern sition tive value FQ2-S4 User’s Manual External Reference Parameters...
  • Page 534: Sensitive Search

    Logged data only −99,999.9999 to Measurement position Acquisition Logged data X (sub-region) only 99,999.9999 −99,999.9999 to Measurement position Acquisition Logged data Y (sub-region) only 99,999.9999 Output Reflect Setting/Acqui- 0: Yes, 1: No parame- sition External Reference Parameters FQ2-S4 User’s Manual...
  • Page 535 1: Data logging ON Data logging switch for Setting/Acqui- 0: Data logging OFF, correlation sition 1: Data logging ON Data logging switch Setting/Acqui- 0: Data logging OFF, for density deviation sition 1: Data logging ON FQ2-S4 User’s Manual External Reference Parameters...
  • Page 536 Position Y display pat- Setting/Acqui- 0: Absolute value, 1: Rela- result tern sition tive value display Measured angle display Setting/Acqui- 0: Absolute value, 1: Rela- pattern sition tive value External Reference Parameters FQ2-S4 User’s Manual...
  • Page 537: Shape Search Ii

    0: Yes, 1: No parame- sition Model Rotation Setting/Acqui- 0: No, 1: Yes region sition −180 to 180 Rotation angle upper Setting/Acqui- limit sition −180 to 180 −180 Rotation angle lower Setting/Acqui- limit sition FQ2-S4 User’s Manual External Reference Parameters...
  • Page 538 99,999.9999 ment −99,999.9999 to −99,999.9999 --- Extraction condition, Y Setting/Acqui- Adjust judge- lower limit sition 99,999.9999 ment Detection count Setting/Acqui- 1 to 32 sition Model mode Setting/Acqui- 0: Fast,1: Stable sition External Reference Parameters FQ2-S4 User’s Manual...
  • Page 539 0: Absolute value, 1: Rela- tern sition tive value Position Y display pat- Setting/Acqui- 0: Absolute value, 1: Rela- tern sition tive value Measurement angle Setting/Acqui- 0: Absolute value, 1: Rela- display pattern sition tive value FQ2-S4 User’s Manual External Reference Parameters...
  • Page 540: Edge Position

    −99,999.9999 to Judge- Edge position offset Setting/Acqui- 99,999.9999 Adjust judge- ment upper limit sition 99,999.9999 ment condi- −99,999.9999 to −99,999.9999 --- Edge position offset Setting/Acqui- Adjust judge- tions lower limit sition 99,999.9999 ment External Reference Parameters FQ2-S4 User’s Manual...
  • Page 541: Edge Width

    Edge color green Setting/Acqui- 0 to 255 condi- sition tions Edge color blue Setting/Acqui- 0 to 255 sition Edge level Setting/Acqui- 0 to 100 sition Noise level Setting/Acqui- 5 to 442 sition FQ2-S4 User’s Manual External Reference Parameters...
  • Page 542: Edge Pitch

    Acquisition 0 to 99,999.9999 Logged data only Maximum pitch Acquisition 0 to 99,999.9999 Logged data only Minimum pitch Acquisition 0 to 99,999.9999 Logged data only Output Reflect Setting/Acqui- 0: Yes, 1: No parame- sition External Reference Parameters FQ2-S4 User’s Manual...
  • Page 543 Mea- Edge enhancement Setting/Acqui- 0 to 442 sure- level sition ment Color to count Setting/Acqui- (Monochrome Cameras) condi- sition 0: White, 1: Black tions Mode Setting/Acqui- (Monochrome Cameras) sition 0: Standard, 1: Precise FQ2-S4 User’s Manual External Reference Parameters...
  • Page 544: Area

    −1: Judgement is NG, result −13: Teaching not performed error, −14: Figure not registered error, −15: Out of range error Area Acquisition 0 to 999,999,999.9999 only −999,999,999.9999 to Area deviation Acquisition Logged data only 999,999,999.9999 External Reference Parameters FQ2-S4 User’s Manual...
  • Page 545 N sition 166+N×10 Registered color maxi- Setting/Acqui- 0 to 255 (N=0 to 3) mum brightness N sition 167+N×10 Registered color mini- Setting/Acqui- 0 to 255 (N=0 to 3) mum brightness N sition FQ2-S4 User’s Manual External Reference Parameters...
  • Page 546: Color Data

    Output Reflect Setting/Acqui- 0: Yes, 1: No parame- sition Judge- Color difference upper Setting/Acqui- 0 to 442 Adjust judge- ment limit sition ment condi- Color difference lower Setting/Acqui- 0 to 442 tions limit sition External Reference Parameters FQ2-S4 User’s Manual...
  • Page 547 1: Data logging ON Density average differ- Setting/Acqui- 0: Data logging OFF, ence logging switch sition 1: Data logging ON Density deviation differ- Setting/Acqui- 0: Data logging OFF, ence logging switch sition 1: Data logging ON FQ2-S4 User’s Manual External Reference Parameters...
  • Page 548: Labeling

    ATH[0] to Logged data only ATH[99] Output Reflect Setting/Acqui- 0: Yes, 1: No parame- sition Extracte Background color Setting/Acqui- 0: Black, 1: White, 2: Red, 3: d image sition Green, or 4: Blue display condition External Reference Parameters FQ2-S4 User’s Manual...
  • Page 549 N sition 166+N×10 Registered color maxi- Setting/Acqui- 0 to 255 (N=0 to 3) mum brightness N sition 167+N×10 Registered color mini- Setting/Acqui- 0 to 255 (N=0 to 3) mum brightness N sition FQ2-S4 User’s Manual External Reference Parameters...
  • Page 550 −99,999.9999 to 99,999.9999 − Judgement lower limit Setting/Acqui- for gravity Y sition 99,999.9 −180 to 180 Judgement upper limit Setting/Acqui- for master angle sition −180 to 180 −180 Judgement lower limit Setting/Acqui- for master angle sition External Reference Parameters FQ2-S4 User’s Manual...
  • Page 551 Area display Setting/Acqui- 0: ON, 1: OFF sition Gravity X display Setting/Acqui- 0: ON, 1: OFF sition Gravity Y display Setting/Acqui- 0: ON, 1: OFF sition Master angle display Setting/Acqui- 0: ON, 1: OFF sition FQ2-S4 User’s Manual External Reference Parameters...
  • Page 552: Specifications And Dimensions

    In Sensor: 20 images (If a Touch Finder is used, images can be saved up to the capacity of an SD card.) Auxiliary function Math (arithmetic, calculation functions, trigonometric functions, and logic functions) Measurement trigger External trigger (single or continuous) Communications trigger (Ethernet TCP no-protocol, Ethernet FINS/TCP no-protocol, EtherNet/IP, or PLC Link) Specifications and Dimensions FQ2-S4 User’s Manual...
  • Page 553 3 times each in 6 direction (up, down, right, left, forward, and backward) tance (destruc- tion) Degree of pro- IEC 60529 IP67 (Except when Polarizing Filter Attachment is mounted IEC 60529 IP40 tection or connector cap is removed.) FQ2-S4 User’s Manual Specifications and Dimensions...
  • Page 554 30 VDC, 50 mA max., residual voltage: 2.0 V max. *3: Do not allow the load current to exceed 50 mA. The output circuit may be damaged if the load current exceeds 50 mA. Specifications and Dimensions FQ2-S4 User’s Manual...
  • Page 555 (Unit: mm) FQ2-S45010F/-S45010F-M/-S45050F/-S45010F-M FQ2-S40010F-08/-S45010F-08/-S40010F-08M/-S45010F-08M FQ2-S40050F-08/-S45050F-08/-S40050F-08M/-S45050F-08M The mounting bracket can be attached to any side. Optical axis 4-M4 Depth: 6 1/4-20UNC Depth: 6 (57) Mounting hole dimensions Two, 4.5 dia. 20±0.1 Tightening torque: 1.2 N·m FQ2-S4 User’s Manual Specifications and Dimensions...
  • Page 556 See the diagram below when mounting bracket FQ-XL2 is attached. (Unit: mm) (57) Optical axis ±0.1 4-M4 1/4-20UNC Depth: 6 Depth: 6 Screw,set double head Plate Cushion Base Mounting hole dimensions Two, 4.5 dia. 20±0.1 Tightening torque: 1.2 N·m Specifications and Dimensions FQ2-S4 User’s Manual...
  • Page 557 Mounting hole dimensions Depth: 4 Four, 3.4 dia. 69.5±0.1 69.5 Mounting screw recommended tightening torque: 0.54 N·m (12.5) Optical axis 4-M3 (3.8) Depth: 4 69.5 6-M3 Depth: 4 *1 The shape of opposite side isomorphous. 32.5 FQ2-S4 User’s Manual Specifications and Dimensions...
  • Page 558 (Unit: mm) Two M3, Depth: 4 1/4-20UNC, Depth: 4 Mounting Hole Dimensions Four M4, Depth: 4 Two, 3.4 dia. Four, 4.5 dia. 20.2 16.3±0.1 23.5 20.2±0.1 57.8±0.1 80.5 Mounting screw recommended tightening torque: 0.54 N·m Specifications and Dimensions FQ2-S4 User’s Manual...
  • Page 559: Touch Finder

    1.5 h tery Current consumption DC power connection: 0.2 A max. DC power connection: 0.2 A max., Charging battery: 0.4 A max. Insulation resistance Between all lead wires and case: 0.5 MΩ (at 250 V) FQ2-S4 User’s Manual Specifications and Dimensions...
  • Page 560: Battery Specifications

    This is a guideline for the time required for the capacity of the Battery to be reduced to 60% of the initial capacity. No guarantee is implied. The value will be affected by the operating environment and operating conditions. Specifications and Dimensions FQ2-S4 User’s Manual...
  • Page 561 Dimensions FQ2-D30/-D31 (Unit: mm) 44.5 13.5 *1: Provided on the FQ2-D31 only. FQ2-S4 User’s Manual Specifications and Dimensions...
  • Page 562 Panel Mounting Adapter (FQ-XPM) (Unit: mm) (36.9) 31.6 (8.1) Panel cutout dimensions 111±1 Specifications and Dimensions FQ2-S4 User’s Manual...
  • Page 563: Sensor Data Units

    8 inputs (IN0 to IN5, TRIG, and RESET) 7 outputs (ACK, RUN, BUSY, OR, ERROR, STGOUT, SHTOUT) RS-232C 1 channel, 115,200 bps max. *FQ-SDU2@ only. Sensor interface FQ2-S4 connected with FQ-WU@@@): OMRON interface *Number of connected Sensors: 1 Input specifications Refer to Table 2. Output specifications Rat- Power supply voltage 21.6 to 26.4 VDC (including ripple)
  • Page 564 Dimensions FQ-SDU10/-SDU15 (Unit: mm) (70.9) 17.5 42.8 (73.9) 51.3 84.2 Specifications and Dimensions FQ2-S4 User’s Manual...
  • Page 565 FQ-SDU20/-SDU25 (Unit: mm) 51.3 84.2 42.8 (70.9) 17.5 49.3 70.7 (73.9) FQ2-S4 User’s Manual Specifications and Dimensions...
  • Page 566: System Requirements For Pc Tool For Fq

    Cable type Flat cable Minimum bending radius 5.5 mm Weight 150 g 380 g 750 g Important Do not bend any Cable beyond the specified minimum bending radius. Doing so may damage the Cable. Specifications and Dimensions FQ2-S4 User’s Manual...
  • Page 567 Operating and storage: 35% to 80% (with no condensation) Material Case: PPE Cable length 1.5 m 78 × 50 × 30 mm (without power cable) Dimensions Weight Approx. 270 g Contents of label on AC Adapter FQ2-S4 User’s Manual Specifications and Dimensions...
  • Page 568 FQ-WD010 10 m FQ-WD020 20 m • FQ Ethernet Cable FQ-WN002/WN010/WN020 (Unit: mm) (44.7) (54.7) (100) *1: The cable lengths are given in the following table. Model FQ-WN002 FQ-WN010 10 m FQ-WN020 20 m Specifications and Dimensions FQ2-S4 User’s Manual...
  • Page 569 FQ-WU010 10 m FQ-WU020 20 m • Parallel Cable for FQ-SDU1 FQ-VP1002/VP1005/VP1010 (Unit: mm) 30-pin flat cable connector *1: The cable lengths are given in the following table. Model FQ-VP1002 FQ-VP1005 FQ-VP1010 10 m FQ2-S4 User’s Manual Specifications and Dimensions...
  • Page 570 • Parallel Cable for FQ-SDU2 FQ-VP2002/VP2005/VP2010 30-pin flat cable connector (Unit: mm) *1: The cable lengths are given in the following table. Model FQ-VP2002 FQ-VP2005 FQ-VP2010 10 m • AC Adapter FQ-AC1 (Unit: mm) 1,800 to 2,000 1,500 Specifications and Dimensions FQ2-S4 User’s Manual...
  • Page 571: Updating The Software

    12-4 Updating the Software The most recent version of the software and PC Tool can be downloaded from the following website for OMRON members. Refer to the Member Registration Sheet that is enclosed with the Sensor. http://www.omron-cxone.com/vision_sys After you download the software, use the following procedure to update.
  • Page 572: Connecting A Previous Touch Finder (Fq-D30/D31)

    Do not turn OFF the power supply until updating the Touch Finder has been completed. The Touch Finder may not start normally if power is turned OFF during the update. Connecting a Previous Touch Finder (FQ-D30/D31) to the FQ2-S Sensor FQ2-S4 User’s Manual...
  • Page 573 Connect the Sensor to the PC. Select [All Programs] - [OMRON] - [FQ] - [Tool] - [FQ Item Selector] from the Windows Start Menu to start the FQ Item Selector. Select the language to display.
  • Page 574 Select the inspection items with the highest priority first. The Touch Finder will be updated automatically. Click the [Create] Button to save the installation data. Click [Install Exe]. Connecting a Previous Touch Finder (FQ-D30/D31) to the FQ2-S Sensor FQ2-S4 User’s Manual...
  • Page 575 If there is more than one network card (NIC) installed in the PC, select the NIC that is connected to the Sensor. More than one NIC will be displayed for a PC with a wireless LAN. FQ2-S4 User’s Manual Connecting a Previous Touch Finder (FQ-D30/D31) to the FQ2-S Sensor...
  • Page 576 FQ2-D30/D31 Touch Finder after performing the above operation, repeat the above operation, but select all of the inspection items in step 5 to re-register all of the inspection items in the original state. Connecting a Previous Touch Finder (FQ-D30/D31) to the FQ2-S Sensor FQ2-S4 User’s Manual...
  • Page 577: Led Safety

    Take necessary safety preventive measures according to the standards. Warning Label Warning labels are supplied as accessories with products that comply with the Class 2 Laser Product Classification. Attach them to appropriate positions near the Sensor where they can be easily noticed. FQ2-S4 User’s Manual LED Safety...
  • Page 578: Requirements From Regulations And Standards

    Note:1.This table is intended to provide a convenient summary of requirements. See text of this standard for complete requirements. 2.For the safety medical laser products, IEC 60601-2-22 applies. 3.AEL: Accessible Emission Limit Requirements from Regulations and Standards FQ2-S4 User’s Manual...
  • Page 579 The maximum accessible emission level permitted within a particular class. For your reference, see ANSI Z136.1- 1993, Section 2. Symbol and border: black Background: yellow Figure A Warning label - Hazard symbol FQ2-S4 User’s Manual Requirements from Regulations and Standards...
  • Page 580: For Europe

    3.Class 2M laser products that failed condition 1 of table10 of the standard. Not required for Class 2M laser products that failed condition 2 of table10 of the standard. See the text for details. Requirements from Regulations and Standards FQ2-S4 User’s Manual...
  • Page 581: For Europe

    Note:Conditions for safe viewing of diffuse reflections for Class 3B visible lasers are: minimum viewing distance of 13 cm between screen and cornea and a maximum viewing time of 10 s. Other viewing conditions require a comparison of the diffuse reflection exposure with the MPE. FQ2-S4 User’s Manual Requirements from Regulations and Standards...
  • Page 582: Detailed Ethernet/Ip Communications Specifications

    Lower 4 bytes of MAC address Product Name SHORT- Product name "FQ Series" STRING Services Code Service name Class Instances Remarks 01 hex Get_Attribute_All 05 hex Reset Parameter: 0, 1 0E hex Get_Attribute_Single Detailed EtherNet/IP Communications Specifications FQ2-S4 User’s Manual...
  • Page 583 Physical Link Object STRUCT of: Path to the link object in the physical layer Path size UINT Path size Path Padded Segment to identify physical- 20 F6 24 01 EPATH layer linked object FQ2-S4 User’s Manual Detailed EtherNet/IP Communications Specifications...
  • Page 584 Interface Speed UDINT Interface baud rate Interface Flags DWORD Interface Status Flag Physical Address ARRAY of 6 MAC-layer address USINTs Services Code Service name Class Instances Remarks 01 hex Get_Attribute_All 0E hex Get_Attribute_Single Detailed EtherNet/IP Communications Specifications FQ2-S4 User’s Manual...
  • Page 585 Assignments (input connection to Sen- sor). Size UINT Number of bytes O to T data size (Set before going online.) Services Code Service name Class Instances Remarks 0E hex Get_Attribute_Single 10 hex Set_Attribute_Single FQ2-S4 User’s Manual Detailed EtherNet/IP Communications Specifications...
  • Page 586: Index

    Definitions of Laser Classification calibration pattern 238, 243 deleting log camera image Density average camera image file Density deviat. (density deviation) Camera input detailed EtherNet/IP communications spec- camera setup ifications capturing image deviation area Cell Dilate Cell Recog. Rate Index FQ2-S4 User’s Manual...
  • Page 587 Extract Horiz. Edges images Extract vertical edges displaying last NG image displaying saved images Fast mode frozen field separator live file format updating files zooming in logging zooming out filter items zooming to fit display FINS commands FQ2-S4 User’s Manual Index...
  • Page 588 OUT0 to OUT3 output polarity OUT1 Polarity MAC address 483, 487 Output delay macro rings Output end digit masking Output mode Master angle Output polarity Max count Output starting digit Max. pitch (maximum pitch) Output time Index FQ2-S4 User’s Manual...
  • Page 589 448 saturation Setup Mode saved images Shape displaying Shape Search II saving data 222, 262 shape search position compensation saving image data SHTOUT 45, 47 scene data Shutter speed saving Size scene group data slider FQ2-S4 User’s Manual Index...
  • Page 590 Touch Finder data saving trend monitor Auto display Display range Number of data TRIG TRIG0 trigger delay 67, 68 trigger retry two Touch Finders connected at the same time two-edge midpoint compensation two-edge position compensation updating software version Index FQ2-S4 User’s Manual...
  • Page 591 FQ2-S4 User’s Manual Index...
  • Page 592: Revision History

    A manual revision code appears as a suffix to the catalog number at the bottom of the front and back covers of this manual. Cat. No. Z330-E1-01 Revision code Revision code Date Revised contents October 2012 Original production Revision History FQ2-S4 User’s Manual...
  • Page 594 IL 60173-5302 U.S.A. Carl-Benz-Str. 4, D-71154 Nufringen, Germany Tel: (1) 847-843-7900/Fax: (1) 847-843-7787 Tel: (49) 7032-811-0/Fax: (49) 7032-811-199 © OMRON Corporation 2012 All Rights Reserved. OMRON (CHINA) CO., LTD. OMRON ASIA PACIFIC PTE. LTD. In the interest of product improvement, Room 2211, Bank of China Tower, No.

Table of Contents