Omron FQ2-S Series User Manual
Hide thumbs Also See for FQ2-S Series:
Table of Contents

Advertisement

Smart Camera
FQ2-S/CH Series
User's Manual
for Communications Settings
Cat. No. Z338-E1-02

Advertisement

Table of Contents
loading

Summary of Contents for Omron FQ2-S Series

  • Page 1 Smart Camera FQ2-S/CH Series User's Manual for Communications Settings Cat. No. Z338-E1-02...
  • Page 2 Introduction Thank you for purchasing the FQ2-S/CH. This manual provides information regarding functions, performance and operating methods that are required for using the FQ2-S/CH. When using the FQ2-S/CH, be sure to observe the following: • The FQ2-S/CH must be operated by personnel knowledgeable in electrical engineering. •...
  • Page 3 APPLICATION CONSIDERATIONS (Please Read) Overview of Communication Specifications User's Manual for Communications Settings Controlling Operation and Outputting Data with a Parallel Connection Controlling Operation and Outputting Data with an Ethernet Connection Controlling Operation and Outputting Data with an RS-232C Connection Appendices Smart Camera FQ2-S/CH...
  • Page 4 Product manuals The information required to use the FQ2-S/CH Series is divided into two manuals by objective: “FQ2-S/CH Series User’s Manual” and “FQ2-S/CH Series User's Manual for Communications Settings”. Read each manual as appropriate for your objective. Manual Description Contents FQ2-S/CH Series User's Manual Describes the product specifications, Product specifications...
  • Page 5: Table Of Contents

    Table of Contents 1. Overview of Communication Specifications 1-1 Confirming the System Configuration ......8 FQ2-S/CH Series System Configuration .
  • Page 6 3. Controlling Operation and Outputting Data with an Ethernet Connection 3-1 Controlling Operation and Outputting Data with EtherNet/IP Communications....... 88 Introduction to EtherNet/IP .
  • Page 7 3-5 Controlling Operation and Outputting Data with FINS/TCP No-protocol Commands ......188 Introduction to FINS Commands ........188 Setting Up FINS/TCP No-protocol Communications .
  • Page 8 FQ2-S/CH User’s Manual for Communications Settings...
  • Page 9 Overview of Communication Specifications 1-1 Confirming the System Configuration ......8 1-2 Communicating with an External Device ..... . . 10 1-3 Control Methods Using an External Device .
  • Page 10: Confirming The System Configuration

    1-1 Confirming the System Configuration FQ2-S1 FQ2-S2 FQ2-S3 FQ2-S4 FQ2-CH The FQ2-S/CH series is Vision System that perform measurement processing through measurement objects that are imaged by a Camera. In a system configuration that is connected to a PLC, computer, or other external device, measurement commands can be received from and measurement results can be output to the external device.
  • Page 11 Ethernet (EtherNet/IP, PLC Link, No-protocol, or PROFINET) Connection FQ2-S1 FQ2-S2 FQ2-S3 FQ2-S4 FQ2-CH Ethernet cable can be used to connect to a variety of networks in order to input measurement triggers and communication commands, and to output measurement results (judgement results, measured values).
  • Page 12: Communicating With An External Device

    1-2 Communicating with an External Device FQ2-S1 FQ2-S2 FQ2-S3 FQ2-S4 FQ2-CH This section gives the communications specifications, describes the control methods that you can use for communications, and describes the settings that are required before starting communications with an external device.
  • Page 13: Control Methods For The Sensor

    Type Description Character output (FQ2-S4/CH You can output character strings and numbers that are read by inspection items such as OCR, Barcode, 2D-code, or 2D-code (DPM). Refer to Items That series only) Can Be Output as Output Data: p.22 for details. You can also use commands to obtain results after a measurement is performed.
  • Page 14: Communication Protocols For Communication With The Sensor

    Command/Response Method (Refer to Command/Response Method: p.20) Control is performed by storing the control command and the response to that command in the I/O mem- ory of a PLC. This method is best suited to send multiple commands to the Sensor without using PLC communications instructions.
  • Page 15 ASCII or binary format data. No-proto- This is a command system (FINS) for message services col (FINS/ that can be used in common on OMRON networks. TCP) Data can be exchanged between an OMRON PLC and the Sensor by a command/response method.
  • Page 16 Connection Compatibility Yes: Supported, No: Not supported Type of connection to Other connection FQ2-S/CH EtherNet/IP PLC Link PROFINET TCP no-protocol FINS/TCP RS-232C Parallel communications on Ethernet communications on no-proto- Sensor’s Parallel Ethernet, col commu- standard Interface UDP no-protocol nications parallel com- communications on Ethernet munications...
  • Page 17 Models That Are Compatible with the Communications Protocols This section lists the external devices that can communicate with the FQ2-S/CH series for each communications protocol. PLC Link OMRON ❍: Can connect : Only some models can connect ✕: Cannot connect Series...
  • Page 18 CJ1H or CJ1G CJ1W-EIP21 CJ1M (Built-in port only.) CJ1W-EIP21 ✕ SYSMAC_CS CS1H, CS1D, or CS1G CS1W-EIP21 No-protocol (TCP), No-protocol (UDP) OMRON Series CPU Unit Interface Direct connection with CPU Connection via Ethernet unit unit (built-in port) SYSMAC CJ2 CJ2H or CJ2M CJ1W-ETN21...
  • Page 19 Series CPU Unit Interface Direct connection with CPU Connection via Ethernet unit unit (built-in port) SYSMAC CP1 CP1L (Built-in port only.) CP1H CJ1W-ETN21 SYSMAC One NSJW-ETN21 FQ2-S/CH User’s Manual Communicating with an External Device for Communications Settings...
  • Page 20: Control Methods Using An External Device

    1-3 Control Methods Using an External Device FQ2-S1 FQ2-S2 FQ2-S3 FQ2-S4 FQ2-CH This section describes the methods that you can use to control the Sensor from a PLC or other external device. Control with Control Signals and Status Signals Control and status confirmation for the Sensor is performed with the ON/OFF status of the control and status signals.
  • Page 21 Signal Signal name Function Signals for each communications protocol Parallel PLC Link EtherNet/IP PROFINET IN (IN0 to IN7) Command Input These signals are used to input Signals commands from a parallel interface. Output Signals (Sensor to PLC) Signal Signal name Function Signals for each communications protocol Parallel...
  • Page 22: Command/Response Method

    Signal Signal name Function Signals for each communications protocol Parallel PLC Link EtherNet/IP PROFINET Measurement The FQ2-S/CH series turns ON Mode Signal this signal when measurements can be performed and it is in Run Mode. Command Com- This signal tells when execution pletion Flag of the DI command has been completed.
  • Page 23: Data Output After Measurements

    Memory Areas Used by the Command/Response Control Method Command Area You write the control commands to execute for the Sensor to this area. Response Area You read the results of executing the control commands that were written to the Command Area from this area.
  • Page 24 CPU Unit Sensor Measurement I/O memory execution (communications areas) Data (2) Data Output Area • Specified data is automatically output. • Output characters Flow of Communications between the PLC and the Sensor The data to output after measurement and the PLC I/O memory area (Data Output Area) to store that data are specified in advance.
  • Page 25 For the character output setting procedures and output specifications for each communication type, refer to the following: Outputting Character Strings • EtherNet/IP: p.101 • PLC link: p.128 • PROFINET: p.151 • No-protocol (TCP), No-protocol (UDP): p.175 Note • Endian Little endian data is output. •...
  • Page 26 Order of Output of Measurement Data and Characters (Only Supported on the FQ2-S4/CH Series) When measurement data the data (output data settings 0 to 31) and characters are output together, the characters are output after the data such as inspection item parameters and calculation results are output. Example: Read result 1: ABC Read result 2: 0123...
  • Page 27 Output Data Size and Number of Output Data Upper Value Setting (EtherNet/IP, PLC Link, PROFINET) When more than one inspection result is output, the size of the data that is output for the data output settings could exceed the limit that is set in the [Max output data] (number of output data upper value) parameter setting.
  • Page 28 EtherNet/IP, PROFINET The output data that is assigned is output to the output area as shown below. Output data that exceeds the size (e.g., 256 bytes) that is set for the output data size parameter is separated over more than one cycle. To ensure that no data is lost when receiving data that is divided and output over several cycles, use the handshake function.
  • Page 29 PLC Link 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 (e.g., 256 bytes) is discarded. For the [Max output data] setting, refer to Initial Settings for PLC Link Communications on page 122.
  • Page 30 Parallel Output of Measurement Data (Only Supported on the FQ2-S3/S4/CH Series) When a Parallel Interface Sensor Data Unit is connected to the Sensor, the two types of data output below can be performed, in addition to output of measurement judgement results. Output data type Output data Parallel Data Output...
  • Page 31 Timing Chart The following timing chart shows the data output timing for parallel judgement outputs. Run Mode entered. Setup Mode entered. RUN signal ON for 1 ms min. TRIG signal The FQ2 starts measurements when it detects the rising edge (OFF to ON transition) of the TRIG signal.
  • Page 32 Data Output Control with Handshaking The timing for data output can be controlled through the DSA and GATE signals. The handshake function can only be used with EtherNet/IP, PLC Link, PROFINET, and parallel communication (when a Sensor Data Unit is used). Requirements for Using Data Output Control with Handshaking To use data output control, set the output control method to [Handshaking] in the communications protocol settings.
  • Page 33 Receiving Divided Output Data (Using EtherNet/IP) In EtherNet/IP, if the data size of the set output data exceeds the data size that the Sensor can actually output in one cycle (256 bytes), the data is divided and output over multiple cycles. In this case, use handshaking as shown below to receive the multiple cycles of output data.
  • Page 34 MEMO Control Methods Using an External Device FQ2-S/CH User’s Manual for Communications Settings...
  • Page 35: With A Parallel Connection

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

    2-1 Controlling Operation and Outputting Data with the Sensor's Standard Parallel Connection This section explains how to directly connect the Sensor to external devices with the I/O cable, and control the Sensor and execute output. Basic Operation with a Parallel Connection This section describes the basic connections and signal flow with external devices.
  • Page 37 24 V Power supply Turns OFF when the Max 5 sec Sensor is ready for operation. BUSY Sensor system is initializing. The time of initializing depends on the scene data. Note You can mount a Parallel Interface Sensor Data Unit to enable using other signals and increase the number of sig- nals that you can use with parallel communications.
  • Page 38: Setting The Measurement Trigger

    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. Performing One Measurement for Each External Trigger A measurement trigger is input as the TRIG signal from a proximity sensor, PLC, or other external device.
  • Page 39 Sample Ladder Program The following sample program is used to input a TRIG signal to perform a single measurement. A single measurement will be performed when W0.00 turns ON. W0.00 OUT1 When the single measurement command bit (W0.00) turns ON, the TRIG signal is turned TRIG Single BUSY signal...
  • Page 40 Note This function can be used only when the input mode is set to Expanded Mode. Changing the Types of Commands That Can Be Used: p. 45 Wiring Color Signal State Description The signals shown at the left are used. Gray Command parameters for continu- Refer to the following informa-...
  • Page 41 Sample Ladder Program The following sample program is used to input a IN5 signal to perform continuous measurements. Continuous measurements will be started when W0.00 turns ON and stopped when W0.01 turns ON. W0.00 When the continuous measurement command bit (W0.00) turns ON, the command #0000 parameter for continuous measurements Continuous...
  • Page 42: Setting The Outputs

    Setting the Outputs Using the Overall Judgement Result When the results of the inspection items are judged, if even one individual judgement result is NG, the OR output signal is turned ON. Individual judgement results Inspection item 0 Overall judgement Inspection NG (OR signal ON) item 1...
  • Page 43 Note The timing for updating the OR signal and the ON time after judgement processing can be adjusted. Adjusting the judgement output timing: p. 42 Getting Individual Judgements and Expression Judgements Up to three judgement results of individual inspection items (item judgement signals OR0 to OR31) and expression judgements (expression 0 judgement to expression 31 judgement) can be assigned to terminals OUT0 to OUT2 and output to external devices.
  • Page 44 Timing Chart Output OR0 to OR31 signals are held until the next judgement output. ON for 1 ms min. TRIG signal BUSY signal ON while measurements are being processed (depends on BUSY output conditions) Example: Turned ON when individual OR0 signal judgement is NG.
  • Page 45 • One-shot output The status of the output OR signal is turned OFF after a specified time has passed. (Setting range: 0 to 1,000 ms) ON for 1 ms min. TRIG signal BUSY signal ON while measurements are being processed (depends on BUSY output conditions) OR signal...
  • Page 46 Item Description Output mode One-shot output After the measurement results are finalized, if the judgement output ON condition is met, the OR signal is turned ON for the one-shot output time. It is then turned OFF once the specified time has expired. Level output (default) The judgement is output after measurement results are finalized and the ON/OFF status of the OR signal is held until it is changed for the next measurement result.
  • Page 47 Adjusting the End Timing of the BUSY Signal The end timing of the BUSY signal can be changed. [In/Out] − [I/O setting] − [I/O setting] − [Output] Tab Page − [BUSY output] Item Description BUSY output Measurement (default) The BUSY signal turns OFF when the measurement is completed. Data logging The BUSY signal turns OFF when data logging is completed.
  • Page 48: Controlling The Sensor From An External Device

    Controlling the Sensor from an External Device The following Sensor functions can be controlled with command inputs from an external device without connecting the Touch Finder. Function Description Reference Changing the Scene This command changes the scene when the line process changes. p.
  • Page 49 Timing Chart 1 Specify the scene number with the IN0 to IN4 signals. IN0 to IN4 signals Scene number 0 to 31 (Standard Mode) (in Standard Mode) 2 Turn ON the IN5 signal while Allow 5 ms min. and then turn ON IN5. the BUSY signal is ON to IN5 signal change the scene to the...
  • Page 50 Sample Ladder Program This sample program is used to change the scene when the input mode is set to Expanded Mode. The scene changes to scene 1 when W0.00 turns ON. W0.00 When the scene change bit (W0.00) turns ON, the scene number is input to IN0 to IN3 and #1100 IN4 is turned ON.
  • Page 51 Registering the Measurement Reference Again When the line process is changed or otherwise, the model and reference color can be reregistered based on the previously loaded image. Data that can be re-registered with the reregistration command are shown below. Inspection item Re-registered data Search, Shape Search II Model data...
  • Page 52 Sample Ladder Program This sample program is used to input IN5 to re-register a model. W0.00 When the mode re-register bit (W0.00) turns ON, IN3 is turned ON. #800 Model re-register bit W0.00 TMHH 0000 Model If the BUSY signal is OFF 5 ms after IN3 turns re-register bit ON, the command input for registering the mode again (IN5) is turned ON.
  • Page 53 Turning the ERROR Signal OFF The ERROR signal turns ON when an error occurs. After removing the cause of the error, turn the ERROR signal OFF using one of the following methods. Method 1: Input an error clear command from an external device such as a PLC. Method 2: Input a measurement trigger again.
  • Page 54 Clearing Measurement Values This command clears the measurement values that are stored in the Sensor. However, the OR signal and the output signals that are assigned to OUT0 to OUT2 are not cleared. Note • This command is only valid in Expanded Mode. •...
  • Page 55 Wiring Color Signal State Description The signals shown at the left are used. Gray Command parameters for trigger retry Refer to the following (this command) Green information for signal wiring. Section 2 Installation White and Connections Purple in Vision Sensor FQ2-S/CH Series Yellow Command input for trigger retry (this com-...
  • Page 56 Sample Ladder Program This sample ladder program executes trigger retry when the I/O input mode is Expanded Mode. Trigger retry is executed at W0.00 ON. W0.00 When trigger retry execution (W0.00) #0C00 is turned ON, the command Trigger retry execution parameter for sensor restart (001100) is output to Q:1 (IN0 to IN4).
  • Page 57 Important It may happen that the PLC is unable to recognize BUSY signal ON because the sample time is slow or otherwise. In this event, have W0.00 turn OFF at a suitable time. Resetting the Sensor Sensor reset is explained below. Note •...
  • Page 58 Sample Ladder Program This sample program inputs IN5 to restart the Sensor. Trigger retry is executed at W0.00 ON. W0.00 When Sensor restart execution (W0.00) is turned ON, the command parameter for #A00 Sensor restart Sensor restart (001010) is output to Q:1 (IN0 to 4).
  • Page 59 Important It may happen that the PLC is unable to recognize BUSY signal ON because the cycle time is slow or otherwise. In this event, have W0.00 turn OFF at a suitable time. Saving Data in Sensor You can save the current settings (scene data and system data) in the Sensor. Note •...
  • Page 60 Executing External Teaching Teaching for all registered items can be executed using the current input image. Note • This command is only valid in Expanded Mode. • Application is possibly only from the Run Mode • If the parameter is applicable to more than one inspection item, it will be external teaching for all inspection items. Wiring Color Signal...
  • Page 61 Sample Ladder Program This sample program is used to input IN5 to external teaching. W0.00 When the external teaching bit (W0.00) turns ON, IN0 and IN3 are turned ON. #900 External teaching bit W0.00 TMHH 0000 External teaching bit If the BUSY signal is OFF 5 ms after IN0 and IN3 turn ON, the command input for external teaching (IN5) is turned ON T0000...
  • Page 62: With A Parallel Interface Sensor Data Unit

    2-2 Controlling Operation and Outputting Data with a Parallel Interface Sensor Data Unit Overview If you mount a Parallel Interface Sensor Data Unit, in addition to outputting OR judgement results, you can also use the Parallel Interface Sensor Data Unit to output the judgement results of judgement conditions that you set for parallel output (called parallel judgement output) and the results of measurement values and expressions for inspection items (called parallel data output).
  • Page 63: Setting Output Data

    Performing Continuous Measurements Continuous measurements are performed while the continuous measurement command is input from an external device. (1) IN7 signal ON (IN0 to IN6 are OFF) Or other device (2) Performs continuous measurements Setting Output Data You can set the data to output after measurements. Output Data You can output any of the following data through the Parallel Interface Sensor Data Unit.
  • Page 64 Parallel Judgement Outputs You can set judgement conditions for parallel output and then output the judgement results for those conditions. ● Setting the Items to Judge and the Judgement Conditions You can assign up to 16 judgement results to and output them from the D0 to D15 signals. As the items to judge, you can specify the measurement data from inspection items that can be output and the calculation results from the expression settings.
  • Page 65 ● Reflecting Judgement Results to the Overall Judgement You can specify whether to reflect the judgement result of a parallel judgement output in the overall judgement. (The default is to reflect them.) [In/Out] − [I/O setting] − [Output data set] − [Par. Jdg Output] − [Details] Tab Page − [Output parameter] −...
  • Page 66 ● Stopping Data Output You can also prevent the output data that is set from actually being output. (The default setting is [Yes].) [In/Out] − [I/O setting] − [Output data set] − [Parallel Data Output Setting] − [Details] Tab Page − [Output parameter] −...
  • Page 67 ● Timing Chart The following timing chart shows the data output timing for parallel judgement outputs. Run Mode entered. Setup Mode entered. RUN signal ON for 1 ms min. TRIG signal The FQ2 starts measurements when it detects the rising edge (OFF to ON transition) of the TRIG signal.
  • Page 68: Aligning The Data Output Timing With The External Device

    Aligning the Data Output Timing with the External Device You can use one of the following data output methods to align the timing of data output with an external device. • Aligning with the GATE Signal Status (No Handshaking): p. 66 •...
  • Page 69 Measurement done (BUSY output OFF) External device (1) Measurement processing and results output (OR and D0 to D15) (2) GATE signal You can change the settings of when the GATE signal is turned ON after the measurement data is output and the length of time that the GATE signal will remain ON.
  • Page 70 ● Single Measurement Example: Three Data Items Set for Parallel Data Output Timing Chart Run Mode entered. Setup Mode entered. RUN signal ON for 1 ms min. TRIG signal BUSY signal ON while measurements are being processed (depends on BUSY output conditions) Turned ON when overall judgement is NG.
  • Page 71 ● Continuous Measurements Example: Only Data 0 Set for Parallel Data Output Timing Chart Run Mode entered. Setup Mode entered. RUN signal IN0 to IN6 Allow 5 ms min. and then turn ON IN7. signals are Measurements Measurements Measurements Measurements IN7 signal executed.
  • Page 72 Outputting Measurement Results for Data Send Requests from the External Device (Handshaking) With handshaking, measurement results are output after there is a data send request (DSA signal) from the external device. Handshaking is effective for sequentially outputting many measurement results and it is a reliable way to transfer data.
  • Page 73 ● Timing Chart Example: Three Data Items Set for Parallel Data Output Run Mode entered. Setup Mode entere RUN signal ON for 1 ms min. TRIG signal ON while measurements are being processed (depends on BUSY output conditions) BUSY signal Overall judgement (Output when measurements have been OR signal completed regardless of the DSA signal.)
  • Page 74 Offsetting the Timing of Outputting Measurement Results The measurement result is output when the TRIG signal turns ON the number of times set for the [Number of delay] parameter. This allows you to delay the output timing of the measurement result from the Sensor according to the actual processing timing of the line.
  • Page 75 ● Timing Chart Operation When [Number of Delay] Is Set to 2 Run Mode entered. Setup Mode ente RUN signal ON for 1 ms min. TRIG signal ON while measurements are being processed (depends on BUSY output conditions) BUSY signal Overall judgement Overall judgement Overall judgement...
  • Page 76: Changing The Settings Of The I/O Signals

    Changing the Settings of the I/O Signals Changing the Settings of the Output Signals ● Adjusting the Judgement Output Timing You can change the timing of outputting the measurement result with the OR signal (after finalizing the measurement result) according to the needs of the external device. Adjusting the Judgement Output Timing: p.
  • Page 77: Controlling Operation From An External Device

    [Image] − [Camera setup] − [ ] − [Lighting control] Change the setting for lighting control. Item Parameter Setting Description Strobe output delay 0 to 65,535 μs Lighting control Enter the delay time from when the TRIG signal is (default: 0 μs) input until the external lighting is lit.
  • Page 78 Input Format (IN7 to IN0) IN7 IN6 IN5 IN4 IN3 IN2 IN1 IN0 Command Execution Changing the Scene This command changes the scene to shift to a different process. Parameters Execution Command Input example Input the scene number as a binary value. 10100001 (Changes to scene 1.) Timing Chart...
  • Page 79 Input Signals to Change the Scene Signal Function IN0 to IN4 These signals specify the scene number (0 to 31). Turn ON. Turn OFF. This signal functions as the execution trigger. Set the IN0 to IN6 signals, wait for at least 5 ms, and then turn ON the IN7 signal.
  • Page 80 Clearing an Error This command clears the error output status. Parameters Execution Command Input example 1000001 11000001 Timing Chart Run Mode entered. Setup Mode entered. RUN signal ON for 1 ms min. TRIG signal TRIG is input. BUSY signal Measurements executed. OR signal D signals Data...
  • Page 81 Output Signals Signal Function This signal is ON while the Sensor is in Run Mode. It will be OFF in Setup Mode. BUSY This signal does not change while clearing errors. However, do not clear an error while the BUSY signal is ON. The command will not be executed correctly. This signal does not change while clearing errors.
  • Page 82 Re-registering the Model and Reference Color This command is input from an external devices, such as a PLC, to re-register the models and reference colors for registered inspection items based on the image that was just input. Inspection items Re-registered data Search, Shape Search II, Sensitive Search, Search Position Compensation, and Models Shape Search Position Compensation...
  • Page 83 Input Signals Signal Function IN0 to IN2 Turn OFF. Turn ON. IN4 and IN5 Turn OFF. Turn ON. This signal is the trigger for executing re-registration of the model and reference color. Set the IN0 to IN6 signals, wait for at least 5 ms, and then turn ON the IN7 signal.
  • Page 84 Input Signals Signal Function Turn ON. IN1 and IN2 Turn OFF. Turn ON. IN4 and IN5 Turn OFF. Turn ON. This signal is the trigger for executing teaching. Set the IN0 to IN6 signals, wait for at least 5 ms, and then turn ON the IN7 signal.
  • Page 85 Output Signals Signal Function This signal is ON while the Sensor is in Run Mode. It will be OFF in Setup Mode. BUSY This signal does not change while clearing the OR and D signals. However, do not clear the OR and D signals while the BUSY signal is ON. The command will not be executed correctly.
  • Page 86 Saving Data in the Sensor This command saves the current settings (scene data and system data) in the Sensor. Parameters Execution Command Input example 1010000 11010000 Timing Chart Run Mode entered. Setup Mode entered. RUN signal IN0 to IN6 1010000 signals ON for 1 ms min.
  • Page 87 Retrying Inspection by External Signal (Trigger Retry) Measurement is repeated until all inspection items have been successfully scanned. Retry inspection ends when any one of the following conditions is satisfied: The scanning result of all inspection items is OK. Trigger retry (this command) turns OFF. The timeout time is exceeded.
  • Page 88 • When inspection is NG 1 Set the IN0 to IN6 signals. Run Mode entered. Setup Mode entered. 2 When IN5 is turned OFF > ON with RUN signal the BUSY signal OFF, trigger retry inspection starts. IN0 to IN6 signals 0001100 3 When retry inspection starts, the IN5 ON after at least 5 ms...
  • Page 89 Controlling Operation and Outputting Data with an Ethernet Connection 3-1 Controlling Operation and Outputting Data with EtherNet/IP Communications......... . .88 3-2 Controlling Operation and Outputting Data with PLC Link Communications.
  • Page 90: Controlling Operation And Outputting Data With Ethernet/Ip

    3-1 Controlling Operation and Outputting Data with EtherNet/IP Communications FQ2-S1 FQ2-S2 FQ2-S3 FQ2-S4 FQ2-CH Introduction to EtherNet/IP EtherNet/IP is an industrial multi-vendor network that uses Ethernet. The EtherNet/IP specifications are open standards managed by the ODVA (Open DeviceNet Vendor Association). EtherNet/IP is used by a wide range of industrial devices. Because EtherNet/IP uses standard Ethernet technology, various general-purpose Ethernet devices can be used in the network.
  • Page 91 Data Exchange with EtherNet/IP Data is exchanged cyclically between Ethernet devices on the EtherNet/IP network using tag data links as shown below. Originator Target Vision Sensor Connection Output tag set name: Input tag set name: A Connection from Input_101 FQ2 to PLC Tag: D0 Tag: Input_101 Connection...
  • Page 92: Fq2 Communications For Ethernet/Ip Connections

    The FQ2 complies with EtherNet/IP conformance test version A10. 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 93: Communications

    Types of Communications Areas For EtherNet/IP communications, the following three communications areas are used in the PLC to perform communications. Areas Used for the Different Control Methods Command/response (1) Command area This is the area to which you write control commands for communications the Vision Sensor to execute.
  • Page 94: Setting Up Ethernet/Ip Communications

    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 Important To use EtherNet/IP communications, do not automatically assign an IP address to the Vision Sensor.
  • Page 95 Parameter Description Setting range Output handshake Set whether to synchronize with the PLC when • Yes data is output. • No No: Measurement results are output without (default: Yes) synchronizing with the PLC. Data Output after Measurements When Handshaking Is Disabled: p. 117 Yes: Measurement results are output while syn- chronizing with the PLC.
  • Page 96 Parameter Description Setting range Refreshing task Set the communications cycle for cyclic tag 1 to 10,000 ms (default:10 ms) period data link communications for the Vision Sensor. Set the same value as you set for the requested packet interval (RPI) on the Network Configura- tor.
  • Page 97: 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 98 ● Settings in the FQ2 (Device Parameter Settings) Right-click the FQ2 in the network on the Network Configurator and select [Parameter] − [Edit]. The Edit Device Parameters Dialog Box will be displayed. Make the required settings. Parameter name Value Setting range 001 Input Size The total size of response area and output 48 to 272...
  • Page 99: Setting The Data To Output Automatically After Measurements

    Important • If I/O memory addresses are specified for the communications areas, the information in the communications areas will be cleared when the operating mode of the PLC changes unless addresses in the CIO Area, which are main- tained, are specified. •...
  • Page 100 Assigning Inspection Results to Output Data You can individually assign the parameters of the inspection items to output data (data 0 to data 31). The following procedure shows how to assign the measured position X of [0. Search] to data 0 for a binary output.
  • Page 101 Set the following items on the display to set expres- sions. Item Description Expression Register the expression to use to output multiple data. Examples: LPR (0, 3, I0.X, I0.Y) LPC (0, I0.C, I0.X, I0.Y) Const. Used to insert numbers and symbols into the expression. Data Used to select the inspection items for which to output data and insert the parameters to output into the expression.
  • Page 102 Output Results The expression that is registered for data 0 assigns the data for 16 items (64 bytes) in the output area as shown below. Output area data Assigned data Output data 0 (4 bytes) I0.X[0] (Position X 1st point) Output data 1 (4 bytes) I0.Y[0] (Position Y 1st point) Output data 2 (4 bytes)
  • Page 103 Outputting Character Strings (Only supported on the FQ2-S4/CH) You can set whether to output the character string that results from reading. Outputting the character string is possible for the following inspection results. • OCR • Bar code • 2D-code • 2D-code (DPM) The procedure for outputting the character string is given here for two inspection items.
  • Page 104: Memory Assignments And Commands

    Memory Assignments and Commands Memory Assignments This section describes the assignments of the command area for the input connection to the Sensor and the response and output areas for the output connection to the PLC. ● Input Connection to Sensor (PLC Originator to Vision Sensor Target) •...
  • Page 105 Signal Signal name Function Application method Command code Command code This I/O port stores the command code. Command/ response com- Parameters 1 to 3 Command param- These I/O ports store the command parameters. munications eters ● Output Connection to PLC (Vision Sensor Originator to PLC Target) •...
  • Page 106 Signal Signal name Function Application method Run Mode This signal is ON while the Vision Sensor is in Run Mode. Sensor status change output This signal is OFF while the Vision Sensor is not in Run Mode. GATE Data Output Com- This signal turns ON when the Vision Sensor finishes out- Data output pleted...
  • Page 107 Signal Signal name Function Application DATA0-63 Output data 0 to 63 These I/O ports output the output data that is Command/ specified for the data output method. response commu- The data that can be output is determined by nications the set value of the Output data size setting as follows: 32 bytes: Output data 0 to 7 64 bytes: Output data 0 to 15...
  • Page 108 • Data Type to Access the Command Area Name of data type: S_EIPOutput Type of derivative data type: Structure Name of data type Data type S_EIPOutput STRUCT ControlFlag U_EIPFlag The data type that was defined above (1) CommandCode DWORD 32-bit bit string data CommandParam1 UDINT 32-bit integer data...
  • Page 109 • Assignment Example for Variable Data Type That Matches the Response and Output Areas Response Area Bits − − − − − − − − − − RUN OR READY BUSY FLG Status − − − − − − − −...
  • Page 110 • 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 • Response Area Signal name Variable name EIPInput.StatusFlag.F[0] BUSY EIPInput.StatusFlag.F[1] READY EIPInput.StatusFlag.F[2] EIPInput.StatusFlag.F[3] EIPInput.StatusFlag.F[4] EIPInput.StatusFlag.F[15]...
  • Page 111 Setting Variables (Sysmac Studio) Define variables with AT specifications to the I/O memory addresses that are assigned in the communi- cations areas as shown below. Setting Examples Variable: a (AT specification: D0.0) Variable: b (AT specification: D0.1) Variable: c (AT specification: D0.15) Variable: d (AT specification: D1.0) Setting Connections Set the connections as shown in the following table.
  • Page 112 Command code in Command name Function Reference command area (hex) 4010 0010 Re-register Model (Search, This command re-registers the models for p.210 Shape search II, Sensitive registered Search, Shape search II, Sensitive search, Color data) search, and Color data inspection items. 4020 0010 Teaching (All Inspection Items) Executes teaching for all registered inspec-...
  • Page 113 ● Commands to Set Status Command code in Command name Function Reference command area (hex) 1000 0030 Select Scene Changes the scene number to be used. p.216 ● Commands to Read Data Command code in Command name Function Reference command area (hex) 1010 0040 Get Image Adjustment Item...
  • Page 114 ● Commands to Write Data Command code in Command name Function Reference command area (hex) 1010 0050 Set Image Adjustment Item Sets parameters for a position compensation p.233 Data item or filter item. 1020 0050 Set Inspection Item Data Sets parameters for the specified inspection p.233 item.
  • Page 115 Command code in Command name Function Reference command area (hex) B000 0060 Load All Calibration Data Loads all calibration data that is stored on the p.247 SD card inserted in the Touch Finder. C000 0060 Load Model Dictionary Data Loads model dictionary data that is stored on p.248 the SD card inserted in the Touch Finder as the model dictionary with the specified num-...
  • Page 116: Timing Chart For Ethernet/Ip Communications

    Command code in Command name Function Reference command area (hex) 8000 0070 Save Statistical Data Saves statistical data saved in the Sensor’s p.261 memory by the logging function to the SD card inserted in the Touch Finder as csv data. Timing Chart for EtherNet/IP Communications ●...
  • Page 117 ● Execution of Control Commands Other Than Continuous Measurements with the Control Command Execu- tion Bit (EXE) Signal Command code Command parameters Command Area Control Command Execution Bit (EXE) signal Command code Command Execution Active Control Command (BUSY) signal Execution Active Trigger Input Ready (READY) signal Response...
  • Page 118 ● Execution of Control Commands for Continuous Measurements with the Control Command Execution Bit (EXE) Signal Command code Command parameters Command Area Control Command Execution Bit (EXE) signal Command code Command Continuous measure- Execution Active ments executed. (BUSY) signal Trigger Input Ready (READY) signal Response...
  • Page 119 Note During execution of continuous measurements, the BUSY signal remains ON. The Vision Sensor will acknowledge the EXE signal only after the End Continuous Measurements command is executed. ● Data Output after Measurements When Handshaking Is Enabled Second data output First data output Data Output Request Bit (DSA)
  • Page 120 Important Set the parameters so that the following conditions are met for the data output period and time. • Set the timeout time in the connection settings between the PLC and Sensor so that it is longer than the measure- ment processing time of the Sensor.
  • Page 121: Sample Ladder Programming

    Sample Ladder Programming ● Command/Response Communications The following sample program is used to clear measurement values. The Clear Measurement Values command (lower bytes: #2010, upper bytes: #0010) is sent to the Vision Sensor. First RUN Period Flag Sets the lower word of the Clear Measurement Values command.
  • Page 122: With Ethernet/Ip Message Communications

    Communicating with the Sensor Controller with EtherNet/IP Message Communications Message communications are used when communicating with a PLC that does not support tag data link communications or when using functions, such as character string output, that are not supported in tag data link communications.
  • Page 123: Controlling Operation And Outputting Data With Plc Link

    3-2 Controlling Operation and Outputting Data with PLC Link Communications This section explains how to configure the communication settings that are required for communication between the sensor and external devices by PLC Link. Communication specifications (PLC I/O memory area used for PLC Link communication and types of communication commands) are also described, and a communication timing chart is provided.
  • Page 124: Setting Up Plc Link Communications

    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 Important •...
  • Page 125 Press [Area settings]. Here, you specify the addresses in the I/O memory of the PLC that are to be allocated as the communica- tions areas for 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.
  • Page 126: Setting The Data To Output Automatically After Measurements

    Description Setting range Item Retry interval Sets the interval for retrying communications. 0 to 2,147,483,647 ms This setting is enabled only when [Retry details] is set to [ON]. Default:10,000 ms Max output data Sets the maximum data size that can be output at one time 32 to 1,024 bytes through PLC Link communications.
  • Page 127 The measurement data from inspection items that can be output and the calculation results from the expression settings can be output. For data that can be output, refer to the Measurement Data That Can Be Used for External Outputs and Calculations for each inspection item. Assigning Detection Results to Output Data: p.
  • Page 128 [In/Out] − [I/O settings] − [Output data setting] − [Link data output/Fieldbus data output] − [Output data set] Press [0. Data 0]. Press [Multi-data]. Set the following items on the display to set expres- sions. Item Description Expression Register the expression to use to output multiple data. Examples: LPR (0, 3, I0.X, I0.Y) LPC (0, I0.C, I0.X, I0.Y)
  • Page 129 ● Expression Setting Example This example registers an expression to output the following inspection results for data 0. Inspection item: 0 Search Parameters to output: Position X, Position Y, Reference SX, and Reference SY Multi-point output setting: Multi-point output Check Box selected, Count = 4 LPR(0,I0.C I0.X,I0.Y,I0.SX,I0.SY) Function...
  • Page 130 Setting the Output Format [In/Out] − [I/O setting] − [Output data setting] − [Link data output/Fieldbus data output] Press [Output format]. Press [Output form]. 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.
  • Page 131: Memory Assignments For Plc Link Communications

    Note • Endian Little endian data is output. • Code Conversion The converted codes are outputted for the following character codes. Before conversion After conversion Character code &h0D &h8541 &h0A &h8542 &h8543 &h7F &hFF &h8544 Memory Assignments for PLC Link Communications This section describes the assignments for the Command, Response, and Data Output Areas.
  • Page 132 Signal Signal name Function Application ERRCLR Clear Error Turn ON this signal to turn OFF the error (ERR) sig- Command/ nal from the Vision Sensor. Response Commu- nications 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.
  • Page 133 Signal Signal name Function Application Error This signal turns ON when an error is detected Command/ in the Vision Sensor. response commu- nications Important This flag turns ON when an error occurs in PLC link communications. This signal will remain OFF for any errors other than PLC Link communications errors.
  • Page 134 Signal Signal name Function Application DATA0-255 Output data 0 to 255 These I/O ports output the output data that is Data output after specified for the data output method. measurements The range of the data that can be output is determined by the set value of the [Max output data] (number of output data upper value) parameter setting as follows:...
  • Page 135 First word of com- Command name Function Reference mand area (hex) 4021 0010 Teaching (Filter/Position Com- Updates reference data for the specified p.211 pensation Item) image adjustment processing item (filter item/ position compensation item). 4022 0010 Teaching (Inspection Item) Updates the reference data for the specified p.212 inspection item.
  • Page 136 First word of com- Command name Function Reference mand area (hex) 1040 0040 Acquire Camera Parameter Acquires the value of the specified camera p.218 parameter. 3000 0040 Get Software Version Informa- Acquires the Sensor's software version. p.221 tion 4010 0040 Acquire System Data Acquires the value set for the specified sys- p.222...
  • Page 137 First word of com- Command name Function Reference mand area (hex) 4060 0050 Set Terminal Offset Data Sets the value of the terminal offset data that p.235 is added to the IN0 to IN4 command parame- ters 7010 0030 Set Communication Input Sta- Sets the input status (allowed/prohibited) of p.236 the communications port for the specified...
  • Page 138 ● Save Setting Data Commands First word of com- Command name Function Reference mand area (hex) 1000 0070 Save Scene Data Saves scene data to the SD card inserted in p.250 the Touch Finder as a file. 2000 0070 Save All Scene Data Saves all scene data as a file to the SD card p.251 inserted in the Touch Finder.
  • Page 139: Timing Chart For Plc Link Communications

    Timing Chart for PLC Link Communications ● Command/Response Communications 1. The command code and command parameters are set from the PLC. Command code 2.The PLC turns ON the Control Command Execution Bit (EXE) signal. The execution command is sent to the Vision Sensor.
  • Page 140 ● Data Output after Measurements When Handshaking Is Enabled 1. When the PLC is ready to receive output data, the Data Output Request First data output Bit (DSA) is turned ON from the PLC and a request is made to the Vision Sensor to output the data.
  • Page 141: Sample Ladder Programming

    Sample Ladder Programming ● Command/Response Communications The following sample program is used to perform single measurements. The single measurements command (lower bytes: #1010, upper bytes: #0010) is sent to the Vision Sensor. First RUN Period Flag Sets the lower word of the measurement command.
  • Page 142: Outputting Data And Controlling Operation Through Profinet

    3-3 Outputting Data and Controlling Operation through PROFINET FQ2-S1 FQ2-S2 FQ2-S3 FQ2-S4 FQ2-CH Overview of PROFINET PROFINET is a network for industrial use that applies industrial Ethernet (100 Mbps, Full duplex) to PROFIBUS DP. PROFINET is an open standard that is managed by PI (PROFIBUS and PROFINET International), and is used in a variety of types of industrial equipment.
  • Page 143 PROFINET IO Communication Specifications of PROFINET IO The communication specifications of PROFINET IO are described below. Communication Specifica- Type Details Support on FQ2 tions Periodic data communica- RT (real-time) communica- Uses standard Ethernet hardware and Supported tion method tion achieves the same level of perfor- mance as the existing Fieldbus.
  • Page 144 I/O Devices I/O devices consist of DAPs and I/O modules. The functions and properties of these devices are described in a GSD file. • DAP (Device Access Point) : This is an Ethernet access point, and is used by means of a communica- tion program.
  • Page 145 I/O controller I/O device Vision Sensor Cyclic Output Data External device (control output, Input Area Communication (PLC FQ2) measurement results, etc.) cycle Output Area External device Cyclic Input (control input, (PLC FQ2) Communication Data commands, etc.) cycle Ethernet (PROFINET) CR is classified into IO data CR, record data CR and alarm CR. Within the IO data CR, data communication is performed for each refreshing task period.
  • Page 146: Fq2 Communications For Profinet Connections

    FQ2 Communications for PROFINET Connections You can use PROFINET IO data CR to communicate between the PLC and the Vision Sensor to perform control via command/response communications or to output data after measurements. The FQ2 complies with PROFINET conformance class A. To connect to external devices and communicate using PROFINET, configure the PROFINET IO data CR settings with the Engineering Tool.
  • Page 147: Setting Up Ethernet/Ip Communications (Profinet)

    Setting Up EtherNet/IP Communications (PROFINET) Setting Network Settings in the Sensor Set the IP address of the Sensor according to the network where the external devices, such as PLCs, are connected. (Setup Mode) − [Sensor settings] − [Network] − [Ethernet] − [IP address setting] Press [Fixed].
  • Page 148 Parameter Description Setting range Output handshake Set whether to synchronize with the external • Yes device when data is output. • No No: Measurement results are output without (default: Yes) synchronizing with the external device. Data Output after Measurements When Handshaking Is Disabled: p. 117 Yes: Measurement results are output while syn- chronizing with the external device.
  • Page 149: Communication Settings Procedure

    Parameter Description Setting range Data output period This parameter is displayed and can be set only 2 to 5,000 ms (default: 40 ms) when [Output handshake] is set to [No]. Set the period for outputting measurement results. Important Set a value that is longer that the GATE ON output time and shorter than the measurement interval of the Sensor.
  • Page 150: Setting The Data To Output Automatically After Measurements

    Setting the Data to Output Automatically after Measurements You can specify the measurement data to output automatically to the PLC after measurements. Data That Can Be Output • Data Output On the FQ2, data that is output after measurement can be assigned to Data 0 to Data 31 in the output data settings.
  • Page 151 Press [Position X X]. If the inspection item allows multi-point output, press the number ([0] to [31]) of the inspection result for which to output the data from the list of inspec- tion results. To register something to data 1 and higher, repeat this process. The settings will be enabled after you restart the Sensor.
  • Page 152 Item Description Math. Either of the following two functions can be inserted. • LPR function (order of the measurement data) The measurement data is output in order. Format: LPR(start_number,number_of_data,data_1, data_2,...data_5) You can omit data 2 to data 5. • LPC function (order of the detection points) Data is output for each detected measurement point.
  • Page 153 Note • The inspection results will be output according to the sorting method that is set for multi-point output for the inspection item. • In order to output multiple detection results of the inspection items that can be output their results simultaneously, from the [Inspection] menu of the targeted inspection item, press [Multi-point output] and select [Yes].
  • Page 154: Memory Assignments And Commands

    Note • Endian Little endian data is output. • Code Conversion The converted codes are outputted for the following character codes. Before conversion After conversion Character code &h0D &h8541 &h0A &h8542 &h8543 &h7F &hFF &h8544 Memory Assignments and Commands Memory Assignments This section explains the assignments in the Output Area of the CR for input to the sensor (command area), the Input Area of the CR for output to external devices (response area), and the Input Area (output area).
  • Page 155 Output Area Bits Description (command area) Command parameter 3 Command parameter 3 (32 bits) Signal Signal name Function Application method Control Command Turn ON this signal from the external device to send a Command/ Execution Bit control command for the Vision Sensor to execute. response com- Set the control command code and parameters before munications...
  • Page 156 Input Area Bits Description (response area) Response code Response code (32 bits) Response data Response data (32 bits) Signal Signal name Function Application method Control Command This signal turns ON when the Vision Sensor completes Command/ Completed execution of the control command. response com- (This signal turns ON after the control command code, munications...
  • Page 157 Signal Signal name Function Application method Command code Command code This I/O port returns the command code that was exe- Command/ cuted. response com- munications Response code Response code This I/O port contains the response code of the executed command. Response data Response data This I/O port contains the response data of the executed...
  • Page 158 Input Area Bits Description (Output Area) +268 Output data 64 Output data 63 (32 bits) +269 +270 +271 Signal Signal name Function Application DATA0-63 Output data 0 to 63 These I/O ports output the output data that is Command/ specified for the data output method. response commu- The data that can be output is determined by nications...
  • Page 159 Command code in Command name Function Reference command area (hex) 00103010 Save Data in Sensor This command saves the current setting data p.210 (system data, scene groups, and calibration data) in the Sensor. 00104010 Re-register Model (Search, This command re-registers the models for p.210 Shape search II, Sensitive registered Search, Shape search II, Sensitive...
  • Page 160 ● Commands to Read Data Command code in Command name Function Reference command area (hex) 00401010 Get Image Adjustment Item acquires parameters and measurement val- p.217 Data ues for a position compensation item or filter item. 00401020 Get Inspection Item Data Acquires parameters and measurement val- p.218 ues for the specified inspection item.
  • Page 161 ● Commands to Write Data Command code in Command name Function Reference command area (hex) 00501010 Set Image Adjustment Item Sets parameters for a position compensation p.233 Data item or filter item. 00501020 Set Inspection Item Data Sets parameters for the specified inspection p.233 item.
  • Page 162 Command code in Command name Function Reference command area (hex) 0060B000 Load All Calibration Data This command loads all calibration data that p.247 is stored on the SD card inserted in the Touch Finder. 0060C000 Load Model Dictionary Data This command loads model dictionary data p.248 that is stored on the SD card inserted in the Touch Finder as the model dictionary with the...
  • Page 163: Timing Chart For Ethernet/Ip Communications

    Command code in Command name Function Reference command area (hex) 00708000 Save Statistical Data Saves statistical data saved in the Sensor’s p.261 memory by the logging function to the SD card inserted in the Touch Finder as csv data. Timing Chart for EtherNet/IP Communications ●...
  • Page 164 ● Execution of Control Commands Other Than Continuous Measurements with the Control Command Execu- tion Bit (EXE) Signal Command code Command parameters Command Area Control Command Execution Bit (EXE) signal Command code Command Control Command Execution Active Execution Active (BUSY) signal Response Trigger Input Ready (READY) signal...
  • Page 165 ● Execution of Control Commands for Continuous Measurements with the Control Command Execution Bit (EXE) Signal Command code Command parameters Command Area Control Command Execution Bit (EXE) signal Command code Command Continuous measure- Execution Active ments executed. (BUSY) signal Trigger Input Ready (READY) signal Response Area...
  • Page 166 Note During execution of continuous measurements, the BUSY signal remains ON. The Vision Sensor will acknowledge the EXE signal only after the End Continuous Measurements command is executed. ● Data Output after Measurements When Handshaking Is Enabled Second data output First data output Data Output Request Bit (DSA)
  • Page 167: Sample Ladder Programming

    Important Set the parameters so that the following conditions are met for the data output period and time. • Set the data output period so that it is longer that the GATE signal ON period and shorter than the measurement interval of the Sensor.
  • Page 168 Note While the trigger input (TRIG signal) for parallel measurements is ON, the PROFINET BUSY signal will also be ON. Therefore, no PROFINET commands will be executed. Any PROFINET commands will be executed after execution of the parallel commands. You can also use a PROFINET to perform measurements and output data with the paral- lel I/O measurement trigger signal (TRIG).
  • Page 169: Control And Output In No-Protocol (Tcp) / No-Protocol (Udp)

    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 170 If you selected [No protocol (TCP)], select [TCP serv- er] or [TCP client] for [Connection mode] and then press [Back]. If you selected [No protocol (UDP)] or set [Connec- tion mode] to [TCP client] in step 2, set the parame- ters below.
  • Page 171: Setting The Data To Output Automatically After Measurements

    Setting the Data to Output Automatically after Measurements You can set the data to output automatically after measurements. (You can set up to 32 data items.) Data That Can Be Output • Data Output On the FQ2, data output after measurement can be assigned to Data 0 to Data 31 in the output data settings. The data of items assigned in the output data settings are output in units of 4 bytes per item.
  • Page 172 Assigning Inspection Results to Output Data You can individually assign the parameters of the inspection items to output data (data 0 to data 31). The following procedure shows how to assign the measured position X of [0. Search] to data 0 for a binary output.
  • Page 173 Set the following items on the display to set expres- sions. Item Description Expression Register the expression to use to output multiple data. Examples: LPR (0, 3, I0.X, I0.Y) LPC (0, I0.C, I0.X, I0.Y) Const. Used to insert numbers and symbols into the expression. Data Used to select the inspection items for which to output data and insert the parameters to output into the expression.
  • Page 174 Output order Assigned data I0.Y[1] (Position Y 2nd point) I0.SX[1] (Reference SX 2nd point) I0.SY[1] (Reference SY 2nd point) I0.X[2] (Position X 3rd point) I0.Y[2] (Position Y 3rd point) I0.SX[2] (Reference SX 3rd point) I0.SY[2] (Reference SY 3rd point) I0.X[3] (Position X 4th point) I0.Y[3] (Position Y 4th point) I0.SX[3] (Reference SX 4th point) I0.SY[3] (Reference SY 4th point)
  • Page 175 Item Description Setting range For ASCII Digits of inte- Sets the number of digits in the integer part of 1 to 10 digits the number. Default: 6 digits Digits of dec- Set the number of digits in the integer part. 0 to 4 digits imal Default: 4 digits...
  • Page 176 Note Data that is output after measurement is output until the last data even after the measurement is finished. Data out- put is not interrupted midway. • When Output Format Is Binary Set the numerical expression. Select either fixed decimal or floating-point decimal. •...
  • Page 177 Outputting Character Strings (Only Supported on the FQ2-S4/CH) You can set whether to output the character string that results from reading. Outputting the character string is possible for the following inspection results. • OCR • Bar code • 2D-code • 2D-code (DPM) The procedure for outputting the character string is given here for two inspection items.
  • Page 178 Controlling the Sensor from an External Device (Procedure for No-protocol Command/Response Communications) Command Format This section describes the command format for no-protocol communications. Commands defined in the command list can be used. Set commands and parameters in ASCII. If the command has an argument parameter, set the parameter after inserting a space (0x20). If it has multiple parameters, insert a space before each parameter.
  • Page 179 Format of no-protocol (UDP) commands Delimiters are not necessary in commands used in no-protocol (UDP) communication. Delimiters are also not used in responses. In cases such as a Get Scene Number command where the acquired data is followed by an OK response, the acquired data and OK are sent in separate packets. Command List (No-protocol (TCP), No-protocol (UDP)) The following table lists the no-protocol commands.
  • Page 180 Type of command Command Abbreviation Function Reference Execution com- UPDATEREFITEM Re-registers the reference value for p.274 mands the specified inspection item based on the previously loaded image. UPDATEREFPOS Re-registers the reference value for p.275 the specified position compensation item based on the previously loaded image.
  • Page 181 Type of command Command Abbreviation Function Reference Commands to read MODE None Acquires the FQ2 execution status p.294 data (execution mode). OUTPUTTRANS- Acquires the output status (allowed/ p.295 STATE prohibited) for the communications protocol set with the Set Communi- cation Output Status command. PARAALLCOND Batch acquires the ON/OFF status p.296...
  • Page 182 Type of command Command Abbreviation Function Reference Commands to Write SETITEMFIG- SIFP Changes the range set as the mea- p.312 Data PARAM surement region or the model regis- tration region for an inspection item. SETPOSFIG- SPFP Changes the range set as the mea- p.314 PARAM surement region or the model regis-...
  • Page 183 Type of command Command Abbreviation Function Reference Load setting data CLBLOAD None Loads calibration data that is stored p.333 commands on the SD card inserted in the Touch Finder as the data for the specified calibration number. CGRLOAD None Loads all calibration data that is p.334 stored on the SD card inserted in the Touch Finder.
  • Page 184 Type of command Command Abbreviation Function Reference Save setting data LASTIMAGESAVE Saves the latest input image to the p.346 commands SD card inserted in the Touch Finder as ifz data. LOGDATASAVE Saves measurement data saved in p.347 the Sensor’s memory by the logging function to the SD card inserted in the Touch Finder as csv data.
  • Page 185: Binary Data File Load And Save Commands

    Binary Data File Load and Save Commands These commands allow various types of sensor data to be saved in binary data format. Use these commands when you want to directly control scene data and system data from the external device side (user side) rather than the sensor side.
  • Page 186 Binary Data File Save Command The flow below is used to save various types of setting files in an external device as data in binary data format. PLC (user-created program) Preparation for check command execution Check command transmission Check command execution (Checks size of binary data to be saved) Review size of storage Judges if binary data...
  • Page 187 Command List (Load/Save Commands for Binary Data Files) A table of load/save commands for binary data files is shown below. Type of command Command Abbreviation Function Reference Load commands for PRESCNLOADB None Before loading scene data in binary data p.349 binary data files format, the Sensor checks whether or not it can receive binary data.
  • Page 188 Type of command Command Abbreviation Function Reference Save commands for PRESCNSAVEB None Before scene data in binary data format is p.359 binary data files output, a check is performed to determine if the data can be received by the external device that will receive the data.
  • Page 189 Type of command Command Abbreviation Function Reference Save commands for PREIMAGESAVEB None Before images saved to the Sensor's p.364 binary data files memory are output in binary data format, a check is performed to determine if the data can be received by the external device that will receive the data.
  • Page 190: 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 191: Setting Up Fins/Tcp No-Protocol Communications

    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 FQ2-S/CH User’s Manual...
  • Page 192: List Of Fins Commands

    Initial Settings for FINS/TCP No-protocol Communications You must set the communications method of the destination external device to perform no-protocol communications. [Sensor settings] − [Data output] − [No-protocol data] Press [No protocol (FINS/TCP)]. Set [Connection mode] to either [TCP server] or [TCP client].
  • Page 193 Type of command Command codes (hex) Function Reference MRC+SRC com- Vision Sensor com- mand code mand code Execution commands 280F 00101010 Executes one measurement. p.372 280F 00102010 Clears the measurement values. p.373 280F 00102040 Clears the error output status (error output and p.373 error indicator).
  • Page 194 Type of command Command codes (hex) Function Reference MRC+SRC com- Vision Sensor com- mand code mand code Commands to get status 280F 00205000 Acquires the Sensor's most recent error code. p.406 280F 00207010 Acquires the input status (allowed/prohibited) p.385 for the communications protocol set with the Set Communication Input Status command.
  • Page 195 Type of command Command codes (hex) Function Reference MRC+SRC com- Vision Sensor com- mand code mand code Commands to set status 280F 00307010 Sets the input status (allowed/prohibited) of the p.392 communications port for the specified commu- nications protocol. 280F 00307020 Sets the output status (allowed/prohibited) for p.393...
  • Page 196 Type of command Command codes (hex) Function Reference MRC+SRC com- Vision Sensor com- mand code mand code Save setting data com- 280F 00704010 Saves all image data saved in the Sensor’s p.424 mands memory by the logging function to the SD card inserted in the Touch Finder as ifz data.
  • Page 197: With An Rs-232C Connection

    Controlling Operation and Outputting Data with an RS-232C Connection 4-1 Introduction to RS-232C Connections ......196 4-2 Controlling Operation and Outputting Data with RS-232C No-protocol Communications .
  • Page 198: Introduction To Rs-232C Connections

    4-1 Introduction to RS-232C Connections FQ2-S3 FQ2-S4 FQ2-CH You can connect an RS-232C Interface Sensor Data Unit to the I/O cable connector on the FQ2. If you connect a Sensor Data Unit, you can use no-protocol communications to send and receive commands, inspection item parameters, and other data between the Sensor and the external control device that is connected with the RS-232C cable.
  • Page 199: With Rs-232C 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 com- munications. Item Description Parameter Baud rate [bps] Set the baud rate to use for RS-232C communications.
  • Page 200: Setting The Data To Output Automatically After Measurements

    Item Description Parameter Interval timeout Set the time in seconds to generate a timeout error. 1 to 120 s, 0: Not monitored. (default: 0 s) Total timeout Set the time in seconds to generate a timeout error. 1 to 120 s, 0: Not monitored. (default: 0 s) Setting the Data to Output Automatically after Measurements You can set the data to output automatically after measurements.
  • Page 201 Appendices 5-1 Command Control ........200 5-2 Detailed EtherNet/IP Communications Specifications .
  • Page 202: Command Control

    5-1 Command Control This section describes the commands that are used to control the Sensor Controller from an external device. Parameter Notation Examples for Command Control This section provides examples of binary inputs of parameters and other arguments for command control. Four-byte Data The following example shows the input to change the scene to scene number 5 with the Switch Scene command.
  • Page 203 Command (PLC to Sensor Controller) First word in Hexadeci- Bits Description Command Area mal notation 12 to 15 8 to 11 4 to 7 0 to 3 4000 0100 0000 0000 0000 Command code 0070 0000 0000 0111 0000 0001 0000 0000 0000...
  • Page 204: Command List

    Command List This section lists the commands that you can use with the FQ2 and the communications protocols for which each command is supported. Execution Commands OK: Applicable command, RST: Command with restricted execution, NA: Non-applicable command Function Parallel PLC link EtherNet/ PROFINET No-proto-...
  • Page 205 Commands to Get Status OK: Applicable command, RST: Command with restricted execution, NA: Non-applicable command Function Parallel PLC link EtherNet/ PROFINET No-proto- No-proto- p. 133 p. 157 col (TCP/ col (FINS) p. 46, p. 75 p. 110 UDP/RS- p. 192 232C) p.
  • Page 206 OK: Applicable command, RST: Command with restricted execution, NA: Non-applicable command Function Parallel PLC link EtherNet/ PROFINET No-proto- No-proto- p. 133 p. 158 col (TCP/ col (FINS) p. 46, p. 75 p. 111 UDP/RS- p. 192 232C) p. 178 Acquires the input status (allowed/prohibited) for the communications protocol set with the Set Communica- tion Input Status command.
  • Page 207 OK: Applicable command, RST: Command with restricted execution, NA: Non-applicable command Function Parallel PLC link EtherNet/ PROFINET No-proto- No-proto- p. 134 p. 159 col (TCP/ col (FINS) p. 46, p. 75 p. 112 UDP/RS- p. 193 232C) p. 179 Batch sets the ON/OFF status for the all parallel I/O out- put terminals other than the D terminals (D0 to D15).
  • Page 208 File Save Commands OK: Applicable command, RST: Command with restricted execution, NA: Non-applicable command Function Parallel PLC link EtherNet/ PROFINET No-proto- No-proto- p. 136 p. 160 col (TCP/ col (FINS) p. 46, p. 75 p. 113 UDP/RS- p. 193 232C) p.
  • Page 209: Command Details

    Command Details Details of PLC Link, EtherNet/IP, and PROFINET Commands Single Measurement This command executes one measurement. Command (PLC to Vision Sensor) First word of com- Bits Contents mand area 12 to 15 8 to 11 4 to 7 0 to 3 0001 0000 0001...
  • Page 210 Response (Vision Sensor to PLC) First word of Bits Contents response area 12 to 15 8 to 11 4 to 7 0 to 3 0001 0000 0010 0000 Command code The command code for which the response 0000 0000 0001 0000 applies is stored.
  • Page 211 Response (Vision Sensor to PLC) First word of Bits Contents response area 12 to 15 8 to 11 4 to 7 0 to 3 0010 0000 0001 0000 Command code The command code for which the response 0000 0000 0001 0000 applies is stored.
  • Page 212 Response (Vision Sensor to PLC) First word of Bits Description response area 12 to 15 8 to 11 4 to 7 0 to 3 0010 0000 0110 0000 Command code The command code for which the response 0000 0000 0001 0000 applies is stored.
  • Page 213 Response (Vision Sensor to PLC) First word of Bits Contents response area 12 to 15 8 to 11 4 to 7 0 to 3 0100 0000 0001 0000 Command code The command code for which the response 0000 0000 0001 0000 applies is stored.
  • Page 214 Response (Vision Sensor to PLC) First word of Bits Description response area 12 to 15 8 to 11 4 to 7 0 to 3 0100 0000 0010 0001 Command code The command code for which the response 0000 0000 0001 0000 applies is stored.
  • Page 215 Registered Image command. Acquire Registered Image: p.214 A maximum of 1000 registered images (image registration number: 0 to 999) can be set. For the PC Tool, the data is saved in the "\..\My Documents\OMRON FQ\" folder. FQ2-S/CH User’s Manual Command Control...
  • Page 216 Command (PLC to Vision Sensor) First word of com- Bits Description mand area 12 to 15 8 to 11 4 to 7 0 to 3 1000 0000 0001 0000 Command code 0000 0000 0001 0000 0000 0000 0000 0000 Registered image number (0 to 999) 0000 0000 0000...
  • Page 217 Response (Vision Sensor to PLC) First word of Bits Description response area 12 to 15 8 to 11 4 to 7 0 to 3 1000 0000 0010 0000 Command code The command code for which the response 0000 0000 0001 0000 applies is stored.
  • Page 218 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. Important If you leave the EXE signal ON when you use it to execute the Reset command, the Vision Sensor will restart repeatedly. After you execute the Reset command, turn OFF the EXE signal before the Vision Sensor restarts.
  • Page 219 Response (Vision Sensor to PLC) First word of Bits Contents response area 12 to 15 8 to 11 4 to 7 0 to 3 0001 0000 0000 0000 Command code The command code for which the response 0000 0000 0011 0000 applies is stored.
  • Page 220 Get Inspection Item Data This command acquires parameters and measurement values for the specified inspection item. Command (PLC to Vision Sensor) First word of com- Bits Contents mand area 12 to 15 8 to 11 4 to 7 0 to 3 0001 0000 0010...
  • Page 221 Response (Vision Sensor to PLC) First word of Bits Description response area 12 to 15 8 to 11 4 to 7 0 to 3 0001 0000 0100 0000 Command code The command code for which the 0000 0000 0100 0000 response applies is stored.
  • Page 222 Camera Item Range Description parameter number Y coordinate of the partial The following ranges depending Reduces the range of the image to input end point on the processing resolution of input. the Sensor's internal camera. Specify the X and Y coordinates of 0.3M: 7 to 479 the start point and end point.
  • Page 223 The processing resolution of the camera in the FQ2 Sensor is as follows. Processing FQ2 model Remarks resolution 0.3M FQ2-S1@@@@@ Built-in Lighting types that FQ2-S2@@@@@ have a processing resolution FQ2-S4@@@@@ of 752x480. FQ2-S4@@@@@-M FQ2-CH1@@@@@-M 0.8M FQ2-S3@@@@@-08 Built-in Lighting types that FQ2-S3@@@@@-08M have a processing resolution FQ2-S4@@@@@-08...
  • Page 224 Acquire System Data This command acquires the value set for the specified system data. Command (PLC to Vision Sensor) First word of Bits Description command 12 to 15 8 to 11 4 to 7 0 to 3 area 0100 0000 0001 0000 Command code...
  • Page 225 System Type Item Data Range Description data num- size Logging Measurement 0: None Specifies the logging con- control data 1: All dition for measurement 2: NG only data for each inspection item. Logging Statistical data 0: None Specifies whether or not to control 1: Yes record statistical data...
  • Page 226 System Type Item Data Range Description data num- size Parallel OUT1 signal 0: Control signal Specifies whether to use control assignment 1 to 32: OR0 to 31 the signal as a control sig- 1001 to 1032: Expression 1 to 32 nal or to use the signal as a 2001: OR (overall judgement) judgment output (OR indi-...
  • Page 227 System Type Item Data Range Description data num- size Parallel OR one-shot 1 to 10,000 Specifies the output time Interface output time (x0.1 ms) when using one- Sensor shot output. Data Unit Parallel Output control 0: No handshake Specifies the control Interface 1: Handshake method for output timing.
  • Page 228 System Type Item Data Range Description data num- size RS-232C All OUT sig- 0: Positive Specifies the polarity for all Interface nals polarity 1: Negative output signals. Sensor Data Unit RS-232C Parallel com- 0: Standard mode Defines the parallel com- Interface mand mode 1: Expanded mode...
  • Page 229 Acquire Statistical Data Acquires the statistical data (such as the number of measurements, number of NG overall judgments, and other information, since the power supply was turned ON) held by the Sensor. The following types of statistical data are available. Specify the data to be read from these types with this command.
  • Page 230 Response (Vision Sensor to PLC) First word of Bits Contents response area 12 to 15 8 to 11 4 to 7 0 to 3 0101 0000 0000 0000 Command code The command code for which the response 0000 0000 0010 0000 applies is stored.
  • Page 231 The communications protocol types are defined by the following numbers. Communications Communications type Remarks protocol No. No protocol (Ethernet) No-protocol (UDP) No-protocol (TCP) No-protocol (FINS/TCP) No protocol (RS-232C) Parallel I/O Fieldbus EtherNet/IP PROFINET Reserved Results in an error when speci- fied.
  • Page 232 Acquire Terminal Status Acquires the ON/OFF status of the input signal for the specified parallel I/O terminal. Command (PLC to Vision Sensor) First word of com- Bits Description mand area 12 to 15 8 to 11 4 to 7 0 to 3 1000 0000 0001...
  • Page 233 Batch Acquire Terminal Status Batch acquires the ON/OFF status for the all parallel I/O input terminals other than the IN terminals. Command (PLC to Vision Sensor) First word of com- Bits Description mand area 12 to 15 8 to 11 4 to 7 0 to 3 1000...
  • Page 234 Response (Vision Sensor to PLC) First word of Bits Description response area 12 to 15 8 to 11 4 to 7 0 to 3 1000 0000 0011 0000 Command code The command code for which the response 0000 0000 0010 0000 applies is stored.
  • Page 235 Set Preprocessing Item Data for Image Adjustment Sets parameters for a position compensation item or filter item. Command (PLC to Vision Sensor) First word of com- Bits Contents mand area 12 to 15 8 to 11 4 to 7 0 to 3 0001 0000 0001...
  • Page 236 Response (Vision Sensor to PLC) First word of Bits Contents response area 12 to 15 8 to 11 4 to 7 0 to 3 0001 0000 0010 0000 Command code The command code for which the response 0000 0000 0101 0000 applies is stored.
  • Page 237 Set System Data Sets the value to the specified system data. System data numbers and details: p. 222 Command (PLC to Vision Sensor) First word of com- Bits Description mand area 12 to 15 8 to 11 4 to 7 0 to 3 0100 0000...
  • Page 238 Response (Vision Sensor to PLC) First word of Bits Description response area 12 to 15 8 to 11 4 to 7 0 to 3 0100 0000 0110 0000 Command code The command code for which the response 0000 0000 0101 0000 applies is stored.
  • Page 239 The communications protocol types are defined by the following numbers. Communica- Communications type Remarks tions protocol No protocol (Ethernet) No-protocol (UDP) No-protocol (TCP) No protocol (RS-232C) Parallel I/O Fieldbus EtherNet/IP PROFINET Reserved Results in an error when specified. PLC link PLC Link (SYSMAC) PLC Link (MELSEC) Set Communication Output Status...
  • Page 240 Set Terminal Status This command sets the output signal ON/OFF status for the specified parallel I/O terminal. Note When turning the parallel terminals ON or OFF with this command, there are terminals that cannot be controlled if the FQ2 execution mode is not set to stop mode. In this case, first change the FQ2 execution mode to stop mode with the Set Execution Mode command, and then execute this command.
  • Page 241 Response (Vision Sensor to PLC) First word of Bits Description response area 12 to 15 8 to 11 4 to 7 0 to 3 1000 0000 0001 0000 Command code The command code for which the response 0000 0000 0011 0000 applies is stored.
  • Page 242 Response (Vision Sensor to PLC) First word of Bits Description response area 12 to 15 8 to 11 4 to 7 0 to 3 1000 0000 0010 0000 Command code The command code for which the response 0000 0000 0011 0000 applies is stored.
  • Page 243 Response (Vision Sensor to PLC) First word of Bits Description response area 12 to 15 8 to 11 4 to 7 0 to 3 1000 0000 0011 0000 Command code The command code for which the response 0000 0000 0011 0000 applies is stored.
  • Page 244 Load Scene Data Loads scene data that is stored on the SD card inserted in the Touch Finder. The source for scene data is the following fixed directory on the SD card. \Sensor name\SCN The file name is not case sensitive. The file name extension can be omitted. Command (PLC to Vision Sensor) First word of com- Bits...
  • Page 245 Load All Scene Data Loads all scene data that is stored on the SD card inserted in the Touch Finder. The source for all scene data is the following fixed directory on the SD card. \Sensor name\SGP The file name is not case sensitive. The file name extension can be omitted. Command (PLC to Vision Sensor) First word of com- Bits...
  • Page 246 Load System Data TThis command loads system data that is stored on the SD card inserted in the Touch Finder. The source for system data is the following fixed directory on the SD card. \Sensor name\SYD The file name is not case sensitive. The file name extension can be omitted. Command (PLC to Vision Sensor) First word of com- Bits...
  • Page 247 Load All Setting Data This command loads all setting data (all scene data, system data, calibration group data) for the Sensor saved as a backup file from the SD card inserted in the Touch Finder. The source for backup files is the following fixed directory on the SD card. \Sensor name\BKD The file name is not case sensitive.
  • Page 248 Load Calibration Data This command loads calibration data that is stored on the SD card inserted in the Touch Finder as the specified calibration number. The source for calibration data is the following fixed directory on the SD card. \Sensor name\CLB The file name is not case sensitive.
  • Page 249 Load All Calibration Data This command loads all calibration data that is stored on the SD card inserted in the Touch Finder. The source for all calibration data is the following fixed directory on the SD card. \Sensor name\CGP The file name is not case sensitive. The file name extension can be omitted. Command (PLC to Vision Sensor) First word of com- Bits...
  • Page 250 Load Model Dictionary Data This command loads model dictionary data that is stored on the SD card inserted in the Touch Finder as the model dictionary with the specified number. The source for model dictionary data is the following fixed directory on the SD card. \Sensor name\DIC The file name is not case sensitive.
  • Page 251 Load All Model Dictionary Data This command loads all model dictionary data that is stored on the SD card inserted in the Touch Finder. The source for all model dictionary data is the following fixed directory on the SD card. \Sensor name\DGP The file name is not case sensitive.
  • Page 252 Save Scene Data This command saves scene data to the SD card inserted in the Touch Finder as a file. The destination for scene data is the following fixed directory on the SD card. \Sensor name\SCN The file name is not case sensitive. The file name extension can be omitted. Command (PLC to Vision Sensor) First word of com- Bits...
  • Page 253 Save All Scene Data This command saves all scene data as a file to the SD card inserted in the Touch Finder. The destination for all scene data is the following fixed directory on the SD card. \Sensor name\SGP The file name is not case sensitive. The file name extension can be omitted. Command (PLC to Vision Sensor) First word of com- Bits...
  • Page 254 Save System Data Saves system data as a file to the SD card inserted in the Touch Finder. The destination for system data is the following fixed directory on the SD card. \Sensor name\SYD The file name is not case sensitive. The file name extension can be omitted. Command (PLC to Vision Sensor) First word of com- Bits...
  • Page 255 Save Image Data Saves image data saved in the Sensor's memory by the logging function to the SD card inserted in the Touch Finder as ifz data. The destination for image data is the following fixed directory on the SD card. \Sensor name\LOGIMAGE\Number*1 Number is a five digit number starting from 00000.
  • Page 256 Save All Image Data This command saves all image data saved in the Sensor's memory by the logging function to the SD card inserted in the Touch Finder as ifz data. The backup data destination and file name are fixed as follows. •...
  • Page 257 Save All Setting Data This command saves all setting data (all scene data, system data, calibration group data) for the Sensor to the SD card inserted in the Touch Finder as a backup file. \Sensor name\BKD The file name is not case sensitive. The file name extension can be omitted. Command (PLC to Vision Sensor) First word of com- Bits...
  • Page 258 Save Calibration Data Saves the data for the specified calibration number as a file to the SD card inserted in the Touch Finder. The destination for scene data is the following fixed directory on the SD card. \Sensor name\CLB The file name is not case sensitive. The file name extension can be omitted. Command (PLC to Vision Sensor) First word of Bits...
  • Page 259 Save All Calibration Data Saves all calibration data as a file to the SD card inserted in the Touch Finder. The destination for all calibration data is the following fixed directory on the SD card. \Sensor name\CGP The file name is not case sensitive. The file name extension can be omitted. Command (PLC to Vision Sensor) First word of Bits...
  • Page 260 Save Model Dictionary Data Saves the specified number of model dictionary data as a file to the SD card inserted in the Touch Finder. The destination for scene data is the following fixed directory on the SD card. \Sensor name\DIC The file name is not case sensitive.
  • Page 261 Save All Model Dictionary Data Saves all model dictionary data as a file to the SD card inserted in the Touch Finder. The destination for all model dictionary data is the following fixed directory on the SD card. \Sensor name\DGP The file name is not case sensitive.
  • Page 262 Save Latest Input Image Data Saves the latest input image to the SD card inserted in the Touch Finder as ifz data. The destination for image data is the following fixed directory on the SD card. \Sensor name\CAPTURE\Number Number is a five digit number starting from 00000. The images are saved in increments of 100 images for each number, and when there are over 100 images, the directory with the next number is created.
  • Page 263 Command (PLC to Vision Sensor) First word of Bits Description command area 12 to 15 8 to 11 4 to 7 0 to 3 0111 0000 0000 0000 Command code 0000 0000 0111 0000 0000 0000 0000 0000 File name (only when using the PLC link communication protocol) File name to save...
  • Page 264 Response (Vision Sensor to PLC) First word of Bits Description response area 12 to 15 8 to 11 4 to 7 0 to 3 1000 0000 0010 0000 Command code The command code for which the 0000 0000 0111 0000 response applies is stored.
  • Page 265 Details of No-protocol TCP, No-protocol UDP, and No-protocol RS-232C Commands Details of the commands in this section are described in the command format of no-protocol (TCP). When using commands in no-protocol (UDP), note the following differences from no-protocol (TCP). • Command format A delimiter is not necessary in the command format.
  • Page 266 <Response Format> When the Command Is Processed Normally Delimiter When the Command Is Not Processed Normally Delimiter CLRTOTAL or CTD Clear Statistical Data This command clears the statistical data (such as the number of measurements, the number of NG overall judgments, the NG rate, and other information since the power supply was turned ON) produced by the logging function held by the Sensor.
  • Page 267 <Response Format> When the Command Is Processed Normally Delimiter When the Command Is Not Processed Normally Delimiter ECHO or EEC Executes Echo-back (Loop-back). This command returns as is any character string sent by an external device. Only single-byte alphanumerics can be used. <Command format>...
  • Page 268 Delimiter Delimiter Space Inspection item number Space Inspection item number (0x20) (2 digits max.) (0x20) (2 digits max.) <Response Format> When the Command Is Processed Normally Delimiter When the Command Is Not Processed Normally Delimiter <Parameter Descriptions> Inspection item number Specifies the item number of the inspection item that teaching will be performed on.
  • Page 269 <Response Format> When the Command Is Processed Normally Measure- ment result Measure- Data returned for the number of ment result continuous measurements made. Measure- ment result Delimiter When the Command Is Not Processed Normally Delimiter <Parameter Descriptions> Measurement result The measurement results corresponding to the number of measurements made are out- put when data output is set.
  • Page 270 Note 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. 169 Execute Measurement This command executes one measurement. If data output is not set, only the measurement is performed. If data output is set, the measurement is performed and the result is returned as response data.
  • Page 271 MODEL Re-register Models This command re-registers the models for registered Search and Color Data inspection items. <Command Format> Command Delimiter <Response Format> When the Command Is Processed Normally Delimiter When the Command Is Not Processed Normally Delimiter FQ2-S/CH User’s Manual Command Control for Communications Settings...
  • Page 272 POSITIONTEACH or PT Perform Teaching (Filter/Position Compensation Item) This command updates reference data for the specified image adjustment processing item (filter item/position compensation item). The model data is also updated in image adjustment processing items that have model data. <Command Format> Space (0x20) Delimiter...
  • Page 273 Registered Image command. Acquire Registered Image p.300 A maximum of 1000 registered images (image registration number: 0 to 999) can be set. For the PC Tool, the data is saved in the "\..\My Documents\OMRON FQ\" folder. <Command Format> Registered Registration...
  • Page 274 RESET Resets the Sensor This command resets the Sensor. <Command Format> Command Delimiter <Response Format> 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 TEACH Perform Teaching...
  • Page 275 TIMER or TMR This command executes the specified command after the specified waiting time elapses. <Command Format> T I M E R Command string Space (0x20) Space (0x20) Waiting time (msec) T M R Command string Space (0x20) Space Waiting time (msec) (0x20) <Response Format>...
  • Page 276 UPDATEREFITEM or URI Re-register Reference Values (Inspection Item) This command re-registers the reference value for the specified inspection item based on the previously loaded image. The model is not updated. <Command Format> Delimiter Inspection item number (2 digits max.) Space (0x20) Delimiter Inspection...
  • Page 277 UPDATEREFPOS or URP Re-register Reference Values (Position Compensation Item) This command re-registers the reference value for the specified position compensation item based on the previously loaded image. <Command Format> Delimiter Position compensation item number (1 digit max.) Space (0x20) Delimiter Position compensation item number (1 digit max.) Space...
  • Page 278 Commands to Get Status SCENE or S Acquire Scene Number 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 When the Command Is Not Processed Normally Delimiter <Parameter Descriptions>...
  • Page 279 Commands to Set Status SCENE or S Change Scene Number This command changes the scene number to use. <Command Format> S C E N E Delimiter Delimiter Scene number (2 digits max.) Scene number (2 digits max.) Space (0x20) Space (0x20) <Response Format>...
  • Page 280 Commands to Read Data CAMDATA or CD Acquire Camera Parameter This command acquires the value of the specified camera parameter. Camera parameter numbers: p. 219 <Command Format> Camera parameter number Command (3 digits max.) Space Delimiter (0x20) Delimiter Command Camera parameter number (3 digits max.) Space...
  • Page 281 DICNOLIST or DNL Acquire List of Registered Dictionary Data Numbers This command acquires the list of registered dictionary data numbers. <Command Format> Command T CR Delimiter Delimiter Command <Response Format> When the Command Is Processed Normally Dictionary data Dictionary data Dictionary data number number...
  • Page 282 DIOFFSET or DIO Acquire Terminal Offset Data This command acquires the terminal offset data that is added to the IN0 to IN4 command parameters when executing parallel commands. If no value has been set with the Set Terminal Offset command, "0" is returned as the terminal offset value and "OK"...
  • Page 283 DIPORTCOND or DPC Batch Acquire IN Terminal Statuses Batch acquires the ON/OFF status for the IN terminals. <Command Format> Command D CR Delimiter Command Delimiter <Response Format> When the Command Is Processed Normally Acquired value Delimiter When the Command Is Not Processed Normally Delimiter <Parameter Descriptions>...
  • Page 284 ERRGET Acquire Error Information This command acquires the latest error code from the Sensor. <Command Format> Command Delimiter <Response Format> When the Command Is Processed Normally Error code 0 CR Delimiter Delimiter When the Command Is Not Processed Normally Delimiter <Parameter Descriptions>...
  • Page 285 GETITEMFIGPARAM or GIFP Acquire Measurement Region/Model Region Information Set for an Inspection Item This command acquires the parameters for the measurement region or model registration region set for an inspection item. Note To check the figure number to be used when specifying a figure to change the settings of with the Set Inspection Item Figure command, do so using this command.
  • Page 286 <Parameter Descriptions> Inspection item number Specifies the inspection item number. (0 to 31) Region number Selects either a measurement region or a model registration region. The value that spec- ifies each region differs according to the inspection item type. Figure number The measurement region or model registration region range registers a complicated model or a measurement region by combining a maximum of 8 figures (rectangles, cir- cles, and other shapes).
  • Page 287 The information for the figure that is set as the model registration region or the measurement region is returned in the following manner for each figure type. Figure type of specified Response parameters figure number Parame- Parame- Parame- Parame- Parame- Parame- Parame- Parame-...
  • Page 288 GETPOSFIGPARAM or GPFP Acquire Measurement Region/Model Region Information Set for an Image Adjustment Item (Filter Item/Position Compensation Item) This command acquires the parameters for the measurement region or the model registration region set for an image adjustment item (filter item/position compensation item). Note To check the figure number to be used when specifying a figure to change the settings of with the Set Image Adjust- ment Item Figure command, do so using this command.
  • Page 289 <Parameter Descriptions> Image adjustment item Specifies the image adjustment item (filter item/position compensation item) number. (filter item/position com- (0 to 7) pensation item) number Region number Selects the regions. The value that specifies each region differs according to the image adjustment item (filter item/position compensation item) type.
  • Page 290 Image adjustment item Command arguments (filter item/position Region number Figure number compensation item) type Two-edge Position Com- 0 (Edge 1 measurement pensation region) 1 (Edge 2 measurement region) 3 (Position compensation region) Two-edge Midpoint Com- 0 (Edge 1 measurement pensation region) 1 (Edge 2 measurement region)
  • Page 291 GETDICFIGPARAM or GDFP Acquire Dictionary Data Cutout Region Parameters This command acquires the specified dictionary data cutout region parameters. <Command Format> Dictionary data number Space (2 digits max.) (0x20) Command G P A R A M Space Space Delimiter (0x20) (0x20) Figure number Space...
  • Page 292 The dictionary data cutout region figure parameters are the upper-left coordinates and the lower-right coordinates of the rectangle. Name Data type Upper/lower limit value Parameter 1 Figure types Integer type With the FQ2, fixed value of 8. Parameter 2 Rectangle upper-left X coordinate Parameter 3 Rectangle upper-left Y...
  • Page 293 INPUTTRANSSTATE or ITS Acquire Communication Input Status This command acquires the input status (allowed/prohibited) for the communications protocol set with the Set Communication Input Status command. <Command Format> Communications protocol type to be acquired Command (1 digit max.) Space Delimiter Delimiter (0x20) Command...
  • Page 294 ITEMDATA or ID Acquire Inspection Item Data This command acquires the parameters of the specified inspection item. <Command Format> External reference data number Inspection item number (4 digits max.) (2 digits max.) Command Delimiter Space Space (0x20) (0x20) Delimiter Inspection item External reference Command number...
  • Page 295 ITEMDATA2 command or ID2 Acquire Inspection Item Text String Data This command acquires the text string data of the specified inspection item. <Command Format> Inspection External reference item number data number (2 digits max.) (4 digits max.) Command Space Space Delimiter (0×20) (0×20)
  • Page 296 MODE Acquire Execution Mode Acquires the FQ2 execution status (execution mode). <Command Format> Command Delimiter <Response Format> When the Command Is Processed Normally Acquired value Delimiter When the Command Is Not Processed Normally Delimiter <Parameter Descriptions> Acquired value This command acquires the FQ2 execution mode 1: Run mode 2: Stop mode 10: Adjust mode...
  • Page 297 OUTPUTTRANSSTATE or OTS Acquire Communication Output Status This command acquires the output status (allowed/prohibited) for all the communications protocol set with the Set Communication Output Status command. <Command Format> Command Delimiter Delimiter Command <Response Format> When the Command Is Processed Normally Acquired value Delimiter...
  • Page 298 PARAALLCOND or PAC Batch Acquire Terminal Statuses Batch acquires the ON/OFF status for the all parallel I/O input terminals other than the IN terminals. <Command Format> Command Delimiter Command Delimiter <Response Format> When the Command Is Processed Normally Acquired value Delimiter When the Command Is Not Processed Normally Delimiter...
  • Page 299 PARAPORTCOND or PPC Acquire Terminal Status Acquires the input signal ON/OFF status for the specified parallel I/O terminal. <Command Format> Terminal type Terminal number Command (2 digits max.) (1 digit max.) Delimiter Space Space Space Space (0x20) (0x20) Delimiter (0x20) (0x20) Command Terminal type...
  • Page 300 <Parameter Descriptions> Terminal type Specifies the type of terminal for the terminal status to be acquired. • Sensor's standard parallel communications 0: TRIG 2: IN0 to IN5 • Parallel Interface Sensor Data Unit 0: TRIG 1: DSA 2: IN0 to IN7 13: RESET •...
  • Page 301 POSITIONDATA or PD Get Image Adjustment Data This command acquires parameters from a position compensation item or filter item. <Command Format> Command External reference data (4 digits max.) Space Delimiter Space (0x20) (0x20) Item number Delimiter Command External reference data (4 digits max.) Space Space...
  • Page 302 REGIMAGE or RID Acquire Registered Image This command loads a registered image saved to the SD card or PC Tool as the measurement image. The registered image is the latest image or a logging image that has been assigned a number between 0 and 999 and has been registered in advance with the Set a Registered Image command.
  • Page 303 SYSDATA or SD Acquire System Data This command acquires the value set for the specified system data. System data numbers and details: p. 222 <Command Format> System data number Command (3 digits max.) Space Delimiter (0x20) Delimiter Command System data number (3 digits max.) Space...
  • Page 304 TOTALDATA or TD Acquire Statistical Data Acquires the statistical data (such as the number of measurements, number of NG overall judgments, and other information, since the power supply was turned ON) possessed by the Sensor. The following types of statistical data are available. Specify the data to be read from these types with this command.
  • Page 305 VERGET Acquire Software Version This command acquires the version information of the Sensor software. <Command Format> Command Parameter S CR Space Delimiter (0x20) <Response Format> When the Command Is Processed Normally Date Software version Space Delimiter (0x20) Delimiter When the Command Is Not Processed Normally Delimiter <Parameter Descriptions>...
  • Page 306 Acquire Sensor Model This command acquires the Sensor model. <Command Format> Command Parameter H CR Space Delimiter (0x20) <Response Format> When the Command Is Processed Normally Model F CR Delimiter Delimiter When the Command Is Not Processed Normally Delimiter <Parameter Descriptions> Model Returns the model.
  • Page 307 Commands to Write Data CAMDATA or CD Set Camera Parameter Sets the value for the specified camera parameter. Camera parameter numbers: p. 219 <Command Format> Camera parameter number Setting value Command (3 digits max.) (6 digits max.) Space Space Delimiter (0x20) (0x20) Delimiter...
  • Page 308 DIOFFSET or DIO Set Terminal Offset Data This command sets the value of the terminal offset data that is added to the IN0 to IN4 command parameters when executing parallel commands. When using parallel command scene changing, you can change the scenes to change to by changing the Set Terminal Offset Data value.
  • Page 309 DOPORTCOND or DPC Batch Set D Terminal Statuses Batch sets the ON/OFF status for the D terminals (D0 to D15). Important Before executing this command, change the FQ2 execution mode to stop mode with the Set Execution Mode com- mand. Set Execution Mode: p.321 <Command Format>...
  • Page 310 <Parameter Descriptions> Terminal status Specifies the ON/OFF status for the terminals as a hexadecimal value. (ON: 1, OFF: 0) (0 to 65,535) BIT0: D0 BIT1: D1 BIT2: D2 BIT3: D3 BIT4: D4 BIT5: D5 BIT6: D6 BIT7: D7 BIT8: D8 BIT9: D9 BIT10: D10 BIT11: D11...
  • Page 311 INPUTTRANSSTATE or ITS Set Communication Input Status This command sets the input status (allowed/prohibited) of the communications port for the specified communications protocol. Communications protocols with the input status set to prohibited will no longer receive communications after being set as such. However, for inputs related to hardware (parallel TRIG signal and DSA signal), this setting is not applicable.
  • Page 312 DICDELETE or DD Delete One Character from Dictionary Data This command deletes one character from the characters registered in the model dictionary. <Command Format> Character to Space be deleted Delimiter Command (0x20) (1 character) Dictionary data Deleted number character number Character to (2 digits max.) (1 digit)
  • Page 313 DICREGIST or DR Register Characters to Dictionary Data This command registers characters to the specified dictionary data. <Command Format> Space String to be registered (line 1) String to be registered (line 3) (0x20) (32 characters max.) (32 characters max.) Command Delimiter Dictionary data String to be registered...
  • Page 314 SETITEMFIGPARAM or SIFP Set Inspection Item Measurement Region/Model Region This command changes the range set as the measurement region or the model registration region for an inspection item. This command cannot set a new measurement region or model registration region. When using this command, execute it for an inspection item that has already been set with a measurement region or a model registration region.
  • Page 315 Depending on each inspection item type, the model registration region or measurement region is specified by the following values. Inspection item types Command arguments Region number Figure number 0 (measurement region) Bar Code 0 (measurement region) 2D-code 0 (measurement region) 2D-code (DPM) 0 (measurement region) Search...
  • Page 316 SETPOSFIGPARAM or SPFP Set Measurement Region/Model Region for an Image Adjustment Item (Filter Item/Position Compensation Item) This command changes the range set as the measurement region or the model registration region for an image adjustment item (filter item/position compensation item). This command cannot set a new measurement region or model registration region.
  • Page 317 <Parameter Descriptions> Image adjustment item Specifies the image adjustment item (filter item/position compensation item) number. (filter item/position com- (0 to 7) pensation item) number Region number Selects the regions. The value that specifies each region differs according to the image adjustment item (filter item/position compensation item) type.
  • Page 318 Image adjustment item Command arguments (filter item/position Region number Figure number compensation item) type Edge Position Compen- 0 (measurement region) sation 2 (Position compensation region) Two-edge Position Com- 0 (Edge 1 measurement pensation region) 1 (Edge 2 measurement region) 3 (Position compensation region) Two-edge Midpoint Com- 0 (Edge 1 measurement...
  • Page 319 SETDICFIGPARAM or SDFP Set Dictionary Data Cutout Region Parameters This command sets the specified dictionary data cutout region parameters. <Command Format> Dictionary data number Space (2 digits max.) (0x20) Command Parameter 1 Parameter 4 G P A R A M Space Space Figure number...
  • Page 320 The dictionary data cutout region figure parameters are the upper-left coordinates and the lower-right coordinates of the rectangle. Name Data type Parameter 1 Rectangle upper-left X Integer type coordinate Parameter 2 Rectangle upper-left Y coordinate Parameter 3 Rectangle lower-right X coordinate Parameter 4 Rectangle lower-right Y...
  • Page 321 ITEMDATA Command or ID Set Inspection Item Data This command sets the parameters of the specified inspection item. <Command Format> External reference Inspection data number item number (4 digits max.) Command (2 digits max.) Setting value Space Space Space Delimiter (0x20) (0x20) (0x20)
  • Page 322 ITEMDATA2 Command or ID2 Set Inspection Item Text String Data This command sets the text string data for the specified inspection item. <Command Format> External reference Inspection data number item number Command (4 digits max.) (2 digits max.) Text string data Space Space Space...
  • Page 323 MODE Set Execution Mode Sets the FQ2 execution status (execution mode). Note When using commands (Set Terminal Status/Batch Set Terminal Status/Batch Set DO Status) to control the ON/ OFF status of the parallel I/O terminals with communication commands, change the FQ2 to stop mode with this command.
  • Page 324 OUTPUTTRANSSTATE or OTS Set Communication Output Status This command sets the output status (allowed/prohibited) for all the communications protocol. Communications protocols with the output status set to prohibited will no longer output signals after being set as such. <Command Format> Communications protocol status to be set (1 digit max.) Command...
  • Page 325 PARAALLCOND or PAC Batch Set Terminal Statuses Batch sets the ON/OFF status for the all parallel I/O output terminals other than the D terminals (D0 to D15). Important • Before executing this command, change the FQ2 execution mode to stop mode with the Set Execution Mode com- mand.
  • Page 326 Terminal status Specifies the ON/OFF status for the terminal. (ON: 1, OFF: 0) (0 to 16,383) • Sensor's standard parallel communications BIT1: ERROR BIT2: BUSY BIT3: OR • Parallel Interface Sensor Data Unit BIT0: RUN BIT1: ERROR BIT2: BUSY BIT3: OR BIT5: GATE BIT9: STGOUT BIT11: SHTOUT...
  • Page 327 PARAPORTCOND or PPC Set Terminal Status This command sets the output signal ON/OFF status for the specified parallel I/O terminal. <Command Format> Terminal type Terminal number Terminal status Command (2 digits max.) (2 digits max.) (1 digit max.) Delimiter Space Space Space Space...
  • Page 328 <Parameter Descriptions> Terminal type Specifies the type of terminal for the terminal status to be set. • Sensor's standard parallel communications 4: ERROR 5: BUSY 6: OR • Parallel Interface Sensor Data Unit 3: RUN 4: ERROR 5: BUSY 6: OR 7: GATE 9: D0 to D15 10: STGOUT...
  • Page 329 POSITIONDATA or PD Set Image Adjustment Data This command sets parameters from a position compensation item or filter item. <Command Format> External reference data Command (4 digits max.) Setting value Space Item Space Delimiter (0x20) number (0x20) Space Space (0x20) (0x20) Delimiter External...
  • Page 330 SYSDATA or SD Set System Data Sets the value to the specified system data. System data numbers and details: p. 222 <Command Format> System data number Setting value Command (3 digits max.) (5 digits max.) Space Space Delimiter (0x20) (0x20) Delimiter Command System data...
  • Page 331 Load Setting Data Commands SCNLOAD This command loads scene data that is stored on the SD card inserted in the Touch Finder. The source for scene data is the following fixed directory on the SD card. \Sensor name\SCN <Command format> S C N L O A D File name of scene data Space (0x20)
  • Page 332 SGRLOAD This command loads all scene data that is stored on the SD card inserted in the Touch Finder. The source for all scene data is the following fixed directory on the SD card. \Sensor name\SGP <Command format> S G R L O A D Space (0x20) All scene data file name <Response format>...
  • Page 333 SYSLOAD This command loads system data that is stored on the SD card inserted in the Touch Finder. The source for system data is the following fixed directory on the SD card. \Sensor name\SYD <Command format> S Y S L O A D Space (0x20) File name of system data <Response format>...
  • Page 334 BKDLOAD This command loads all setting data (all scene data, system data, calibration group data) for the Sensor saved as a backup file from the SD card inserted in the Touch Finder. The source for backup files is the following fixed directory on the SD card. \Sensor name\BKD <Command format>...
  • Page 335 CLBLOAD This command loads calibration data that is stored on the SD card inserted in the Touch Finder as the data for the specified calibration number. The source for calibration data is the following fixed directory on the SD card. \Sensor name\CLB <Command Format>...
  • Page 336 CGRLOAD This command loads all calibration data that is stored on the SD card inserted in the Touch Finder. The source for all calibration data is the following fixed directory on the SD card. \Sensor name\CGP <Command Format> C G R L O A D All calibration data file name Space (0x20) <Response Format>...
  • Page 337 DICLOAD This command loads model dictionary data that is stored on the SD card inserted in the Touch Finder as the model dictionary with the specified number. The source for model dictionary data is the following fixed directory on the SD card. \Sensor name\DIC <Command Format>...
  • Page 338 DGRLOAD This command loads all model dictionary data that is stored on the SD card inserted in the Touch Finder. The source for all model dictionary data is the following fixed directory on the SD card. \Sensor name\DGP <Command Format> D G R L O A D All model dictionary data file name Space (0x20)
  • Page 339 Save Configuration Data Commands SCNSAVE This command saves scene data to the SD card inserted in the Touch Finder as a file. The destination for scene data is the following fixed directory on the SD card. \Sensor name\SCN <Command format> S C N S A V E Scene data file name Space (0x20)
  • Page 340 SGRSAVE This command saves all scene data as a file to the SD card inserted in the Touch Finder. The destination for all scene data is the following fixed directory on the SD card. \Sensor name\SGP <Command format> S G R S A V E All scene data file name Space (0x20) <Response format>...
  • Page 341 SYSSAVE Saves system data as a file to the SD card inserted in the Touch Finder. The destination for system data is the following fixed directory on the SD card. \Sensor name\SYD <Command format> S Y S S A V E System data file name Space (0x20) <Response format>...
  • Page 342 IMAGESAVE Saves image data saved in the Sensor's memory by the logging function to the SD card inserted in the Touch Finder as ifz data. The destination for image data is the following fixed directory on the SD card. \Sensor name\LOGIMAGE\Number Number is a five digit number starting from 00000.
  • Page 343 ALLIMAGESAVE or AIS This command saves all image data saved in the Sensor's memory by the logging function to the SD card inserted in the Touch Finder as ifz data. The destination for logging image data is the following fixed directory on the SD card. \Sensor name\LOGIMAGE\Number Number is a five digit number starting from 00000.
  • Page 344 BKDSAVE This command saves all setting data (all scene data, system data, calibration group data) for the Sensor to the SD card inserted in the Touch Finder as a backup file. The destination for backup data is the following fixed directory on the SD card. \Sensor name\BKD <Command format>...
  • Page 345 CLBSAVE This command saves the calibration data with the specified calibration number as a file to the SD card inserted in the Touch Finder. The destination for calibration data is the following fixed directory on the SD card. \Sensor name\CLB <Command Format>...
  • Page 346 <Response Format> When the Command Is Processed Normally When the Command Is Not Processed Normally <Parameter Descriptions> All calibration data file Specifies the all calibration data file name to be saved. (64 characters max.) name The file name extension (.cgp) can be omitted. Important •...
  • Page 347 DGRSAVE Saves all model dictionary data as a file to the SD card inserted in the Touch Finder. The destination for all model dictionary data is the following fixed directory on the SD card. \Sensor name\DGP <Command Format> D G R S A V E All model dictionary data file name Space (0x20) <Response Format>...
  • Page 348 LASTIMAGESAVE or LIS Saves the latest input image to the SD card inserted in the Touch Finder as ifz data. The destination for image data is the following fixed directory on the SD card. \Sensor name\CAPTURE\Number Number is a five digit number starting from 00000. The images are saved in increments of 100 images for each number, and when there are over 100 images, the directory with the next number is created.
  • Page 349 LOGDATASAVE or LDS Saves measurement data saved in the Sensor's memory by the logging function to the SD card inserted in the Touch Finder as csv data. The destination for measurement data is the following fixed directory on the SD card. \Sensor name\LOGDATA The file name is automatically created as follows.
  • Page 350 TOTALDATASAVE or TDS Saves statistical data saved in the Sensor's memory by the logging function to the SD card inserted in the Touch Finder as csv data. The destination for statistical data is the following fixed directory on the SD card. \Sensor name\LOGDATA The file name is automatically created as follows.
  • Page 351 Load Commands for Binary Data Files PRESCNLOADB (Check) / SCNLOADB (Execute) Loading scene data (binary data) The Sensor loads scene data in binary format. To execute this command, two types of commands are used, a confirmation command and an execution command.
  • Page 352 <Parameter Descriptions> File size scheduled to be sent Number of bytes of scene data scheduled to send (integer type) Scene data number Specifies the scene number you want to load. (Integer type) Specify 0 to 31. Scene data (binary) Scene data to be loaded (binary data) PRESGRLOADB (Check) / SGRLOADB (Execute) Loading all scene data (binary data) The Sensor loads all scene data in binary format.
  • Page 353 <Execution command format> Loads all scene data in binary data format. All scene data (binary) Space Delimiter (0x20) <Execution command response format> When the Command Is Processed Normally Delimiter When the Command Is Not Processed Normally Delimiter <Parameter Descriptions> File size scheduled to be sent Number of bytes of all scene data scheduled to send (integer type) All scene data (binary) All scene data to be loaded (binary data)
  • Page 354 <Confirmation command response format> When the Command Is Processed Normally Delimiter When the Command Is Not Processed Normally Delimiter <Execution command format> Loads system data in binary data format. System data (binary) Space Delimiter (0x20) <Execution command response format> When the Command Is Processed Normally Delimiter When the Command Is Not Processed Normally Delimiter...
  • Page 355 <Confirmation command format> Before loading all setting data for the Sensor in binary data format, the Sensor checks whether or not it can receive binary data. File size scheduled to be sent Space Delimiter (0x20) <Confirmation command response format> When the Command Is Processed Normally Delimiter When the Command Is Not Processed Normally Delimiter...
  • Page 356 PRECLBLOADB (Check) / CLBLOADB (Execute) Loading calibration data (binary data) The Sensor loads calibration data in binary format as the specified calibration number. To execute this command, two types of commands are used, a confirmation command and an execution command. For how to execute the command using the confirmation command and the execution command, refer to Binary Data File Load and Save Commands: p.
  • Page 357 When the Command Is Not Processed Normally Delimiter <Parameter Descriptions> File size scheduled to be sent Number of bytes of calibration data scheduled to be sent (integer type) Calibration data number Specifies the calibration number you want to load. (Integer type) Specify 0 to 31.
  • Page 358 <Execution command format> Loads all calibration data in binary data format. All calibration data (binary) Space Delimiter (0x20) <Execution command response format> When the Command Is Processed Normally Delimiter When the Command Is Not Processed Normally Delimiter <Parameter Descriptions> File size scheduled to be sent Number of bytes of all calibration data scheduled to send (integer type) All calibration data (binary) All calibration data to be loaded (binary data)
  • Page 359 <Confirmation command response format> When the Command Is Processed Normally Delimiter When the Command Is Not Processed Normally Delimiter <Execution command format> Loads model dictionary data in binary data format. Model dictionary number Delimiter Space Space Model dictionary data (0x20) (0x20) (binary) <Execution command response format>...
  • Page 360 <Confirmation command format> Before loading all model dictionary data in binary data format, the Sensor checks whether or not it can receive binary data. File size scheduled to be sent Space Delimiter (0x20) <Confirmation command response format> When the Command Is Processed Normally Delimiter When the Command Is Not Processed Normally Delimiter...
  • Page 361 Save Commands for Binary Data Files PRESCNSAVEB (Check) / SCNSAVEB (Execute) Outputting scene data (binary data) This command outputs scene data for the Sensor in binary data format. To execute this command, two types of commands are used, a confirmation command and an execution command.
  • Page 362 <Execution command response format> When the Command Is Processed Normally Scene data (binary) Delimiter Delimiter When the Command Is Not Processed Normally Delimiter <Parameter Descriptions> Scene data number Specifies the scene number (integer type) you want to output. Specify 0 to 31. Scene data size Number of bytes of scene data to output (integer type) Scene data (binary)
  • Page 363 When the Command Is Not Processed Normally Delimiter <Execution command format> This command outputs all scene data in binary data format. B CR Delimiter <Execution command response format> When the Command Is Processed Normally All scene data (binary) Delimiter Delimiter When the Command Is Not Processed Normally Delimiter <Parameter Descriptions>...
  • Page 364 <Confirmation command response format> When the Command Is Processed Normally System data size Delimiter Delimiter When the Command Is Not Processed Normally Delimiter <Execution command format> This command outputs system data in binary data format. B CR Delimiter <Execution command response format> When the Command Is Processed Normally System data (binary) Delimiter...
  • Page 365 PREBKDSAVEB (Check) / BKDSAVEB (Execute) Outputting system data and all scene data (binary data) This command outputs all setting data (all scene data, system data, calibration group data) for the Sensor as a backup file in binary data format. To execute this command, two types of commands are used, a confirmation command and an execution command.
  • Page 366 When the Command Is Not Processed Normally Delimiter <Parameter Descriptions> BKD data size Number of bytes of all setting data to output (integer type) BKD data (binary) All setting data to output (binary data) PREIMAGESAVEB (Check) / IMAGESAVEB (Execute) Outputting image (binary data) This command outputs images stored in the Sensor memory in binary format.
  • Page 367 <Execution command response format> When the Command Is Processed Normally Image data (binary) Delimiter Delimiter When the Command Is Not Processed Normally Delimiter <Parameter Descriptions> Image data number Specifies the image data number (integer type) you want to output. Specify 0 to 19. Image data size Number of bytes of image data to output (integer type) Image data (binary)
  • Page 368 When the Command Is Not Processed Normally Delimiter <Execution command format> Outputs all image data stored in the Sensor memory in binary format. B CR Delimiter <Execution command response format> When the Command Is Processed Normally All image data (binary) Delimiter Delimiter When the Command Is Not Processed Normally...
  • Page 369 <Confirmation command response format> When the Command Is Processed Normally Calibration data size Delimiter Delimiter When the Command Is Not Processed Normally Delimiter <Execution command format> This command outputs the calibration data in binary data format. B CR Delimiter <Execution command response format> When the Command Is Processed Normally Calibration data (binary) Delimiter...
  • Page 370 PRECGRSAVEB (Check) / CGRSAVEB (Execute) Outputting all calibration data (binary data) This command outputs all calibration data in binary data format. To execute this command, two types of commands are used, a confirmation command and an execution command. For how to execute the command using the confirmation command and the execution command, refer to Binary Data File Load and Save Commands: p.
  • Page 371 When the Command Is Not Processed Normally Delimiter <Parameter Descriptions> All calibration data size Number of bytes of all calibration data to output (integer type) All calibration data (binary) All calibration data to output (binary data) PREDICSAVEB (Check) / DICSAVEB (Execute) Outputting model dictionary data (binary data) This command outputs model dictionary data with the specified number in binary data format.
  • Page 372 <Execution command response format> When the Command Is Processed Normally Model dictionary data (binary) Delimiter Delimiter When the Command Is Not Processed Normally Delimiter <Parameter Descriptions> Model dictionary data number Specifies the model dictionary data number (integer type) you want to output. Specify 0 to 31.
  • Page 373 When the Command Is Not Processed Normally Delimiter <Execution command format> This command outputs all model dictionary data in binary data format. B CR Delimiter <Execution command response format> When the Command Is Processed Normally All model dictionary data (binary) Delimiter Delimiter When the Command Is Not Processed Normally...
  • Page 374 FINS Command Details Executing Measurements: 280F 00101010 This command executes one measurement. If Ethernet output is not set, only the measurement is performed. If Ethernet output is set, the measurement is performed and the result is returned as response data. Command Format Vision Sensor command code (1 byte)
  • Page 375 Clearing Measurement Values: 280F 00102010 This command clears the measurement values. Command Format Vision Sensor command code (1 byte) (1 byte) (4 bytes) 00102010 Response Format MRES SRES Vision Sensor command code (1 byte) (1 byte) (1 byte) (1 byte) (4 bytes) End code 00102010...
  • Page 376 Clear Statistical Data: 280F 00102060 This command clears the statistical data (such as the number of measurements, the number of NG overall judgments, the NG rate, and other information since the power supply was turned ON) produced by the logging function held by the Sensor.
  • Page 377 Re-register Models: 280F 00104010 This command re-registers the models for registered Search and Color Data inspection items. Format Vision Sensor command code (1 byte) (1 byte) (4 bytes) 00104010 Response Format MRES SRES Vision Sensor command code (1 byte) (1 byte) (1 byte) (1 byte) (4 bytes)
  • Page 378 ● External Teach: 280F 00104020 This command performs teaching for all applicable items. Format Vision Sensor command code (1 byte) (1 byte) (4 bytes) 00104020 Response Format MRES SRES Vision Sensor command code (1 byte) (1 byte) (1 byte) (1 byte) (4 bytes) End code 00104020...
  • Page 379 ● Perform Teaching (Filter/Position Compensation Item): 280F 00104021 This command updates reference data for the specified image adjustment processing item (filter item/position compensation item). For image adjustment processing items that have models, the model and reference data are updated. Command Format Vision Sensor command code Filter item/position compensation (1 byte)
  • Page 380 ● Perform Teaching (Inspection Item): 280F 00104022 This command updates the reference data for the specified inspection item. For inspection items that have models, the model and reference data are updated. Command Format Vision Sensor command code Inspection item number (4 bytes) (1 byte) (1 byte) (4 bytes)
  • Page 381 ● Re-register Reference Values (Position Compensation Item): 280F 00104031 This command re-registers the reference value for the specified position compensation item based on the previously loaded image. Command Format Vision Sensor command code Position compensation item num- (1 byte) (1 byte) (4 bytes) (4 bytes) 00104031...
  • Page 382 ● Re-register Reference Values (Inspection Item): 280F 00104032 This command re-registers the reference values for the specified inspection item based on the previously loaded image. Command Format Vision Sensor command code Inspection item number (4 bytes) (1 byte) (1 byte) (4 bytes) 00104032 Inspection item number from 0 to...
  • Page 383 Registered Image command. Acquire Registered Image p.382 A maximum of 1000 registered images (image registration number: 0 to 999) can be set. For the PC Tool, the data is saved in the "\..\My Documents\OMRON FQ\" folder. Command Format Vision Sensor command code...
  • Page 384 ● Acquire Registered Image: 280F 00108020 This command loads a registered image saved to the SD card or PC Tool as the measurement image. The registered image is the latest image or a logging image that has been assigned a number between 0 and 999 and has been registered in advance with the Set a Registered Image command.
  • Page 385 ● Echo: 280F 00109010 This command returns the text string (half-width alphanumeric characters) sent by the external device as-is. Format Vision Sensor command code Arbitrary char- (1 byte) (1 byte) (4 bytes) acter string (4 bytes) 00109010 2 words Response Format MRES SRES Vision Sensor command code...
  • Page 386 ● Get Scene Number: 280F 00201000 This command acquires the scene number that is currently being used. Format Vision Sensor command code (1 byte) (1 byte) (4 bytes) 00201000 Response Format MRES SRES Vision Sensor command code Scene number (1 byte) (1 byte) (1 byte) (1 byte)
  • Page 387 ● Acquire Communication Input Status: 280F 00207010 This command acquires the input status (allowed/prohibited) for the communications protocol set with the Set Communication Input Status command. Command Format Vision Sensor command code Communications protocol type to (1 byte) (1 byte) (4 bytes) be acquired (4 bytes) 00207010...
  • Page 388 ● Acquire Communication Output Status: 280F 00207020 This command acquires the output status (allowed/prohibited) for all the communications protocol set with the Set Communication Output Status command. Command Format Vision Sensor command code (1 byte) (1 byte) (4 bytes) 00207020 Response Format MRES SRES...
  • Page 389 ● Acquire Terminal Status: 280F 00208010 Acquires the input signal ON/OFF status for the specified parallel I/O terminal. Command Format Vision Sensor command code Terminal type (4 bytes) Terminal number (1 byte) (1 byte) (4 bytes) (4 bytes) 00208010 2 digits max. 1 digit max.
  • Page 390 ● Batch Acquire Terminal Statuses: 280F 00208020 Batch acquires the ON/OFF status for the all parallel I/O input terminals other than the IN terminals. Command Format Vision Sensor command code (1 byte) (1 byte) (4 bytes) 00208020 Response Format MRES SRES Vision Sensor command code Terminal status...
  • Page 391 ● Batch Acquire IN Terminal Statuses: 280F 00208030 Batch acquires the ON/OFF status for the IN terminals. Command Format Vision Sensor command code (1 byte) (1 byte) (4 bytes) 00208030 Response Format MRES SRES Vision Sensor command code Terminal status (1 byte) (1 byte) (1 byte)
  • Page 392 ● Acquire Execution Mode: 280F 0020F000 Acquires the FQ2 execution status (execution mode). Command Format Vision Sensor command code (1 byte) (1 byte) (4 bytes) 0020F000 Response Format MRES SRES Vision Sensor command code Execution mode (1 byte) (1 byte) (1 byte) (1 byte) (4 bytes)
  • Page 393 ● Change Scene Number: 280F 00301000 This command changes the scene number to use. Format Vision Sensor command code Scene number (4 bytes) (1 byte) (1 byte) (4 bytes) 00301000 Scene number to change to (2 digits max.) Response Format MRES SRES Vision Sensor command code...
  • Page 394 ● Set Communication Input Status: 280F 00307010 This command sets the input status (allowed/prohibited) of the communications port for the specified communications protocol. Communications protocols with the input status set to prohibited will no longer receive communications after being set as such. However, for inputs related to hardware (parallel TRIG signal and DSA signal), this setting is not applicable.
  • Page 395 ● Set Communication Output Status: 280F 00307020 This command sets the output status (allowed/prohibited) for all the communications protocol. Communications protocols with the output status set to prohibited will no longer output signals after being set as such. Command Format Vision Sensor command code Communications protocol status (1 byte)
  • Page 396 ● Set Terminal Status: 280F 00308010 This command sets the output signal ON/OFF status for the specified parallel I/O terminal. Note When turning the parallel terminals ON or OFF with this command, there are terminals that cannot be controlled if the FQ2 execution mode is not set to stop mode.
  • Page 397 Parameter Descriptions Terminal type Specifies the type of terminal for the terminal status to be set. • Sensor's standard parallel communications 4: ERROR 5: BUSY 6: OR • Parallel Interface Sensor Data Unit 3: RUN 4: ERROR 5: BUSY 6: OR 7: GATE 9: D0 to D15 10: STGOUT...
  • Page 398 ● Batch Set Terminal Statuses: 280F 00308020 Batch sets the ON/OFF status for the all parallel I/O output terminals other than the D terminals (D0 to D15). Important • Before executing this command, change the FQ2 execution mode to stop mode with the Set Execution Mode com- mand.
  • Page 399 ● Batch Set D Terminal Statuses: 280F 00308030 Batch sets the ON/OFF status for the D terminals (D0 to D15). Important Before executing this command, change the FQ2 execution mode to stop mode with the Set Execution Mode com- mand. Set Execution Mode: p.398 Command Format Vision Sensor command code...
  • Page 400 ● Set Execution Mode: 280F 0030F000 Sets the FQ2 execution status (execution mode). Note When using commands (Set Terminal Status/Batch Set Terminal Status/Batch Set DO Status) to control the ON/ OFF status of the parallel I/O terminals with communication commands, change the FQ2 to stop mode with this command.
  • Page 401 ● Get Image Adjustment Data: 280F 00401010 This command acquires parameters or measurement values from a position compensation item or filter item. Format Vision Sensor command code Position compensation item/filter External reference (1 byte) (1 byte) (4 bytes) item number (4 bytes) number (4 bytes) 00401010 Position compensation item/filter...
  • Page 402 ● Get the Inspection Item Data: 280F 00401020 This command acquires the parameters and measurement values of the specified inspection item. Format Vision Sensor command code Inspection item number (4 bytes) External reference (1 byte) (1 byte) (4 bytes) number (4 bytes) 00401020 Inspection item number (2 digits External reference...
  • Page 403 ● Get Version Information: 280F 00403000 This command acquires the version information of the Sensor software. Format Vision Sensor command code (1 byte) (1 byte) (4 bytes) 00403000 Response Format MRES SRES Vision Sensor command code Software version (1 byte) (1 byte) (1 byte) (1 byte)
  • Page 404 ● Acquire Camera Parameter: 280F 00401040 This command acquires the value of the specified camera parameter. Camera parameter numbers: p. 219 Command Format Vision Sensor command code Camera parameter number (1 byte) (1 byte) (4 bytes) (4 bytes) 00401040 3 digits max. Response Format MRES SRES...
  • Page 405 ● Acquire System Data: 280F 00404010 This command acquires the value set for the specified system data. System data numbers and details: p. 222 Command Format Vision Sensor command code System data number (4 bytes) (1 byte) (1 byte) (4 bytes) 00404010 3 digits max.
  • Page 406 ● Acquire Terminal Offset Data: 280F 00404060 This command acquires the terminal offset data that is added to the IN0 to IN4 command parameters when executing parallel commands If no value has been set with the Set Terminal Offset command, "00000" is returned as the terminal offset value and "0000"...
  • Page 407 ● Acquire Statistical Data: 280F 00406010 Acquires the statistical data (such as the number of measurements, number of NG overall judgments, and other information, since the power supply was turned ON) possessed by the Sensor. The following types of statistical data are available. Specify the data to be read from these types with this command.
  • Page 408 ● Get Error Information: 280F 00205000 This command acquires the latest error code from the Sensor. Format Vision Sensor command code (1 byte) (1 byte) (4 bytes) 00205000 Response Format MRES SRES Vision Sensor command code Error code (1 byte) (1 byte) (1 byte) (1 byte)
  • Page 409 ● Set Image Adjustment Data: 280F 00501010 This command sets parameters or measurement ranges from a position compensation item or filter item. Format Vision Sensor command code Position compensation item/filter External reference Set value (4 bytes) (1 byte) (1 byte) (4 bytes) item number (4 bytes) number (4 bytes)
  • Page 410 ● Set Inspection Item Data: 280F 00501020 This command sets the parameters and measurement ranges of the specified inspection item. Format Vision Sensor command code Inspection item number (4 bytes) External reference Set value (4 bytes) (1 byte) (1 byte) (4 bytes) number (4 bytes) 00501020...
  • Page 411 ● Set Camera Parameter: 280F 00501040 Sets the value for the specified camera parameter. Camera parameter numbers: p. 219 Command Format Vision Sensor command code Camera parameter number Setting value (1 byte) (1 byte) (4 bytes) (4 bytes) (4 bytes) 00501040 3 digits max.
  • Page 412 ● Set System Data: 280F 00504010 Sets the value to the specified system data. System data numbers and details: p. 222 Command Format Vision Sensor command code System data number (4 bytes) Setting value (1 byte) (1 byte) (4 bytes) (4 bytes) 00504010 3 digits max.
  • Page 413 ● Set Terminal Offset Data: 280F 00504060 This command sets the value of the terminal offset data that is added to the IN0 to IN4 command parameters when executing parallel commands. When using parallel command scene changing, you can change the scenes to change to by changing the Set Terminal Offset Data value.
  • Page 414 Load Setting Data Commands ● Load Scene Data: 280F 00601000 Loads scene data that is stored on the SD card inserted in the Touch Finder. The source for scene data is the following fixed directory on the SD card. \Sensor name\SCN Format Vision Sensor command code Scene number (4 bytes)
  • Page 415 ● Load All Scene Data: 280F 00602000 Loads all scene data that is stored on the SD card inserted in the Touch Finder. The source for all scene data is the following fixed directory on the SD card. \Sensor name\SGP Format Vision Sensor command code Scene group number (4 bytes)
  • Page 416 ● Load System Data: 280F 00603000 This command loads system data that is stored on the SD card inserted in the Touch Finder. The source for system data is the following fixed directory on the SD card. \Sensor name\SYD Format Vision Sensor command code System data file name (1 byte)
  • Page 417 ● Load All Setting Data: 280F 00605000 This command loads all setting data (all scene data, system data, calibration group data) for the Sensor saved as a backup file from the SD card inserted in the Touch Finder. The source for backup files is the following fixed directory on the SD card. \Sensor name\BKD Format Vision Sensor command code...
  • Page 418 ● Load Calibration Data: 280F 0060A000 This command loads calibration data that is stored on the SD card inserted in the Touch Finder as the calibration data with the specified number. The source for calibration data is the following fixed directory on the SD card. \Sensor name\CLB Format Vision Sensor command code...
  • Page 419 ● Load All Calibration Data: 280F 0060B000 This command loads all calibration data that is stored on the SD card inserted in the Touch Finder. The source for all calibration data is the following fixed directory on the SD card. \Sensor name\CGP Format Vision Sensor command code...
  • Page 420 ● Load Model Dictionary Number Data: 280F 0060C000 This command loads model dictionary data that is stored on the SD card inserted in the Touch Finder as the specified model dictionary number. The source for calibration data is the following fixed directory on the SD card. \Sensor name\DIC Format Vision Sensor command code...
  • Page 421 ● Load All Model Dictionary Data: 280F 0060D000 This command loads all model dictionary data that is stored on the SD card inserted in the Touch Finder. The source for all model dictionary data is the following fixed directory on the SD card. \Sensor name\DGP Format Vision Sensor command code...
  • Page 422 Save Configuration Data Commands ● Save Scene Data: 280F 00701000 This command saves scene data to the SD card inserted in the Touch Finder as a file. The destination for scene data is the following fixed directory on the SD card. \Sensor name\SCN Format Vision Sensor command code...
  • Page 423 ● Save Scene Group Data: 280F 00702000 This command saves all scene data as a file to the SD card inserted in the Touch Finder. The destination for all scene data is the following fixed directory on the SD card. \Sensor name\SGP Format Vision Sensor command code...
  • Page 424 ● Save System Data: 280F 00703000 Saves system data as a file to the SD card inserted in the Touch Finder. The destination for system data is the following fixed directory on the SD card. \Sensor name\SYD Format Vision Sensor command code System data file (1 byte) (1 byte)
  • Page 425 ● Save Image Data: 280F 00704000 Saves image data saved in the Sensor's memory by the logging function to the SD card inserted in the Touch Finder as ifz data. The destination for image data is the following fixed directory on the SD card. \Sensor name\LOGIMAGE\Number* Number is a five digit number starting from 00000.
  • Page 426 ● Save All Image Data: 280F 00704010 This command saves all image data saved in the Sensor's memory by the logging function to the SD card inserted in the Touch Finder as ifz data. The destination for logging image data is the following fixed directory on the SD card. \Sensor name\LOGIMAGE\Number Number is a five digit number starting from 00000.
  • Page 427 ● Save All Setting Data: 280F 00705000 This command saves all setting data (all scene data, system data, calibration group data) for the Sensor to the SD card inserted in the Touch Finder as a backup file. The destination for backup data is the following fixed directory on the SD card. \Sensor name\BKD Format Vision Sensor command code...
  • Page 428 ● Save Calibration Data: 280F 0070A000 This command saves the calibration data with the specified calibration number as a file to the SD card inserted in the Touch Finder. The destination for calibration data is the following fixed directory on the SD card. \Sensor name\CLB Format Vision Sensor command code...
  • Page 429 ● Save All Calibration Data: 280F 0070B000 Saves all calibration data as a file to the SD card inserted in the Touch Finder. The destination for all calibration data is the following fixed directory on the SD card. \Sensor name\CGP Format Vision Sensor command code All calibration data file name...
  • Page 430 ● Save Model Dictionary Data: 280F 0070C000 Saves the specified number of model dictionary data as a file to the SD card inserted in the Touch Finder. The destination for model dictionary data is the following fixed directory on the SD card. \Sensor name\DIC Format Vision Sensor command code...
  • Page 431 ● Save All Model Dictionary Data: 280F 0070D000 Saves all model dictionary data as a file to the SD card inserted in the Touch Finder. The destination for all model dictionary data is the following fixed directory on the SD card. \Sensor name\DGP Format Vision Sensor command code...
  • Page 432 ● Save Latest Input Image Data: 280F 00704020 Saves the latest input image to the SD card inserted in the Touch Finder as ifz data. The destination for image data is the following fixed directory on the SD card. \Sensor name\CAPTURE\Number Number is a five digit number starting from 00000.
  • Page 433 ● Save Measurement Data: 280F 00707000 Saves measurement data saved in the Sensor's memory by the logging function to the SD card inserted in the Touch Finder as csv data. The destination for measurement data is the following fixed directory on the SD card. \Sensor name\LOGDATA The file name is automatically created as follows.
  • Page 434 ● Save Statistical Data: 280F 00708000 Saves statistical data saved in the Sensor's memory by the logging function to the SD card inserted in the Touch Finder as csv data. The destination for statistical data is the following fixed directory on the SD card. \Sensor name\LOGDATA The file name is automatically created as follows.
  • Page 435: Detailed Ethernet/Ip Communications Specifications

    5-2 Detailed EtherNet/IP Communications Specifications FQ2-S1 FQ2-S2 FQ2-S3 FQ2-S4 FQ2-CH This section lists the objects that are mounted in the Sensor. 1-1 01h Identity Object Class Attributes Access Name Data type Description Attribute value Revision UINT Revision of the object Max Instance UINT Maximum instance number...
  • Page 436 1-2 02h Message Router Object Class Attributes None Instance Attributes None Services None 1-3 06h Connection Manager Class Attributes None Instance Attributes None Services Code Service name Class Instances Remarks 54 hex Forward Open 4E hex Forward Close 1-4 F5h TCP/IP Interface Class Attributes Access Name...
  • Page 437 Access Name Data type Description Attribute value 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 Interface Configuration STRUCT of: TCP/IP network interface set-...
  • Page 438 Services Code Service name Class Instances Remarks 01 hex Get_Attribute_All 0E hex Get_Attribute_Single 1-6 04h Assembly Object Class Attributes Access Name Data type Description Attribute value Revision UINT Revision of the object Instance Attributes (O to T), Instance ID: 100 Access Name Data type...
  • Page 439 1-7 64h Vision Sensor Object Instance Attributes Access Name Data type Description Attribute value Data BYTE array Set command strings to be sent Command to the sensor controller. (504 List: p. 202 characters max.) The available commands are equivalent to the commands which can be used for the no- protocol communications.
  • Page 440: Index

    Index GATE signal ON period 94, 124, 147 Numerics 0 Suppressed handshaking 30, 70 ACK signal ON period individual judgements input port No. 168, 190 baud rate interval timeout binary data file load and save commands BUSY signal Lighting control BUSY signal output polarity line delimiter character output...
  • Page 441 port No. positive 45, 74 PROFINET record separator reference color re-registering refreshing task period 94, 146 response (response area) retry details retry interval RS-232C connections RS-232C no-protocol commands RS-232C no-protocol communications 197 scenes switching setting data communications specifications Parallel Sensor Data Unit setting the data to output automatically after measurements 198, 207...
  • Page 442: Revision History

    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. Z338-E1-02 Revision code Revision code Date Revised contents December 2013 Original production July 2014 Corrected minor mistakes.
  • Page 444 Carl-Benz-Str. 4, D-71154 Nufringen, Germany IL 60173-5302 U.S.A. Tel: (1) 847-843-7900/Fax: (1) 847-843-7787 Tel: (49) 7032-811-0/Fax: (49) 7032-811-199 © OMRON Corporation 2013 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.

This manual is also suitable for:

Fq2-ch series

Table of Contents