Omron FH series User Manual
Hide thumbs Also See for FH series:
Table of Contents

Advertisement

Vision Sensor
FH/FZ5 Series
Vision System
User's Manual for Communications Settings
FH-1
FH-1
-
FH-3
FH-3
-
FH-L
FH-L
-
FZ5-6
FZ5-6
-
FZ5-11
FZ5-11
-
FZ5-L35
FZ5-L35 -
Z342-E1-08

Advertisement

Table of Contents
loading

Summary of Contents for Omron FH series

  • Page 1 Vision Sensor FH/FZ5 Series Vision System User’s Manual for Communications Settings FH-1 FH-1 FH-3 FH-3 FH-L FH-L FZ5-6 FZ5-6 FZ5-11 FZ5-11 FZ5-L35 FZ5-L35 - Z342-E1-08...
  • Page 2 Moreover, because OMRON is constantly striving to improve its high-quality products, the information contained in this manual is subject to change without notice. Every precaution has been taken in the preparation of this manual. Nevertheless, OMRON assumes no responsibility for errors or omissions. Neither is any liability assumed for damages result- ing from the use of the information contained in this publication.
  • Page 3: Fh/Fz5 Manual Configuration

    Instruction Sheet FH-3 Vision System FH series and precautions for correct use of FH-3 Sensor Controller. FH series in the manual. To confirm the safety and Describes the definitions of basic Vision System FH-L FH-L usage precautions of the terms, meaning of signal words,...
  • Page 4: Conventions Used In This Manual

    The symbols used in this manual have the following meanings. Indicates relevant operational precautions that must be followed. IMPORTANT Indicates operation-related suggestions from OMRON. Note Use of Quotation Marks and Brackets In this manual, menus and other items are indicated as follows.
  • Page 5: Terms And Conditions Agreement

    Omron's exclusive warranty is that the Products will be free from defects in materials and workmanship for a period of twelve months from the date of sale by Omron (or such other period expressed in writing by Omron). Omron disclaims all other warranties, express or implied.
  • Page 6 Disclaimers Performance Data Data presented in Omron Company websites, catalogs and other materials is provided as a guide for the user in determining suitability and does not constitute a warranty. It may represent the result of Omron’s test conditions, and the user must correlate it to actual application requirements. Actual performance is subject to the Omron’s Warranty and Limitations of Liability.
  • Page 7: Safety Precautions

    Safety Precautions For details on Safety Precautions, refer to Safety Precautions in the Vision System FH/FZ5 Series User's Manual (Cat. No. Z365). Precautions for Safe Use For details on Precautions for Safe Use, refer to Precautions for Safe Use in the Vision System FH/FZ5 Series User's Manual (Cat.
  • Page 8 MEMO Vision System FH/FZ5 Series User’s Manual for Communications Settings (Z342)
  • Page 9: Table Of Contents

    Contents FH/FZ5 Manual Configuration ......................1 Conventions Used in This Manual ......................2 Terms and Conditions Agreement ......................3 Safety Precautions ..........................5 Precautions for Safe Use ........................5 Precautions for Correct Use ......................... 5 Regulations and Standards ........................5 1.
  • Page 10 Command List ............................. 81 Measurement Trigger Input ........................ 84 Command Response Processing ....................... 85 Data Output ............................88 Time Charts ............................90 EtherCAT Troubleshooting ......................... 94 Sysmac Error Status ........................... 96 Sysmac Device Features ........................110 Object Dictionary ..........................112 Communicating with PLC Link .......................
  • Page 11 Output Items ............................. 288 Command Formats ........................... 289 Command List ........................... 292 Output Format ........................... 296 Non-procedure Communications Troubleshooting ................298 Parallel Communications ........................299 Communications Processing Flow ....................299 Communications Setup Procedures ....................301 Communications Module Settings (Startup Settings) ............... 302 Communications Specifications Settings ..................
  • Page 12 Vision System FH/FZ5 Series User’s Manual for Communications Settings (Z342)
  • Page 13: Overview

    Overview This section provides a basic overview of the communications specifications and Sensor Controller control methods. This information is required before performing communications between the FH/FZ5 and an external device. Introduction................ 12 Confirming the System Configuration......13 Communicating with an External Device ......14 Control Methods Using an External Device ....
  • Page 14: Introduction

    Introduction This section provides a basic overview of the communications specifications and Sensor Controller control methods. This information is required before performing communications between the FH/FZ5 and an external device. Confirming the System Configuration (Refer to Confirming the System Configuration (p.13)) This section describes the external device configuration that is required to perform measurement processing with the FH/FZ5.
  • Page 15: Confirming The System Configuration

    Confirming the System Configuration The FH/FZ5 are Vision Systems that perform measurement processing through a Sensor Controller on 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 16: Communicating With An External Device

    Communicating with an External Device 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. Basic Control Operations of the Sensor Controller The following figure shows basic communications between an external device and the Sensor Controller and the flow of signals and data.
  • Page 17 Type Description You can output character strings and numbers that are read by processing items such as Character output (PLC Link Character Inspection, Barcode, or 2DCode. Refer to Items that Can Be Output as Output or non-procedure Data (p.28) for details. communications only) You can also use commands to obtain results after a measurement is performed.
  • Page 18: Communication Between The Sensor Controller And An External Device

    Communication between the Sensor Controller and an External Device Communication between the Sensor Controller and external device takes place as shown below. The following figure shows the flow when a communications command is used to start a measurement and then output data.
  • Page 19: Control Methods For The Sensor Controller

    Control Methods for the Sensor Controller There are three methods that you can use to control the Sensor Controller from a PLC or other external device. They are described in this section. For details on each control method, refer to their corresponding section. Control Methods Method Overview...
  • Page 20 Command/Response Method (Refer to Command/Response Method (p.25)) Control is performed by storing the control command and the response to that command in the I/O memory of a PLC. This method is best suited to send multiple commands to the Sensor Controller without using PLC communications instructions.
  • Page 21: Communication Protocols For Communication With The Sensor Controller

    Parallel Sensor Controller through combinations of ON/OFF inputs signals from multiple physical contacts. This is OMRON’s communications protocol for Vision System. The control signals, Command Area/Response Area, and PLC Link area to store measurement data are assigned in the I/O memory of the PLC, and data is exchanged cyclically to share data between the PLC and the Vision System.
  • Page 22: Saving Sensor Controller Data To An External Device

    OK: Supported, ---: Not supported. Communications cable type Communi- Communi- cations cations Overview Parallel RS-232C/ Ethernet method protocol Command frames are sent to the Sensor Controller and response frames are received from the Sensor Controller Frame Non- without the use of any specific protocol. transmission procedure Data can be exchanged between the PLC, computer, or...
  • Page 23 • Remote Operation over a Network (Refer to Remotely Operating the Controller (Remote Operation) in the Vision System FH/FZ5 Series User's Manual (Cat. No. Z365).) If more than one Sensor Controller is connected via Ethernet, a computer (the FH/FZ5 Tool) connected to the same Ethernet network can be used to operate and monitor all the Sensor Controllers at once.
  • Page 24: Control Methods Using An External Device

    Control Methods Using an External Device This section describes the methods that you can use to control the Sensor Controller from a PLC or other external device. Control with Control Signals and Status Signals Control and status confirmation for the Sensor Controller is performed with the ON/OFF status of the control and status signals.
  • Page 25 Signal Signal name Function Encoder Trigger Input (Phase This is the encoder input signal. This signal is only used ENCTRIG A, Phase B, or Phase Z) when you use an encoder trigger. Output Signals (Sensor Controller to PLC) Signal Signal name Function This signal tells when new commands and other external inputs cannot be acknowledged during processing of other...
  • Page 26 Signal Signal name Function This is a notification signal indicating the FH/FZ5 Sensor Controller is in Run mode (In a measurement capable state Measurement Mode Signal with [RUN signal output] checked in the Layout settings for Run Mode the currently displayed line). This signal tells when execution of the DI command has Command Completion Flag been completed.
  • Page 27: Command/Response Method

    Command/Response Method Parallel Commands are input to the Sensor Controller by turning the DI signals (DI0 through DI7) ON and OFF. There is no direct response to these commands. Confirm whether a command was received by checking the ACK signal. With an FZ5-series Controller, you can check the BUSY status signal instead of the ACK signal. The command code is input with signals DI0 through DI6, and the command is executed by turning ON DI7.
  • Page 28: Data Output After Measurements

    Non-procedure Communications Communications commands are sent to the Sensor Controller through sequence control in the PLC. An external device and the Sensor Controller communicate through non-procedure (normal) communications. Data Output after Measurements After a Single Measurement or Start Continuous Measurements command is executed, the Sensor Controller automatically outputs the data that corresponds to the measurements that have been specified as output items to the PLC.
  • Page 29 Outputting the Output Data The measurement data is output to the external device via the Communications Module by the Data Output processing unit located in the measurement flow. Therefore, to output measurement data, you must place an Output Unit processing unit in the measurement flow. The measurement data is output when the Output Unit is executed, not when the measurement is actually finished.
  • Page 30 Items that Can Be Output as Output Data Measurement Data You can output up to eight items (32 bytes) with one Output Unit processing unit. Note • If you need to output nine or more data items, set more than one Output Unit processing unit in the measurement flow.
  • Page 31 Settings Required for Data Output Use the following procedure to set up Output Unit processing units for data output. Measurement Data Place the output data in the processing flow. Place the processing unit for data output in the measurement flow. Processing Units That Serve as Output Units The processing items under [Output result] in the processing item tree in the Flow Editor serve as Output Units.
  • Page 32 OCR in the Vision System FH/FZ5 Series Processing Items Reference Manual (Cat. • OCR (Refer to No. Z341).) Note Command-driven character string output is not supported when using EtherNet/IP tag data link communication or EtherCAT. To output character strings, send the commands using EtherNet/IP message communication. Refer to the Communicating with the Sensor Controller with EtherNet/IP Message Communications (p.264) Outputting Multiple Measurement Data Items...
  • Page 33 Controlling Data Output with Handshaking If handshaking is used to control data output, the timing of outputting the data is controlled by I/O signals. Each time that data is output, read the output data and move it to a different part of I/O memory in the PLC.
  • Page 34 Data Output Control with Handshaking The timing for data output can be controlled through the DSA and GATE signals. This is useful when receiving output data from multiple Output Units, because it enables you to control the timing for transferring output data. 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 35 DSA Signal ON Timing Turn ON the DSA signal when you want to receive data. The Sensor Controller will output data when an Output Unit has been executed, there is data waiting to be output, and it detects that the DSA signal is ON. Measurement flow DSA (data output request) signal status Start measurement.
  • Page 36 When the first data is received, the user (PLC) turns ON the measurement trigger and the DSA signal. The Sensor Controller turns ON the GATE signal when the DSA signal is turned ON and outputs the first data. The user (PLC) turns OFF the DSA signal again when the GATE signal turns ON. Then, the user (PLC) confirms the output data received in the PLC Data Output Area and moves the received data to another area in PLC I/O memory.
  • Page 37: Setting Procedures For Communications

    Setting Procedures for Communications This section gives an overview of the setting procedure up to the point that the Sensor Controller starts communication with the PLC or other external device, and explains the communication modules used for communication. Note For connection with a Touch Panel Monitor, refer to Settings for Touch Panel Monitor in the Vision System FH/FZ5 Series User’s Manual (Cat.
  • Page 38: Communications Protocols And Communications Modules

    Communications Protocols and Communications Modules A Communications Module is used to communicate between the Sensor Controller and an external device. The appropriate Communications Module must be set for the communications protocol that is used to communicate between the Sensor Controller and the external device. Communications Module Settings The Communications Module to use for communications is selected in the startup settings.
  • Page 39: Differences In Specifications Based On The Communications Protocol

    Differences in Specifications Based on the Communications Protocol This section explains the types and differences of communication protocols that are used for communication with the Sensor Controller. List of Supported Signals by Communications Protocol Some of the control signals and status signals that can be used depend on the communications protocol as shown below.
  • Page 40 Output Signals (Sensor Controller to PLC) OK: Can be used, ---: Cannot be used. Signals for each communications protocol Signal Signal name Parallel PLC Link EtherNet/IP EtherCAT BUSY Busy Signal Control Command Completion Signal Command Completion GATE Data Output Completion Signal Result Notification READY Camera Image Input Enabled Signal...
  • Page 41: Restrictions When Using Different Communication Protocols Simultaneously

    Restrictions when Using Different Communication Protocols Simultaneously Different communication protocols can be used together on the FH/FZ5. Restrictions when using different protocols together are as follows: • The Parallel Communications Module can be used with any other Communications Modules. • For all Communication Modules other than the Parallel Communications Module, the following restrictions on combinations apply.
  • Page 42: Models That Are Compatible With The Communications Protocols

    Models That Are Compatible with the Communications Protocols This section lists the external devices that can communicate with the FH/FZ5 for each communications protocol. PLC Link and Non-procedure Communications • Ethernet OMRON : Can connect : Only some models can connect : Cannot connect...
  • Page 43 • RS-232C/422 OMRON : Can connect : Only some models can connect : Cannot connect Interface Series CPU Unit Direct connection with Connection via serial communication unit CPU unit (built-in port) CJ2H CJ1W-SCU21-V1, CJ1W-SCU31-V1, CJ1W- SYSMAC_CJ2 SCU41- V1, CJ1W-SCU22, CJ1W-SCU32, or CJ2M (Built-in port only.)
  • Page 44 • EtherNet/IP : Can connect : Only some models can connect : Cannot connect Interface Series CPU Unit Direct connection with Connection via EtherNet/IP unit CPU unit (built-in port) CJ1W-EIP21 (Only version 2.1 supports SYSMAC NJ NJ501 or NJ301 Sysmac NJ connection. This applies to NJ versions 1.01 and later.) SYSMAC_CJ2 CJ2M or CJ2H...
  • Page 45: Methods For Connecting And Communicating With External Devices

    Methods for Connecting and Communicating with External Devices This section describes the communications specifications, data I/O methods, communications settings, communications commands, and other details for each communications protocol used to communicate between the FH/FZ5 and external devices. EtherCAT Connections (FH-1000 series/FH-3000 series only) ..................
  • Page 46: Ethercat Connections (Fh-1000 Series/Fh-3000 Series Only)

    EtherCAT Connections (FH-1000 series/FH-3000 series only) This section explains the communication settings required for communication by EtherCAT between the Sensor Controller and an external device, communication specifications, input/output formats, and the communication timing chart. Introduction to EtherCAT EtherCAT (Ethernet Control Automation Technology) is a high-performance industrial network system that enables faster and more efficient communications based on Ethernet.
  • Page 47 The data exchanges that are cyclically performed between the EtherCAT master and EtherCAT slaves use EtherCAT telegrams that are stored directly in the Ethernet frames. Each EtherCAT telegram consists of a telegram header (including the data length and one or more slave addresses), data, and a working counter (i.e., check bits).
  • Page 48 Types of EtherCAT Communications The following 2 types of communications are available with EtherCAT. PDO communications are executed in each EtherCAT communications cycle to refresh data continuously. SDO communications are executed between PDO communications. Process Data Communications (PDO Communications) The process data communication function (PDO communication) cyclically transfers process data in real-time. The EtherCAT master maps the logical process data space to the nodes to achieve cyclic communications between the EtherCAT master and slaves.
  • Page 49: Structure Of Can Application Protocol Over Ethercat (Coe)

    Structure of CAN Application Protocol over EtherCAT (CoE) EtherCAT allows the use of multiple protocols for communication. The EtherCAT slave terminal uses "CAN application protocol over EtherCAT" (CoE) as the device profile for "CAN application protocol", which is an open network standard.
  • Page 50: Ethercat Slave Information Files (Esi Files)

    If you are using Sysmac Studio, it is not necessary to install the ESI files in the network setup software (configuration tool). The ESI files for OMRON EtherCAT slaves are already installed in the Sysmac Studio. You can update the Sysmac Studio to get the ESI files for the most recent models.
  • Page 51: Transitions Of Communications States

    Transitions of Communications States The state transition model for communications control of the EtherCAT Slave Terminals is controlled by the EtherCAT master. The following figure shows the communications state transitions from when the power supply is turned ON. Power supply ON Init Pre-Operational Safe-Operational...
  • Page 52: Process Data Objects (Pdos)

    Process Data Objects (PDOs) This section describes the process data objects (PDO) that are used in EtherCAT communication. Introduction Process data objects (PDOs) are used to transfer data during cyclic communications in realtime. There are two types of process data objects (PDOs): the RxPDOs, which are used by the EtherCAT Slave Terminal to receive data from the EtherCAT master;...
  • Page 53 PDO Mappings PDO mapping objects contain the I/O data for the EtherCAT Slave Terminals. PDO mapping objects for the RxPDOs are managed in the object dictionary from indexes 1600 to 17FF hex, and for the TxPDOs from indexes 1A00 to 1BFF hex. PDO Mapping Scheme in EtherCAT The PDO mapping scheme in EtherCAT is described below.
  • Page 54 Assigning PDOs Scheme for Assigning PDOs to EtherCAT Slaves You can assign more than one PDO to an EtherCAT slave. Here, PDOs are assigned to index 1C12 hex for the RxPDO, and 1C13 hex for the TxPDO. The following example shows how PDOs are assigned. Index Object Contents Index...
  • Page 55: Service Data Objects (Sdos)

    Service Data Objects (SDOs) This section describes the service data objects (SDO) that are used in EtherCAT communication. Introduction EtherCAT Slave Terminals support SDO communications. The EtherCAT master can read and write data from and to entries in the object dictionary with SDO communications to make parameter settings and monitor status.
  • Page 56: Communications Between An Ethercat Master And Slaves

    Communications between an EtherCAT Master and Slaves This section describes the communications modes between the master and slaves for EtherCAT communications, and the communications modes for EtherCAT Slave Terminals. Communications Modes for Communications between an EtherCAT Master and Slaves Free-Run Mode (Not supported on the FH) In free run mode, the slave processes the I/O (refreshes the I/O data) asynchronously with respect to the communications cycle of the master.
  • Page 57: Fh-Series Vision Sensor Communications Method When Connected To Ethercat

    FH-series Vision Sensor Communications Method When Connected to EtherCAT You can use EtherCAT communications between an EtherCAT master and Vision Sensors to control the Vision Sensors from the master with commands and responses and to output the data that results from measurements. To connect an FH-series Vision Sensor to an NJ series CPU unit by EtherCAT, use Sysmac Studio (Standard Edition) Version 1.09 or later.
  • Page 58 Controller (master) Vision Sensor (slave) I/O ports in the Command Area Commands You write the following control The Vision Sensor executes the commands for the Vision Sensor. control commands written to the 28 bytes I/O ports in the Command Area. •...
  • Page 59 Communications in Multi-line Random-trigger Mode When the operation mode is multi-line random trigger mode, an FH-series Vision Sensor can be used to control up to eight lines. When multi-line random trigger mode is used, the I/O ports (areas) for communication between the Vision Sensor and master are assigned as shown below.
  • Page 60 Minimum PDO Communications Cycle Time Do not set the communication cycle (PDO communication cycle time) for EtherCAT communication to a value lower than the applicable minimum time given in the following table. The minimum communication cycle (PDO communication cycle time) depends on the Data output byte size and the use of the User area differs with the Number of controlled lines, as shown below.
  • Page 61 • Beckhoff TwinCAT PC Edition, Industrial PCs, and Embedded PCs *1: You must obtain an ESI file for the FH-series Vision Sensor from OMRON to use a Beckoff master. Vision System FH/FZ5 Series User’s Manual EtherCAT Connections (FH-1000 series/FH-3000 series only)
  • Page 62: Communications Settings

    Communications Settings The following settings are required to use EtherCAT communications. The communication method to be used is determined by selecting a commu- 1. Communications Module settings nication module. Refer to Communications Module Settings (Startup Set- (startup settings) tings) (p.62). ↓...
  • Page 63 Note Communications are set up as shown below when you use the multi-line random-trigger mode. Settings on Output data Communications Communications the window designation Module setting specifications settings for line 0 Set [Fieldbus] to [EtherCAT]. • The communications settings (e.g., communications cycle): Are the same for all lines.
  • Page 64: Communications Module Settings (Startup Settings)

    Communications Module Settings (Startup Settings) The communication method used for communication with the Sensor Controller is selected from the communication modules. On the Main Window, select [Tool] − [System Settings]. Select [System setting] − [Startup] − [Startup setting] on the Multiview Explorer on the left and then click the [Communication] button.
  • Page 65: Communications Specifications Settings

    Communications Specifications Settings You must set the data output size, output handshaking, and output controls for EtherCAT communications. IMPORTANT • Use the same communications specifications settings for the Sensor Controller and the external device. • Do not input signals to EtherCAT from an external device while setting the EtherCAT system settings. •...
  • Page 66 Set value Setting item Description [Factory default] This setting is used to output the measurement None results asynchronously with the external device. (None) Output control Handshaking This setting is used to output the measurement Handshaking results synchronously with the external device. Set the timing for outputting the measurement results.
  • Page 67 Click the [Apply] button. IMPORTANT If you change any of the [Line N Data Output Number] and [User area] settings, restart the Controller. Note If you use alignment, select the data type of the output data according to the application. •...
  • Page 68: Output Data Settings (Processing Item Registration)

    Output Data Settings (Processing Item Registration) Use the following procedures to set the items to output to EtherCAT and the output format. Registering Processing Items Register the processing items for data output in the measurement flow. Click the [Edit flow] button in the Toolbar. Select the [Fieldbus Data Output] processing item from the processing item tree.
  • Page 69 Note • Depending on the Data Output Number setting for the line, you can set from 4 to 64 data items for output with one data output processing item. Examples: DINT16: You can register up to 16 data items. LREAL 24: You can register up to 24 data items. Refer to Communications Specifications Settings (p.63) for the number of data items that you can output for each Data Output Number setting.
  • Page 70 Setting the Output Data Set expressions for the data to output. Expressions are set for both 4-byte data (DINT) and 8-byte data (LREAL). Note The Fieldbus Data Output setting item changes according to the EtherCAT communications settings. Set the total output data size (256 bytes max.) and the number of data items to output (64 max.) in the EtherCAT communications settings in advance.
  • Page 71: Ethercat Network Configuration Settings

    EtherCAT Network Configuration Settings To connect FH-series Vision Sensors to an NJ-series Controller, you must use the Sysmac Studio to register the Vision Sensors in the network configuration. IMPORTANT To connect FH-series Vision Sensors to an NJ/NX series Controller, you must place the Sysmac Studio online with the Vision Sensors in the EtherCAT network configuration.
  • Page 72: Communications Test

    Refer to Sysmac Error Status Event Code Table (p.96). Note For LED specifications of ECAT RUN-LED of FH series Sensor Controller, refer to 3-1 Sensor Controller in Vision System FH/FZ5 series Hardware Setup Manual (Z366). EtherCAT Connections (FH-1000 series/FH-3000 series only) Vision System FH/FZ5 Series User’s Manual...
  • Page 73: I/O Ports By Area (Pdo Mapping) And Memory Assignments

    I/O Ports by Area (PDO Mapping) and Memory Assignments This section describes the I/O ports in the Command, Response, Data Output, User Area, and Sysmac Error Status Areas. Refer to the following section for the sizes, data types, default values, and other information on the I/O ports. Reference: Vision Sensor Specific Objects (p.152) Command Area I/O Ports...
  • Page 74 Response area I/O port Vision Sensor (Slave) to Controller (Master) I/O port name Signal name Function Vision Status Flag Status Signals Switches from OFF to ON when the Sensor Controller (slave) completes execution of the control command and stores the control command code, response code, and Command response data.
  • Page 75 I/O port name Signal name Function Status Flag Status Signal Switches from OFF to ON when the Sensor Controller (slave) completes data output. • No Handshaking This signal turns OFF after the output time that is set in the Result Data Output Completion EtherCAT settings has elapsed.
  • Page 76 I/O ports in the User Output Area FH Sensor Controller (slave) to PLC (master) I/O port name Signal name Data type Function User Output Area 0 User Output Area 0 DINT User Output Area 1 User Output Area 1 DINT In the Communication specification settings, if you select [ON] for the User area setting, User Output Area 2...
  • Page 77 Assigning Device Variables to I/O Ports (PDO Mapping) When the Sensor Controller is connected to an NJ-series CPU unit, the data for PDO communications in the Sensor Controller is displayed in the I/O port names in Sysmac Studio. You can assign device variables to the I/ O ports in the Sysmac Studio I/O map to perform programming and monitoring.
  • Page 78: I/O Signals

    I/O Signals The following tables list the signals that are used to control I/O for EtherCAT. Input Signals ON/OFF timing Signal Signal Function name OFF to ON ON to OFF Turn ON the signal (from the PLC) to send a command to Switched from ON back to Turn ON this signal (from the Command...
  • Page 79 Output Signals ON/OFF timing Signal Signal Function Name OFF to ON ON to OFF This signal tells when com- mands and other external inputs cannot be acknowl- edged. Make sure this signal is OFF before you request a com- mand. During continuous measurement, the BUSY signal remains ON.
  • Page 80 ON/OFF timing Signal Signal Function Name OFF to ON ON to OFF • No Handshaking The signal turns ON after the Vision Sensor executes the Output Unit (Fieldbus Data Output Unit) in the measurement flow and preparations for data output •...
  • Page 81 ON/OFF timing Signal Signal Function Name OFF to ON ON to OFF This signal tells when the Cameras that are assigned to the Trigger signals can execute measurements. If you use a Camera with Lighting Controller, the time This signal is OFF when even required for the Trigger This signal is ON when the one of the Cameras that are...
  • Page 82: Measurement Results That You Can Output With Fieldbus Data Output

    ON/OFF timing Signal Signal Function Name OFF to ON ON to OFF Switched from ON to OFF This signal tells when input of a This signal is ON when a com- Flow when the Flow Command Flow Com- command can be acknowl- mand can be input during exe- Command Request signal switches from...
  • Page 83: Command List

    Command List This section describes the commands that you can use with EtherCAT. Note Use device variables assigned to the I/O port of the command area to specify command codes and command parameters of commands used in EtherCAT. To specify a command code or command parameter for a device variable, refer to the following: Details of Commands Used in EtherCAT Communication (p.354) Execution Commands Command...
  • Page 84 Commands to Get Status Command code for Command name Function Reference Command Area (hex) Reference: 0020 1000 Get Scene Number Acquires the current scene number. (p.374) Reference: 0020 2000 Get Scene Group Number Gets the scene group number. (p.375) Gets the number of the layout that is currently Reference: 0020 4000 Get Layout Number...
  • Page 85 Command code for Command name Function Reference Command Area (hex) Reference: 0030 7020 Set Communications Output Status Enables/disables outputs to external devices. (p.394) Sets the ON/OFF status of the specified par- Reference: 0030 8010 Set Parallel Terminal Status allel I/O terminal. (p.395) Sets the ON/OFF status of all parallel termi- Reference:...
  • Page 86: Measurement Trigger Input

    Measurement Trigger Input The ON/OFF timing of signals related to input of the measurement trigger is indicated in the timing chart below. Measurement Trigger Input Timing Chart The Trigger signal is used to input a measurement trigger. One measurement is executed each time the Trigger signal turns ON.
  • Page 87: Command Response Processing

    Command Response Processing The ON/OFF timing of related signals from command input in control command response processing is indicated in the timing chart below. Timing Chart for Command Execution The Command Request signal is used as the trigger for input/execution of commands from the Controller (master) for operations such as measurement execution.
  • Page 88 Continuous Measurement Command without Handshaking Continuous execution is used to repeatedly execute measurements by starting the next measurement operation (image input and measurement processing) as soon as one measurement operation (image input and measurement processing) is completed. Continuous measurements are started when the Start Continuous Measurements command is executed and ended when the End Continuous Measurements command is executed.
  • Page 89 Operation to Start Continuous Measurements (1) The Command code and command parameters are set by the Controller (master). (2) After checking that the Command Ready signal is ON and the Command Completion signal is OFF, the Controller (master) turns ON the Command Request signal. (3) The Sensor Controller (slave) echoes back the command code and sets the response code.
  • Page 90: Data Output

    Data Output The ON/OFF timing of signals related to data output after completion of measurement is indicated in the timing chart below. No Handshaking Fieldbus Data Fieldbus Data Output Unit Output Unit execution execution First data output Second data output Result Response Notification...
  • Page 91 Fieldbus Data Output Fieldbus Data Output The Controller (master) switches the Result Set Request signal from Unit execution Unit execution OFF to ON at the same time that the Trigger signal or Command Request signal switches from OFF to ON, and waits for the first data output.
  • Page 92: Time Charts

    Time Charts The ON/OFF timing of signals related to the sequence of operation from control command input until data output after completion of measurement is indicated in the timing chart below. Example 1: Inputting a Measurement Trigger after Changing a Scene without Handshaking Command Code Select Scene command Command Parameter...
  • Page 93 (6) The Controller (master) turns OFF the Command Request signal. (7) The Sensor Controller (slave) turns OFF the Command Completion signal. (8) The Controller (master) turns ON the Trigger signal. Note Before inputting a measurement trigger after changing the scene, first check that the Command Completion signal that was turned ON by execution of the scene change command has turned OFF, and that the Trigger Ready signal is ON.
  • Page 94 Example 2: Outputting Data with More Than One Output Unit without Handshaking Trigger signal Command Area Busy signal Trigger Ready signal OFF Response Area Trigger Ack signal Result Notification (10) signal First data output Second data output Data output Result Data Area This data is overwritten by the second data output.
  • Page 95 Note Saving All of the Measurement Results If you output data from more than one Data Output Unit or for repeatedly measured output data (e.g., for continuous measurements), the same Data Output Area will be overwritten. To save all of the output data, adjust the output period and output time that are set in the EtherCAT settings so that all of the output data is output and either receive all of the output data by using the Result Notification signal or use handshaking control.
  • Page 96: Ethercat Troubleshooting

    EtherCAT Troubleshooting Cannot Communicate with Sensor Controller Problem Cause Action Check the node address setting switches to see The node address is set incorrectly. if they are set correctly. Make sure that the EtherCAT connectors (input The devices are not connected correctly. There is absolutely no data and output) are connected correctly.
  • Page 97 Note Errors that occur in the EtherCAT system, including sensor errors, are displayed as a Sysmac error status in Sysmac Studio (Standard Edition). Refer to Sysmac Error Status (p.96). Vision System FH/FZ5 Series User’s Manual EtherCAT Connections (FH-1000 series/FH-3000 series only) for Communications Settings (Z342)
  • Page 98: Sysmac Error Status

    Sysmac Error Status The Sysmac Studio Standard Version displays errors that occur in the EtherCAT system (including Sensor errors) as Sysmac error status. Sysmac Error Status Event Code Table This section describes Sysmac error status event codes that are related to the sensor. Refer to the NJ-series Troubleshooting Manual (Cat.
  • Page 99 Level Event code Event name Meaning Assumed cause Reference Maj Prt Min Obs Info • A Camera is not connected to the Controller. • The Camera cable is broken. • The Camera Selection settings are not correct in the Camera Image Input Camera Connec- The Camera connec- and Camera Switching...
  • Page 100 Level Event code Event name Meaning Assumed cause Reference Maj Prt Min Obs Info • Scene data was edited when there was little available space on the RAM disk and the operation mode was Double Speed Multi- An error occurred while Setting Data input.
  • Page 101 Checking Sysmac Error Status You can use the troubleshooting functions of the Sysmac Studio Standard Version to check the Sysmac error status. Refer to the NJ-series Troubleshooting Manual (Cat. No. W503) for information on troubleshooting functions. Select [Troubleshooting] from the Tools Menu while online. You can also click the [Troubleshooting] button in the toolbar.
  • Page 102 Error Details This section provides details on errors. Interpreting Error Descriptions The items that are used to describe individual errors (events) are described in the following copy of an error table. Event name Gives the name of the error. Event code Gives the code of the error.
  • Page 103 ON. Attached None information Precautions/ If the problem persists after performing the corrections, a hardware failure may have occurred. Consult your OMRON Remarks representative. Event name Camera Overcurrent Detected Event code 0822 0000 hex Meaning An overcurrent flowed to the Camera.
  • Page 104 Event name Parallel I/O Overcurrent Detected Event code 0823 0000 hex Meaning An overcurrent occurred in the parallel I/O interface. Source EtherCAT Master Function Module Source details Slave Detection timing Always at startup Error reset (after Error attributes Level Minor fault Recovery resetting the error Log category...
  • Page 105 Event name Change in Connected Camera Event code 385A 0000 hex Meaning The Camera that is connected is different from when data was last saved. After turning ON Source EtherCAT Master Function Module Source details Slave Detection timing slave power Error reset (after Error attributes Level...
  • Page 106 System-defined variables None Assumed cause Correction Prevention Cause and A serious error occurred in the system correction Consult your OMRON representative. Consult your OMRON representative. in the Controller. Attached None information Precautions/ None Remarks EtherCAT Connections (FH-1000 series/FH-3000 series only) Vision System FH/FZ5 Series User’s Manual...
  • Page 107 Output Control Timeout for Parallel I/O, PLC Link, or Ether- Event name Event code 5821 0000 hex Net/IP Meaning A timeout occurred in data output handshaking control for measurement results. At measurement Source EtherCAT Master Function Module Source details Slave Detection timing result output Error reset (after...
  • Page 108 Event name Output Control Timeout for EtherCAT Event code 5822 0000 hex Meaning A timeout occurred in data output handshaking control for measurement results. At measurement Source EtherCAT Master Function Module Source details Slave Detection timing result output Error reset (after Error attributes Level Minor fault...
  • Page 109 Event name Setting Data Transfer Error Event code 781A 0000 hex Meaning An error occurred while transferring the scene data. After editing scene Source EtherCAT Master Function Module Source details Slave Detection timing data Error reset (after Error attributes Level Minor fault Recovery resetting the error...
  • Page 110 232C cable from becoming broken. Attached None information Precautions/ You can download the PLC Link Connection Guide from your OMRON website. Remarks Event name Light installation error Event code 385B0000 hex Meaning The Light installation is incorrect.
  • Page 111 Event name Initial scene group error Event code 58230000 hex Meaning Initial scene group setting is incorrect. After turning ON Source EtherCAT Master Function Module Source details Slave Detection timing slave power Error reset (after Error attributes Level Minor fault Recovery resetting the error Log category...
  • Page 112: Sysmac Device Features

    The status of an error can be monitored in the Sysmac Error Status (2002-01 hex). To display the error status detected by the FH series Vision Sensor in Sysmac Studio, the Sysmac Error Status (2002-01 hex) must be mapped to the PDO. Sysmac Studio, by default, uses the 512th transmit PDO Mapping assignment to map the Sysmac Error Status (2002-01 hex) automatically to the PDO.
  • Page 113 If one of these slaves finds that SII information with which it cannot operate was written, it generates an SII Check Error (Error No. 88.3).If this error persists even after turning OFF and then ON the power again, contact your OMRON sales representative. IMPORTANT Do not use third-party or any other configuration tools to edit the SII information.
  • Page 114: Object Dictionary

    2000 hex to 2FFF hex Manufacturer Specific area 1 Variables defined for all OMRON products Variables defined for FH series EtherCAT Slave Units 3000 hex to 5FFF hex Manufacturer Specific area 2 Command/Response method with using message communication...
  • Page 115 Object Description Format In this manual, objects are described in the following format. Object description format <Index> <Object name> Range: <Setting range> Unit: <Unit> Default: <Default setting> Attribute: <Data attribute> Size: <Size> Access: <Access> PDO map: <Possible/Not possible> Object description format with sub-indexes <Index>...
  • Page 116 Unit: − Default: 00000000 hex Attribute: − Size: 4 bytes (U32) Access: RO PDO map: Not possible • The FH series Vision Sensors do not have a device profile. 1001 hex Error Register Range: − Unit: − Default: 00 hex Attribute: −...
  • Page 117 • The ABORT code is displayed if a value other than the specific is written. • A value 0000 0001 hex (command valid) is indicated when reading. • The FH series Vision Sensors do not support this parameter. 1018 hex...
  • Page 118 From sub-index 6 (Diagnosis message 1) to sub-index 13 (Diagnosis message 8) are stored 8 errors. The 9th error and onward are stored from the sub-index 6 (Diagnosis message 1) again. • The FH series Vision Sensors support only the flags. EtherCAT Connections (FH-1000 series/FH-3000 series only) Vision System FH/FZ5 Series User’s Manual...
  • Page 119 PDO Mapping Object Indexes 1600 hex to 17FF hex are used for Receive PDO mapping, and indexes 1A00 hex to 1BFF hex are used for Transmit PDO mapping. Sub-indexes after sub-index 1 provide information about the application object being mapped. 16 15 Indexes Bit length...
  • Page 120 1601 hex 2nd receive PDO Mapping Sub-index0: Number of objects Range: − Unit: − Default: 05 hex Size: 1 byte (U8) Access: RO PDO map: Not possible Sub-index1: 1st Output Object to be mapped Range: − Unit: − Default: 70010020 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible...
  • Page 121 1602 hex 3rd receive PDO Mapping Sub-index0: Number of objects Range: − Unit: − Default: 06 hex Size: 1 byte (U8) Access: RO PDO map: Not possible Sub-index1: 1st Output Object to be mapped Range: − Unit: − Default: 70030120 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible...
  • Page 122 1A00 hex 1st transmit PDO Mapping Sub-index0: Number of objects Range: − Unit: − Default: 32 hex Size: 1 byte (U8) Access: RO PDO map: Not possible Sub-index1-32: 1st-32nd Input Object to be mapped Default: 60000101/60000201/60000301/ 60000401/60000501/60000601/60000701/ Range: − Unit: − 60000801/60000901/60000A01/60000B01/ 60001001/60001101 hex Size: 4 bytes (U32)
  • Page 123 1A04 hex 5th transmit PDO Mapping Sub-index0: Number of objects Range: − Unit: − Default: 08 hex Size: 1 byte (U8) Access: RO PDO map: Not possible Sub-index1: 1st Input Object to be mapped Range: − Unit: − Default: 60050120 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible...
  • Page 124 1A05 hex 6th transmit PDO Mapping Sub-index0: Number of objects Range: − Unit: − Default: 16 hex Size: 1 byte (U8) Access: RO PDO map: Not possible Sub-index1: 1st Input Object to be mapped Range: − Unit: − Default: 60050120 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible...
  • Page 125 Sub-index14: 14th Input Object to be mapped Range: − Unit: − Default: 60050E20 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index15: 15th Input Object to be mapped Range: − Unit: − Default: 60050F20 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index16: 16th Input Object to be mapped...
  • Page 126 1A06 hex 7th transmit PDO Mapping Sub-index0: Number of objects Range: − Unit: − Default: 32 hex Size: 1 byte (U8) Access: RO PDO map: Not possible Sub-index1: 1st Input Object to be mapped Range: − Unit: − Default: 60050120 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible...
  • Page 127 Sub-index14: 14th Input Object to be mapped Range: − Unit: − Default: 60050E20 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index15: 15th Input Object to be mapped Range: − Unit: − Default: 60050F20 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index16: 16th Input Object to be mapped...
  • Page 128 Sub-index28: 28th Input Object to be mapped Range: − Unit: − Default: 60051C20 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index29: 29th Input Object to be mapped Range: − Unit: − Default: 60051D20 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index30: 30th Input Object to be mapped...
  • Page 129 1A07 hex 8th transmit PDO Mapping Sub-index0: Number of objects Range: − Unit: − Default: 64 hex Size: 1 byte (U8) Access: RO PDO map: Not possible Sub-index1: 1st Input Object to be mapped Range: − Unit: − Default: 60050120 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible...
  • Page 130 Sub-index13: 13th Input Object to be mapped Range: − Unit: − Default: 60050D20 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index14: 14th Input Object to be mapped Range: − Unit: − Default: 60050E20 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index15: 15th Input Object to be mapped...
  • Page 131 Sub-index27: 27th Input Object to be mapped Range: − Unit: − Default: 60051B20 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index28: 28th Input Object to be mapped Range: − Unit: − Default: 60051C20 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index29: 29th Input Object to be mapped...
  • Page 132 Sub-index41: 41st Input Object to be mapped Range: − Unit: − Default: 60052920 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index42: 42nd Input Object to be mapped Range: − Unit: − Default: 60052A20 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index43: 43rd Input Object to be mapped...
  • Page 133 Sub-index55: 55th Input Object to be mapped Range: − Unit: − Default: 60053720 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index56: 56th Input Object to be mapped Range: − Unit: − Default: 60053820 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index57: 57th Input Object to be mapped...
  • Page 134 1A08 hex 9th transmit PDO Mapping Sub-index0: Number of objects Range: − Unit: − Default: 4 hex Size: 1 byte (U8) Access: RO PDO map: Not possible Sub-index1: 1st Input Object to be mapped Range: − Unit: − Default: 60060140 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible...
  • Page 135 1A09 hex 10th transmit PDO Mapping Sub-index0: Number of objects Range: − Unit: − Default: 16 hex Size: 1 byte (U8) Access: RO PDO map: Not possible Sub-index1: 1st Input Object to be mapped Range: − Unit: − Default: 60060140 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible...
  • Page 136 1A0A hex 11th transmit PDO Mapping Sub-index0: Number of objects Range: − Unit: − Default: 32 hex Size: 1 byte (U8) Access: RO PDO map: Not possible Sub-index1: 1st Input Object to be mapped Range: − Unit: − Default: 60060140 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible...
  • Page 137 Sub-index14: 14th Input Object to be mapped Range: − Unit: − Default: 60060E40 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index15: 15th Input Object to be mapped Range: − Unit: − Default: 60060F40 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index16: 16th Input Object to be mapped...
  • Page 138 1A0B hex 12th transmit PDO Mapping Sub-index0: Number of objects Range: − Unit: − Default: 64 hex Size: 1 byte (U8) Access: RO PDO map: Not possible Sub-index1: 1st Input Object to be mapped Range: − Unit: − Default: 60060140 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible...
  • Page 139 Sub-index14: 14th Input Object to be mapped Range: − Unit: − Default: 60060E40 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index15: 15th Input Object to be mapped Range: − Unit: − Default: 60060F40 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index16: 16th Input Object to be mapped...
  • Page 140 Sub-index28: 28th Input Object to be mapped Range: − Unit: − Default: 60061C40 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index29: 29th Input Object to be mapped Range: − Unit: − Default: 60061D40 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index30: 30th Input Object to be mapped...
  • Page 141 1A0C hex 13th transmit PDO Mapping Sub-index0: Number of objects Range: − Unit: − Default: 5 hex Size: 1 byte (U8) Access: RO PDO map: Not possible Sub-index1: 1st Input Object to be mapped Range: − Unit: − Default: 60050120 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible...
  • Page 142 1A0D hex 14th transmit PDO Mapping Sub-index0: Number of objects Range: − Unit: − Default: 10 hex Size: 1 byte (U8) Access: RO PDO map: Not possible Sub-index1: 1st Input Object to be mapped Range: − Unit: − Default: 60050120 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible...
  • Page 143 1A0E hex 15th transmit PDO Mapping Sub-index0: Number of objects Range: − Unit: − Default: 20 hex Size: 1 byte (U8) Access: RO PDO map: Not possible Sub-index1: 1st Input Object to be mapped Range: − Unit: − Default: 60050120 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible...
  • Page 144 Sub-index14: 14th Input Object to be mapped Range: − Unit: − Default: 60060460 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index15: 15th Input Object to be mapped Range: − Unit: − Default: 60060470 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index16: 16th Input Object to be mapped...
  • Page 145 1A0F hex 16th transmit PDO Mapping Sub-index0: Number of objects Range: − Unit: − Default: 40 hex Size: 1 byte (U8) Access: RO PDO map: Not possible Sub-index1: 1st Input Object to be mapped Range: − Unit: − Default: 60050120 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible...
  • Page 146 Sub-index14: 14th Input Object to be mapped Range: − Unit: − Default: 60050E20 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index15: 15th Input Object to be mapped Range: − Unit: − Default: 60050F20 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index16: 16th Input Object to be mapped...
  • Page 147 Sub-index28: 28th Input Object to be mapped Range: − Unit: − Default: 60060C40 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index29: 29th Input Object to be mapped Range: − Unit: − Default: 60060D40 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index30: 30th Input Object to be mapped...
  • Page 148 Objects are provided for each line as shown below when more than one line is used. Line 1:1A20 hex (1st transmit PDO mapping) and 1A21 to 1A2F hex (2nd to 16th transmit PDO mapping) Line 2:1A40 hex (1st transmit PDO mapping) and 1A41 to 1A4F hex (2nd to 16th transmit PDO mapping) Line 3:1A60 hex (1st transmit PDO mapping) and 1A61 to 1A6F hex (2nd to 16th transmit PDO mapping) Line 4:1A80 hex (1st transmit PDO mapping) and 1A81 to 1A8F hex (2nd to 16th transmit PDO mapping) Line 5:1AA0 hex (1st transmit PDO mapping) and 1AA1 to 1AAF hex (2nd to 16th transmit PDO mapping)
  • Page 149 1BFFh 512th transmit PDO Mapping Sub-index0: Number of objects in this PDO Range: − Unit: − Attribute: − Default: 01 hex Size: 1 byte (U8) Access: RO PDO map: Not possible Sub-index1: 1st Input Object to be mapped Range: − Unit: −...
  • Page 150 Sync Manager Communication Object The communication memory of EtherCAT is set by the objects from 1C00 hex to 1C13 hex. 1C00 hex Sync Manager Communication Type Sub-index 0: Number of used SM channels Range: − Unit: − Attribute: − Default: 04 hex Size: 1 byte (U8) Access: RO PDO map: Not possible...
  • Page 151 1C12 hex Sync Manager 2 PDO Assignment Sub-index 0: Number of assigned PDOs Range: − Unit: − Attribute: − Default: 02 hex Size: 1 byte (U8) Access: RW PDO map: Not possible Sub-index 1-2: 1st-2nd PDO Mapping Object Index of assigned 2nd PDO Default: Differ by Slave Unit Range: −...
  • Page 152 Manufacturer Specific Objects This section explains the CiA401 generic I/O module device profile implemented in FH-series EtherCAT Slave Units and the objects specially mounted in FH-series EtherCAT Slave Units. Common Objects for Sysmac Devices Manufacturer Specific area 1 2100 hex Error History Clear Range: −...
  • Page 153 2002 hex Sysmac Error Sub-index 0: Number of entries Range: − Unit: − Attribute: − Default: 02 hex Size: 1 byte (U8) Access: RO PDO map: Not possible Sub-index 1: Sysmac Error Status Range: − Unit: − Default: 00 hex Attribute: −...
  • Page 154 2201 hex Sync Not Received Timeout Setting Range: 0000 hex to 0258 hex Unit: s Default: 0000 hex Attribute: C Size: 2 bytes (U16) Access: RW PDO map: Not possible • Object mounted only on Slave Units operating in the DC mode. •...
  • Page 155 Sub-index9: Flow Command Completion Bit Unit: − Range: True (1) or False (0) Default: Differ by the status when starting Size: 1 bit (BOOL) Access: RO PDO map: Possible Sub-index10: Flow Command Busy Bit Unit: − Range: True (1) or False (0) Default: Differ by the status when starting Size: 1 bit (BOOL) Access: RO...
  • Page 156 6002 hex Response Data Range: − Unit: − Default: 00000000 hex Size: 4 bytes (U32) Access: RO PDO map: Possible • The response code is stored when the command is completed. (OK: 00000000 hex, NG: FFFFFFFF hex) 6003 hex Response Data Sub-index0: Number of entries Range: −...
  • Page 157 6007Hex User Output Area Sub-index 0: Number of entries Setting range: - Unit: - Default: 00Hex Size: 1byte (U8) Access: RO PDO map: Not possible Sub-index 1: User Output Area0 (User Output Area 0) Setting range: - Unit: - Default: 00000000Hex Size: 4bytes (INT32) Access: RO PDO map: Possible...
  • Page 158 7000 hex Control Flag Sub-index 0: Number of entries Range: − Unit: − Default: 00 hex Size: 1 byte (U8) Access: RO PDO map: Not possible Sub-index 1: Command Request Range: True (1) or False (0) Unit: − Default: False (0) Size: 1 bit (BOOL) Access: RW PDO map: Possible...
  • Page 159 7002 hex Command Parameter Sub-index0: Number of entries Range: − Unit: − Default: 00 hex Size: 1 byte (U8) Access: RO PDO map: Not possible Sub-index1: Command Parameter 0 Range: − Unit: − Default: 00000000 hex Size: 4 bytes (4 bytes (INT32) Access: RW PDO map: Possible Sub-index2: Command Parameter 1...
  • Page 160 Sub-index 6: User Input Area 5 (User Input Area 5) Setting range: - Unit: - Default: 00000000Hex Size: 8bytes (Double) Access: RO PDO map: Possible • Saves the User Input Area. 8000 hex Result Reporting Configuration Sub-index0: Number of notice Range: −...
  • Page 161 F000 hex Modular Device Profile Sub-index0: Number of notice Range: − Unit: − Default: 05 hex Size: 1 byte (U8) Access: RO PDO map: Not possible Sub-index1: Index distance Range: − Unit: − Default: 10 hex Size: 2 bytes (U16) Access: RO PDO map: Not possible Sub-index2: Maximum number of modules...
  • Page 162 Sub-index7: Profile information of the module on position 7 Range: − Unit: − Default: 00 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index8: Profile information of the module on position 8 Range: − Unit: − Default: 00 hex Size: 4 bytes (U32) Access: RO PDO map: Not possible...
  • Page 163 F050 hex Detected Module Ident List1 Sub-index0: Number of notice Range: − Unit: − Default: 08 hex Size: 1 byte (U8) Access: RO PDO map: Not possible Sub-index1: Module Ident of the module configured on position 1 Range: − Unit: − Default: 00 hex Size: 4 bytes (U32) Access: RO...
  • Page 164: Communicating With Plc Link

    • Duplicating setting of FINS/UDP ports in CJ/NJ series to FH/FZ5 series Output port number are not applied when you use UDP/IP communication which connects OMRON PLC CJ series or NJ/NX series and Ethernet. • If you connect multi FH/FZ5 Sensor Controllers to a FINS/UDP port, PLC communication may be disabled. A PLC link error could be occurred.
  • Page 165 Note The PLC Link protocol communicates using three link areas: Command Area, Response Area, and Data Output Area. It is different from the serial PLC Link protocol used to inter-connect OMRON PLCs serially. IMPORTANT In the default settings for PLC Link communications, the data output processing method is set to the same processing used for models prior to the FZ4.
  • Page 166: Communications Setup Procedures

    Communications Setup Procedures The following settings are required to use PLC Link communications. · · · The communication method to be used is determined by selecting a commu- 1. Communications Module settings nication module. (startup settings) Reference: Communications Module Settings (Startup Settings) (p.164) ↓...
  • Page 167 Serial (Ethernet) Performs PLC Link communications via an Ethernet connection. Select this Communications Module to UDP communicate with PLC Link (SYSMAC CS/CJ/CP/One)(UDP) an OMRON PLC. Select this Communications Module to TCP communicate with PLC Link (SYSMAC CS/CJ/CP/One)(TCP) an OMRON PLC.
  • Page 168: Communications Specifications Settings

    Communications Specifications Settings Communications specifications, such as the link areas, baud rate, and data length, are set. The communications settings must be set separately for Ethernet and RS-232C communications. If communications cannot be performed even after setting these communications settings, check the settings and the communications status.
  • Page 169 Note • An FH-1000/FH-3000 series Sensor Controller with four or eight Camera inputs has two Ethernet ports. Set the settings for the two Ethernet ports as follows: • Communications Module Settings Use the same setting for both ports. • IP Address Setting Set a different IP address for each Ethernet port.
  • Page 170 Setting Set value [Factory default] Description item Address Settings Address Settings is only for the following series: Set the IP address of the top Ethernet port on the • FH-1000 series (4, 8 camera type) Sensor Controller. • FH-3000 series (4, 8 camera type) •...
  • Page 171 Setting Set value [Factory default] Description item Address setting 2 Address Settings is only for the following series: Set the IP address of the bottom Ethernet port on • FH-1000 series (2 camera type) the Sensor Controller. • FH-3000 series (2 camera type) •...
  • Page 172 IMPORTANT • If the operation mode is set to Multi-line Random-trigger Mode, set a different I/O port number for each line. • Change the IP address and subnet mask for [Address setting] and [Address setting 2] as required so that each designate a different network address.
  • Page 173 • Communicating with an OMRON PLC (When [PLC Link (Sysmac CS/CJ/CP/One)] is selected for the Communications Module) Set value Setting item Description [Factory default] Command area • [CIO Area (CIO)] • Work Area (WR) Set the Command Area. • Holding Bit Area (HR)
  • Page 174 Set value Setting item Description [Factory default] Selected: Measurement processing and data output pro- cessing are performed in parallel. The data out- put processing does not affect the processing time of the measurement flow. IMPORTANT Always set the output control to [Handshaking] for asynchronous output.
  • Page 175 • Communicating with a Mitsubishi Electric PLC (When [PLC Link (MELSEC/QnU/Q/QnAS)] is selected for the Communications Module) Set value Setting item Description [Factory default] Command area • [Data register] Area • File register Set the Command Area. • Link register 0 to 99999 Address Set the first word address in the Command Area.
  • Page 176 Set value Setting item Description [Factory default] Set the time after which a timeout error will occur due to failing in establish- ing PLC link communications. The error is caused by making incorrect communication settings or discon- nection of communication cables, and similar causes. After a timeout error occurs, communications with the destination device will be attempted at the interval time that is set as the retry interval.
  • Page 177 • Communicating with a Yaskawa Electric PLC (When [PLC Link (JEPMC MP)] is selected for the Communications Module) Set value Setting item Description [Factory default] Command area Area Data register Data registers are always used for the Command Area. 0 to 99999 Address Set the first word address in the Command Area.
  • Page 178 Set value Setting item Description [Factory default] The command will be resent after the time that is set for "Retry interval 2" in cases where PLC link communications fail due to a temporary response delay Retry interval 2 0 to 999999 caused by heavy network loads, processing conditions on a PLC, and similar [ms] [1000]...
  • Page 179 20 Kbps are not defined in RS-232C standards. In this case, set the baud rate to [19200 bps] or lower. With the RS-232C MELSEC Q Series, set the data length to 8. RS-422 cannot be used with the MELSEC Q Series. and the FH Series. Click [PLC link]. The PLC Link Setting View is displayed.
  • Page 180 Set the following items. Some setting items will change depending on the selected Communications Module. Communicating with PLC Link Vision System FH/FZ5 Series User’s Manual for Communications Settings (Z342)
  • Page 181 • Communicating with an OMRON PLC (When [PLC Link (Sysmac CS/CJ/CP/One)] is selected for the Communications Module) Set value Setting item Description [Factory default] Command area • [CIO Area (CIO)] • Work Area (WR) • Holding Bit Area (HR) Area Set the Command Area.
  • Page 182 Set value Setting item Description [Factory default] Set whether to provide an interlock with the PLC when per- forming data output. • None None: Data is output regardless of the status of signals from Output control • [Handshaking] the PLC. GATE is always OFF. Handshaking: Data is output after confirming DSA from the PLC.
  • Page 183 • Communicating with a Mitsubishi Electric PLC (When [PLC Link (MELSEC/QnU/Q/QnAS)] is selected for the Communications Module) Set value Setting item Description [Factory default] Command area • [Data register] Area • File register Set the Command Area. • Link register 0 to 99999 Address Set the first word address in the Command Area.
  • Page 184 Set value Setting item Description [Factory default] Used to set the time for generating a timeout error. After a timeout error occurs, communication to check the remote device is attempted for the amount of time set for this [Retry interval] setting. *1: During [Handshaking] communication, a timeout also occurs when any of the following operations is not exe- cuted during the time set for [Retry interval]:...
  • Page 185 IMPORTANT Always set the output control to [Handshaking] for asynchronous output. If you set the output control to [None], operation will be fixed at the following values: Output time: 100 ms, Output period: 200 ms. If you need a shorter output time and output period when the output control is set to [None], do not select asynchronous output. Vision System FH/FZ5 Series User’s Manual Communicating with PLC Link for Communications Settings (Z342)
  • Page 186: Output Data Settings (Processing Item Registration)

    Output Data Settings (Processing Item Registration) Set the items to output through PLC Link communications and the output format. Note When outputting characters read by a processing item such as Barcode, these settings are set in the processing item used to read the characters (Character Inspection, Barcode, or 2DCode).
  • Page 187 Click the [Data Output] icon ( ) and set the data output items and data format. Refer to the following reference for details on the settings. • Reference: Registering the Items To Output (p.186) Note • The number of items that can be output in a single data output processing item is 8 to 256. If you need to output more data items, use more than one Output Unit.
  • Page 188 Registering the Items To Output Set expressions for the data to output. Click the [Data Output] icon ( ) in the measurement unit list (flow). In the Item Tab Area, click [Setting]. In the list, select the output data number for the expression to set. The selected output data number is displayed under the list.
  • Page 189 Note If you delete one of the expressions that is set for output data 0 through 255, the output numbers for all expressions after the deleted expression will stay the same. However, the actual data output will be output as though the list has been shifted forward for the number of expressions that have been deleted.
  • Page 190 Output Format (Data Output) Click the [Output format] icon ( ) in the measurement unit list (flow). In the Item Tab Area, click [Output format]. In the Output Setting Area, select the communications method. Set value Description [Factory default] [RS-232C/RS-422] Communications are performed via a RS-232C/RS-422 connection.
  • Page 191: Testing Communications

    Testing Communications Check to confirm that the PLC Link communications are set correctly. If communications cannot be performed even after set up the communications, use the following procedure to check the settings and the communications status. Ethernet Communications Before Performing a Communications Test This example assumes that [Serial (Ethernet)] −...
  • Page 192 Checking the Communications Status Use the ping command to check if the Sensor Controller exists on the Ethernet network. Use this to determine if the Sensor Controller’s IP address has been set correctly and that the Sensor Controller is correctly connected to the Ethernet network. Note The ping command uses the ICMP protocol to send a response request to a device connected through an Ethernet network and determines the time required to respond to that request.
  • Page 193 RS-232C/422 Communications Before Performing a Communications Test This example assumes that [Serial (RS-232C/422)] − [PLC Link (SYSMAC CS/CJ/CP/One)] is selected as the Communications Module. Stop the program on the PLC when you check the communications settings. Checking the Communications Settings Use the following procedure to check if the communications settings are correct.
  • Page 194: Memory Allocation

    Checking the Communications Status Connect the Sensor Controller and PLC Link with an RS-232C/422 cable. If the cable is not connected, check to confirm that the message “PLC Link Error” is displayed on the Controller. Confirm that the “PLC Link Error” message goes away when the cable is connected. (At the longest, the message should disappear after the time set as the retry interval.) If the “PLC Link Error”...
  • Page 195 Response Area (Sensor Controller to PLC) Note The order in which data is stored depends on the manufacturer of the connected PLC. For details, see Reference: Parameter Notation Examples for Command Control (p.350). First word in Response Name Area XWAIT XBUSY XFLG BUSY FLG Control input (2 words) GATE...
  • Page 196 Data Output Area (Sensor Controller to PLC) Data that is output to the Data Output Area is not automatically assigned. Each data item for output is assigned in an Output Unit. First word in the Name Data Output Area DATA0 Output data 0 DATA1 Output data 1...
  • Page 197: I/O Signals

    I/O Signals The following tables describes the signals that are used to control I/O for PLC Link communications. Input Signals ON/OFF timing Signal Signal name Function OFF to ON ON to OFF Turn ON the signal (from the PLC) to send a com- Turn OFF the signal from Turn ON this signal (from mand to the Sensor Con-...
  • Page 198 Output Signals ON/OFF timing Signal Signal name Function OFF to ON ON to OFF This signal tells when com- mands and other external inputs cannot be acknowl- edged. Make sure this signal is OFF before you request a command. Note: •...
  • Page 199 ON/OFF timing Signal Signal name Function OFF to ON ON to OFF • The Result Set Request (DSA) signal turns ON after the FH/FZ5 executes the Output Unit (Data Output Unit) in the measurement flow preparations for data output have been This signal tells the user completed, and the (PLC) when to read the...
  • Page 200: Output Items

    Output Items Measurement Results That You Can Output with the Data Output Processing Item You can use the processing items that are related to outputting results to output the following data. You can also access measured values from the Calculation or other processing units. Measured item Text string Description...
  • Page 201: Command List

    Command List The following tables list the commands used in PLC Link communications. For command details, refer to Parameter Notation Examples for Command Control (p.350) Execution Commands First word in Command Area Function Reference 0010 1010 Performs one measurement. Reference: (p.361) 0010 1020...
  • Page 202 First word in Command Area Function Reference Gets the input status (enabled/disabled) for the Communications Mod- 0020 7010 Reference: (p.378) ules. 0020 7020 Gets the output status (enabled/disabled) to external devices. Reference: (p.379) 0020 8010 Gets the ON/OFF status of the specified parallel I/O terminal. Reference: (p.380) 0020...
  • Page 203 First word in Command Area Function Reference 0040 4040 Gets the set image logging prefix Reference: (p.410) 0040 4050 Gets the conditions that are set for data logging. Reference: (p.410) 0040 4060 Gets the parallel DI terminal offset data that is set. Reference: (p.411) Commands to Write Data...
  • Page 204: Command Response Processing

    Command Response Processing The ON/OFF timing of related signals from command input in control command response processing is indicated in the timing chart below. Timing Chart for Command Execution The commands for measurement execution or other processing that are stored in advance in the memory of the PLC are input and executed when you turn ON the Command Request (EXE) signal.
  • Page 205 Timing Chart for the Execution of Continuous Measurement Commands without Handshaking Continuous execution is used to repeatedly execute measurements by starting the next measurement operation (image input and measurement processing) as soon as one measurement operation (image input and measurement processing) is completed. Continuous measurements are started when the Start Continuous Measurements command is executed and ended when the End Continuous Measurements command is executed.
  • Page 206 Operation to Start Continuous Measurements The Start Continuous Measurements command code is set from the PLC (user). The Command Request (EXE) signal is then turned ON. A request is sent to the Vision Sensor. The Sensor Controller begins preparing for continuous measurement and turns ON the BUSY signal when the request is received.
  • Page 207: Data Output

    Data Output The ON/OFF timing of signals related to data output after completion of measurement is indicated in the timing chart below. No Handshaking Data Output Data Output Unit execution Unit execution First data output Second data output Result Completion Response Area (GATE) signal Data Output Area...
  • Page 208 Using Handshaking When the PLC (user) turns ON the Result Set Request (DSA) signal, the Result Completion (GATE) signal turns ON. At that point, the output data that can be output is output. The PLC (user) turns OFF the DSA signal when it has received the output data and when the Result Completion (GATE) signal is ON.
  • Page 209: Time Charts

    Time Charts The ON/OFF timing of signals related to the sequence of operation from control command input until data output after completion of measurement is indicated in the timing chart below. Example 1: Inputting a Measurement Command after Changing a Scene without Handshaking Command Select Scene command Measurement command...
  • Page 210 Note To execute a measurement trigger after changing the scene, first confirm that the Command Completion (FLG) signal and the BUSY signal that turned ON for execution of the Select Scene command have turned OFF. Also, if the BUSY signal is ON for too little time and the external device cannot read it, increase the time that the BUSY signal is ON for changing scenes so that the external device can read the ON state.
  • Page 211 Example 2: Outputting Data with More Than One Output Unit without Handshaking Command code Measurement command Command Command Area parameters Measurement command Command Request execution (EXE) signal BUSY signal Command Response Area Completion (FLG) signal Result Completion (GATE) signal First data output Second data output Data Output Output data...
  • Page 212: Plc Link Troubleshooting

    Note Saving All of the Measurement Results If you output data from more than one Data Output Unit or for repeatedly measured output data (e.g., for continuous measurements), the same Data Output Area will be overwritten. If you want to save all output data, use one of the following methods. Method Description When using more than one Output Unit, you can offset the write destination of the output data for...
  • Page 213 Problem Cause Action Ethernet The output IP address is incorrect. Set the output IP address correctly. There is a problem with the wiring or a cable Check the wiring. has been disconnected. Check the cable connections. There is absolutely A connector has been disconnected. Check the connector connections.
  • Page 214 Slow Operation Problem Cause Action It takes around 10 seconds Set the PLC cycle time to the shortest inter- to execute any PLC Link Communications are timing out. val possible. commands. You are performing communications with Do not use incompatible protocols for com- incompatible protocols (e.g., PLC Link and munications.
  • Page 215: Communicating With Ethernet/Ip

    Communicating with EtherNet/IP This section describes the required communication settings, communication specifications, input/output format, and communication timing chart for communication between the Sensor Controller and external devices by EtherNet/IP. 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).
  • Page 216: Data Exchange With Ethernet/Ip

    Data Exchange with EtherNet/IP Communications with Tag Data Links Data is exchanged cyclically between Ethernet devices on the EtherNet/IP network using tag data links as shown below. Originator Target Sensor Controller Connection Output tag set name: Input tag set name: A Connection from Input_101 Sensor Controller to PLC...
  • Page 217 EtherNet/IP Communications Cycle (RPI) Data is refreshed for EtherNet/IP tag data link communications at a communications interval called the RPI (requested packet interval). All data transfer between the external device (e.g., PLC) and the Sensor Controller are performed at the set RPI. Communications Data is updated at the set transmission path...
  • Page 218 Example 2: Duration of Change in Sensor Controller Signal > RPI 10 ms Output period 50 ms Sensor Controller Output time 30 ms (ON: 30 ms, OFF: 20 ms) Output control None Communications The packet interval (RPI) is correct. transmission path 10 ms 10 ms 10 ms...
  • Page 219: Ethernet/Ip Communications

    Tag data link settings are set using Support Software for tag data link settings. 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 220: Communications Processing Flow

    Tag Data Link Setting Methods (p.228). Or, if you are connecting to a non-OMRON PLC or EtherNet/IP unit, download the EDS file for the Sensor Controller from your OMRON website and follow the procedures in the user’s manual for the external device you want to connect to and in the instructions for the software that you use to set the tag data link settings.
  • Page 221 FH Sensor Controller Output tag set Input tag set Responds Output tags when a command is (1) Command Area Input received. connection to You write the following control The control commands that Commands the Sensor commands for the Sensor are written to the Command 20 bytes Controller Controller.
  • Page 222: Communications Setup Procedures

    · · · The tag data link settings are set to exchange data with the external device. This section describes an example of how to set the settings for tag data links with an OMRON PLC using the Network Configurator. Reference: Tag Data Link Setting Methods (p.228)
  • Page 223: Communications Module Settings (Startup Settings)

    Communications Module Settings (Startup Settings) The communication method used for communication with the Sensor Controller is selected from the communication modules. On the Main Window, select [Tool] − [System Settings]. Select [System settings] − [Startup] − [Startup setting] on the Multiview Explorer on the left and then click [Communication].
  • Page 224: Communications Specifications Settings

    Communications Specifications Settings You must set the output handshaking and output controls for EtherNet/IP communications. IMPORTANT • Set the Communications Module to EtherNet/IP in the startup settings before setting the communications specifications. Reference: Communications Module Settings (Startup Settings) (p.62) After you select the Communications Module, save the settings to the Sensor Controller and restart the Sensor Controller.
  • Page 225 Note • The following series with 4 or 8 camera inputs has two Ethernet ports: • FH-1000 series • FH-3000 series Set the settings for the two Ethernet ports as follows: • Communications Module settings Use the same setting for both ports. •...
  • Page 226 Set value Setting item Description [Factory default] Address Settings Address Settings is only for the following series: Set the IP address of the top Ethernet port on the Sensor Con- • FH-1000 series (4, 8 camera type) troller. • FH-3000 series (4, 8 camera type) •...
  • Page 227 Set value Setting item Description [Factory default] Address setting 2 Address Settings is only for the following series: Set the IP address of the bottom Ethernet port on the Sensor • FH-1000 series (2 camera type) Controller. • FH-3000 series (2 camera type) •...
  • Page 228 Set the following items. Set value Setting item Description [Factory default] Set whether to synchronize with the external device when data is output. None: The Sensor Controller outputs measurement results without syn- chronizing with external devices. Normally, select [Handshaking]. • None Output control Reference: No Handshaking (p.258)
  • Page 229 Set value Setting item Description [Factory default] Set whether to use the User Area that are user input area and user out- put area. • [OFF] • Data type of User Input Area 0 to 3 is DINT. User area •...
  • Page 230: Tag Data Link Setting Methods

    To connect to OMRON Controllers and communicate through EtherNet/IP, you use the Sysmac Studio Ver. 1.10 or later, Network Configurator to set up tag data links (i.e., tags, tag sets, and connection settings).
  • Page 231 Settings in the Sensor Controller (Device Parameter Settings) Right-click the Sensor Controller 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 Set value Set one of the following values.
  • Page 232 Connection Settings Parameter Setting Input tag set PLC_tag_set_name-[48Byte] Originator device (PLC) Connection type Any (default: Point to Point connection) Output tag set PLC_tag_set_name-[20Byte] Output tag set Input_101-[48Byte] Target device (Sensor Controller) Input tag set Output_100-[20Byte] Packet interval (RPI) Any (default: 50.0) User specified (default: Packet interval (RPI) ×...
  • Page 233 Assembly Object Settings Setting Setting Description Size item Output connection (for normal control and for Total size of Command area and User Input line 0 in Multi-line Random Trigger Mode) area.*1 Input connection (for normal control and for line Total size of Response area, Data output area 0 in Multi-line Random Trigger Mode) and User output area.*2 Output connection (for line 1 in Multi-line Ran-...
  • Page 234: Output Data Settings (Processing Item Registration)

    Output Data Settings (Processing Item Registration) Use the following procedures to set the items to output to EtherNet/IP and the output format. Registering Processing Items Register the processing items for data output in the measurement flow. Click [Edit flow] in Toolbar. Select the [Fieldbus Data Output] processing item from the processing item tree.
  • Page 235 Note • The number of outputtable items for single data output processing is 8 to 64 depending on data output settings in each lines. If you need to output more data items, use more than one Output Unit. However, the data is output to the same destination, so if you do not control the output, the output data that was output first will be overwritten by the output data that is output after it.
  • Page 236 Click the [...] button next to the expression box and set the expression. Specify the processing items, measurement results, and measurement data in the expression. You can also perform arithmetic or function calculations on the measurement data before it is output. For calculation settings, refer to section of Calculation in FH/FZ5 Processing Item Function Reference Manual (Cat.
  • Page 237 Output Format (Fieldbus Data Output) Click the [Fieldbus Data Output] icon ( ) in the measurement unit list (flow). In the Item Tab Area, click [Output format]. Select the output format. Set value [Factory default] Description Decimal output form Data is output multiplied by 1,000. [Fixed point] Example: For 123.456, 0x0001E240 Data is output in floating-point format.
  • Page 238: Testing Communications

    Testing Communications You can check whether the EtherNet/IP communications settings are correct. If communications cannot be performed even after set up the communications, use the following procedure to check the settings and the communications status. Before Performing a Communications Test This example assumes that [Serial (Ethernet)] −...
  • Page 239 Checking the Communications Status Use the ping command to check if the Sensor Controller exists on the Ethernet network. Use this to determine if the Sensor Controller’s IP address has been set correctly and that the Sensor Controller is correctly connected to the Ethernet network. Note The ping command uses the ICMP protocol to send a response request to a device connected through an Ethernet network and determines the time required to respond to that request.
  • Page 240: Memory Allocation

    Memory Allocation This section describes the assignments of the Command Area for the input connection to the Sensor and the Response Area and Output Area for the output connection to the PLC. Input Connection to Sensor (PLC Originator to Sensor Controller Target) For input connections to Sensors, specifies control input, command code command parameters and User Input Area.
  • Page 241 Signal Signal name Function Executes a command. Command Execution Bit Reference: Command List (p.251) Requests the next data output. Data Output Request Bit Reference: Output Data Settings (Processing Item Registra- tion) (p.232) STEP Measure Bit Executes a measurement. XEXE Flow Command Request Bit Executes a command during execution of fieldbus flow control.
  • Page 242 Output Connection to PLC (Sensor Controller Originator to PLC Target) For output connections to the PLC, execution results and output data from the Sensor Controller are set. Outputs the executed results (control outputs, command codes, response codes and response data) from Sensor Controller to the response area.
  • Page 243 First word in Response Name Area DATA6 Output data 6 DATA7 Output data 7 User Output Area User Output Area 0 User Output Area User Output Area 1 User Output Area User Output Area 2 User Output Area User Output Area 3 User Output Area User Output Area 4 User Output Area...
  • Page 244 Signal Signal name Function Command Completion Bit Turns ON when command execution is completed. GATE Data Output Completion Bit Turns ON when data output is completed. BUSY Command Busy Bit Turns ON when command execution is in progress. Turns ON when the overall judgement result is NG. Overall Judgement (The OR signal is output when the checkbox for [Output] is selected in the ADJUST window.)
  • Page 245 Accessing Communications Areas Using Variables with NJ-series Controllers With an NJ-series Controller, only variables can be used to access from the user program the I/O memory addresses that are assigned to the communications areas. Use the following settings. Using Network Variables for Access Create user-defined variables that match the structures of the communications areas of the Sensor.
  • Page 246 • Data Type to Access the Response and Output Areas Name of data type: S_EIPInput Type of derivative data type: Structure Name of data type Data type S_EIPInput STRUCT StatusFlag U_EIPFlag The data type that was defined above (1) CommandCodeEcho DWORD 32-bit bit string data ResponseCode...
  • Page 247 (2) Set the connections as shown in the following table. Originator device (PLC) settings Target device (Sensor) settings Input tag set: EIPOutput Output tag set: Input101 Output tag set: EIPInput Input tag set: Output100 Accessing the Communications Areas from the User Program The defined variables are used to access the communications areas for the Sensor using the following •...
  • Page 248 Accessing Communications Areas by Specifying I/O Memory Addresses AT specifications can be set for variables to individually specify the I/O memory addresses that are assigned in the communications areas. Setting Tag Sets (Network Configurator) Specify the tag names in the PLC directly by using the I/O memory addresses that are assigned in the communications areas.
  • Page 249: I/O Signals

    I/O Signals The following tables list the signals that are used to control I/O for EtherNet/IP. Input Signals ON/OFF timing Signal Signal name Function OFF to ON ON to OFF Turn ON the signal (from the Turn ON this signal (from PLC) to send a command to Switch OFF the signal (from Command...
  • Page 250 Output Signals ON/OFF timing Signal Signal name Function OFF to ON ON to OFF This signal tells when commands and other external inputs cannot be acknowledged. Make sure this signal is OFF before you request a command. During continuous measurement, the BUSY signal remains ON.
  • Page 251 ON/OFF timing Signal Signal name Function OFF to ON ON to OFF • No Handshaking: After execution of the Fieldbus Data Output unit in the measurement flow by the Sensor Controller, the signal turns ON if the data is ready to be output. •...
  • Page 252: Output Items

    ON/OFF timing Signal Signal name Function OFF to ON ON to OFF This signal tells when The signal is ON when a The signal is OFF when a input of a command can Flow Com- command can be input command cannot be input XWAIT be acknowledged during mand Wait Bit...
  • Page 253: Command List

    Command List This section explains each command used in EtherNet/IP. A command with a description of command area head word can be executed with both tag data link communication and message communication. A command without a description in the First word in Command Area column (---) can be executed only with message communications.
  • Page 254 Commands to Get Status First word in Command Area Function Reference 0020 1000 Gets scene number. Reference: (p.374) 0020 2000 Gets the scene group number. Reference: (p.375) 0020 4000 Gets the number of the layout that is currently displayed. Reference: (p.376) Gets the number of the unit that is currently displayed in the speci- 0020...
  • Page 255 Commands to Read Data First word in Command Area Function Reference 0040 1000 Gets the unit data. Reference: (p.405) Gets the current date and time. Reference: (p.436) Gets system version information. Reference: (p.519) Gets settings related to image logging. Reference: (p.505) Gets the defined image logging folder name.
  • Page 256 File Save Commands First word in Command Area Function Reference Saves the scene data. Reference: (p.502) Saves the scene group data. Reference: (p.504) Saves system data. Reference: (p.510) Saves the image data. Reference: (p.464) Saves all the image data in the image buffer (specified with [main unit Reference: (p.426) logging image]).
  • Page 257: Command Response Processing

    Command Response Processing The ON/OFF timing of related signals from command input in control command response processing is indicated in the timing chart below. Timing Chart for Command Execution The commands for measurement execution or other processing that are stored in advance in the memory of the PLC are input and executed when you turn ON the Command Request (EXE) signal.
  • Page 258 Continuous Measurement Command without Handshaking Continuous execution is used to repeatedly execute measurements by starting the next measurement operation (image input and measurement processing) as soon as one measurement operation (image input and measurement processing) is completed. Continuous measurements are started when the Start Continuous Measurements command is executed and ended when the End Continuous Measurements command is executed.
  • Page 259 Operation to End Continuous Measurements The End Continuous Measurements command code is set from the PLC (user) during execution of continuous measurements for a Start Continuous Measurements command. The Command Request (EXE) signal is then turned ON. A request is sent to the Vision Sensor.
  • Page 260: Data Output

    Data Output The ON/OFF timing of signals related to data output after completion of measurement is indicated in the timing chart below. No Handshaking Fieldbus Data Output Fieldbus Data Output Unit execution Unit execution (*1) (*2) First Second data output data output Result Completion Response Area...
  • Page 261 Using Handshaking When the PLC (user) turns ON the Result Set Request (DSA) signal, the Result Completion (GATE) signal turns ON. At that point, the output data that can be output is output. The PLC (user) turns OFF the DSA signal when it has received the output data and when the Result Completion (GATE) signal is ON.
  • Page 262: Time Charts

    Time Charts The ON/OFF timing of signals related to the sequence of operation from control command input until data output after completion of measurement is indicated in the timing chart below. Example 1: Inputting a Measurement Trigger after Changing a Scene without Handshaking Command Code Select Scene command Measurement command...
  • Page 263 Note To execute a measurement trigger after changing the scene, first confirm that the Command Completion (FLG) signal and the Busy (BUSY) signal that turned ON for execution of the Select Scene command have turned OFF. Also, if the Busy (BUSY) signal is ON for too little time and the external device cannot read it, increase the time that the Busy (BUSY) signal is ON for changing scenes so that the external device can read the ON state.
  • Page 264 Example 2: Outputting Data with More Than One Output Unit without Handshaking Command Code Measurement command Command Parameter Command Area (11) Command Execute Measurement command is running. (EXE) signal Busy (BUSY) signal (12) Response Command Completion Area (FLG) signal Data Output Completion (GATE) signal First data output...
  • Page 265 The BUSY signal turns off and the Command Completion (FLG) signal turns ON when the measurement processing is completed. The PLC (user) turns OFF the Command Request (EXE) signal when the Command Completion (FLG) signal turns ON. The Sensor Controller confirms that the Command Request (EXE) signal is OFF and automatically turns OFF the Command Completion (FLG) signal.
  • Page 266: Communicating With The Sensor Controller 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 267 Data Types The data types are preset as follows in the EtherNet/IP specifications. Range Data type Description Minimum value Maximum value BOOL Boolean 0: FALSE 1: TRUE SINT Short integer −128 Integer −32768 32767 DINT Double-precision integer −2 −1 USINT Unsigned short integer UINT Unsigned integer...
  • Page 268 Service Service code Name Description 14 (0E hex) GetAttributeSingle Gets the attribute value. Sets a value for the attribute. Whether an attri- 16 (10 hex) SetAttributeSingle bute can be set depends on the access attribute of the attribute. Settings for Data Sent by the Sensor Controller Instance Setting item Set value...
  • Page 269: Command Setting Example

    Attribute Attribute ID Access Name Data type Description The command string to send to the Sensor Control- ler is set in this attribute. 0x01 Data BYTE array (504 characters max.) The commands that can be used are equivalent to non-procedure commands. Reference: Command List (p.355) Service...
  • Page 270 No Data Is Output from the Sensor Controller Problem Cause Action The RPI (packet interval) and the Sensor The RPI (packet interval) time must be set GATE signal is not output. Controller’s output period are not set cor- so that it is shorter than the output period. rectly.
  • Page 271: Non-Procedure Communications

    Non-procedure Communications This section provides the communications settings, communications specifications, input formats, and other information required to perform non-procedure (normal) communications between the Sensor Controller and an external device. Communications Processing Flow The Sensor Controller and external device communicate with command-based non-procedure communications via Ethernet or RS-232C/422.
  • Page 272: Communications Setup Procedures

    Communications Setup Procedures The following settings are required to use non-procedure communications. · · · The communication method to be used is determined by selecting a com- 1. Communications Module settings munication module. (startup settings) Reference: Communications Module Settings (Startup Settings) (p.271) ↓...
  • Page 273: Communications Module Settings (Startup Settings)

    Communications Module Settings (Startup Settings) The communication method used for communication with the Sensor Controller is selected from the communication modules. On the Main Window, select [Tool] − [System Settings]. Select [System settings] − [Startup] − [Startup setting] on the Multiview Explorer on the left and then click [Communication].
  • Page 274: Communications Specifications Settings

    IMPORTANT After you set the Communications Module, always click [Data save] and then restart the Sensor Controller. If the settings are not saved and the Sensor Controller is not restarted, the new Communications Module settings will not be enabled. Note You can save the Communications Module settings to a file.
  • Page 275 Set the following items. Note • The following series with 4 or 8 camera inputs has two Ethernet ports: • FH-1000 series • FH-3000 series Set the settings for the two Ethernet ports as follows: • Communications Module settings Use the same setting for both ports. •...
  • Page 276 Set value Setting item Description [Factory default] Address Settings Address Settings is only for the following series: Set the IP address of the top Ethernet port on the Sensor Con- • FH-1000 series (4, 8 camera type) troller. • FH-3000 series (4, 8 camera type) •...
  • Page 277 Set value Setting item Description [Factory default] Address setting 2 Address Settings is only for the following series: Set the IP address of the bottom Ethernet port on the Sensor • FH-1000 series (2 camera type) Controller. • FH-3000 series (2 camera type) •...
  • Page 278 Set value Setting item Description [Factory default] Input/Output setting Input mode [Normal] This item cannot be changed. Input form [ASCII] This item cannot be changed. a.b.c.d a: 0 to 255 Output IP b: 0 to 255 Input the output destination IP address. address c: 0 to 255 d: 1 to 254...
  • Page 279 Connecting via RS-232C Note • Input signals cannot be handled during setting of communications specifications. However, the input status can be checked with [Confirmation]. Reference: Testing Communications (p.285) • Data output via serial communications is suspended while communications specifications are being set. On the Main Window, select [Tool] −...
  • Page 280 Set value Setting item Description [Factory default] • 7 Data length [bit] • [8] • [None] Use the same communications specifications as the external Parity • Odd device. • Even • [1] Stop bit [bits] • 2 Flow control is not performed with software. If the time in which there is no response from external devices reaches the timeout [None] setting time, a timeout error occurs and an error message is...
  • Page 281: Output Data Settings (Processing Item Registration)

    Output Data Settings (Processing Item Registration) Use the following procedures to set the items to output and the output format for the non-procedure protocol. Note When outputting characters read by a processing item such as Barcode, these settings are set in the processing item used to read the characters (Character Inspection, Barcode, or 2DCode).
  • Page 282 Registering the Items To Output Set expressions for the data to output. Up to 8 expressions from 0 to 7 can be set in each unit. Click the [Data Output] icon ( ) in the measurement unit list (flow). In the Item Tab Area, click [Setting]. In the list, select the output data number for the expression to set.
  • Page 283 Note If you delete one of the expressions that is set for output data 0 through 7, the output numbers for all expressions after the deleted expression will stay the same. However, the actual data output will be output as though the list has been shifted forward for the number of expressions that have been deleted.
  • Page 284 Output Format (Data Output) Click the [Data Output] icon ( ) in the measurement unit list (flow). In the Item Tab Area, click [Output format]. In the Output Setting Area, select the communications method. Set value [Factory default] Description [RS-232C/RS-422] Communications are performed via a RS-232C/RS-422 connection.
  • Page 285 • When the [ASCII] Output Format Is Selected When [ASCII] is set as the output format, set the following format settings. When [Binary] is set as the output format, no settings are needed. Setting item Set value [Factory default] Description Specify the digits of the integer part including the sign.
  • Page 286 If you have selected [Ethernet] for the [Communication method], perform the Ethernet settings. Set value [Factory default] Description The settings of the Ethernet View are applied. One of the following Ethernet Views is used to make the settings. PLC Link Communications Settings [Refer System (Ethernet)] Reference: Communications Specifications Settings (p.166)
  • Page 287: Testing Communications

    Testing Communications You can check whether the EtherNet/IP communications settings are correct. If communications cannot be performed even after set up the communications, use the following procedure to check the settings and the communications status. Ethernet Communications Before Performing a Communications Test This example assumes that [Normal (UDP)] is selected as the Communications Module.
  • Page 288 Connect the Sensor Controller and computer with an Ethernet cable. Set the left segments of IP address of the computer to the same values as the Controller and set only the right segment to a different value. IP Address Setting Example Device Setting example Sensor Controller...
  • Page 289 RS-232C/422 Communications Before Performing a Communications Test This example assumes that [Serial (RS-232C/422)] − [Normal] or [Normal (Fxxx series method)] is selected as the Communications Module. Stop the program on the PLC when you check the communications settings. Checking the Communications Settings Use the following procedure to check if the communications settings are correct.
  • Page 290: Output Items

    Output Items Measurement Results That You Can Output with the Data Output Processing Item You can use the processing items that are related to outputting results to output the following data. You can also access measured values from the Calculation or other processing units. Measured item Text string Description...
  • Page 291: Command Formats

    Command Formats You can input commands to control the Sensor from an external device using the DI0 to DI7 signals. IMPORTANT Japanese characters cannot be used. To load a scene or other data, set the file name beforehand using characters other than Japanese. An Input Format Example When the parameter is a numeric Example: Acquire the display status with IMAGEDISPCOND.
  • Page 292 When a parameter is character string The character string must be in double quotation marks. Example: Save Scene with SCENESAVE command. <Command Format> SCNSAVE “ “ C\Data\RAMDisk\ABC.SCN Example: Set the prefix of Logging file name to be undefined with SYSDATA command. <Command Format>...
  • Page 293 Serial Interface (RS-232C/422 Connection) Example of Input Format (SCENE Command) S C E Scene number (3 digits max.) Enter a delimiter at the end of commands. In this manual, delimiters are expressed with Separate parameters with spaces. (Not required before delimiters.) In the following cases, an error occurs.
  • Page 294: Command List

    Command List This section explains the input format for each command used for serial non-procedure (normal) communications. Commands are input with ASCII text. Both lowercase and uppercase letters can be used. For command details, refer to Non-procedure Command Details (p.426). Execution Commands Command Abbreviation...
  • Page 295 Command Abbreviation Function Reference Gets the image currently displayed on the specified IMAGESUBNO Reference: (p.458) Image Display Pane. Gets the unit number currently displayed on the speci- IMAGEUNITNO Reference: (p.460) fied Image Display Pane. INPUTTRANS- Gets the input status (enabled/disabled) for the Com- Reference: (p.466) STATE...
  • Page 296 Commands to Read Data Command Abbreviation Function Reference DATALOGCOND Gets the conditions that are set for data logging. Reference: (p.431) DATALOG- Gets the defined data logging folder name. Reference: (p.433) FOLDER DATE None Gets the current date and time. Reference: (p.436) DIOFFSET Gets the parallel DI terminal offset data that is set.
  • Page 297 File Save Commands Command Abbreviation Function Reference Saves all the image data in the image buffer (specified ALLIMAGESAVE Reference: (p.426) with [main unit logging image]). BKDSAVE None Saves System + Scene Group 0 data in a file. Reference: (p.428) IMAGECAPTURE Captures the screen.
  • Page 298: Output Format

    Output Format If the processing unit [Data Output] is set in a scene, measurement results are sequentially output starting from the smallest data No. set in [Setting] of [Data Output]. You can also place more than one Data Output Unit in the measurement flow.
  • Page 299 Outputting Binary Data Set the output format as [Binary] in [Output form] of the [Data Output] processing item. Output Format The measurement data is multiplied by 1000 and output is continuous with 4 bytes per data item. Negative numbers are output in 2's complement format. 2's Complement Refer to Definitions of Basic Terms in the Vision System FH/FZ5 Series User’s Manual (Cat.
  • Page 300: Non-Procedure Communications Troubleshooting

    Non-procedure Communications Troubleshooting Cannot Input to the Sensor Controller Problem Cause Action Check the wiring. There is a problem with the wiring. Check the cable connections. No response is received after sending serial commands. There is a problem with the communi- Make sure that the settings are correct.
  • Page 301: Parallel Communications

    Parallel Communications This section describes the required communication settings, communication specifications, input/output format, and communication timing chart for parallel communication between the Sensor Controller and external devices. Communications Processing Flow The Sensor Controller communicates with external devices via a parallel interface. I/O Signals and Data for Communicating with External Devices This section describes the basic connections and signal flow with external devices.
  • Page 302 Note If the operation mode is set to Multi-line Random-trigger Mode and the number of lines to use simultaneously was increased, the signals, control, and output that can be performed is different from when only a single line is used, as described in the following table.
  • Page 303: Communications Setup Procedures

    Communications Setup Procedures The following settings are required to use parallel communications. · · · The communication method to be used is determined by selecting a communi- 1. Communications Module settings cation module. (startup settings) Reference: Communications Module Settings (Startup Settings) (p.302) ↓...
  • Page 304: Communications Module Settings (Startup Settings)

    Communications Module Settings (Startup Settings) The communication method used for communication with the Sensor Controller is selected from the communication modules. On the Main Window, select [Tool] − [System Settings]. Select [System setting] − [Startups] − [Startup setting] on the Multiview Explorer on the left and then click [Communication].
  • Page 305: Communications Specifications Settings

    Communications Specifications Settings Set the communications specifications, such as the data output method and data signal operation. If communications cannot be performed even after setting these communications settings, check the settings and the communications status. Reference: Testing Communications (p.318) IMPORTANT •...
  • Page 306 Example: Sequential Feed Line that Uses a Star Wheel The discharge timing for when a defective part is found and the measurement results output timing can be synchronized. Result output Encoder Discharge device GATE STEP Set value Output control: Synchronous output Delay steps: 4 Sensor Controller Note...
  • Page 307 Setting the Output Signal Specifications You can change the operation of signals output with parallel communications. Changing the Judgement Output ON Conditions (Output Polarity) The ON conditions for the OR signal and the DO0 to DO15 signals can be set to turn ON the signals when the judgement results are OK or when they are NG.
  • Page 308 Outputting the STGOUT and SHTOUT Signals These functions are supported by the FH-series Sensor Controllers only. With parallel communications, the STGOUT signal (strobe trigger output) and SHTOUT signal (shutter output) cannot be output at the same time. Select which signal to output based on your needs. On the Main Window, select [System Settings] −...
  • Page 309 SHTOUT Signal Settings: [Output Signal Setting] These functions are supported by the FH-series Sensor Controllers only. This setting sets the SHTOUT signal that is output when the Camera exposure is completed. By detecting when the exposure is completed using the SHTOUT signal, you can minimize the amount of time that the workpiece must be kept still for imaging and you can move the Camera or workpiece immediately after the exposure is completed.
  • Page 310 Communications Specifications Settings Use the following procedure to select the type of output control, set the output signal operation, and set other parallel interface communications specifications. On the Main Window, select [Tool] − [System Settings] − [Communication]. Select [System Settings] − [Communication] − [Parallel] from the tree view on the left. The Parallel View is displayed.
  • Page 311 Set the following items to define the communications specifications. Setting value Setting item Operation [Factory default] The output is turned ON if the judgement is OK. On at OK For the overall judgement, the output is turned ON if all judgements are OK.
  • Page 312: Output Data Settings (Processing Item Registration)

    Setting value Setting item Operation [Factory default] 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 after the specified time has elapsed.
  • Page 313 Note The overall judgement gives the results of more than one processing item. As a result, the overall judgement will be NG if even one of the individual judgement results is NG. Individual judgement results Processing unit 0 Overall judgement result Processing unit 1 NG (OR signal: ON) If there is even one NG judgement,...
  • Page 314 Click [Append]. The [Parallel Data Output] processing item is appended at the bottom of the unit list (flow). Note Data is output in the order that data output is registered in the measurement flow, i.e., the timing is different for each data output processing unit.
  • Page 315 Set the items to output. In an expression, set the data to output (i.e., the measured value of a processing item or the calculation results of an expression). Up to 8 expressions from 0 to 7 can be set in each unit. Click the Parallel Data Output icon ( In the Item Tab Area, click [Setting].
  • Page 316 Note Output When Multiple Items Are Set The items that are set for output data numbers 0 through 7 are output to the PLC reception buffer in ascending order, one data item at a time (16-bit units). Each time a data item is output, the GATE signal turns ON. When this occurs, the first data item that was output to the PLC reception buffer (data 0) is overwritten by the next output data item (data 1).
  • Page 317 Registering Parallel Judgement Output Items Use the following procedure to output the judgement results that are set for parallel output. Registering Parallel Judgement Output Units Register the processing items for parallel judgement output in the measurement flow. Click [Edit flow] in the toolbar or on the Main Window. Select the [Parallel Judgement Output] processing item from the processing item tree.
  • Page 318 Registering the Items To Output In an expression, set the target for judgement (i.e., the measured value of a processing item or the calculation result of an expression). Up to 16 expressions from 0 to 15 can be set in each unit. Click the [Parallel Judgement Output] icon ( ) in the measurement unit list (flow).
  • Page 319 Output Parameters (Parallel Judgement Output) Click the [Parallel Judgement Output] icon ( ) in the measurement unit list (flow). Click [Output parameter] in the Item Tab Area. Set the items in the output settings area. Setting value Setting item Description [Factory default] Select whether to match the output polarity of the evaluation result to the •...
  • Page 320: Testing Communications

    Testing Communications Use the following procedure to check the communications status with the external devices connected with a parallel interface. You can check whether wiring and communications settings have been performed correctly. On the Main Window, select [Tool] − [System Settings] − [Communication]. Select [System Settings] −...
  • Page 321 Change the contents to be sent. When switching between ON and OFF is performed, the changed contents are displayed on the monitors of external devices. Make sure there are no problems. Note For the FZ5-1100 series, DO0 to DO7 of line 1 are assigned to the DO8 to DO15 parallel terminals. Therefore, if you turn ON DO0 to DO7 to test line 1 communications, signals will be output on the DO8 to DO15 parallel terminals.
  • Page 322: I/O Signals

    I/O Signals The following tables list the signals that are used to control I/O for parallel communications. Input Signals ON/OFF timing Signal Signal name Function OFF to ON ON to OFF Input measurement triggers from external devices, such as optic switches. Mea- surement is performed after Turn OFF the signal from Measurement...
  • Page 323 Output Signals ON/OFF timing Signal Signal name Function OFF to ON ON to OFF The signal turns OFF in either of the following This mode will be [ON] cases: when FH Sensor Control- • When in ADJUST ler is in Run Mode; Sen- Mode Measurement This signal tells whether or not the...
  • Page 324 ON/OFF timing Signal Signal name Function OFF to ON ON to OFF • No Handshaking: The signal turns ON after the FH/FZ5 Sensor Controller executes the Output Unit (Parallel Data Output Unit or Parallel Judgement Output Unit) in the measurement flow and preparations for data output have been completed.
  • Page 325 ON/OFF timing Signal Signal name Function OFF to ON ON to OFF This signal tells when the STEP signal can be input when the multi- input function is used. Turn ON the STEP signal when The signal turns OFF*1 the READY signal turns ON. when the STEP signal cannot be input.
  • Page 326 ON/OFF timing Signal Signal name Function OFF to ON ON to OFF This signal is used for notification when the FH/FZ5 detects one of After the error is removed, the errors below. For descriptions the user (PLC) either per- of the errors, refer to the following: ON when the FH detects forms remeasurement or Error Signal...
  • Page 327 Multi-line Random Trigger Mode Signal Specifications For parallel signals, the supported signals and signal assignments depend on the number of lines used in Multi- line Random-trigger Mode. The following tables show the differences in signal assignments and the signals that can be used depending on the number of lines.
  • Page 328 Line number Line 0 Line 1 RUN0 RUN1 GATE GATE0 GATE1 BUSY BUSY0 BUSY1 ERR0 ERR1 READY READY0 READY1 DO0 to DO7 DO8 to DO15 Three or Four Lines Line number Line 0 Line 1 Line 2 Line 3 STEP STEP0 STEP1 STEP2...
  • Page 329 Line number Line 0 Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 Line 7 BUSY BUSY0 BUSY1 BUSY2 BUSY3 BUSY4 BUSY5 BUSY6 BUSY7 ERR (used for all lines) READY READY0 READY1 READY2 READY3 READY4 READY5 READY6 READY7 FZ5-1100 series Sensor Controller •...
  • Page 330 Input Timing of Input Signals STEP Signal Input Timing The measurement trigger STEP signal is input with the following timing. OFF when the BUSY signal is ON. STEP signal BUSY signal ON when the BUSY signal is OFF. Turn ON the STEP signal when the BUSY signal is OFF. When multiple inputs are used, the STEP signal can be turned ON when the READY signal is ON.
  • Page 331 Set the DI0 to DI6 signals to ON or OFF based on the command to input. After you have set the DI0 to DI6 signals, wait for at least 1 ms and then turn ON DI7. The command will be executed, and the ACK signal will turn ON after execution of the command is completed.
  • Page 332: Output Items

    Output Items Parallel Data Output Measurement Results for Which Output Is Possible (Parallel Data Output) You can use the processing items that are related to outputting results to output the following data. You can also access measured values from the Calculation or other processing units. Measured item Text string Description...
  • Page 333 Number Data name Set/Get Data range −999999999.9999 to 999999999.9999 Upper limit 1 for judgement Set/Get −999999999.9999 to 999999999.9999 Lower limit 1 for judgement Set/Get −999999999.9999 to 999999999.9999 Upper limit 2 for judgement Set/Get −999999999.9999 to 999999999.9999 Lower limit 2 for judgement Set/Get Upper limit 3 for judgement Set/Get...
  • Page 334: Command Formats

    Command Formats You can input commands to control the Sensor from an external device using the DI0 to DI7 signals. Input Format Commands are input in the following formats. • One Line Input format (DI7 to DI0) Execution Command Command information Set 0 (OFF) or 1 (ON) for each DI signal.
  • Page 335 Command Lists The commands and command formats are described in the following tables. One Line Input format (DI7 to DI0) Command Data Description Input example Command Execute (DI7) information (DI4 to (DI6, DI5) DI0) ***** Performs measurement The Controller does not Continuous Input example: continuously while com-...
  • Page 336 Multi-line Random Trigger Mode Input format (DI7 to DI0, DILINE0, DILINE1, and DILINE2) Input example (DILINE2 Data Description to DILINE0, DI7 to DI5, Command Execute Command and DI4 to DI0) information Line number (DI7) (DI6, DI5) (DI4 to DI0) ***** Continuous mea- The Controller Performs measure-...
  • Page 337 FZ5-11 Input format (DI7 to DI0) Command Data Description Input example Execute Command Line number information (DI7) (DI6, DI5) (DI4) (DI3 to DI0) ***** The Controller Continuous Performs measurement does not see this Measurement on Continuous continuously while signal, so a Line 1 Measurement command is being...
  • Page 338: Time Charts

    Time Charts The ON/OFF timing of related signals during data output after the completion of measurement and during the sequence of operation from input of the control command until data output after the completion of measurement is indicated below in a timing chart. Timing chart at startup This section explains the timing chart at startup.
  • Page 339 Output Control: None Example: Three Data Items Set for Parallel Data Output Time Chart The signal is turned OFF when the BUSY signal turns ON. STEP signal BUSY signal ON while the measurement process is being executed. Turns ON when the overall judgement OR signal result is NG.
  • Page 340 Output Control: Handshaking Example: Three Data Items Set for Parallel Data Output The signal is turned OFF when the BUSY signal turns ON. STEP signal ON while the measurement process is being executed. BUSY signal Overall judgement (Output when measurements OR signal have been completed regardless of the DSA signal.) Execution of the Parallel Data Output Unit...
  • Page 341 Output Control: Synchronization Control Operation When [Number of Delay] Is Set to 2 The signal is turned OFF when the BUSY signal turns ON. STEP signal ON while measurements are being processed BUSY signal Overall judgement Overall judgement Overall judgement Overall judgement Overall judgement result for (1)
  • Page 342 Command Timing Charts Note For the function and operation of each signal, refer to I/O Signals (p.320). Continuous Measurement Measurements are performed continuously while the DI7 signal is ON. Continuous measurements are stopped when the DI7 signal is turned OFF. When an Expressions Is Set in [Parallel Data Output] with No Output Control •...
  • Page 343 Note • When the input command is not received correctly, the ERROR signal turns ON. • Acquisition is difficult because the amount of time during which the BUSY signal is OFF during a continuous measurement for a parallel command is extremely short (1 ms or less). Get the OR signal when the GATE signal turns ON after adding the parallel judgement output at the end of the flow.
  • Page 344 • Output Signals Signal Description Indicates that the Controller is currently switching the scene or scene group. BUSY Do not input next command while the BUSY signal is ON. Otherwise, on-going processing or com- mands that are input will not be performed correctly. Turns OFF while a scene or a scene group is being switched.
  • Page 345 Clear Measurement Values The measurement result is cleared as follows. • Time Charts DI0 to DI6 signals 1000000 The PLC (user) turns OFF the signal again when the ACK signal is turned ON. DI7 signal Allow at least 1 ms and then turn ON IN7. BUSY signal READY signal The signal turns OFF when...
  • Page 346 • Input Signals Signal Description DI0 to DI4 Turn OFF. Turn OFF. Turn ON. This is the trigger signal to clear a measurement value. After DI0 to DI6 are set, turn ON DI7 after an interval over 1 ms. The BUSY signal is ON during command execution. After checking that the BUSY signal has turned ON, turn DI7 OFF, and then turn DI0 to DI6 OFF.
  • Page 347 Clear Parallel OR+DO The OR signal and DO signals are cleared as follows. • Time Chart The signal is turned OFF when the BUSY signal turns ON. STEP signal STEP input Measurement BUSY signal OR signal DO0 to DO15 signals Data Gate ON delay [ms] GATE signal...
  • Page 348 Clear Error The error signal is cleared as follows. • Time Chart The signal is turned OFF when the BUSY signal turns ON. STEP signal STEP input Measurement BUSY signal OR signal DO0 to DO15 signals Data Gate ON delay [ms] GATE signal Output time Delay time (1 ms max.)
  • Page 349: Parallel Troubleshooting

    Parallel Troubleshooting Problem Cause Action Decrease the number of lines or use a com- You have selected more than three lines in munications method other than parallel com- Multi-line Random-trigger Mode. munications. There is absolutely no data output. Select [Layout setup] in the Window menu on The [Output] setting is turned OFF.
  • Page 350 Parallel Communications Vision System FH/FZ5 Series User’s Manual for Communications Settings (Z342)
  • Page 351: Appendices

    Appendices Command Control ............350...
  • Page 352: Command Control

    Note The storage order depends on the manufacturer of the connected PLC as follows: • OMRON and Yaskawa Electric PLCs: Upper byte followed by lower byte • Mitsubishi Electric PLCs: Lower byte followed by upper byte The order of displayed sequence program may be from upper byte to low byte.
  • Page 353 Command code (4000 0070 hex) +4 and +5 words Image data number 1 (0000 0001 hex) +6 to +17 words Save destination (USBDisk\IMG01\LABEL.IFZ) • OMRON or Yaskawa Electric PLCs Command (PLC to Sensor Controller) First word in Hexadecimal Description Command Area...
  • Page 354 • Mitsubishi Electric Corporation PLCs Command (PLC to Sensor Controller) First word in Hexadecimal Description Command Area 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 0100...
  • Page 355 • OMRON or Yaskawa Electric PLCs Command (PLC to Sensor Controller) First word in Hexadecimal Description Command Area notation 12 to 15 8 to 11 4 to 7 0 to 3 1000 0001 0000 0000 0000 Command code 0050 0000...
  • Page 356: Details Of Commands Used In Ethercat Communication

    Details of Commands Used in EtherCAT Communication Command codes and command parameters used in EtherCAT communication are specified as described below via the I/O port for commands generated for the FH. • Command Code : Holds the command code to be executed. •...
  • Page 357: Command List

    Command List This section lists the commands that you can use with the FH or FZ5 and the communications protocols for which each command is supported. Note In addition to the standard communications commands that are given here, you can also create custom commands and define the processing for them.
  • Page 358 OK: Applicable command, RST: Command with restricted execution, NA: Non-applicable command Non- Parallel PLC link EtherNet/IP EtherCAT procedure Function Reference: Reference: Reference: Reference: Reference: (p.333) (p.199) (p.251) (p.81) (p.292) Restarts the Sensor Controller Clear Error Clear Parallel OR+DO You can execute the same operation with the Measurement Execution Bit (STEP signal is allocated for both the parallel communications and EtherNet/IP) in the control signals.
  • Page 359 Commands to Get Status OK: Applicable command, RST: Command with restricted execution, NA: Non-applicable command Non- PLC link EtherNet/IP EtherCAT procedure Function Parallel Reference: Reference: Reference: Reference: (p.199) (p.252) (p.82) (p.292) Acquires scene number Acquires scene group number Gets the currently displayed layout number. Gets the number of the unit currently displayed in the specified display image window.
  • Page 360 Commands to Set Status OK: Applicable command, RST: Command with restricted execution, NA: Non-applicable command Non- Parallel PLC link EtherNet/IP EtherCAT procedure Function Reference: Reference: Reference: Reference: Reference: (p.333) (p.200) (p.252) (p.82) (p.293) Switching Scenes Switches the scene group number Sets a layout number to switch between screens.
  • Page 361 The save destination differ depending on the Sensor Controller type. When you use FH series/FZ5-1100 series, do not save to the any folder except RAMDisk and external memory device (such as C:\ProgramFiles\FZ). It is possible not to perform correctly due to the decrease of Scene data storage region.
  • Page 362 The save destination to use differs by Sensor Controller model. When you use FH series/FZ5-1100 series, do not save to the any folder except RAMDisk and external memory device (such as C:\ProgramFiles\FZ). It is possible not to perform correctly due to the decrease of Scene data storage region.
  • Page 363: Command Details For Plc Link, Ethernet/Ip, And Ethercat

    Command Details for PLC Link, EtherNet/IP, and EtherCAT This section provides details on the communications commands. Executing Measurement Executes measurement one time. Command (PLC to Sensor Controller) First word in Command Description Command Area code 12 to 15 8 to 11 4 to 7 0 to 3 1010...
  • Page 364 Stopping Continuous Measurement Stops continuous measurement. Command (PLC to Sensor Controller) First word in Command Description Command Area code 12 to 15 8 to 11 4 to 7 0 to 3 1030 0001 0000 0011 0000 Command code 0010 0000 0000 0001 0000...
  • Page 365 Response (Sensor Controller to PLC) First word in Command Description Response Area code 12 to 15 8 to 11 4 to 7 0 to 3 1040 0001 0000 0100 0000 Command code Response target command codes 0010 0000 0000 0001 0000 0000 0000...
  • Page 366 Response (Sensor Controller to PLC) First word in Command Description Response Area code 12 to 15 8 to 11 4 to 7 0 to 3 2020 0010 0000 0010 0000 Command code Response target command codes 0010 0000 0000 0001 0000 0000 0000...
  • Page 367 Model Re-registration Reregisters a model using the current model. Command (PLC to Sensor Controller) First word in Command Description Command Area code 12 to 15 8 to 11 4 to 7 0 to 3 4010 0100 0000 0001 0000 Command code 0010 0000 0000...
  • Page 368 Scroll The image display window whose number is specified is moved the specified distance in parallel. The setting range for the movement distance is not restricted. Also, because the scale for movement is independent of the display zoom ratio, the movement is not affected by change in the zoom ratio. Command (PLC to Sensor Controller) First word in Command...
  • Page 369 Response (Sensor Controller to PLC) First word in Command Description Response Area code 12 to 15 8 to 11 4 to 7 0 to 3 5020 0101 0000 0010 0000 Command code Response target command codes 0010 0000 0000 0001 0000 0000 0000...
  • Page 370 Scene Data Copy Copies the data for the scene with the number specified with command argument 1 to the scene with the number specified with command argument 2. If there is already data at the copy destination, the copied data is written over that data.
  • Page 371 Response (Sensor Controller to PLC) First word in Command Description Response Area code 12 to 15 8 to 11 4 to 7 0 to 3 7020 0111 0000 0010 0000 Command code Response target command codes 0010 0000 0000 0001 0000 0000 0000...
  • Page 372 Registered Image Setting Registers the specified image data as a registered image. After the command is executed, the status will be the same as when the image was registered with the Registered Image Manager. If the source is the last measured image (0), command argument 3 (logged image number of file name) can be omitted.
  • Page 373 Response (Sensor Controller to PLC) First word in Command Description Response Area code 12 to 15 8 to 11 4 to 7 0 to 3 8020 1000 0000 0010 0000 Command code Response target command code 0010 0000 0000 0001 0000 0000 0000...
  • Page 374 User Account Setting Adds a user account to the specified group ID. If the group ID the account of the user currently logging in belongs is not 0, a command error occurs. If the user account to be set has already existed, it will be overwritten with the new account.
  • Page 375 User Account Deletion Deletes the specified user account. If the group ID the account of the user currently logging in belongs to is not 0, a command error occurs. If the specified user account does not exist, a command acknowledge returns. Command (PLC to Sensor Controller) First word in Command...
  • Page 376 Response (Sensor Controller to PLC) First word in Command Description Response Area code 12 to 15 8 to 11 4 to 7 0 to 3 B010 1011 0000 0001 0000 Command code Response target command codes 0010 0000 0000 0001 0000 0000 0000...
  • Page 377 Response (Sensor Controller to PLC) First word in Command Description Response Area code 12 to 15 8 to 11 4 to 7 0 to 3 1000 0001 0000 0000 0000 Command code Response target command codes 0020 0000 0000 0010 0000 0000 0000...
  • Page 378 Getting Layout Number Gets the number of the currently displayed layout. Command (PLC to Sensor Controller) First word in Command Description Command Area code 12 to 15 8 to 11 4 to 7 0 to 3 4000 0100 0000 0000 0000 Command code 0020...
  • Page 379 Response (Sensor Controller to PLC) First word in Command Description Response Area code 12 to 15 8 to 11 4 to 7 0 to 3 5010 0101 0000 0001 0000 Command code Response target command codes 0020 0000 0000 0010 0000 0000 0000...
  • Page 380 Getting Image Display State Gets the image mode for the specified image display window. Command (PLC to Sensor Controller) First word in Command Description Command Area code 12 to 15 8 to 11 4 to 7 0 to 3 5030 0101 0000 0011...
  • Page 381 Response (Sensor Controller to PLC) First word in Command Description Response Area code 12 to 15 8 to 11 4 to 7 0 to 3 7010 0111 0000 0001 0000 Command code Response target command codes 0020 0000 0000 0010 0000 0000 0000...
  • Page 382 Get Parallel Terminal Status Gets the state of the specified parallel I/O terminal: Active or Inactive. For how to set, refer to the following: Example) When you want to acquire the terminal status of STEP0 in Line 0. 1. Select 0 in the Terminal type. STEP is set. 2.
  • Page 383 FZ5-1100 series Sensor Controller Terminal number Terminal type STEP STEP0 STEP1 DSA0 DSA1 DI_LINE FH-L series/FZ5-L series/FZ5-600 series Sensor Controller Terminal number Terminal type STEP STEP0 DSA0 DI_LINE IMPORTANT • When the Multi-line Random Trigger mode is selected in the following series, usable signal type or assignment are differ depending on the used number of Lines.
  • Page 384 Response (Sensor Controller to PLC) First word in Command Description Response Area code 12 to 15 8 to 11 4 to 7 0 to 3 8020 1000 0000 0010 0000 Command code Response target command codes 0020 0000 0000 0010 0000 0000 0000...
  • Page 385 FH-L series Sensor Controller Terminal Supported Line 0 BIT0 STEP0 BIT1 DSA0 BIT2 BIT3 BIT4 BIT5 BIT6 BIT7 BIT8 BIT9 BIT10 BIT11 BIT12 BIT13 BIT14 BIT15 FZ5-1100 series Sensor Controller Terminal Supported Line 0 Line 1 BIT0 STEP0 STEP0 BIT1 STEP1 STEP1 BIT2...
  • Page 386 FZ5-L/FZ5-600 series Sensor Controller Terminal Supported Line 0 BIT0 STEP0 BIT1 BIT2 DSA0 BIT3 BIT4 BIT5 BIT6 BIT7 BIT8 BIT9 BIT10 BIT11 BIT12 BIT13 BIT14 BIT15 IMPORTANT • When the Multi-line Random Trigger mode is selected in the following series, usable signal type or assignment are differ depending on the used number of Lines.
  • Page 387 Get All Parallel DI Terminal Statuses Gets the ON/OFF states of all parallel DI terminals at once. For how to set, refer to the following: Example) When you want to acquire the Parallel DI terminal status of Line 0. 1. Send a command to get the Parallel DI terminal at once to the specified port number of Line0. 2.
  • Page 388 Response data FH-1000 series/FH-3000 series Sensor Controller Terminal Supported Line 0 Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 Line 7 BIT0 BIT1 BIT2 BIT3 BIT4 BIT5 BIT6 BIT7 BIT8 BIT9 BIT10 BIT11 BIT12 BIT13 BIT14 BIT15 FZ5-1100 series Sensor Controller Terminal...
  • Page 389 FH-L/FZ5-L/FZ5-600 series Sensor Controller Terminal Supported Line 0 BIT0 BIT1 BIT2 BIT3 BIT4 BIT5 BIT6 BIT7 BIT8 BIT9 BIT10 BIT11 BIT12 BIT13 BIT14 BIT15 IMPORTANT This command gets the terminal status of each line by specifying its port number. When getting the terminal status of an unusable line, the response code will be OK and the response data will always be 0. Verify the received data by changing the actual parallel terminal status.
  • Page 390 Acquires the Login Account Name Acquiring the user name for the currently logged in account. Command (PLC to Sensor Controller) First word in Command Description Command Area code 12 to 15 8 to 11 4 to 7 0 to 3 9000 1001 0000...
  • Page 391 Response (Sensor Controller to PLC) First word in Command Description Response Area code 12 to 15 8 to 11 4 to 7 0 to 3 9010 1001 0000 0001 0000 Command code Response target command codes 0020 0000 0000 0010 0000 0000 0000...
  • Page 392 Scene Switching Switches the scene to be used. Command (PLC to Sensor Controller) First word in Command Description Command Area code 12 to 15 8 to 11 4 to 7 0 to 3 1000 0001 0000 0000 0000 Command code 0030 0000 0000...
  • Page 393 Set Layout Number Sets the layout number and switches the window. Command (PLC to Sensor Controller) First word in Command Description Command Area code 12 to 15 8 to 11 4 to 7 0 to 3 4000 0100 0000 0000 0000 Command code 0030...
  • Page 394 Display Image Unit Number Setting Sets the number of the unit displayed in the specified image display window. Command (PLC to Sensor Controller) First word in Command Description Command Area code 12 to 15 8 to 11 4 to 7 0 to 3 5010 0101...
  • Page 395 Response (Sensor Controller to PLC) First word in Command Description Response Area code 12 to 15 8 to 11 4 to 7 0 to 3 5020 0101 0000 0010 0000 Command code Response target command codes 0030 0000 0000 0011 0000 0000 0000...
  • Page 396 Communication Input State Setting Permits/prohibits input to communication modules. Any communication module whose input state is set to Prohibit (0) accepts no communications whatsoever. However, inputs related to hardware (parallel STEP signals/DSA signals and ECAT STEP, etc.) are not included in the prohibition. Command (PLC to Sensor Controller) First word in Command...
  • Page 397 Response (Sensor Controller to PLC) First word in Command Description Response Area code 12 to 15 8 to 11 4 to 7 0 to 3 7020 0111 0000 0010 0000 Command code Response target command codes 0030 0000 0000 0011 0000 0000 0000...
  • Page 398 Response (Sensor Controller to PLC) First word in Command Description Response Area code 12 to 15 8 to 11 4 to 7 0 to 3 8010 1000 0000 0001 0000 Command code Response target command codes 0030 0000 0000 0011 0000 0000 0000...
  • Page 399 FH-L series/FZ5-L series/FZ5-600 series Sensor Controller Terminal number Terminal type RUN 3 RUN - 4 ERROR - BUSY 5 BUSY0 - 6 OR0 - GATE 7 GATE0 - READY 8 READY0 - 9 DO0 DO1 DO2 DO3 DO4 DO5 DO6 DO7 DO8 DO9 DO10 DO11 DO12 DO13 DO14 DO15 ACK 10 - IMPORTANT •...
  • Page 400 Response (Sensor Controller to PLC) First word in Command Description Response Area code 12 to 15 8 to 11 4 to 7 0 to 3 8020 1000 0000 0010 0000 Command code Response target command codes 0030 0000 0000 0011 0000 0000 0000...
  • Page 401 FH-L series Sensor Controller Terminal Supported Line 0 BIT0 BIT1 ERROR BIT2 BUSY BIT3 BIT4 GATE0 BIT5 READY0 BIT6 BIT7 BIT8 BIT9 BIT10 BIT11 BIT12 BIT13 BIT14 BIT15 FZ5-1100 series Sensor Controller Terminal Supported Line 0 Line 1 BIT0 BUSY1 BIT1 ERROR ERROR...
  • Page 402 FZ5-L/FZ5-600 series Sensor Controller Terminal Supported Line 0 BIT0 BIT1 ERROR BIT2 BUSY BIT3 BIT4 BIT5 GATE0 BIT6 BIT7 READY0 BIT8 BIT9 BIT10 BIT11 BIT12 BIT13 BIT14 BIT15 IMPORTANT • When the Multi-line Random Trigger mode is selected in the following series, usable signal type or assignment are differ depending on the used number of Lines.
  • Page 403 Set All Parallel DO Terminal Statuses Sets the ON/OFF status of all Parallel DO terminals at once. For how to set, refer to the following: Example) When you want to set the Parallel DO terminals status of Line 0, to ON at once: 1.
  • Page 404 Assigned terminal to each bit FH-1000 series/FH-3000 series Sensor Controller Terminal Supported Line 0 Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 Line 7 BIT0 BIT1 BIT2 BIT3 BIT4 BIT5 BIT6 BIT7 BIT8 BIT9 BIT10 DO10 DO10 DO10 DO10...
  • Page 405 FH-L/FZ5-L/FZ5-600 series Sensor Controller Terminal Supported Line 0 BIT0 BIT1 BIT2 BIT3 BIT4 BIT5 BIT6 BIT7 BIT8 BIT9 BIT10 DO10 BIT11 DO11 BIT12 DO12 BIT13 DO13 BIT14 DO14 BIT15 DO15 IMPORTANT Sending the commands to the port number assigned to each Lines, the terminal status of each lines can be require. When required the unusable terminal status, response cord is OK and the response data is discarded.
  • Page 406 Response (Sensor Controller to PLC) First word in Command Description Response Area code 12 to 15 8 to 11 4 to 7 0 to 3 9000 1001 0000 0000 0000 Command code Response target command codes 0030 0000 0000 0011 0000 0000 0000...
  • Page 407 Acquiring Unit Data Acquires the specified processing unit data. IMPORTANT • In processing unit data setting/acquisition, you can get only numeric data. You cannot get character strings. • Character string data such as comparison strings for general-purpose character tests, evaluation comparison strings for bar codes or 2D codes, or OCR recognition strings cannot be set or acquired.
  • Page 408 Response (Sensor Controller to PLC) First word in Command Description Response Area code 12 to 15 8 to 11 4 to 7 0 to 3 2000 0010 0000 0000 0000 Command code Response target command codes 0040 0000 0000 0100 0000 0000 0000...
  • Page 409 Response (Sensor Controller to PLC) First word in Command Description Response Area code 12 to 15 8 to 11 4 to 7 0 to 3 3000 0011 0000 0000 0000 Command code Response target command codes 0040 0000 0000 0100 0000 0000 0000...
  • Page 410 (half-width alphanumeric) Regarding the storage destination folder The storage destination folder differ according to the Sensor Controller series. • FH series/FZ5-1100 series RAM disk: C:\Data\RAMDisk External memory device: E:\, F:\ • Do not save to the any folder except RAMDisk and external memory device (such as C:\ProgramFiles\FZ).
  • Page 411 Response (Sensor Controller to PLC) First word in Command Description Response Area code 12 to 15 8 to 11 4 to 7 0 to 3 4010 0011 0000 0000 0000 Command code Response target command codes 0040 0000 0000 0111 0000 0000 0000...
  • Page 412 Response (Sensor Controller to PLC) First word in Command Description Response Area code 12 to 15 8 to 11 4 to 7 0 to 3 4030 0100 0000 0011 0000 Command code Response target command codes 0040 0000 0000 0100 0000 0000 0000...
  • Page 413 Response (Sensor Controller to PLC) First word in Command Description Response Area code 12 to 15 8 to 11 4 to 7 0 to 3 4050 0100 0000 0101 0000 Command code Response target command codes 0040 0000 0000 0100 0000 0000 0000...
  • Page 414 Setting Unit Data Sets the specified processing unit data. IMPORTANT • In processing unit data setting/acquisition, you can get only numeric data. You cannot get character strings. • Character string data such as comparison strings for general-purpose character tests, evaluation comparison strings for bar codes or 2D codes, or OCR recognition strings cannot be set or acquired.
  • Page 415 Setting Date and Time Sets the date and time of the internal calendar timer in the Sensor Controller. Command (PLC to Sensor Controller) First word in Command Description Command Area code 12 to 15 8 to 11 4 to 7 0 to 3 2000 0010...
  • Page 416 If the name of a folder that does not exist is specified, a new folder will be created. Regarding the storage destination folder The storage destination folder differ according to the Sensor Controller series. • FH series/FZ5-1100 series RAM disk: C:\Data\RAMDisk External memory device: E:\, F:\ •...
  • Page 417 Image Logging Folder Name Setting Sets the image logging folder name. Command (PLC to Sensor Controller) First word in Command Description Command Area code 12 to 15 8 to 11 4 to 7 0 to 3 4010 0100 0000 0001 0000 Command code 0050...
  • Page 418 Response (Sensor Controller to PLC) First word in Command Description Response Area code 12 to 15 8 to 11 4 to 7 0 to 3 4020 0100 0000 0010 0000 Command code Response target command codes 0050 0000 0000 0101 0000 0000 0000...
  • Page 419 Response (Sensor Controller to PLC) First word in Command Description Response Area code 12 to 15 8 to 11 4 to 7 0 to 3 4040 0100 0000 0100 0000 Command code Response target command codes 0050 0000 0000 0101 0000 0000 0000...
  • Page 420 Command (PLC to Sensor Controller) First word in Command Description Command Area code 12 to 15 8 to 11 4 to 7 0 to 3 4060 0100 0000 0110 0000 Command code 0050 0000 0000 0101 0000 0000 0000 0000 0000 Parallel DI terminal offset data 0 to 9999...
  • Page 421 Loading Scene Group Data Reads scene group data. Command (PLC to Sensor Controller) First word in Command Description Command Area code 12 to 15 8 to 11 4 to 7 0 to 3 2000 0010 0000 0000 0000 Command code 0060 0000 0000...
  • Page 422 Response (Sensor Controller to PLC) First word in Command Description Response Area code 12 to 15 8 to 11 4 to 7 0 to 3 3000 0011 0000 0000 0000 Command code Response target command codes 0060 0000 0000 0110 0000 0000 0000...
  • Page 423 Saving Scene Data Saves scene data. Command (PLC to Sensor Controller) First word in Command Description Command Area code 12 to 15 8 to 11 4 to 7 0 to 3 1000 0001 0000 0000 0000 Command code 0070 0000 0000 0111 0000...
  • Page 424 Response (Sensor Controller to PLC) First word in Command Description Response Area code 12 to 15 8 to 11 4 to 7 0 to 3 2000 0010 0000 0000 0000 Command code Response target command codes 0070 0000 0000 0111 0000 0000 0000...
  • Page 425 Saves Image Data Saves the image data that is saved in the Sensor Controller's memory Command (PLC to Sensor Controller) First word in Command Description Command Area code 12 to 15 8 to 11 4 to 7 0 to 3 4000 0100 0000...
  • Page 426 Response (Sensor Controller to PLC) First word in Command Description Response Area code 12 to 15 8 to 11 4 to 7 0 to 3 4010 0100 0000 0001 0000 Command code Response target command codes 0070 0000 0000 0111 0000 0000 0000...
  • Page 427 Response (Sensor Controller to PLC) First word in Command Description Response Area code 12 to 15 8 to 11 4 to 7 0 to 3 5000 0101 0000 0000 0000 Command code Response target command codes 0070 0000 0000 0111 0000 0000 0000...
  • Page 428: Non-Procedure Command Details

    C:\Data\RAMDisk \RAMDISK External memory E:\, F:\, G:\, H:\, M:\ (FH series only) \USBDisk to \USBDisk3 Do not specify a save destination other than RAMDisk or External memory. The saved Scene data area may be reduced and the Sensor Controller will not perform correctly.
  • Page 429 FZ5-L series/FZ5-600 series RAMDisk C:\Data\RAMDisk \RAMDISK External memory E:\, F:\, G:\, H:\, M:\ (FH series only) \USBDisk to \USBDisk3 IMPORTANT • Do not turn off power to the Sensor Controller until there is a response. (Example) When you load the following case from the Sensor Controller: •...
  • Page 430 C:\Data\RAMDisk \RAMDISK External memory E:\, F:\, G:\, H:\, M:\ (FH series only) \USBDisk to \USBDisk3 Do not specify a save destination other than RAMDisk or External memory, i.e. C:\ProgramFiles\FZ The saved Scene data area may be reduced and the Sensor Controller will not perform correctly.
  • Page 431 BRUNCHSTART or BFU Branches to the flow head (processing unit No. 0). This command can only be executed when the corresponding flow control processing item is used. <Command format> B R U N C H S T A R T B F U <Response format>...
  • Page 432 CPYSCENE or CSD Copies the data for the scene with the number specified with command argument 1 to the scene with the number specified with command argument 2. If there is already data at the copy destination, the copied data is written over that data.
  • Page 433 DATALOGCOND or DLC Getting the data logging condition Gets the data logging condition for system data. Gets the "data logging condition" on the logging setting screen. <Command format> <Response format> When processing is performed normally When processing is not performed normally <Parameters explanation>...
  • Page 434 Setting the data logging condition Sets the data logging conditions for system data. Sets the "Data logging condition" on the Logging Setting window . <Command format> <Response format> When processing is performed normally When processing is not performed normally <Parameters explanation> 0: None Data logging condition 1: Only NG...
  • Page 435 DATALOGFOLDER or DLF Getting the data logging folder name Gets the set data logging folder name. <Command format> <Response format> When processing is performed normally When processing is not performed normally <Parameters explanation> Data logging folder name Responds with the data logging folder name with its absolute path. (Example) When setting the logging data save destination to "RAMDisk"...
  • Page 436 C:\Data\RAMDisk \RAMDISK External memory E:\, F:\, G:\, H:\, M:\ (FH series only) \USBDisk to \USBDisk3 Do not specify a save destination other than RAMDisk or External memory, i.e. C:\ProgramFiles\FZ The saved Scene data area may be reduced and the Sensor Controller will not perform correctly.
  • Page 437 DATASAVE Saves System + Scene group data to the Sensor Controller's memory. <Command format> <Response format> When processing is performed normally When processing is not performed normally Note • Executing DATASAVE command while you use Scene group 1 to 31, System + Scene group data is saved to the Sensor Controller's memory.
  • Page 438 DATE Acquiring date and time Acquires the date and time from the internal calendar timer in the Sensor Controller. <Command format> <Response format> When processing is performed normally When processing is not performed normally <Parameters explanation> Year: 4 digits Month: 2 digits Year/Month/Date/Hour/Minute/ Date: 2 digits Second...
  • Page 439 Setting date and time Changes the date and time of the internal calendar timer in the Sensor Controller. <Command format> <Response format> When processing is performed normally When processing is not performed normally Note • <Hour: 2 digits>, <Minute: 2 digits>, and <Second: 2 digits> can be omitted during setting. Settings cannot be updated when these are omitted, however, and the previous time will be kept unchanged.
  • Page 440 DELSCENE or DSD Deletes the data for the scene whose number is specified with command argument 1. <Command format> D E L S C E N E Scene No. (3 digits max.) D S D Scene No. (3 digits max.) <Response format>...
  • Page 441 DIOFFSET or DIO Gets or sets the value of the parallel DI terminal offset data. The parallel DI terminal offset is the value that is added to the DI0-DI4 command parameter when a parallel command is executed. It is convenient to use a parallel DI terminal offset in cases such as the following. Example: Creating a Custom Communications Command for Parallel Communications That Sets a Numeric Value with DI0 to DI6 •...
  • Page 442 <Response> Sets the parallel DI terminal offset data Sets the parallel DI terminal offset data. <Command format> D I O F F S E T Parallel DI terminal offset data (max. 4 digits) D I O Parallel DI terminal offset data (max. 4 digits) <Response format>...
  • Page 443 DIPORTCOND or DPC Gets the ON/OFF states of all parallel DI terminals at once. For how to use the command to acquire status, refer to the following example. Example) To acquire the parallel DI terminal status of Line 0. 1. Send the parallel DI terminal status command to the port number assigned to Line 0. 2.
  • Page 444 DOPORTCOND or DPC Sets the ON/OFF states of all parallel DO terminals at once. For how to set the DO terminal status, refer to the following: Example) When you set the parallel DO terminal status of Line 0 to ON: 1.
  • Page 445 ECHO or EEC Returns as is any character string sent by an external device. Only single-byte alphanumerics can be used. <Command format> E C H O Arbitrary character string (256 characters max.) E E C Arbitrary character string (256 characters max.) <Response format>...
  • Page 446 C:\Data\RAMDisk \RAMDISK External memory E:\, F:\, G:\, H:\, M:\ (FH series only) \USBDisk to \USBDisk3 Do not specify a save destination other than RAMDisk or External memory, i.e. C:\ProgramFiles\FZ The saved Scene data area may be reduced and the Sensor Controller will not perform correctly.
  • Page 447 (Example) When capturing an image to the file named "abc.bmp" <Command> <Response> Vision System FH/FZ5 Series User’s Manual Command Control for Communications Settings (Z342)
  • Page 448 IMAGECAPTUREFOLDER or ICF Getting the screen capture folder name Gets the set screen capture folder name. <Command format> <Response format> When processing is performed normally When processing is not performed normally <Parameters explanation> Responds with the name of the folder that the screen capture is saved to with its absolute Screen capture folder name path.
  • Page 449 C:\Data\RAMDisk \RAMDISK External memory E:\, F:\, G:\, H:\, M:\ (FH series only) \USBDisk to \USBDisk3 Do not specify a save destination other than RAMDisk or External memory, i.e. C:\ProgramFiles\FZ The saved Scene data area may be reduced and the Sensor Controller will not perform correctly.
  • Page 450 IMAGEDISPCOND or IDC Gets image mode Gets the image mode for the specified Image Display window. <Command format> I M A G E D I S P C O N D Image display window number (2 digits max.) I D C Image display window number (2 digits max.) <Response format>...
  • Page 451 Sets image mode Sets the image mode for the specified Image Display window. <Command format> I M A G E D I S P C O N D Image mode (1 digit) Image display window number (2 digits max.) I D C Image mode (1 digit) Image display window number (2 digits max.) <Response format>...
  • Page 452 IMAGEFIT or EIF Returns the display position and display zoom ratio for the image display window to their default values. Before fitting After fitting <Command format> I M A G E F I T Image display window number (2 digits max.) E I F Image display window number (2 digits max.) <Response format>...
  • Page 453 (Example) When returning the display position and display zoom ratio for the image display window "1" to their default values <Command> <Response> Vision System FH/FZ5 Series User’s Manual Command Control for Communications Settings (Z342)
  • Page 454 IMAGELOGFOLDER or ILF Getting the image logging folder name Gets the set image logging folder name. <Command format> <Response format> When processing is performed normally When processing is not performed normally <Parameters explanation> Image logging folder name Responds with the name of the folder the logging image is saved to with its absolute path. (Example) When the image logging save destination is set to "RAMDisk"...
  • Page 455 C:\Data\RAMDisk \RAMDISK External memory E:\, F:\, G:\, H:\, M:\ (FH series only) \USBDisk to \USBDisk3 Do not specify a save destination other than RAMDisk or External memory. The saved Scene data area may be reduced and the Sensor Controller will not perform correctly.
  • Page 456 IMAGELOGHEADER or ILH Getting the prefix for the name of the file the image logging is saved to Gets the prefix for the name of the file the image logging is saved to. The maximum length of the prefix character string is 32 characters.
  • Page 457 Setting the prefix for the name of the file the image logging is saved to Sets the prefix for the name of the file the image logging is saved to. The maximum length of the prefix character string is 32 characters. <Command format>...
  • Page 458 IMAGESCROLL or EIS The image display window whose number is specified is moved the specified distance in parallel. The setting range for the movement distance is not restricted. Also, because the scale for movement is independent of the display zoom ratio, the movement is not affected by change in the zoom ratio. Before scrolling After scrolling <Command format>...
  • Page 459 (Example) When moving the image display window "1" image in parallel "20" in the X direction and "10" in the Y direction <Command> E I S <Response> Vision System FH/FZ5 Series User’s Manual Command Control for Communications Settings (Z342)
  • Page 460 IMAGESUBNO or ISN Getting the number of the currently displayed sub-image. Gets the number of the sub-image currently displayed in the specified image display window. <Command format> I M A G E S U B N O Image display window number (2 digits max.) I S N Image display window number (2 digits max.) <Response format>...
  • Page 461 Setting the number of the currently displayed sub-image Sets the number of the sub-image displayed in the specified image display window. <Command format> I M A G E S U B N O Sub image number (3 digits max.) Image display window number (2 digits max.) I S N Sub image number (3 digits max.) Image display window number (2 digits max.)
  • Page 462 IMAGEUNITNO or IUN Getting the number of the currently displayed unit Gets the number of the unit currently displayed in the specified image display window. <Command format> I M A G E U N I T N O Image display window number (2 digits max.) I U N Image display window number (2 digits max.) <Response format>...
  • Page 463 Setting the number of the displayed unit Sets the number of the unit displayed in the specified image display window. <Command format> I M A G E U N I T N O Unit No. Image display window number (2 digits max.) I U N Unit No.
  • Page 464 IMAGEZOOM or EIZ Zooms the image display window whose number is specified in or out to the specified zoom ratio. The zoom ratio here is the ratio compared to the original image (100%). Before zooming After zooming (zoom in) After zooming (zoom out) <Command format>...
  • Page 465 <Parameters explanation> Number of the image display window to return the display position and display magnification to their default values. FH: Image display window number (0 to 23) FZ5: Image display window number Displaying 1 image: 1 Displaying 2 images: 1 and 2 Displaying 4 images: 1 to 4 Displaying thumbnails: 0 to 4 Sets the zoom ratio (250-16000).
  • Page 466 C:\Data\RAMDisk \RAMDISK External memory E:\, F:\, G:\, H:\, M:\ (FH series only) \USBDisk to \USBDisk3 The maximum number of images that can be logged depends on the model of the Sensor Controller that you use and the models and number of connected Cameras. For details, refer to Number of Logged Images in the Vision System FH/FZ5 Series User's Manual (Cat.
  • Page 467 (Example) When you save the following case: • Number of image data: 3 • File name: LABEL1.IFZ • Drive name: USBDisk2 • Folder name of the external memory: IMG01 <Command> <Response> Vision System FH/FZ5 Series User’s Manual Command Control for Communications Settings (Z342)
  • Page 468 INPUTTRANSSTATE or ITS Getting communication module input states Gets the input state (permitted/prohibited) for communication modules. <Command format> <Response format> When processing is performed normally When processing is not performed normally <Parameters explanation> 0: Serial (Ethernet) 1: Serial (RS-232C/422) Communication module types 2: Parallel IO 3: Fieldbus 4: Remote operation...
  • Page 469 Setting communication module input states Permits/prohibits input to communication modules. Any communication module whose input state is set to Prohibit (0) accepts no communications whatsoever. However, inputs related to hardware (parallel STEP signals/DSA signals and ECAT STEP, etc.) are not included in the prohibition. <Command format>...
  • Page 470 C:\Data\RAMDisk \RAMDISK External memory E:\, F:\, G:\, H:\, M:\ (FH series only) \USBDisk to \USBDisk3 Do not specify a save destination other than RAMDisk or External memory. The saved Scene data area may be reduced and the Sensor Controller will not perform correctly.
  • Page 471 LAYOUTNO or DLN Gets or sets the current layout number. IMPORTANT • For non-remote operation, only 0: Local can be specified. For remote operation, only 1: Remote can be specified. If any combination other than the above combinations is used, unexpected operation may occur when the command is executed.
  • Page 472 Setting the layout number Sets the layout number and switches the window. <Command format> <Response format> When processing is performed normally When processing is not performed normally (Example) When displaying the RUN window (local) <Command> <Response> Command Control Vision System FH/FZ5 Series User’s Manual for Communications Settings (Z342)
  • Page 473 LOGINACCOUNT or LAI Acquires the user name for the currently logged in user account Gets the user ID for the currently logged in account. <Command format> <Response format> When processing is performed normally When processing is not performed normally <Parameters explanation> 0: Local Acquisition target 1: Remote...
  • Page 474 Switching the currently logged in account Switches the currently logged in account. <Command format> L O G I N A C C O U N T Password (32 characters max.) User ID (32 characters max.) Setting target (1 digit) L A I Password (32 characters max.) User ID (32 characters max.) Setting target (1 digit)
  • Page 475 LOGINACCOUNTGROUP or LAG Gets the group ID in the user account used by the user currently logging in. <Command format> <Response format> When processing is performed normally When processing is not performed normally <Parameters explanation> 0: Local Acquisition target 1: Remote Group ID Returns the group ID in the user account used by the user currently logging in.
  • Page 476 MEASURE or M Executing measurement Executes measurement one time. <Command format> <Response format> When processing is performed normally Non-procedure Normal (Fxxx series) When processing is not performed normally Note • About "Normal (Fxxx series method)" Reference: Command Formats (p.289) <Parameters explanation> When "Data Output"...
  • Page 477 When processing is not performed normally <Parameters explanation> The measurement results from the number of times continuous measurement is performed are Measurement result output as a response. Reference: Output Format (p.296) Completes continuous measurement Continuous measurement ends. <Command format> <Response format> When processing is performed normally When processing is not performed normally Note...
  • Page 478 MEASUREUNIT or MTU Performs a test measurement on the specified unit. <Command format> <Response format> When processing is performed normally When processing is not performed normally <Parameters explanation> Unit No. Specifies the unit number to run a test with: 0 to the uppermost unit model number in the scene. (Example) The following sample command runs a test on unit number 5: <Command>...
  • Page 479 MOVSCENE or MSD Copies the data for the scene with the number specified with command argument 1 to the scene with the number specified with command argument 2. Deletes scene data with a number specified by command argument 1 after completing copying.
  • Page 480 OPELOGCOND or OLC Gets logging operation state Gets the logging operation state. <Command format> <Response format> When processing is performed normally When processing is not performed normally <Parameters explanation> 0: OFF Logging operation state 1: ON (Example) The following sample command returns an enabled logging operation state: <Command>...
  • Page 481 Sets logged operation state Sets the logged operation state. This command allows configuring the logging operation state in the same manner as for the Start/End Logging Operation buttons on the Main screen. <Command format> <Response format> When processing is performed normally When processing is not performed normally (Example) The following sample command enables the logging operation state.
  • Page 482 OUTPUTTRANSSTATE or OTS Gets output state to external device Gets the output state to an external device: Enabled or Disabled: <Command format> <Response format> When processing is performed normally When processing is not performed normally <Parameters explanation> 0: Prohibited Output state 1: Permitted (Example) The following sample command retrieves the output state, Enabled:...
  • Page 483 Sets the output state to external device Permits/prohibits output to external devices When the input state is disabled, i.e., set to (0), all the communications modules are unable to transmit data. <Command format> <Response format> When processing is performed normally When processing is not performed normally (Example) Setting the output status to external devices to prohibited or prohibiting output to external devices...
  • Page 484 PARAALLCOND or PAC Gets all parallel terminal states at once, except for DI terminals Gets the ON/OFF states of all parallel terminals at once, except for DI terminals. For how to set, refer to the following contents or example. Example) When you want to set the parallel terminal status of Line 0 except DO to turn ON at once. 1.
  • Page 485 Assigned terminal to each bit FH-1000 series/FH-3000 series Sensor Controller Terminal Supported Line 0 Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 Line 7 BIT0 STEP0 STEP1 STEP2 STEP3 STEP4 STEP5 STEP6 STEP7 BIT1 DSA0 DSA1 BIT2 DILINE0 DILINE0...
  • Page 486 FZ5-1100 series Sensor Controller Terminal Supported Line 0 Line 1 BIT0 STEP0 STEP0 BIT1 STEP1 STEP1 BIT2 DSA0 DSA0 BIT3 DSA1 DSA1 BIT4 BIT5 BIT6 BIT7 BIT8 BIT9 BIT10 BIT11 BIT12 BIT13 BIT14 BIT15 FZ5-L/FZ5-600 series Sensor Controller Terminal Supported Line 0 BIT0 STEP0...
  • Page 487 IMPORTANT • When the Multi-line Random Trigger mode is selected in the following series, usable signal type or assignment are differ depending on the used number of Lines. • FH-1000 series • FH-3000 series • FZ5-1100 series Sending commands to the port number which assigned each Lines, acquisition of desired terminal status can be enable. For more details of Operation mode, refer to Multi-line Random Trigger Mode Signal Specifications (p.325).
  • Page 488 Sets all parallel terminal states at once, except for DO terminals Sets the ON/OFF status of all Parallel terminals except for DO terminals. For how to set, refer to the following: Example) When you want to set the Parallel DO terminals status of Line 0, to ON at once: 1.
  • Page 489 Assigned terminal to each bit FH-1000 series/FH-3000 series Sensor Controller Terminal Supported Line 0 Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 Line 7 BIT0 RUN0 RUN1 RUN2 RUN3 ERROR/ BIT1 ERROR1 ERROR2 ERROR3 ERROR ERROR ERROR ERROR ERROR0...
  • Page 490 FZ5-1100 series Sensor Controller Terminal Supported Line 0 Line 1 BIT0 BUSY1 BIT1 ERROR ERROR BIT2 BUSY BUSY0 BIT3 BIT4 BIT5 GATE0 GATE0 BIT6 GATE1 GATE1 BIT7 READY0 READY0 BIT8 READY1 READY1 BIT9 BIT10 BIT11 BIT12 BIT13 BIT14 BIT15 FZ5-L/FZ5-600 series Sensor Controller Terminal Supported Line 0...
  • Page 491 IMPORTANT • When the Multi-line Random Trigger mode is selected in the following series, usable signal type or assignment are differ depending on the used number of Lines. • FH-1000 series • FH-3000 series • FZ5-1100 series For more details of Operation mode, refer to Multi-line Random Trigger Mode Signal Specifications (p.325).
  • Page 492 PARAPORTCOND or PPC Gets the specified status of parallel I/O Gets the ON/OFF information of specified parallel I/O terminal. Specify the parallel terminal with combination of terminal type and terminal number. For how to set, refer to the following: Example) When you want to get the terminal status of STEP0 and Line0 1.
  • Page 493 FZ5-1100 series Sensor Controller Terminal number Terminal type STEP STEP0 STEP1 DSA0 DSA1 DI_LINE FH-L series/FZ5-L series/FZ5-600 series Sensor Controller Terminal number Terminal type STEP STEP0 DSA0 DI_LINE IMPORTANT • When the Multi-line Random Trigger mode is selected in the following series, usable signal type or assignment are differ depending on the used number of Lines.
  • Page 494 Sets the state of specified parallel I/O terminal Sets the specified parallel I/O terminal: ON/OFF Specifies the Parallel terminal with a combination of terminal type, terminal number and terminal status. For how to set, refer to the following contents or example. Example) When you want to set the parallel terminal status of Line 0 except DO to turn ON at once.
  • Page 495 Terminal type and terminal number FH-1000 series/FH-3000 series Sensor Controller Terminal number Terminal type RUN 3 RUN0 RUN1 RUN2 RUN3 - ERROR/ ERROR1 ERROR2 ERROR3 - ERROR0 BUSY 5 BUSY0 BUSY1 BUSY2 BUSY3 BUSY4 BUSY5 BUSY6 BUSY7 - 6 OR0 OR1 OR2 OR3 OR4 OR5 OR6 OR7 - GATE 7 GATE0 GATE1 - READY 8 READY0 READY1 READY2 READY3 READY4 READY5 READY6 READY7 -...
  • Page 496 IMPORTANT • When the Multi-line Random Trigger mode is selected in the following series, usable signal type or assignment are differ depending on the used number of Lines. • FH-1000 series • FH-3000 series • FZ5-1100 series For more details of Operation mode, refer to Multi-line Random Trigger Mode Signal Specifications (p.325).
  • Page 497 REGIMAGE or RID Registers specified image data as registered image Registers the data of a specified image as a registered image. The status after the command is executed is the same as after the operation is executed for the Register Button in the Registered Image Manager. If the source to register is 0, the last measured image, command argument 3, can be omitted.
  • Page 498 Loads specified image data as registered image Loads a specified registered image as a measured image. The status after the command is executed is the same as after the operation is executed for the Read Button in the Registered Image Manager. <Command format>...
  • Page 499 SCENE or S Acquires scene number Acquires the current scene No. <Command format> <Response format> When processing is performed normally Scene No. (3 digits max.) When processing is not performed normally <Parameters explanation> Scene No. The acquired scene No. (currently used scene No.) is output as a response (0 to 127). (Example) When scene 0 is being used <Command>...
  • Page 500 Scene switch No. Switches the scene number to be used. <Command format> E N E Scene No. (3 digits max.) <Response format> When processing is performed normally When processing is not performed normally <Parameters explanation> Scene No. Specifies the scene No. after switching (0 to 127). (Example) When switching to scene 2 <Command>...
  • Page 501 SCNGROUP or SG Acquires scene group number Acquires the current scene group No. <Command format> <Response format> When processing is performed normally When processing is not performed normally <Parameters explanation> The acquired scene group No. (currently used scene group No.) is output as a response (0 to Scene group No.
  • Page 502 Switches the scene group number Switches the scene group number to be used. <Command format> <Response format> When processing is performed normally When processing is not performed normally <Parameters explanation> Scene group No. Specifies the scene group No. after switching (0 to 31). (Example) When switching to scene group 2 <Command>...
  • Page 503 FZ5-L series/FZ5-600 series RAMDisk C:\Data\RAMDisk \RAMDISK External memory E:\, F:\, G:\, H:\, M:\ (FH series only) \USBDisk to \USBDisk3 IMPORTANT • Do not turn off power to the Sensor Controller until there is a response. (Example) When you load the following case to the Sensor Controller as Scene 2: •...
  • Page 504 C:\Data\RAMDisk \RAMDISK External memory E:\, F:\, G:\, H:\, M:\ (FH series only) \USBDisk to \USBDisk3 Do not specify a save destination other than RAMDisk or External memory. The saved Scene data area may be reduced and the Sensor Controller will not perform correctly.
  • Page 505 FZ5-L series/FZ5-600 series RAMDisk C:\Data\RAMDisk \RAMDISK External memory E:\, F:\, G:\, H:\, M:\ (FH series only) \USBDisk to \USBDisk3 IMPORTANT • Do not turn off power to the Sensor Controller until there is a response. (Example) When you load the following case: •...
  • Page 506 C:\Data\RAMDisk \RAMDISK External memory E:\, F:\, G:\, H:\, M:\ (FH series only) \USBDisk to \USBDisk3 Do not specify a save destination other than RAMDisk or External memory, i.e. C:\ProgramFiles\FZ The saved Scene data area may be reduced and the Sensor Controller will not perform correctly.
  • Page 507 IMPORTANT The save destination folder differs depending on the Sensor Controller model. When you use FH series/FZ5-1100 series, do not save to the any folder except RAMDisk and external memory device (such as C:\ProgramFiles\FZ). It is possible not to perform correctly due to the decrease of Scene data storage region.
  • Page 508 (Example) Getting the image logging setting when the setting for the current image logging save condition is 1 (save only <Command> <Response> The current image logging save condition is "1: Only NG". Command Control Vision System FH/FZ5 Series User’s Manual for Communications Settings (Z342)
  • Page 509 IMPORTANT The save destination folder differs depending on the Sensor Controller model. When you use FH series/FZ5-1100 series, do not save to the any folder except RAMDisk and external memory device (such as C:\ProgramFiles\FZ). It is possible not to perform correctly due to the decrease of Scene data storage region.
  • Page 510 (Example 1) When creating settings so that data logging is only performed during NG errors <Command> S Y S D A T A L o g g i n g d a t a L o g g i n g <Response>...
  • Page 511 FZ5-L series/FZ5-600 series RAMDisk C:\Data\RAMDisk \RAMDISK External memory E:\, F:\, G:\, H:\, M:\ (FH series only) \USBDisk to \USBDisk3 IMPORTANT • Do not turn off power to the Sensor Controller until there is a response. (Example) When you load the following case: •...
  • Page 512 • Do not specify to the any folder except RAMDisk and external memory device (such as C:\ProgramFiles\FZ) when you use FH series/FZ5-1100 series. It is possible not to perform correctly due to the decrease of Scene data storage region. (Example) When you save the following case: •...
  • Page 513 TIMER or TMR Issues the specified command string after a specified delay. <Command format> <Response format> When processing is performed normally When processing is not performed normally <Parameters explanation> Specifies the required delay to when the specified command is issued in milliseconds, 100 to Latency 99999.
  • Page 514 UNITDATA or UD Acquiring processing unit parameters and measurement values The set parameters and measurement values for the processing units set in the scene currently being used are acquired. <Command format> <Response format> When processing is performed normally When processing is not performed normally <Parameters explanation>...
  • Page 515 Changing processing unit parameters The set parameters for the processing units set in the scene currently being used are changed. <Command format> <Response format> When processing is performed normally When processing is not performed normally <Parameters explanation> Processing unit No. Specifies the processing unit number (0 to the number of unit items −1).
  • Page 516 Note To set a character string which includes spaces, enclose the character string with " ". Example Setting the character string to compare (value of external reference table no. 164 value) as "ABC EFG" of the second processing unit (Processing unit No.1). UNITDATA 1 164 "ABC EFG"...
  • Page 517 UPDATEMODEL or UMD Reregisters a model using the current image. <Command format> U P D A T E M O D E L Target data (1 digit) Model No. Processing unit No. U M D Target data (1 digit) Model No. Processing unit No.
  • Page 518 (Example) The following sample command reregisters a model with unit number 3, model number 0 and target data 1. <Command> U M D <Response> Command Control Vision System FH/FZ5 Series User’s Manual for Communications Settings (Z342)
  • Page 519 USERACCOUNT or UAD Adds user account to specified user group Adds the user account to the specified affiliated group ID. If the user account for the set image is already registered, that setting is overwritten. <Command format> U S E R A C C O U N T Password (UG0) (32 characters max.) User name (UG0) (32 characters max.) Password (32 characters max.)
  • Page 520 Deletes user account Deletes the specified user account. If the specified user account does not exist, the command returns OK without doing any processing at all. <Command format> U S E R A C C O U N T Password (UG0) (32 characters max.) User name (UG0) (32 characters max.) User ID (32 characters max.) U A D...
  • Page 521 VERGET Acquires the Sensor Controller version information. <Command format> <Response format> When processing is performed normally When processing is not performed normally <Parameters explanation> • Sensor Controller model name Version information • Software version (Example) When your software version is "5.00", and the date is "June 1, 2013" <Command>...
  • Page 522: Manual Revision History

    Manual Revision History The manual revision symbol is an alphabet appended at the end of the manual number found in the bottom left- hand corner of the front or back cover. Cat. No. Z342-E1-08 Revision code Rev. No. Rev. Date Revision Contents Software Version Jul.
  • Page 524 The Netherlands Hoffman Estates, IL 60169 U.S.A. Tel: (31)2356-81-300/Fax: (31)2356-81-388 Tel: (1) 847-843-7900/Fax: (1) 847-843-7787 © OMRON Corporation 2013-2017 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:

Fz5 series

Table of Contents