Omron SYSMAC FH Series User Manual

Omron SYSMAC FH Series User Manual

For communication settings
Hide thumbs Also See for SYSMAC FH Series:
Table of Contents

Advertisement

Vision Sensor
FH/FHV Series
Vision System
User's manual for Communication Settings
FH-1£££/FH-1£££-££
FH-2£££-££/FH-2£££-££
FH-3£££/FH-3£££-££
FH-5£££-££/FH-5£££-££
FH-L£££/FH-L£££-££
FHV7£-£££££-C/FHV7£-£££££-S££/FHV7£-£££££-S££-£
£/FHV7£-£££££-H££/FHV7£-£££££-H££-££
Z342-E1-12

Advertisement

Table of Contents
loading

Summary of Contents for Omron SYSMAC FH Series

  • Page 1 Vision Sensor FH/FHV Series Vision System User's manual for Communication Settings FH-1£££/FH-1£££-££ FH-2£££-££/FH-2£££-££ FH-3£££/FH-3£££-££ FH-5£££-££/FH-5£££-££ FH-L£££/FH-L£££-££ FHV7£-£££££-C/FHV7£-£££££-S££/FHV7£-£££££-S££-£ £/FHV7£-£££££-H££/FHV7£-£££££-H££-££ Z342-E1-12...
  • Page 2 No patent liability is assumed with respect to the use of the information contained herein. Moreover, because OMRON is constantly striving to improve its high-quality products, the information con- tained in this manual is subject to change without notice. Every precaution has been taken in the preparation of this manual.
  • Page 3: Intended Audience

    Introduction Introduction Thank you for purchasing the FH/FHV Series. This manual contains information that is necessary to use the FH/FHV Series. Please read this manual and make sure you understand the functionality and performance of the FH/FHV Series before you attempt to use it in a control system. Keep this manual in a safe place where it will be available for reference during operation.
  • Page 4: Relevant Manuals

    Relevant Manuals Relevant Manuals The following table provides the relevant manuals for the FH/FHV Series. Read all of the manuals that are relevant to your system configuration and application before you use the FH/FHV Series. Manual Basic information Purpose of use Overview of FH series Overview of FHV7 series Setup and Wiring...
  • Page 5 Relevant Manuals Manual Basic information Purpose of use Create and Set the Scene EtherCAT EtherNet/IP PROFINET Ethernet RS-232C Parallel interface Optimizing the Scene Flow EtherCAT EtherNet/IP PROFINET Ethernet RS-232C Parallel interface Connecting the Controller EtherCAT EtherNet/IP PROFINET Ethernet RS-232C Parallel interface Using Helpful Functions EtherCAT EtherNet/IP...
  • Page 6: Manual Structure

    Manual Structure Manual Structure Page Structure The following page structure is used in this manual. Level 1 heading 4 Installation and Wiring Level 2 heading Level 3 heading Mounting Units Level 2 heading Gives the current Level 3 heading headings. 4-3-1 Connecting Controller Components The Units that make up an NJ-series Controller can be connected simply by pressing the Units together...
  • Page 7: Special Information

    Manual Structure Special Information Special information in this manual is classified as follows: Precautions for Safe Use Precautions on what to do and what not to do to ensure safe usage of the product. Precautions for Correct Use Precautions on what to do and what not to do to ensure proper operation and performance. Additional Information Additional information to read as required.
  • Page 8 Manual Structure FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
  • Page 9: Table Of Contents

    CONTENTS CONTENTS Introduction ......................1 Intended Audience............................1 Applicable Products ............................1 Relevant Manuals..................... 2 Manual Structure...................... 4 Page Structure..............................4 Special Information ............................5 Conventions Used in This Manual ........................5 Terms and Conditions Agreement................ 11 Safety Precautions....................13 Precautions for Safe Use ..................14 Precautions for Correct Use .................
  • Page 10 CONTENTS Section 2 Methods for Connecting and Communicating with Ex- ternal Devices EtherCAT Connections......................2 - 4 2-1-1 Introduction to EtherCAT ......................2 - 4 2-1-2 Structure of CAN Application Protocol over EtherCAT (CoE) ...........2 - 7 2-1-3 EtherCAT Slave Information Files (ESI Files) ................2 - 8 2-1-4 Transitions of Communications States..................2 - 9 2-1-5...
  • Page 11 CONTENTS 2-3-15 Command List ........................2 - 242 2-3-16 Command Response Processing..................2 - 246 2-3-17 Data Output ...........................2 - 250 2-3-18 Timing Chart..........................2 - 252 2-3-19 Communicating with the Sensor Controller using EtherNet/IP Message Communications ..2 - 255 2-3-20 Example for Command Settings ...................2 - 258 2-3-21 EtherNet/IP Troubleshooting ....................2 - 259 Communicating by PROFINET ..................2 - 262...
  • Page 12: Z342-E1

    CONTENTS FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
  • Page 13: Terms And Conditions Agreement

    Omron's exclusive warranty is that the Products will be free from defects in materials and workman- ship 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 14 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 15: Safety Precautions

    Safety Precautions Safety Precautions For details of Safety Precautions, refer to Safety Precautions in the Vision System FH/FHV Series User's Manual (Cat. No. Z365). FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
  • Page 16: Precautions For Safe Use

    Precautions for Safe Use Precautions for Safe Use For details of Precautions for Safe Use, refer to Precautions for Safe Use in the Vision System FH/FHV Series User's Manual (Cat. No. Z365). FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
  • Page 17: Precautions For Correct Use

    Precautions for Correct Use Precautions for Correct Use For details of Precautions for Correct Use, refer to Precautions for Correct Use in the Vision System FH/FHV Series User's Manual (Cat. No. Z365). FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
  • Page 18: Regulations And Standards

    Regulations and Standards Regulations and Standards For details of Regulations and Standards, refer to Regulations and Standards in the Vision System FH/FHV Series User's Manual (Cat. No. Z365). FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
  • Page 19: Related Manuals

    Related Manuals Related Manuals The followings are the manuals related to this manual. Use these manuals for reference. Name of Manual Cat. No.. Model Purpose Contents Vision System 9608337-2 FH-1£££ To confirm the safety Describes the definitions of basic FH Instruction Sheet FH-1£££-££...
  • Page 20 Related Manuals Name of Manual Cat. No.. Model Purpose Contents Vision System Z365 FH-1£££ When User want to Describes the soft functions, setup, FH/FHV Series FH-1£££-££ know about the and operations to use FH/FHV ser- User's Manual FH-2£££ FH/FHV series. ies/ FH-2£££-££...
  • Page 21: Revision History

    Revision History Revision History A manual revision code appears as a suffix to the catalog number on the front and back covers of the manual. Cat. No. Z342-E1-12 Revision code Software Ver- Rev. Code Rev. Date Revision Contents sion Jul. 2013 First edition Ver.
  • Page 22 Revision History FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
  • Page 23: Sections In This Manual

    Sections in This Manual Sections in This Manual Overview Methods for Connecting and Communicating with External Devices Appendices Index FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
  • Page 24 Sections in This Manual FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
  • Page 25: Overview

    Overview This section describes communication specifications to be used for communications between FH/FHV and an external device, and the Sensor Controller control methods. Introduction ....................1 - 2 Confirming the System Configuration ............1 - 3 1-2-1 System Configuration ................... 1 - 3 Communicating with an External Device ...........
  • Page 26: Introduction

    1 Overview Introduction This section describes a basic overview of the Sensor Controller control methods and the communica- tion specifications, which is required when the FH/FHV series communicate with an external device. Confirming the System Configuration This section describes the external device configuration that is required to perform measurement processing with the FH/FHV.
  • Page 27: Confirming The System Configuration

    1 Overview Confirming the System Configuration The FH/FHV are Vision Systems that perform measurement processing through the Sensor Controller on measurement objects imaged by a Camera. In a system configuration connected to an external device such as a PLC or a PC (personal comput- er), measurement commands can be received from and measurement results can be output to the ex- ternal device.
  • Page 28: Communicating With An External Device

    1 Overview Communicating with an External De- vice This section describes the communication specifications, control methods in communications, and set- tings required before starting communications with an external device. 1-3-1 Basic Control Operations of the Sensor Controller The following figure shows basic communications, and the flow of signals and data, between an exter- nal device and the Sensor Controller.
  • Page 29: Communications Between The Sensor Controller And An External Device

    1 Overview Type Description This is valid in PLC Link and Non-procedure communications protocols. You can output character strings and numbers read by processing items such as Charac- Character output ter Inspection, Barcode, or 2D Code. You can also use commands to acquire them after a measurement is performed.
  • Page 30 1 Overview When output control is set to handshaking (data output is controlled by the DSA and GATE signals). For details, refer to Control Signals and Status Signals on page 1 - 13. When handshaking is performed in the output control, the measurement data is held in the Communica- tion module until a data output request (DSA signal) is received from the external device.
  • Page 31: Control Methods For The Sensor Controller

    1 Overview 1-3-3 Control Methods for the Sensor Controller There are three methods below to control the Sensor Controller with an external device such as a PLC. For details of each control method, refer to their corresponding section. Control Methods Signal and area to Method Overview...
  • Page 32 1 Overview (2) Control with Commands and Responses (Refer to 1-4-2 Command/Response Method on page 1 - 16.) Control is performed by storing a control command and the response to it to the PLC’s I/O memo- This method is best suited to send multiple commands to the Sensor Controller without using ex- clusive communication instructions for a PLC.
  • Page 33: Communication Protocols For Communicating With The Sensor Controller

    1 Overview 1-3-4 Communication Protocols for Communicating with the Sensor Controller The Sensor Controller can be controlled using various communication protocols by an external device such as a PLC or a PC. The communication protocols to control the Sensor Controller by an external device are described be- low.
  • Page 34 Parallel Ether- tion method protocol This is a communication protocol for the OMRON Vision System. Areas for control signals, Command, Response, and measurement data are PLC Link assigned in the PLC’s I/O memory, and data is communicated between the PLC and the Vision System by sharing them cyclically.
  • Page 35: Saving Sensor Controller Data To An External Device

    1 Overview 1-3-5 Saving Sensor Controller Data to an External Device In addition to sending and receiving data via a communication protocol, you can also save data in the Sensor Controller to an external device using the methods described below. For details, refer to the Vision System FH/FHV Series User's Manual (Cat.
  • Page 36 1 Overview • For remote operation over a network, refer to the Remotely Operating the Controller (Remote Operation) in the Vision System FH/FHV Series User’s Manual (Cat. No. Z365). If more than one Sensor Controller is connected via Ethernet, a computer (FZ tool) connected to the same Ethernet network can operate and monitor all the Sensor Controllers at once.
  • Page 37: Control Methods Using An External Device

    1 Overview Control Methods Using an External Device This section describes how to control the Sensor Controller from an external device such as a PLC. 1-4-1 Control with Control Signals and Status Signals Control and status check for the Sensor Controller is performed with the ON and OFF status of the control and status signals.
  • Page 38 1 Overview Signal Name Function XEXE This is turned ON when a command will be per- Flow Command formed while PLC Link, Fieldbus, or parallel flow Request Bit Flow Command Request control is performed. These are used to input commands from a parallel DI (DI0 to DI7) Command Input Signals interface.
  • Page 39 1 Overview Signal Name Function This signal indicates that the FH/FHV detects the fol- lowing errors. • Camera connection error • Battery error • Fan error • System error • Communications timeout Error Signal • Error Status STEP input during measurement The ERR signal does not turn OFF even after the er- ror is eliminated.
  • Page 40: Command/Response Method

    1 Overview 1-4-2 Command/Response Method ● Parallel Commands are input to the Sensor Controller by turning the DI signals (DI0 through DI7) ON and OFF. Since there is no direct response for these commands, so check the ACK signal whether or not a com- mand was accepted.
  • Page 41: Data Output After Measurements

    1 Overview Additional Information Command-driven character string output is not supported when using EtherNet/IP tag data link communication, EtherCAT, or PROFINET. To output character strings, use commands equivalent to Non-procedure communication in the EtherNet/IP message communication. For details, refer to 2-3-19 Communicating with the Sensor Controller using EtherNet/IP Mes- sage Communications on page 2 - 255 ●...
  • Page 42 1 Overview ● Parallel The data is output to the PLC signal lines via DO signals (DO0 to DO15). ● Non-procedure Communications The data is output to the PLC reception buffer through non-procedure (normal) communications. Outputting the Measurement Data The measurement data is output to the external device via the Communications Module by the proc- essing unit for data output (hereafter, Output Unit) placed in the measurement flow.
  • Page 43 1 Overview Sensor Controller Single Measurement Processing command order Measurement flow Processing started Measurement started. 0.Camera Image Input (BUSY). Communications Read charac- Measurement processed. 1.Character Inspection Module ters are output. Characters are output at the same time that the characters are read. Additional Information Command-driven character string output is not supported when using EtherNet/IP tag data link communication, EtherCAT, or PROFINET.
  • Page 44 1 Overview • 2DCode II: 652 characters • OCR: 128 characters (32 characters x 4 lines) NULL (\0) is attached at the end of the read string to be output. The processing items supporting character strings output are listed below. •...
  • Page 45 1 Overview Settings Required for Data Output Use the following procedures to set up Output Unit for data output. ● Measurement Data (1) Place the data output processing unit(s) in the processing flow. Place the processing unit for data output in the measurement flow. Processing Units That Serve as Output Units: On the processing item tree in the Flow Editor window, the processing items under Output result serve as Output Units.
  • Page 46 1 Overview ● Character Output (Available only for PLC Link and Non-procedure Protocols) Perform the character output settings for processing items to read output characters such as Charac- ter Inspection. Since the above processing items perform the character output operation, it does not need to set Out- put Units in the measurement flow.
  • Page 47 1 Overview Outputting Multiple Measurement Data Items ● Using Multiple Output Units for Data Output You can register more than one Output Unit in the measurement flow. If you want to output different types of data during measurement flow processing, or if you want to out- put more than nine different data items, you must register multiple Output Units in the measurement flow.
  • Page 48 1 Overview Sensor Controller Processing order Measurement flow Measurement started. 0.Camera Image Input FH I/O memory 1.Search Command Area 2. Advanced filter Response Area Communications Output Area N. ------------- Module Output the results of Search or N+1. Result output (I/O) Advanced filter Offsets (Available only for PLC Link Communication Protocol): When you use multiple Output Units to output data, you can offset the write destination of the output...
  • Page 49 1 Overview ● Outputting Multiple Items with Parallel Data Output The items set for output data numbers 0 through 7 via parallel data output are output to the PLC’s re- ception buffer in ascending order, one data item at a time (16-bit units). Each time a data item is out- put, the GATE signal turns ON.
  • Page 50 1 Overview Signal Name Description Data Output Re- This signal is sent by the external device (PLC) to the Sensor quest Signal Controller to request data output. This signal is sent by the Sensor Controller to inform the external Data Output Com- device (PLC) of the timing to load output data.
  • Page 51 1 Overview ● Receiving Multiple Continuous Output Data Items When multiple output data items from multiple Output Units are received, receive the data one at a time using the DSA and GATE signals. (i.e., PLC Link Communications with handshaking). Output Unit 1 executed. Output Unit 2 executed.
  • Page 52: Setting Procedures For Communications

    1 Overview Setting Procedures for Communica- tions This section describes an overview of the setting procedures that the Sensor Controller starts commu- nication with an external device such as a PLC, and the communication modules to be used for the communications.
  • Page 53: Communications Protocols And Communications Modules

    1 Overview 1-5-2 Communications Protocols and Communications Modules A Communications Module is used to communicate between the Sensor Controller and an external device. The appropriate Communications Module needs to be previously set for the communication protocol to be used to communicate between the Sensor Controller and the external device. l Communications Module Settings The Communication Module used for communications is selected in the startup settings.
  • Page 54 1 Overview Communications Communication inter- Communication Module protocol face Serial (Ethernet) • Non-procedure (UDP) • Ethernet Non-procedure (TCP) • Non-procedure (TCP Client) Non-procedure • Non-procedure (UDP) (Fxxx series method) Serial (RS-232C/422) • RS-232C/422 Non-procedure • Non-procedure (Fxxx series method) 1 - 30 FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
  • Page 55: Differences In Specifications Based On The Communications Protocol

    1 Overview Differences in Specifications Based on the Communications Protocol This section describes the types and differences of communication protocols that are used for commu- nications with the Sensor Controller. 1-6-1 List of Supported Signals by Communications Protocol Some of the control and status signals to be used depend on the communication protocol as shown below.
  • Page 56 1 Overview l Output Signals (Sensor Controller to PLC) OK: Can be used, - : Cannot be used Signals for each communication protocol Signal Name EtherNet/I PROFI- Parallel PLC Link EtherCAT BUSY Busy Signal Control Command Command Comple- Completion Signal tion GATE Data Output Com-...
  • Page 57: Restrictions When Using Different Communication Protocols Simultaneously

    1 Overview 1-6-2 Restrictions when Using Different Communication Protocols Si- multaneously The FH/FHV series can use different communication protocols together. Restrictions in combined use are as follows: • The Parallel Communication Module can be used with any other Communication Modules. •...
  • Page 58: Models Being Compatible With Communication Protocol

    This section describes external devices which can communicate with the FH/FHV series based on communication protocols. l PLC Link and NGn-procedure Communications • Ethernet OMRON OK: Can connect, Cond.: Only some models can connect, NG: Cannot connect Interface Series CPU unit...
  • Page 59 Q12HCPU, Q25HCPU MELSEC- Q2ASCPU, Q2ASC- QnAS Ser- PU-S1, Q2ASHCPU, Q2ASHCPU-S1 • RS-232C/422 OMRON OK: Can connect, Cond.: Only some models can connect, NG: Cannot connect Interface Direct connection with Series CPU unit Connection via serial commu- CPU unit nication unit...
  • Page 60 1 Overview Interface Direct connection with Series CPU unit Connection via serial commu- CPU unit nication unit (Built-in port) CS1W-SCB££-V1 SYSMAC_CS CS1H, CS1D, or CS1G CS1W-SCU21-V1 CS1W-SCU31-V1 SYSMAC_CP1 CP1E, CP1L, or CP1H Cond. (Built-in port only) CP1W-CIF01 SYSMAC_One CJ1W-SCU22 SYSMAC NJ NJ501 or NJ301 CJ1W-SCU32 CJ1W-SCU42...
  • Page 61 1 Overview l EtherNet/IP OK: Can connect, Cond.: Only some models can connect, NG: Cannott connect Interface Series CPU unit Direct connection with Connection via Ethernet unit CPU unit (Built-in port) CJ1W-EIP21 (Only version 2.1 sup- SYSMAC NJ NJ501 or NJ301 ports Sysmac NJ connection.
  • Page 62 1 Overview 1 - 38 FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
  • Page 63 Methods for Connecting and Communicating with External De- vices This section describes the communication specifications, data I/O methods, communi- cation settings, communication commands, and other details for each communication protocol used to communicate between the Sensor Controllers for the FH/FHV series and external devices.
  • Page 64 2 Methods for Connecting and Communicating with External Devices 2-2-6 Setting Output Data (Numerical Values and Character Strings) ....2 - 158 2-2-7 Testing Communications................2 - 165 2-2-8 Memory Allocation ..................2 - 169 2-2-9 I/O Signals ....................2 - 173 2-2-10 Output Items .....................
  • Page 65 2 Methods for Connecting and Communicating with External Devices 2-5-10 Command List................... 2 - 345 2-5-11 Output Format................... 2 - 349 2-5-12 Non-procedure Communications Troubleshooting ........2 - 351 Parallel Communications ................ 2 - 354 2-6-1 Communications Processing Flow ............2 - 354 2-6-2 Communications Setup Procedures ............
  • Page 66: Ethercat Connections

    2 Methods for Connecting and Communicating with External Devices EtherCAT Connections This section describes the communication settings , communication specifications, input/output for- mats, and the communication timing chart required for communications by EtherCAT between the Sensor Controller and an external device. 2-1-1 Introduction to EtherCAT EtherCAT (Ethernet Control Automation Technology) is a high-performance industrial network system...
  • Page 67 2 Methods for Connecting and Communicating with External Devices Ethernet frame Ethernet Ethernet data (1,498 bytes max.) header 1st to nth EtherCAT telegrams EtherCAT frame EtherCAT header 1st EtherCAT 2nd EtherCAT nth EtherCAT telegram telegram telegram Telegram Data header WKC: Working counter 2 - 5 FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
  • Page 68 2 Methods for Connecting and Communicating with External Devices Types of EtherCAT Communications The following 2 types of communications are available with EtherCAT. PDO communications are processed in each EtherCAT communication cycle to refresh data continu- ously. SDO communications are processed between PDO communications. l Process Data Communications (PDO Communications) The process data communication function (PDO communications) cyclically transfers process data in real-time.
  • Page 69: Structure Of Can Application Protocol Over Ethercat (Coe)

    2 Methods for Connecting and Communicating with External Devices 2-1-2 Structure of CAN Application Protocol over EtherCAT (CoE) EtherCAT allows the use of multiple protocols for communication. EtherCAT slave terminal adopts CAN application protocol over EtherCAT (CoE) as a device profile for CAN application protocol which is one of the open network standards, which provides the communication interface to apply to Ether- CAT devices.
  • Page 70: Ethercat Slave Information Files (Esi Files)

    *1: If you are using Sysmac Studio, it is not necessary to install the ESI files in the network setup soft- ware (configuration tool). The ESI files for OMRON EtherCAT slaves have already installed in the Sys- mac Studio. Auto-update function in the Sysmac Studio enables you to get the ESI files for the latest models.
  • Page 71: Transitions Of Communications States

    2 Methods for Connecting and Communicating with External Devices 2-1-4 Transitions of Communications States The EtherCAT master controls the state transition model for communication control of its slave termi- nals. The following figure indicates the transition for the communication state since the power has been turned ON.
  • Page 72: Process Data Objects (Pdos)

    2 Methods for Connecting and Communicating with External Devices 2-1-5 Process Data Objects (PDOs) This section describes the process data objects (PDO) used in EtherCAT communications. Introduction Real-time data transfer in cyclic communication uses Process Data Objects (PDOs). There are two types of Process Data Objects (PDOs): RxPDOs, which are used by the EtherCAT slave terminal to receive data from the EtherCAT master;...
  • Page 73 2 Methods for Connecting and Communicating with External Devices PDO Mappings PDO mapping objects contain the I/O data for EtherCAT slave terminals. PDO mapping objects are managed with indexes in the object dictionary: from 1600 to 17FF Hex for the RxPDO, and from 1A00 to 1BFF Hex for TxPDO.
  • Page 74 2 Methods for Connecting and Communicating with External Devices In the above example, a single application object is allocated to the PDO at index 1BFF Hex (name: 512th transmission PDO mapping). This PDO is for TxPDO. The application object contains the Sysmac error status at index 2001 Hex and sub-index 01 Hex.
  • Page 75: Service Data Objects (Sdos)

    2 Methods for Connecting and Communicating with External Devices 2-1-6 Service Data Objects (SDOs) This section describes the service data objects (SDO) used in EtherCAT communications. Introduction EtherCAT slave terminals support SDO communications. The EtherCAT master can set parameters and monitor status by reading and writing data from and to entries in the object dictionary using SDO communications.
  • Page 76: Communications Between Master And Slaves For Ethercat

    2 Methods for Connecting and Communicating with External Devices 2-1-7 Communications between Master and Slaves for EtherCAT This section describes the communication modes between the master and slaves for EtherCAT and the communication modes for EtherCAT slave terminals. Communication Modes for Communications between Master and Slaves for EtherCAT l Free-run Mode (FH/FHV series not supported) In the free-run mode, a slave performs the I/O processing (updating the I/O data) asynchronously...
  • Page 77: Communication Method Of Fh Sensor Controller Connected By Ethercat

    2 Methods for Connecting and Communicating with External Devices 2-1-8 Communication Method of FH Sensor Controller Connected by EtherCAT With commands and responses via communications between an EtherCAT master and a Sensor Con- troller, the master can control the Sensor Controller and make it output data after measurement. To connect a Sensor Controller of the FH series to an NJ series CPU unit by EtherCAT, use Sysmac Studio (standard edition) version 1.09 or later.
  • Page 78 2 Methods for Connecting and Communicating with External Devices Vision Sensor (slave) Controller (master) 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 79 2 Methods for Connecting and Communicating with External Devices Communications in Multi-line Random-trigger Mode In Multi-line Random-trigger mode, a Sensor Controller for the FH series can control up to eight lines. In Multi-line Random-trigger mode, the I/O ports (areas) for communications between the Sensor Con- troller and the master are allocated as shown below.
  • Page 80 2 Methods for Connecting and Communicating with External Devices l Minimum PDO Communication Cycle Time Do not set the communication cycle (PDO communication cycle time) for EtherCAT communica- tions to a value lower than the minimum time in the following table. The minimum communication cycle time (PDO communication cycle time) depends on the number of lines to control, the number of bytes for output data, and the User Area to use as shown below.
  • Page 81 2 Methods for Connecting and Communicating with External Devices Applicable Models • OMRON OK: Can connect, Cond.: Only some models can connect, NG: Cannot connect Interface Series CPU unit Direct connection with Connection via master CPU unit (Built-in port) unit...
  • Page 82: Communications Settings

    2 Methods for Connecting and Communicating with External Devices 2-1-9 Communications Settings The following settings are required to use EtherCAT communications. ··· The communication method to be used is determined by select- 1. Communication Mod- ing a communication module. ule settings For details, refer to 2-1-10 Communications Module Settings (Startup settings) (Startup Settings) on page 2 - 22.
  • Page 83 2 Methods for Connecting and Communicating with External Devices Additional Information 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].
  • Page 84: Communications Module Settings (Startup Settings)

    2 Methods for Connecting and Communicating with External Devices 2-1-10 Communications Module Settings (Startup Settings) On the Main window, click Tool - System Settings to open the system settings. On the Multiview Explorer on the left, select System settings - Startup - Startup setting and then click the Communication tab.
  • Page 85: Communication Specifications Settings

    2 Methods for Connecting and Communicating with External Devices Additional Information You can save the Communication Module settings to a file. Use the System data or System + Scene group 0 data option for saving settings to a file. For details, Refer to Saving Settings Data to the Controller RAM Disk or an External Storage Device in the Vision System FH/FHV Series User’s Manual (Cat.
  • Page 86 2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] ON at OK: ON when the judgment result is OK. For the overall judgment, ON when all judgment • ON at OK results are OK. Judge output polarity •...
  • Page 87 2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] Set the number of data items to output for each line. There are two types in the output data size: 4 bytes (DINT) and 8 bytes (LREAL). Select the output data size and the number of out- puts from the types below.
  • Page 88 2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] • Result Data Format Result Data Format 12 A character string of 32 12 (ByteArray 32 (ByteArray 32 byte) bytes is output. byte) Result Data Format 13 A character string of 64 •...
  • Page 89 2 Methods for Connecting and Communicating with External Devices EtherCAT Communications Settings for Multi-line Random-trigger Mode When you use Multi-line Random-trigger mode to perform EtherCAT communications on multiple lines, you can only configure EtherCAT communication settings on line 0 Setting tab page. The EtherCAT communication settings on multiple-line are as follows.
  • Page 90: Output Data Settings (Processing Item Registration)

    2 Methods for Connecting and Communicating with External Devices 2-1-12 Output Data Settings (Processing Item Registration) Here, set the output items and output format to be used with EtherCAT. Registering Processing Items Register the processing items for data output in the measurement flow. Click Edit flow in the Toolbar.
  • Page 91 2 Methods for Connecting and Communicating with External Devices Additional Information • 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.
  • Page 92 2 Methods for Connecting and Communicating with External Devices The selected output data number is displayed under the list. Click next to the expression text box and set the expression. Specify the processing items, measurement results, and measurement data in the expression. Arithmetic or function calculations can be applied to the measurement data to output.
  • Page 93: Setting Output Data (Numerical Values/Character Strings)

    2 Methods for Connecting and Communicating with External Devices 2-1-13 Setting Output Data (Numerical Values/Character Strings) Registering Processing Items Register the processing items for data output in the measurement flow. In the Main window, click Edit flow in the Toolbar. Click Result output (I/O) in the processing item tree.
  • Page 94 2 Methods for Connecting and Communicating with External Devices Setting the Output Device Here, set a communication method when data is output. Click Result output (I/O) icon in the unit list (flow) or Set to set the output device and the output data.
  • Page 95 2 Methods for Connecting and Communicating with External Devices Setting the Output Data Here, set the data to output such as processing item data or fixed character strings. In the item tab area, click Output data. The Result output (I/O) setting window is displayed. a) Setting data display area The No.
  • Page 96 2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] • Integer • Data type Double Sets the data type. • String There are two input methods. • Data Enter strings directly • Assign variables Title Enters the description for data.
  • Page 97 2 Methods for Connecting and Communicating with External Devices Data type Description • Entered data is handled as four-byte data. • Allowable entering range is a range of signed INT. • When string variables are specified for data, character strings like digits which can be converted into numerical values will be converted and output.When dec- imal digits are included, they are truncated.Moreover, they are handled as “0”...
  • Page 98 2 Methods for Connecting and Communicating with External Devices (2) In the case where assignment variable is assigned o data: Directly enter a variable name (Scene variable: SC. ) or specify a variable in Variable assignment window displayed by clicking •...
  • Page 99 2 Methods for Connecting and Communicating with External Devices Example: Click OK in the end of entering data to close the settings. 2 - 37 FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
  • Page 100: Ethercat Network Configuration Settings

    2 Methods for Connecting and Communicating with External Devices 2-1-14 EtherCAT Network Configuration Settings To communicate with an NJ series Controller using EtherCAT, use the Sysmac Studio to register the Sensor Controller of the FH/FHV series to the network configuration. Precautions for Correct Use To connect the Sensor Controller of the FH/FHV series to an NJ/NX series Controller by Ether- CAT, first connect Sysmac Studio to with the Sensor Controller online and then perform the...
  • Page 101: Communication Test

    2 Methods for Connecting and Communicating with External Devices Display the EtherCAT settings window and select the check boxes for the EtherCAT settings. Restart the FH/FHV simulator to reflect the settings. After the simulatorwas restarted, display the EtherCAT settings window again and set the Data Output Number for each line.
  • Page 102: I/O Ports By Area (Pdo Mapping) And Memory Allocation

    2 Methods for Connecting and Communicating with External Devices 2-1-16 I/O Ports by Area (PDO Mapping) and Memory Allocation This section describes each I/O port for the Command, Response, Data Output, User, and Sysmac Error Status Areas. For the size, data type, initial value, and other information for each I/O port, refer to Vision Sensor Specific Objects in the Manufacturer Specific Objects on page 2 - 117.
  • Page 103 2 Methods for Connecting and Communicating with External Devices I/O Ports for the Response Area Sensor Controller (Slave) to Controller (Master) I/O port name Signal name Function Status Flag Status signal Switches from OFF to ON when the Sensor Controller (slave) completes the control command execution and stores the control command code, response code, and re- Command Comple-...
  • Page 104 2 Methods for Connecting and Communicating with External Devices I/O port name Signal name Function Turns ON if the Sensor Controller (slave) detects an error. Error Status Error Signal Turns OFF when the Sensor Controller (slave) runs normally. Switches from OFF to ON when the Sensor Controller (slave) completes the data out.
  • Page 105 2 Methods for Connecting and Communicating with External Devices I/O Ports for the User Input Area Controller (Master) to Sensor Controller (Slave) I/O port name Signal name Data type Function User Input Area 0 User Input Area 0 DINT When the User Area is set to "ON" in the communication specification User Input Area 1 User Input Area 1...
  • Page 106 2 Methods for Connecting and Communicating with External Devices Rules for I/O Port Name An I/O port name consists of the device name and line number to be controlled as shown below. When only one line is controlled, the line number is defined as “Line 0”. Example: Command Request Signal in the Command Area •...
  • Page 107 2 Methods for Connecting and Communicating with External Devices Allocating Device Variables to I/O Ports (PDO Mapping) When the Sensor Controller is connected to a CPU unit for NJ series, the data for the PDO communi- cations in the Sensor Controller is displayed as the I/O port names on the Sysmac Studio. To the I/O ports, allocate device variables on the Sysmac Studio I/O map to perform programming and monitoring.
  • Page 108: I/O Signals

    2 Methods for Connecting and Communicating with External Devices 2-1-17 I/O Signals The following tables list the signals used to control I/O for EtherCAT. Input Signals ON/OFF timing Signal Signal name Function OFF to ON ON to OFF This is turned on when the user (PLC) will is- The user (PLC) This is turned on when...
  • Page 109 2 Methods for Connecting and Communicating with External Devices ON/OFF timing Signal Signal name Function OFF to ON ON to OFF The user (PLC) This is turned on when switches the signal from a command will be per- Switches from ON to OFF to ON when it in- Flow Com- Flow Com-...
  • Page 110 2 Methods for Connecting and Communicating with External Devices ON/OFF timing Signal Signal name Function OFF to ON ON to OFF • Without handshaking The signal turns ON after the Sensor Con- troller performs the Output Unit (Fieldbus • Without handshaking The signal informs the Data Output Unit) The signal turns OFF...
  • Page 111 2 Methods for Connecting and Communicating with External Devices ON/OFF timing Signal Signal name Function OFF to ON ON to OFF The signal turns OFF The signal turns ON when even one of the The signal indicates when the Cameras as- Cameras assigned to that the Cameras as- Trigger Input...
  • Page 112: Measurement Results For Which Output Is Possible (Fieldbus Data Output)

    2 Methods for Connecting and Communicating with External Devices ON/OFF timing Signal Signal name Function OFF to ON ON to OFF The signal switches The signal switches The signal indicates from OFF to ON when a from OFF to ON when a Flow Com- that a command input Flow Com-...
  • Page 113 2 Methods for Connecting and Communicating with External Devices Number Data name Set/Get Data range 0: No judgment (unmeasured) Judgment Get only 1: Judgment result OK -1: Judgment result NG 1000 + 10*N DINT data 0 to 63 Get only -999999999.9999 to 999999999.9999 (N = 0 to 63) 2000 + 10*N...
  • Page 114: Command List

    2 Methods for Connecting and Communicating with External Devices 2-1-19 Command List This section describes the commands used in EtherCAT. Additional Information 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: To specify a command code or command parameter for a device variable, refer to A-1-2 Details of Commands Used in EtherCAT Communications on page A - 6...
  • Page 115 2 Methods for Connecting and Communicating with External Devices l Commands to Get Status Command code for Command Command name Function Reference Area (Hex) 0020 1000 Get Scene Number Gets the current scene number. page A - 30 Gets the current scene group 0020 2000 Get Scene Group Number page A - 30...
  • Page 116 2 Methods for Connecting and Communicating with External Devices Command code for Command Command name Function Reference Area (Hex) Sets the number of the sub- Set Display Sub-image Num- 0030 5020 image to display in the speci- page A - 48 fied image display window.
  • Page 117: Measurement Trigger Input

    2 Methods for Connecting and Communicating with External Devices 2-1-20 Measurement Trigger Input This section describes the ON/OFF timing for signals related to measurement trigger inputs using the following timing chart. l Measurement Trigger Input Timing Chart The Trigger signal is used to input a measurement trigger. Single measurement is performed each time the Trigger signal switches from OFF to ON.
  • Page 118: Command Response Processing

    2 Methods for Connecting and Communicating with External Devices 2-1-21 Command Response Processing About control command response processing, the following timing chart describes the ON/OFF timing of signals related to commands to be input. l Timing Chart for Command Execution The Controller (master) uses the Command Request signal as a trigger to input and execute vari- ous commands such as measurement execution.
  • Page 119 2 Methods for Connecting and Communicating with External Devices The Sensor Controller (slave) turns the Command Completion signal OFF. l Continuous Measurement Command (Without handshaking) Continuous execution is used to repeatedly execute measurement by starting the next measure- ment operation (image input and measurement processing) as soon as single measurement opera- tion (image input and measurement processing) is completed.
  • Page 120: Data Output

    2 Methods for Connecting and Communicating with External Devices The controller (master) turns the Command Request signal OFF. The Sensor Controller (slave) turns the Command Completion signal OFF. The Sensor Controller (slave) starts continuous measurement. The Sensor Controller (slave) turns the Busy signal ON and tune the Trigger Ready signal OFF.
  • Page 121 2 Methods for Connecting and Communicating with External Devices The Sensor Controller (slave) outputs data when the Fieldbus Data Output Unit starts execution. Data is output each time that the Fieldbus Data Output Unit is performed for the second time or oth- er Fieldbus Data Output Unit is performed.
  • Page 122 2 Methods for Connecting and Communicating with External Devices After that, repeat step 3 to 6. 2 - 60 FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
  • Page 123: Timing Chart

    2 Methods for Connecting and Communicating with External Devices 2-1-23 Timing Chart This section describes the ON/OFF timing for signals related to the sequence of operation from control command input until measurement data output after measurement completion using the following tim- ing chart.
  • Page 124 2 Methods for Connecting and Communicating with External Devices The Controller (master) turns the Trigger signal ON. Additional Information 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 125 2 Methods for Connecting and Communicating with External Devices l Example 2: Outputting Data with more than one Output Unit Without Hand- shaking Trigger signal Command Area Busy signal Trigger Ready signal OFF Response Area Trigger Ack signal Result Notification (10) signal First data output...
  • Page 126 2 Methods for Connecting and Communicating with External Devices Additional Information 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 127: Ethercat Troubleshooting

    2 Methods for Connecting and Communicating with External Devices 2-1-24 EtherCAT Troubleshooting Cannot Communicate with the Sensor Controller Problem Cause Action Data is not input and output at all. The node address is set incorrectly. Check the node address setting switches.
  • Page 128 2 Methods for Connecting and Communicating with External Devices Settings are not kept Problem Cause Action Settings such as Fieldbus Data Changed the communication set- Set the Fieldbus Data Output after Output Calculations or Comments tings after setting the Fieldbus Data performing the communication set- are not kept.
  • Page 129: Sysmac Error Status

    2 Methods for Connecting and Communicating with External Devices 2-1-25 Sysmac Error Status The Sysmac Studio (standard edition) displays errors occurred in the EtherCAT system (including er- rors in the sensor) as Sysmac error status. Sysmac Error Status Event Code Table This section describes the event codes for the Sysmac error status related to the Sensor.
  • Page 130 2 Methods for Connecting and Communicating with External Devices Level Event Occurrence factor Event code Description Ref. name (Assumed cause) Info • The Camera connection infor- The camera con- mation in the Change in 385A 0000 nected is different scene data does page connected ○...
  • Page 131 2 Methods for Connecting and Communicating with External Devices Level Event Occurrence factor Event code Description Ref. name (Assumed cause) Info • The handshak- ing control of the data output in the program, i.e. ON/OFF timing for DSA signal, Output con- is improper.
  • Page 132 2 Methods for Connecting and Communicating with External Devices Level Event Occurrence factor Event code Description Ref. name (Assumed cause) Info • Scene data was edited when the free space on the RAMDisk was insufficient and the opera- tion mode was Double Speed Multi-input Setting data...
  • Page 133 2 Methods for Connecting and Communicating with External Devices Level Event Occurrence factor Event code Description Ref. name (Assumed cause) Info • The power con- sumption of the light connected to the Camera- mount lighting controller is im- proper. • The light emit- Lighting An error occurred...
  • Page 134 2 Methods for Connecting and Communicating with External Devices You cannot clear major fault level errors through user programs, Sysmac Studio, or a PT of the NS series. To recover this situation, remove the cause of the error, and either turn the power supply for the Controller off and on or reset it using System Studio.
  • Page 135 2 Methods for Connecting and Communicating with External Devices Error Details This section describes details on errors. The items used to describe individual errors (events) are de- scribed in the following copy of an error table. Event name Name of the error Event code Code of the error Description...
  • Page 136 Additional None information Precautions/ If the problem still exists after the corrections was performed, a hardware failure may have oc- Remarks curred. Consult your OMRON representative. Event name Camera overcurrent detected Event code 0822 0000 Hex Description An overcurrent state occurred on the Camera.
  • Page 137 None bles Occurrence factor (As- Correction Prevention sumed cause) Cause and A short circuit occurs inside of correction Consult your OMRON repre- Consult your OMRON repre- the Camera cable or in the sentative. sentative. Controller circuit. Additional None information Precautions/...
  • Page 138 Name fined varia- None bles Occurrence factor (As- Correction Prevention sumed cause) Cause and correction An error occurred in the built- Consult your OMRON repre- Consult your OMRON repre- in battery. sentative. sentative. Additional None information Precautions/ None Remarks Event name...
  • Page 139 2 Methods for Connecting and Communicating with External Devices After the EtherCAT Master Function Source de- Detection slave power Source Slave Module tails timing was turned Error reset Error attrib- (after reset- Log catego- Level Minor Fault Recovery System utes ting the error in the slave) Although the Camera image input is available,...
  • Page 140 None bles Occurrence factor (As- Correction Prevention sumed cause) Cause and correction A serious error occurred in the Consult your OMRON repre- Consult your OMRON repre- system in the Controller. sentative. sentative. Additional None information Precautions/ None Remarks...
  • Page 141 2 Methods for Connecting and Communicating with External Devices Output control timeout for Parallel I/O, PLC Event name Event code 5821 0000 Hex Link, EtherNet/IP, or PROFINET Description A timeout occurred in the handshaking control of data output for measurement results. At measure- EtherCAT Master Function Source de-...
  • Page 142 2 Methods for Connecting and Communicating with External Devices System-de- Variable name Data type Name fined varia- None bles Occurrence factor (As- Correction Prevention sumed cause) The handshaking control of Correct the program so that Create the program so that the data output in the pro- the handshaking control of the the handshaking control of the...
  • Page 143 2 Methods for Connecting and Communicating with External Devices Event name Setting data transfer error Event code 781A 0000 Hex Description An error occurred during the scene data transfer. EtherCAT Master Function Source de- Detection After editing Source Slave Module tails timing scene data...
  • Page 144 2 Methods for Connecting and Communicating with External Devices Occurrence factor (As- Correction Prevention sumed cause) Measurements are performed Correct the program so that Create the program so that Cause and in a cycle shorter than the measurements are performed measurements are performed correction time required for the hand-...
  • Page 145 2 Methods for Connecting and Communicating with External Devices User pro- Effects Continuous Operation The lighting does not turn on. gram EtherCAT NET RUN EtherCAT NET ERR EtherCAT LINK/ACT System-de- Variable name Data type Name fined varia- None bles Occurrence factor (As- Correction Prevention sumed cause)
  • Page 146 2 Methods for Connecting and Communicating with External Devices Occurrence factor (As- Correction Prevention sumed cause) Check that the cable of an ex- The external storage set in Connect the external storage ternal power supply is con- the "Scene Group Saving set in the "Scene Group Sav- nected to the Camera-mount Destination Settings”...
  • Page 147: Sysmac Device Features

    Sysmac Device Features Sysmac Devices are the control device products designed based on standardized communications and user interface specifications for OMRON control devices. And the features available with them are so called “Sysmac Device Features”. This section describes the features when they are combined with a Machine Automation Controller such as NJ series, and with automation software.
  • Page 148 2 Methods for Connecting and Communicating with External Devices Saving Node Address Settings When the node address switch is set to 00, it means Software Setup mode, the node address setting value set in Sysmac Studio is enabled. When it is other than 00, The value of the node address switch is used as the node address.
  • Page 149 If SII information, which slaves cannot accepted, was written here, an SII Check Error (Error No. 88.3) occurs. If the problem still exists even after it is restarted, contact your OMRON sales representative. Precautions for Correct Use Do not use third-party or any other configuration tools to edit the SII information.
  • Page 150: Object Dictionary

    Definitions for variables that can be applied to all servers for a dedicated communication. 2000 Hex to 2FFF Hex Manufacture Specific area 1 Variables defined for all OMRON products. 3000 Hex to 5FFF Hex Manufacture Specific area 2 Variables defined for EtherCAT Slave Units of the FH/FHV series.
  • Page 151 2 Methods for Connecting and Communicating with External Devices Object Description Format Here, describes objects by the following format. ● Object Description Format <Index> <Object name> Range: <Setting range> Unit: <Unit> Default: <Default setting> Attribute: <Data attrib- ute> Size: <Size> Access: <Access>...
  • Page 152 2 Methods for Connecting and Communicating with External Devices Communication Objects 1000 Hex Device Type Range: - Unit: - Default: 00000000 Hex Attribute: - Size: 4 bytes (U32) Access: RO PDO map: Not possible • The Sensor Controllers of the FH/FHV series do not support a device profile. 1001 Hex Error Register Range: -...
  • Page 153 2 Methods for Connecting and Communicating with External Devices Manufacture de- Manufacture hardware ver- Slave Manufacture software version vice name sion FH-1050 FH-1050 V1.00 V6.XX FH-1050-10 FH-1050-10 Space (20 Hex) × 15 characters (The FH/FHV software version, FH-1050-20 FH-1050-20 (Fifteen space characters are which consists of nineteen FH-2050 FH-2050...
  • Page 154 2 Methods for Connecting and Communicating with External Devices 64 Hex 61 Hex 6F Hex 6C Hex • The ABORT code is displayed if a value other than the specific one is written. • A value 0000 0001 Hex (command valid) is indicated in reading. •...
  • Page 155 2 Methods for Connecting and Communicating with External Devices Slave Product Code (Hex) Revision Number (Hex) FHV7H-M004+SDU30 0000 0109 0001 0000 FHV7H-C004+SDU30 0000 010A 0001 0000 FHV7H-M016+SDU30 0000 010B 0001 0000 FHV7H-C016+SDU30 0000 010C 0001 0000 FHV7H-M032+SDU30 0000 010D 0001 0000 FHV7H-C032+SDU30 0000 010E 0001 0000...
  • Page 156 2 Methods for Connecting and Communicating with External Devices • Sub-index 5 (Flags) is the control flag for the diagnosis history. It sets whether or not to notify error messages via emergency messages. Setting 0001 Hex means to notify. It is set to 0000 Hex (no emergency notification) at startup.
  • Page 157 2 Methods for Connecting and Communicating with External Devices Range: - Unit: - Default: 70020320 Hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index 5: 5th Output Object to be mapped Range: - Unit: - Default: 70020420 Hex Size: 4 bytes (U32) Access: RO PDO map: Not possible...
  • Page 158 2 Methods for Connecting and Communicating with External Devices Line 2: 1640 Hex (1st receive PDO mapping), 1641 Hex (2nd receive PDO mapping) and 1642 Hex (3rd receive PDO mapping) Line 3: 1660 Hex (1st receive PDO mapping), 1661 Hex (2nd receive PDO mapping) and 1662 Hex (3rd receive PDO mapping) Line 4: 1680 Hex (1st receive PDO mapping), 1681 Hex (2nd receive PDO mapping) and 1682 Hex (3rd receive PDO mapping)
  • Page 159 2 Methods for Connecting and Communicating with External Devices Size: 1 byte (U8) Access: RO PDO map: Not possible Sub-index 1: 1st Input Object to be mapped Range: - Unit: - Default: 60040020 Hex Size: 4 bytes (U32) Access: RO PDO map: Not possible •...
  • Page 160 2 Methods for Connecting and Communicating with External Devices Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index 3: 3rd Input Object to be mapped Range: - Unit: - Default: 60050320 Hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index 4: 4th Input Object to be mapped Range: -...
  • Page 161 2 Methods for Connecting and Communicating with External Devices Range: - Unit: - Default: 32 Hex Size: 1 byte (U8) Access: RO PDO map: Not possible Sub-index 1: 1st Input Object to be mapped Range: - Unit: - Default: 60050120 Hex Size: 4 bytes (U32) Access: RO PDO map: Not possible...
  • Page 162 2 Methods for Connecting and Communicating with External Devices Range: - Unit: - Default: 60051020 Hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index 17: 17th Input Object to be mapped Range: - Unit: - Default: 60051120 Hex Size: 4 bytes (U32) Access: RO PDO map: Not possible...
  • Page 163 2 Methods for Connecting and Communicating with External Devices Range: - Unit: - Default: 60052020 Hex Size: 4 bytes (U32) Access: RO PDO map: Not possible • The object gives the mapping for an application using Vision Sensor functions. • 6005 Hex (Image Processing Results Integer Data) 1A07 Hex 8th transmit PDO Mapping Sub-index 0: Number of objects...
  • Page 164 2 Methods for Connecting and Communicating with External Devices Sub-index 14: 14th Input Object to be mapped Range: - Unit: - Default: 60050E20 Hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index 15: 15th Input Object to be mapped Range: - Unit: - Default: 60050F20 Hex...
  • Page 165 2 Methods for Connecting and Communicating with External Devices Sub-index 30: 30th Input Object to be mapped Range: - Unit: - Default: 60051E20 Hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index 31: 31st Input Object to be mapped Range: - Unit: - Default: 60051F20 Hex...
  • Page 166 2 Methods for Connecting and Communicating with External Devices Sub-index 46: 46th Input Object to be mapped Range: - Unit: - Default: 60052E20 Hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index 47: 47th Input Object to be mapped Range: - Unit: - Default: 60052F20 Hex...
  • Page 167 2 Methods for Connecting and Communicating with External Devices Sub-index 62: 62nd Input Object to be mapped Range: - Unit: - Default: 60053E20 Hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index 63: 63rd Input Object to be mapped Range: - Unit: - Default: 60053F20 Hex...
  • Page 168 2 Methods for Connecting and Communicating with External Devices Sub-index 5: 5th Input Object to be mapped Range: - Unit: - Default: 60060540 Hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index 6: 6th Input Object to be mapped Range: - Unit: - Default: 60060640 Hex...
  • Page 169 2 Methods for Connecting and Communicating with External Devices Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index 11: 11th Input Object to be mapped Range: - Unit: - Default: 60060B40 Hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index 12: 12th Input Object to be mapped Range: -...
  • Page 170 2 Methods for Connecting and Communicating with External Devices Range: - Unit: - Default: 60060840 Hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index 9: 9th Input Object to be mapped Range: - Unit: - Default: 60060940 Hex Size: 4 bytes (U32) Access: RO PDO map: Not possible...
  • Page 171 2 Methods for Connecting and Communicating with External Devices Range: - Unit: - Default: 60061840 Hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index 25: 25th Input Object to be mapped Range: - Unit: - Default: 60061940 Hex Size: 4 bytes (U32) Access: RO PDO map: Not possible...
  • Page 172 2 Methods for Connecting and Communicating with External Devices • The object gives the mapping for an application using Vision Sensor functions. • 6005 Hex (Image Processing Results Integer Data) • 6006 Hex (Image Processing Results Real Data) 1A0D Hex 14th transmit PDO Mapping Sub-index 0: Number of objects Range: -...
  • Page 173 2 Methods for Connecting and Communicating with External Devices Sub-index 2: 2nd Input Object to be mapped Range: - Unit: - Default: 60050220 Hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index 3: 3rd Input Object to be mapped Range: - Unit: - Default: 60050320 Hex...
  • Page 174 2 Methods for Connecting and Communicating with External Devices Sub-index 18: 18th Input Object to be mapped Range: - Unit: - Default: 600604A0 Hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index 19: 19th Input Object to be mapped Range: - Unit: - Default: 600604B0 Hex...
  • Page 175 2 Methods for Connecting and Communicating with External Devices Range: - Unit: - Default: 60060B20 Hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index 12: 12th Input Object to be mapped Range: - Unit: - Default: 60060C20 Hex Size: 4 bytes (U32) Access: RO PDO map: Not possible...
  • Page 176 2 Methods for Connecting and Communicating with External Devices Range: - Unit: - Default: 60060B40 Hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index 28: 28th Input Object to be mapped Range: - Unit: - Default: 60060C40 Hex Size: 4 bytes (U32) Access: RO PDO map: Not possible...
  • Page 177 2 Methods for Connecting and Communicating with External Devices 1A40 Hex (1st transmit PDO mapping) and 1A41 Hex to 1A4F Hex (2nd to 16th transmit PDO Line 2: mapping) 1A60 Hex (1st transmit PDO mapping) and 1A61 Hex to 1A6F Hex (2nd to 16th transmit PDO Line 3: mapping) 1A80 Hex (1st transmit PDO Mapping), 1A81 Hex to 1A8F Hex (2nd to 16th transmit PDO Map-...
  • Page 178 2 Methods for Connecting and Communicating with External Devices 1AC0 Hex (1st transmit PDO mapping) and 1AC1 Hex to 1AD0 Hex (2nd to 17th transmit PDO Line 6: mapping) 1AE0 Hex (1st transmit PDO Mapping), 1AE1 Hex to 1AF0Hex (2nd to 17th transmit PDO Map- Line 7: ping) 1BFFh...
  • Page 179 2 Methods for Connecting and Communicating with External Devices Size: 1 byte (U8) Access: RO PDO map: Not possible • This indicates the number of PDO mappings used by this sync manager. • Mailbox reception sync manager does not have PDOs. 1C11 Hex Sync manager 1 PDO Assignment Sub-index 0: Number of assigned PDOs...
  • Page 180 2 Methods for Connecting and Communicating with External Devices 6C Hex 63 Hex 6C Hex 65 Hex Writing values other than these is invalid. 2002 Hex Sysmac Error Sub-index 0: Number of entries Range: - Unit: - Default: 02 Hex Attribute: - Size: 1 byte (U8) Access: RO...
  • Page 181 2 Methods for Connecting and Communicating with External Devices • This object is used to set the standby time until the first synchronization interrupt signal (SYNC0) is input after shifting to the safe-operational state where a DC mode is confirmed. •...
  • Page 182 2 Methods for Connecting and Communicating with External Devices Size: 1 bit (BOOL) Access: RO PDO map: Possible Sub-index 12 to 15: Control Reserve Bit 12 to 15 Range: True (1) or False (0) Unit: - Default: False (0) Size: 1 bit (BOOL) Access: RO PDO map: Possible Sub-index 16: Error Status Bit...
  • Page 183 2 Methods for Connecting and Communicating with External Devices Sub-index 1: Response Data Range: - Unit: - Default: 00000000 Hex Size: 4 bytes (BOOL) Access: RO PDO map: Possible • The response data of results from command execution are stored. (E.g.: The scene number is stor- ed when the command “Get scene number”...
  • Page 184 2 Methods for Connecting and Communicating with External Devices Sub-index 6: User Output Area 5 Range: - Unit: - Default: 00000000 Hex Size: 4 bytes (INT32) Access: RO PDO map: Possible • The User Output Area is stored. 7000 Hex Control Flag Sub-index 0: Number of entries Range: -...
  • Page 185 2 Methods for Connecting and Communicating with External Devices 7002 Hex Command parameter 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 Parameter 0 Range: - Unit: - Default: 00000000 Hex...
  • Page 186 2 Methods for Connecting and Communicating with External Devices 8000 Hex Image Processing Results Output Sub-index 0: Number of entries Range: - Unit: - Default: 03 Hex Size: 1 byte (U8) Access: RO PDO map: Not possible Sub-index 1: Switch of handshake mode Range: - Unit: - Default: 00 Hex...
  • Page 187 2 Methods for Connecting and Communicating with External Devices Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index 4: General information Range: - Unit: - Default: 00 Hex Size: 4 bytes (U32) Access: RO PDO map: Not possible Sub-index5: Module PDO Group of device Range: - Unit: -...
  • Page 188 2 Methods for Connecting and Communicating with External Devices Range: - Unit: - Default: 00 Hex Size: 4 bytes (U32) Access: RW PDO map: Not possible Sub-index 4: Module Ident of the module configured on position 4 Range: - Unit: - Default: 00 Hex Size: 4 bytes (U32) Access: RW...
  • Page 189: Communicating By Plc Link

    • When PLC CJ series or Machine Automation Controllers of the NJ/NX series produced by OMRON are connected to the Sensor Controllers of the FH/FHV series, use TCP. If you used UDP, PLC Link communications will not be established properly and a PLC Link error may occur.
  • Page 190 2 Methods for Connecting and Communicating with External Devices Sensor Controller (slave) PLC (master) Responds when a command is received. 1. Command Area Commands You write the following control The control commands that are commands for the Vision Sensor. written to the Command Area are executed.
  • Page 191: Communications Settings

    2 Methods for Connecting and Communicating with External Devices 2-2-2 Communications Settings The following settings are required to use PLC Link. ··· The communication method to be used is determined by select- 1. Communication Mod- ing a communication module. ule settings For details, refer to 2-2-3 Communications Module Settings (Startup settings) (Startup Settings) on page 2 - 130.
  • Page 192: Communications Module Settings (Startup Settings)

    2 Methods for Connecting and Communicating with External Devices 2-2-3 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, click Tool - System Settings to open the system settings. On the Multiview Explorer on the left, select System settings - Startup - Startup setting and then click the Communication tab.
  • Page 193 2 Methods for Connecting and Communicating with External Devices Click OK in the System restart dialog box to restart the Sensor Controller. When the Sensor Controller was restarted, the set Communication Module will operate with the default settings. Set the IP address and other parameters for external devices such as a PLC. Precautions for Correct Use After you set the Communication Module, always click Data save and then restart the Sensor Controller.
  • Page 194: Communication Specifications Settings

    2 Methods for Connecting and Communicating with External Devices 2-2-4 Communication Specifications Settings Here, set the communication specifications such as the link areas, baud rate, and data length. The communication settings are performed for Ethernet and RS-232C separately. If communications were not established even though the settings have been performed, check the set- ting details and communication status.
  • Page 195 2 Methods for Connecting and Communicating with External Devices Additional Information • Sensor Controllers of the FH-1000/2000/3000/5000 series with four or eight Camera inputs have two Ethernet ports. Set the settings for the two Ethernet ports as follows: • Communication Module Settings: Use the same settings for both ports •...
  • Page 196 2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] Address Settings Address Settings is only for the following series: Set the IP address for the upper Ethernet FH-1000 series (4- and 8-camera types), FH-2000 ser- port on the Sensor Controller.
  • Page 197 2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] Address Settings 2 Address Settings is only for the following series: Set the IP address for the lower Ethernet FH-1000 series (2-camera type), FH-2000 series, port on the Sensor Controller.
  • Page 198 2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] Input and Output settings a.b.c.d a: 1 to 223 b: 0 to 255 Output IP Address/TCP Enter the IP address for the output destina- c: 0 to 255 tion.
  • Page 199 2 Methods for Connecting and Communicating with External Devices Communicating with an OMRON PLC (When PLC Link (Sysmac CS/CJ/CP/One) is selected for the communication module.) Setting value Setting item Description [Factory default] Command Area • [Channel Area (CIO)] • Work Area (WR) •...
  • Page 200 2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] • [Channel Area (CIO)] • Work Area (WR) • Holding Bit Area (HR) Set the Response Area. • The range of the available EM area varies Auxiliary Bit Area Areas (AR)
  • Page 201 2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] Selected: Measurement processing and data output processing are performed in parallel. The data output processing does not affect the processing time of the measurement flow.
  • Page 202 2 Methods for Connecting and Communicating with External Devices • If the DSA signal were not turned ON even after a certain time passed from when measurement has been completed. • If the DSA signal did not switch from ON to OFF even after a certain time passed from when the GATE signal has switched from OFF to ON.
  • Page 203 2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] Selected: Measurement processing and data output processing are performed in parallel. The data output processing does not affect the processing time of the measurement flow.
  • Page 204 2 Methods for Connecting and Communicating with External Devices • If the DSA signal were not turned ON even after a certain time passed from when measurement has been completed. • If the DSA signal did not switch from ON to OFF even after a certain time passed from when the GATE signal has switched from OFF to ON.
  • Page 205 2 Methods for Connecting and Communicating with External Devices Communicating with a Yaskawa Electric PLC (When PLC Link (JEPMC MP) is selected for the Communication module.) Setting value Setting item Description [Factory default] Command Area Data register The Command Area is fixed to the Data reg- Areas ister.
  • Page 206 2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] Set the time until when a timeout error will occur because the PLC Link communications are not established with incorrect communi- cation settings or communication cables bro- ken.
  • Page 207 In the communication setting area, set each items. Set value Setting item Description [Factory default] Align the communication specifications with the PLC. • [RS-232C Interface When you connect an OMRON’s PLC, set it to Host Link • RS-422 communications. • 2400 • 4800 •...
  • Page 208 The PLC Link view is displayed. Set the following items. Some setting items vary depending on the selected communication module. Communicating with an OMRON PLC (When PLC Link (Sysmac CS/CJ/CP/One) is selected for the communication module.) Setting value Setting item...
  • Page 209 2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] • [Channel Area (CIO)] • Work Area (WR) • Holding Bit Area (HR) • Auxiliary Bit Area (AR) Areas Set the Command Area. • Data Memory Areas (DM) •...
  • Page 210 2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] Selected: Measurement processing and data output processing are performed in parallel. The data output processing does not affect the processing time of the measurement flow.
  • Page 211 2 Methods for Connecting and Communicating with External Devices • If the DSA signal were not turned ON even after a certain time passed from when measurement has been completed. • If the DSA signal did not switch from ON to OFF even after a certain time passed from when the GATE signal has switched from OFF to ON.
  • Page 212 2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] Selected: Measurement processing and data output processing are performed in parallel. The data output processing does not affect the processing time of the measurement flow.
  • Page 213 2 Methods for Connecting and Communicating with External Devices • If the DSA signal were not turned ON even after a certain time passed from when measurement has been completed. • If the DSA signal did not switch from ON to OFF even after a certain time passed from when the GATE signal has switched from OFF to ON.
  • Page 214 2 Methods for Connecting and Communicating with External Devices Asynchronous Output In Asynchronous output, measurement flow and data output processing are performed in parallel. The data output processing does not affect the measurement flow processing. Clear the option for Asynchronous output when you want to perform output in the same way as for FZ4 and former models.
  • Page 215: Output Data Settings (Processing Item Registration)

    2 Methods for Connecting and Communicating with External Devices 2-2-5 Output Data Settings (Processing Item Registration) Here, set the output items and output format to be used in PLC Link. Additional Information 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 216 2 Methods for Connecting and Communicating with External Devices Additional Information • 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. If multiple Output Units are registered in the same measurement flow, the data is output to the same destination.
  • Page 217 2 Methods for Connecting and Communicating with External Devices Registering the Items to Output Set the output data with expressions. Click Data Output icon in the measurement unit list (flow). In the Item tab area, click Setting. In the list, click the output data number to set the expression. The selected output data number is displayed under the list.
  • Page 218 2 Methods for Connecting and Communicating with External Devices Additional Information If you delete one of the expressions that is set for output data 0 through 255, the output num- bers for all expressions after the deleted expression will stay the same. However, the actual da- ta output will be output as though the list has been shifted forward for the number of expres- sions that have been deleted.
  • Page 219 2 Methods for Connecting and Communicating with External Devices Output Format (Data Output) Click Data Output icon in the measurement unit list (flow). In the item tab area, click Output format. In the Output Setting Area, select the communication method. Setting value Setting item Description...
  • Page 220: Setting Output Data (Numerical Values And Character Strings)

    2 Methods for Connecting and Communicating with External Devices 2-2-6 Setting Output Data (Numerical Values and Character Strings) Registering Processing Items Register the processing items for data output in the measurement flow. In the Main window, click Edit flow in the Toolbar. Click Result output (I/O) in the processing item tree.
  • Page 221 2 Methods for Connecting and Communicating with External Devices Setting the Output Device Here, set a communication method when data is output. Click Result output (I/O) icon in the unit list (flow) or Set to set the output device and the output data.
  • Page 222 2 Methods for Connecting and Communicating with External Devices Setting the Output Data Here, set the data to output such as processing item data or fixed character strings. In the item tab area, click Output data. The Result output (I/O) setting window is displayed. a) Setting data display area The No.
  • Page 223 2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] • Integer • Data type Double Sets the data type. • String There are two input methods. • Data Enter strings directly • Assign variables Title Enters the description for data.
  • Page 224 2 Methods for Connecting and Communicating with External Devices Data type Description • Entered data is handled as four-byte data. • Allowable entering range is a range of signed INT. • When string variables are specified for data, character strings like digits which can be converted into numerical values will be converted and output.When dec- imal digits are included, they are truncated.Moreover, they are handled as “0”...
  • Page 225 2 Methods for Connecting and Communicating with External Devices (2) In the case where assignment variable is assigned o data: Directly enter a variable name (Scene variable: SC. ) or specify a variable in Variable assignment window displayed by clicking •...
  • Page 226 2 Methods for Connecting and Communicating with External Devices Example: Click OK in the end of entering data to close the settings. 2 - 164 FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
  • Page 227: Testing Communications

    2 Methods for Connecting and Communicating with External Devices 2-2-7 Testing Communications Here, check whether or not the PLC Link communication settings are correct. If communications cannot be established after the setup, use the following procedures to check the setting details and the communication status. Communicating via Ethernet l Before Testing Communications Here, Serial (Ethernet) - PLC Link (SYSMAC CS/CJ/CP/One) (UDP) communication module is...
  • Page 228 2 Methods for Connecting and Communicating with External Devices 5. Click the [PLC Link settings] tab. 6. Set the area settings. Match these settings with those on the destination PLC. 7. Set the output control. Set whether to provide an interlock with the PLC when performing data output.
  • Page 229 2 Methods for Connecting and Communicating with External Devices Example: Reply from 10.5.5.100: byte=32 Time<1 ms TTL=128 If anything other than Reply from is displayed: The Sensor Controller is not connected to the Ethernet network for some reason. Check the following.
  • Page 230 2 Methods for Connecting and Communicating with External Devices 3. Click the [PLC Link settings] tab. 4. Set the area settings.Set these settings based on the connected PLC. 5. Set the output control. Set whether to provide an interlock with the PLC when performing data output.
  • Page 231: Memory Allocation

    2 Methods for Connecting and Communicating with External Devices 2-2-8 Memory Allocation Here, describe allocation for each area for Command Area, Response Area, and Data Output Area. l Command Area (PLC to Sensor Controller) First chan- nel in Event Command name Area Control in-...
  • Page 232 2 Methods for Connecting and Communicating with External Devices l Response Area (Sensor Controller to PLC) Additional Information The order in which data is stored depends on the manufacturer of the connected PLC. For details, refer to A-1-1 Parameter Notation Examples for Command Control on page A - 2. First chan- nel in Re- Name...
  • Page 233 2 Methods for Connecting and Communicating with External Devices Signal Signal name Function Stores the response data for the executed RES-DATA Response Data command. 2 - 171 FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
  • Page 234 2 Methods for Connecting and Communicating with External Devices l Data Output Area (Sensor Controller to PLC) Data to be output into the Data Output Area is not automatically allocated. Data to be output is individually allocated to an Output Unit First chan- nel in Data Name...
  • Page 235: I/O Signals

    2 Methods for Connecting and Communicating with External Devices 2-2-9 I/O Signals l Input Signals ON/OFF timing Signal Signal name Function OFF to ON ON to OFF The user (PLC) turns The user (PLC) this signal ON when is- switches this signal The user (PLC) turns suing a command (in- from ON to OFF when...
  • Page 236 2 Methods for Connecting and Communicating with External Devices l Output Signals ON/OFF timing Signal Signal name Function OFF to ON ON to OFF This signal indicates that external inputs such as a command cannot be accepted. Be sure to issue com- mands under the condi- tion which this signal is OFF.
  • Page 237 2 Methods for Connecting and Communicating with External Devices ON/OFF timing Signal Signal name Function OFF to ON ON to OFF • The signal is turned ON after the Sensor The signal informs the Controller of the PLC of the timing to FH/FHV series per- GATE load output data.
  • Page 238: Output Items

    2 Methods for Connecting and Communicating with External Devices 2-2-10 Output Items Measurement Results for which Output is Possible (Data Output) The following data can be output using the processing items related to the Result Output. Measurement values are also referred using processing units such as expressions. Measurement items Character string Description...
  • Page 239: Command List

    2 Methods for Connecting and Communicating with External Devices Additional Information If you are using external reference numbers 5 to 12 on an FZ4 or earlier model, use 1000 to 1007 on the FH/FHV. 2-2-11 Command List The following tables list the commands used in PLC Link communications. For details, refer to A-1-4 Command Details for PLC Link, EtherNet/IP, EtherCAT, and PROFINET on page A - 15.
  • Page 240 2 Methods for Connecting and Communicating with External Devices l Commands to Get Status First word in Response Area Function Reference 0020 1000 Gets the current scene number. page A - 30 0020 2000 Gets the current scene group number. page A - 30 0020 4000...
  • Page 241 2 Methods for Connecting and Communicating with External Devices First word in Response Area Function Reference 0030 8030 Sets the ON/OFF status of all parallel DO terminals. page A - 56 0030 9000 Switches the currently logged in account. page A - 57 0030 A000 Sets the state of the operation log.
  • Page 242 2 Methods for Connecting and Communicating with External Devices First word in Response Area Function Reference 0060 2000 Loads the scene group data. page A - 75 0060 3000 Loads the system data. page A - 76 0060 5000 Loads the system + scene group 0 data. page A - 77 l File Save Commands First word in Response...
  • Page 243: Command Response Processing

    2 Methods for Connecting and Communicating with External Devices 2-2-12 Command Response Processing About control command response processing, the following timing chart describes the ON/OFF timing of signals related to commands to be input. l Timing Chart for Command Execution The Command Request (EXE) signal is used as the trigger to input and execute various com- mands such as measurement execution stored in advance in the PLC memory.
  • Page 244 2 Methods for Connecting and Communicating with External Devices l Timing Chart for Execution of Continuous Measurement Commands (With- out handshaking) Continuous execution is used to repeatedly execute measurement by starting the next measure- ment operation (image input and measurement processing) as soon as single measurement opera- tion (image input and measurement processing) is completed.
  • Page 245 2 Methods for Connecting and Communicating with External Devices The Command Completion (FLG) signal and the BUSY signal are then automatically turned OFF. : A timeout error occurs and the Command Completion (FLG) signal and BUSY signal are forced OFF if the Command Request (EXE) signal is not turned OFF from the PLC (user) within the time set in the PLC Link settings (Retry interval: 0 to 999999 [ms] for Ethernet PLC Link, or Timeout: 1 to 120 [s] for RS-232C/422-PLC Link).
  • Page 246: Data Output

    2 Methods for Connecting and Communicating with External Devices 2-2-13 Data Output This section describes the ON/OFF timing for signals related to measurement data output after meas- urement completion using the following timing chart. l Without handshaking Data Output Data Output Unit execution Unit execution First data output...
  • Page 247 2 Methods for Connecting and Communicating with External Devices Data Output Unit Data Output Unit execution execution Retry interval The PLC turns ON the Result Set Request (DSA) signal at the same time as the STEP or Command Request (EXE) signal and waits for the first output data.
  • Page 248: Timing Chart

    2 Methods for Connecting and Communicating with External Devices 2-2-14 Timing Chart This section describes the ON/OFF timing for signals related to the sequence of operation from control command input until measurement data output after measurement completion using the following tim- ing chart.
  • Page 249 2 Methods for Connecting and Communicating with External Devices The Sensor Controller turns ON the BUSY signal and executes measurement processing when the request is received. (10) The Command Completion (FLG) signal is turned ON when the measurement processing was com- pleted.
  • Page 250 2 Methods for Connecting and Communicating with External Devices When the Sensor Controller detects that the Command Request (EXE) signal is OFF, it automatical- ly turns OFF the Command Completion (FLG) signal and the BUSY signal. When the Command Request (EXE) signal does not switch from ON to OFF within the Retry interval time set in the Ethernet - PLC Link or the Timeout time set in the RS-232C/422 - PLC Link settings, a timeout error will occur, and the FLG and BUSY signals are forced to be turned OFF.
  • Page 251: Plc Link Troubleshooting

    2 Methods for Connecting and Communicating with External Devices 2-2-15 PLC Link Troubleshooting l Cannot Input to the Sensor Controller (RS-232C/422 Only) Problem Cause Action Check the wiring. Check the cable The wiring is incorrect. No response is received after connections.
  • Page 252 2 Methods for Connecting and Communicating with External Devices Problem Cause Action Set character output in the output parameters for the character out- put processing items such as Character Inspection, Barcode, The read or collated string is not Character output has not been 2DCode.
  • Page 253 2 Methods for Connecting and Communicating with External Devices l A PLC Link Error Occurred Problem Cause Action You try to use a wrong combina- tion for communication protocols Use a proper combination for such as PLC Link and EtherNet/IP communication protocols.
  • Page 254: Communicating By Ethernet/Ip

    2 Methods for Connecting and Communicating with External Devices Communicating by EtherNet/IP This section describes the communication settings, communication specifications, input/output for- mats, and the communication timing charts during communications, which are required for EtherNet/IP communications between the Sensor Controller and an external device. 2-3-1 Introduction to EtherNet/IP EtherNet/IP is an industrial multi-vendor network using Ethernet.
  • Page 255: Data Exchange With Ethernet/Ip

    2 Methods for Connecting and Communicating with External Devices 2-3-2 Data Exchange with EtherNet/IP Communications with EtherNet/IP Data is cyclically exchanged between Ethernet devices on the EtherNet/IP network with tag data links below. Originator Target Sensor Controller Connection Output tag set name: Input tag set name: A Connection from Input_101...
  • Page 256 2 Methods for Connecting and Communicating with External Devices EtherNet/IP Communication Cycle (RPI) The tag data link communications by EtherNet/IP update data at a communication interval called RPI (Requested Packet Interval). All data exchange between the Sensor Controller and an external device such as a PLC is performed at the set RPI.
  • Page 257 2 Methods for Connecting and Communicating with External Devices Example 2: Duration of Change in Sensor Controller Signal > RPI 10 ms Sensor Controller Output period 50 ms Output time 30 ms (ON: 30 ms, OFF: 20 ms) Output control None Communications The packet interval (RPI) is correct.
  • Page 258: Ethernet/Ip Communications

    The settings for tag data links are performed with the support software dedicated to it. When you connect to an OMRON Controller to communicate with it via EtherNet/IP, use the Network Configurator to perform the tag data link settings such as tag, tag set, and connection setting.
  • Page 259: Communications Processing Flow

    For details of the tag data link settings by Network Configurator, refer to 2-3-8 Setting Tag Data Link on page 2 - 208. Moreover, when a non-OMRON PLC or EtherNet/IP unit is connected, download the EDS file for the Sensor Controller from our OMRON website and follow the procedures in the user’s manual for the external devices to be connected and in the instruction for the software to set tag data link.
  • Page 260 2 Methods for Connecting and Communicating with External Devices 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...
  • Page 261: Communications Settings

    This section describe an example of how to set the settings for 3. Tag data link settings tag data links with an OMRON PLC using the Network Configu- rator. For details, refer to 2-3-8 Setting Tag Data Link on page 2 - 208.
  • Page 262: Communications Module Settings (Startup Settings)

    2 Methods for Connecting and Communicating with External Devices 2-3-6 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, click Tool - System Settings to open the system settings. On the Multiview Explorer on the left, select System settings - Startup - Startup setting and then click the Communication tab.
  • Page 263: Communication Specifications Settings

    2 Methods for Connecting and Communicating with External Devices 2-3-7 Communication Specifications Settings Set the output handshaking and output controls for communications. Precautions for Correct Use • Set the Communications Module to EtherNet/IP in the startup settings before setting the com- munications specifications.
  • Page 264 2 Methods for Connecting and Communicating with External Devices Additional Information • Sensor Controllers of the FH-1000/2000/3000/5000 series with four or eight Camera inputs have two Ethernet ports. Set the settings for the two Ethernet ports as follows: • Communication Module Settings: Use the same settings for both ports •...
  • Page 265 2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] a.b.c.d a: 1 to 223 b: 0 to 255 DNS server Enter the DNS server address. c: 0 to 255 d: 0 to 255 [10.5.5.100] a.b.c.d a: 1 to 223...
  • Page 266 2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] a.b.c.d a: 1 to 223 b: 0 to 255 Preferred WINS server Enter the WINS server address. c: 0 to 255 d: 0 to 255 [0.0.0.0] a.b.c.d a: 1 to 223...
  • Page 267 2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] ON at OK: ON when the judgment result is OK. For the overall judgment, ON when all judgment • Judge output ON at OK results are OK.
  • Page 268 2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] Valid only when Output control is set to Handshaking. A timeout error occurs when no response from ex- ternal devices is received at the following timing within the time that has been set.
  • Page 269 2 Methods for Connecting and Communicating with External Devices Precautions for Correct Use PLC Connection Timeout Interval Set the PLC connection timeout interval so that it is longer than the measurement processing time. For the timeout value, refer to2-3-3 EtherNet/IP Communications on page 2 - 196. 2 - 207 FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
  • Page 270: Setting Tag Data Link

    When you connect to an OMRON Controller to communicate with it via EtherNet/IP, use the Network Configurator to perform the tag data link settings such as tag, tag set, and connection setting.
  • Page 271 2 Methods for Connecting and Communicating with External Devices Description Setting item Command Area Response Area and Output Area The size will be the sum of the size of the Response Area, Data Output Area, and User Output Area. Result Data Format 0 is selected: •...
  • Page 272 2 Methods for Connecting and Communicating with External Devices l Settings the Sensor Controller (Device parameters Settings) Right-click the Sensor Controller on the network in the Network Configurator and select Parameter → Edit. As the Edit Device Parameter dialog box will open, perform the settings as necessary. Parameter Description Setting value...
  • Page 273 2 Methods for Connecting and Communicating with External Devices l Connection Settings Setting item Description Input tag set PLC_tag_set_name - [48 bytes] Originator device Connection type Any (default: Point to Point connection) (PLC) Output tag set PLC_tag_set_name - [20 bytes] Output tag set Input_101 - [48 Bytes] Target device...
  • Page 274 2 Methods for Connecting and Communicating with External Devices Setting Setting item Description Size value The sum of the size of the Command Output connection (for line 3 in Multi- Area and the User Input Area. line Random-trigger Mode) The sum of the size of the Response Area, Data Output Area, and User Input connection (for line 3 in Multi- Output Area.
  • Page 275: Output Data Settings (Processing Item Registration)

    2 Methods for Connecting and Communicating with External Devices 2-3-9 Output Data Settings (Processing Item Registration) Here, set the output items and output format to be used with EtherNet/IP. Registering Processing Items Register the processing items for data output in the measurement flow. Click Edit flow in the Toolbar.
  • Page 276 2 Methods for Connecting and Communicating with External Devices Additional Information • The number of outputtable items for single data output processing item is 8 to 64 depending on data output settings in each line. If you need to output more data items, use more than one Output Unit.
  • Page 277 2 Methods for Connecting and Communicating with External Devices Registering the Items to Output Set the output data with expressions. Click the Fieldbus Data Output icon in the measurement unit list (flow). In the Item tab area, click Setting. In the list, click the output data number to set the expression. The selected output data number is displayed under the list.
  • Page 278 2 Methods for Connecting and Communicating with External Devices Additional Information 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 279 2 Methods for Connecting and Communicating with External Devices 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. Setting value Setting item Description [Factory default]...
  • Page 280: Setting Output Data (Numerical Values And Character Strings)

    2 Methods for Connecting and Communicating with External Devices 2-3-10 Setting Output Data (Numerical Values and Character Strings) Registering Processing Items Register the processing items for data output in the measurement flow. In the Main window, click Edit flow in the Toolbar. Click Result output (I/O) in the processing item tree.
  • Page 281 2 Methods for Connecting and Communicating with External Devices Setting the Output Device Here, set a communication method when data is output. Click Result output (I/O) icon in the unit list (flow) or Set to set the output device and the output data.
  • Page 282 2 Methods for Connecting and Communicating with External Devices Setting the Output Data Here, set the data to output such as processing item data or fixed character strings. In the item tab area, click Output data. The Result output (I/O) setting window is displayed. a) Setting data display area The No.
  • Page 283 2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] • Integer • Data type Double Sets the data type. • String There are two input methods. • Data ― Enter strings directly • Assign variables Title ―...
  • Page 284 2 Methods for Connecting and Communicating with External Devices Data type Description • Entered data is handled as four-byte data. • Allowable entering range is a range of signed INT. • When string variables are specified for data, character strings like digits which can be converted into numerical values will be converted and output.When dec- imal digits are included, they are truncated.Moreover, they are handled as “0”...
  • Page 285 2 Methods for Connecting and Communicating with External Devices (2) In the case where assignment variable is assigned o data: Directly enter a variable name (Scene variable: SC. ) or specify a variable in Variable assignment window displayed by clicking •...
  • Page 286 2 Methods for Connecting and Communicating with External Devices Example: Click OK in the end of entering data to close the settings. 2 - 224 FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
  • Page 287: Testing Communications

    2 Methods for Connecting and Communicating with External Devices 2-3-11 Testing Communications Here, check whether or not the EtherNet/IP communication settings are correct. If communications cannot be established after the setup, use the following procedures to check the setting details and the communication status. Before Testing Communications Here, Serial (Ethernet) - Normal (UDP) communication module is used as an example to describe the procedures.
  • Page 288 2 Methods for Connecting and Communicating with External Devices Checking the Communication Status Use the ping command to check whether or not the Sensor Controller exists on the Ethernet network. With it, check that the Sensor Controller IP address has been correctly set and is correctly connected to the Ethernet network.
  • Page 289: Memory Allocation

    2 Methods for Connecting and Communicating with External Devices 2-3-12 Memory Allocation This section describes the assignments of the Command Area for the input connection to the Sensor Controller and the Response Area and Output Area for the output connection to the PLC. Input Connection to the Sensor Controller (PLC (Originator) to Sen- sor Controller (Target)) For the input connections to the Sensor Controller, specifies the control inputs, command codes, com-...
  • Page 290 2 Methods for Connecting and Communicating with External Devices Set the first channel in Name Command Area. User Input User Input Area 5 Area 5 Signal Signal name Function Command Execu- Performs a command. For details, refer to2-3-15 Command List tion Bit on page 2 - 242.
  • Page 291 2 Methods for Connecting and Communicating with External Devices l Response Area First chan- nel in Re- Name sponse Area Control out- (2 CH) Command Code CMD-CODE (2 CH) Response Code RES-CODE (2CH) Response Data RES-DATA (2 CH) l Data Output Area When the User Area is used, data set as the number of output data in the EtherNet/IP output speci- fications are output followed by the data of the User Output Area.
  • Page 292 2 Methods for Connecting and Communicating with External Devices First chan- nel in Data Name Output Area Output data DATA7 User Output User Output Area 0 Area 0 User Output User Output Area 1 Area 1 User Output User Output Area 2 Area 2 User Output User Output Area 3...
  • Page 293 2 Methods for Connecting and Communicating with External Devices Signal Signal name Function Outputs the data set in the output processing item. DATA0 to 7 Output data 0 to 7 When more than one processing item exists, data is overwritten on this area by performing handshaking.
  • Page 294 2 Methods for Connecting and Communicating with External Devices Accessing Communication Areas Using Variables by NJ Series Controllers In Controllers of the NJ series, I/O memory addresses assigned to each communication area can be accessed from the user program only via variables. Follow the procedures below.
  • Page 295 2 Methods for Connecting and Communicating with External Devices Control Control Input Flag Command Control code Code Parameter 1 S_EIP Command Output Param1 Command Parameter 2 Param2 Command Parameter 3 Param3 • Data type to access the Response and Output Areas Name of data type: S_EIPInput Kind of derived data type: Structure Name of data type...
  • Page 296 2 Methods for Connecting and Communicating with External Devices For these variables, the data types defined in step 1 are used. Network publish Variable Variable type Data type Application attribute For data links for EIPOutput Global variable Output S_EIPOutput the Command Area For data links for EIPInput...
  • Page 297 2 Methods for Connecting and Communicating with External Devices Signal name Variable name XFLG EIPInput.StatusFlag.F[8] XBUSY EIPInput.StatusFlag.F[9] XWAIT EIPInput.StatusFlag.F[10] EIPInput.StatusFlag.F[15] GATE EIPInput.StatusFlag.F[16] Command Code EIPInput.CommandCodeEcho Response Code EIPInput.ResposeCode Response Data EIPInput.ResposeData • Output area Signal name Variable name Output data 1 EIPInput.OutputData[0] Output data 8 EIPInput.OutputData[7]...
  • Page 298 2 Methods for Connecting and Communicating with External Devices Originator device (PLC) settings Target device (Sensor Controller) settings Output tag set: D100 Input tag set: Output100 Variables Used to Access the Command Area in the PLC from Command Area (PLC Output Tag D0) the User Program I/O memory Settings...
  • Page 299: I/O Signals

    2 Methods for Connecting and Communicating with External Devices 2-3-13 I/O Signals The following tables list the signals used to control I/O for EtherNet/IP. Input Signals ON/OFF timing Signal Signal name Function OFF to ON ON to OFF The user (PLC) turns The user (PLC) this signal ON when is- switches this signal...
  • Page 300 2 Methods for Connecting and Communicating with External Devices ON/OFF timing Signal Signal name Function OFF to ON ON to OFF The user (PLC) This is turned on when switches the signal from This signal switches a command will be per- OFF to ON when it in- from ON to OFF when Flow Com-...
  • Page 301 2 Methods for Connecting and Communicating with External Devices ON/OFF timing Signal Signal name Function OFF to ON ON to OFF • Without handshaking The signal turns ON when the Sensor Controller performs the Output Unit (Fieldbus Data Out- • Without handshaking The signal informs the put Unit)
  • Page 302 2 Methods for Connecting and Communicating with External Devices ON/OFF timing Signal Signal name Function OFF to ON ON to OFF The signal switches The signal is turned ON The signal indicates from ON to OFF when when a command per- Flow Com- that a command per- the Flow Command...
  • Page 303: Output Items

    2 Methods for Connecting and Communicating with External Devices 2-3-14 Output Items Measurement Results for which Output is Possible (Fieldbus Data Output) The following data can be output using the processing items related to the Result Output. Measurement values are also referred using processing units such as expressions. Measurement Character string Description...
  • Page 304: Command List

    2 Methods for Connecting and Communicating with External Devices 2-3-15 Command List This section describes the commands used in EtherNet/IP. A command with command words in the Command Area first channel can be performed in both tag data link and message communications. A command without command words in the Command Area first channel can be performed only in message communications.
  • Page 305 2 Methods for Connecting and Communicating with External Devices l Commands to Get Status First word in Response Area Function Reference 0020 1000 Gets the current scene number. page A - 30 0020 2000 Gets the current scene group number. page A - 30 0020 4000...
  • Page 306 2 Methods for Connecting and Communicating with External Devices First word in Response Area Function Reference 0030 8030 Sets the ON/OFF status of all parallel DO terminals. page A - 56 Switches the currently logged in account. page A - 57 0030 A000 Sets the state of the operation log.
  • Page 307 2 Methods for Connecting and Communicating with External Devices l File Load Commands First word in Response Area Function Reference Loads the scene data. page A - 75 Loads the scene group data. page A - 75 Loads the system data. page A - 76 Loads the system + scene group 0 data.
  • Page 308: Command Response Processing

    2 Methods for Connecting and Communicating with External Devices 2-3-16 Command Response Processing About control command response processing, the following timing chart describes the ON/OFF timing of signals related to commands to be input. l Timing Chart for Command Execution The Command Request (EXE) signal is used as the trigger to input and execute various com- mands such as measurement execution stored in advance in the PLC memory.
  • Page 309 2 Methods for Connecting and Communicating with External Devices When detecting that the Command Request (EXE) signal is OFF, the Sensor Controller automatically turns OFF the Command Reception (ACK) signal and the Command Completion (FLG) signal auto- matically. l Continuous Measurement Command (Without handshaking) Continuous execution is used to repeatedly execute measurement by starting the next measure- ment operation (image input and measurement processing) as soon as single measurement opera- tion (image input and measurement processing) is completed.
  • Page 310 2 Methods for Connecting and Communicating with External Devices The PLC (user) turns OFF the Command Request (EXE) signal when the Command Completion (FLG) signal turns ON. After detecting that the Command Request (EXE) signal has turned OFF, the Sensor Controller starts continuous measureent and turns ON the Command Reception (ACK) signal and the BUSY signal.
  • Page 311 2 Methods for Connecting and Communicating with External Devices While the BUSY signal is OFF, measurement starts by the rising edge of the Measurement Trigger Ex- ecute (STEP) signal. The starting measurement turns ON the BUSY signal. The Measurement Trigger Execute (STEP) signal is turned OFF when the BUSY signal turns ON. The Overall Judgement (OR) signal is output when measurement is completed.
  • Page 312: Data Output

    2 Methods for Connecting and Communicating with External Devices 2-3-17 Data Output This section describes the ON/OFF timing for signals related to measurement data output after meas- urement completion using the following timing chart. l Without handshaking Fieldbus Data Output Fieldbus Data Output Unit execution Unit execution...
  • Page 313 2 Methods for Connecting and Communicating with External Devices The PLC turns ON the Result Set Request (DSA) signal at the same time as the STEP or Fieldbus Data Output Fieldbus Data Output Command Request (EXE) signal and waits for Unit execution Unit execution the first output data.
  • Page 314: Timing Chart

    2 Methods for Connecting and Communicating with External Devices 2-3-18 Timing Chart This section describes the ON/OFF timing for signals related to the sequence of operation from control command input until measurement data output after measurement completion using the following tim- ing chart.
  • Page 315 2 Methods for Connecting and Communicating with External Devices Additional Information 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.
  • Page 316 2 Methods for Connecting and Communicating with External Devices The Sensor Controller turns the Data Output Completion (GATE) signal ON when the data is output to the Data Output Area. The Sensor Controller turns the Data Output Completion (GATE) signal OFF after the time set at the Output time in the EtherNet/IP settings has passed.
  • Page 317: Communicating With The Sensor Controller Using Ethernet/Ip Message Communications

    2 Methods for Connecting and Communicating with External Devices 2-3-19 Communicating with the Sensor Controller using EtherNet/IP Message Communications Message communications are used to communicate with a PLC that does not support tag data link communications or to use functions such as character string output that are not supported by tag data link.
  • Page 318 2 Methods for Connecting and Communicating with External Devices Range Data type Description Min. value Max. value BOOL Boolean 0: FALSE 1: TRUE SINT Short integer -128 Integer -32768 32767 DINT Double-precision integer USINT Unsigned short integer UINT Unsigned integer 65535 UDINT Unsigned double-precision integer...
  • Page 319 2 Methods for Connecting and Communicating with External Devices Service Service code Name Description 14 (0E Hex) GetAttributeSingle This attribute gets the attribute value. This attribute sets a value for the attribute. Whether an attribute 16 (10 Hex) SetAttributeSingle can be set depends on the access attribute of it. •...
  • Page 320: Example For Command Settings

    2 Methods for Connecting and Communicating with External Devices Class ID:100 (64 Hex) Vision Sensor Object These objects are specific for the Sensor Controller and can exchange character string data with a for- mat equivalent to commands for the non-procedure protocol. Character strings that are not supported in tag data link can be output.
  • Page 321: Ethernet/Ip Troubleshooting

    2 Methods for Connecting and Communicating with External Devices Additional Information • To acquire data output from a processing unit, such as characters read in Character Inspec- tion, use the external reference data for the processing unit. Therefore, use the specified command which acquires the parameters or measurement val- For details, refer to UNITDATA or UD on page A - 168.
  • Page 322 2 Methods for Connecting and Communicating with External Devices Problem Cause Action A timeout error for tag data link oc- Communications between an exter- Set the timeout time for the com- curred nal device and the Sensor Control- munication error longer than the ler has been temporarily interrupt- processing time of the Sensor Con- troller or extends the measurement...
  • Page 323 2 Methods for Connecting and Communicating with External Devices Problem Cause Action Setting Measurement priority to Lower the priority of the measurement process can ease Missing of data occurs. Since the measurement load on the up. Note that the measurement Data Output Completion (GATE) Sensor Controller becomes heavy, time will delay.
  • Page 324: Communicating By Profinet

    2 Methods for Connecting and Communicating with External Devices Communicating by PROFINET This section describes the communication settings, communication specifications, input/output for- mats, and the communication timing chart required for communications by PROFINET between the Sensor Controller and an external device. 2-4-1 Overview of PROFINET PROFINET is a network for industrial use that applies industrial Ethernet (100 Mbps, Full duplex) to...
  • Page 325 2 Methods for Connecting and Communicating with External Devices Precautions for Correct Use • For a network that many devices are connected, temporal heavy load on the network may cause communication errors or lower performance such as response delay or packet loss. Perform the verification under actual conditions before use.
  • Page 326 2 Methods for Connecting and Communicating with External Devices Function Overview This is used for parameter settings, IO device configuration, and reading device in- Acyclic parameter da- formation. ta/device identification This is set by record data CR. This is communication to upload alarms and status from IO devices to the IO con- Device/network diag- troller.
  • Page 327: Profinet Communications

    The settings for tag data links are performed with the support software dedicated to it. When you connect to an OMRON Controller to communicate with it via EtherNet/IP, use the Network Configurator to perform the tag data link settings such as tag, tag set, and connection setting.
  • Page 328: Communications Processing Flow

    For details of the IO data CR settings by CX Configurator FDT, refer to 2-4-7 IO Data Communication Settings on page 2 - 276. Moreover, when a non-OMRON PLC or PROFINET unit is connected, download the EDS file for the Sensor Controller from our OMRON website and follow the procedures in the user’s manual for the external devices to be connected and in the instruction for the software to set IO data CR.
  • Page 329 2 Methods for Connecting and Communicating with External Devices The flow of PROFINET communications between a PLC and the Sensor Controller is as follows. FH Sensor Controller Output Module Input Module Responds Output Slot when a command is (1) Command Area Input received.
  • Page 330: Communications Settings

    This section describes an example of how to set IO data CR with 3. IO data CR settings an OMRON PLC using the CX Configurator FDT. For details, refer to2-4-7 IO Data Communication Settings on page 2 - 276.
  • Page 331: Communications Module Settings (Startup Settings)

    2 Methods for Connecting and Communicating with External Devices 2-4-5 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, click Tool - System Settings to open the system settings. On the Multiview Explorer on the left, select System settings - Startup - Startup setting and then click the Communication tab.
  • Page 332: Communication Specifications Settings

    2 Methods for Connecting and Communicating with External Devices 2-4-6 Communication Specifications Settings Set the output handshaking and output controls for communications. Precautions for Correct Use • Set the Communications Module to PROFINET in the startup settings before setting the com- munications specifications.
  • Page 333 2 Methods for Connecting and Communicating with External Devices Additional Information • Sensor Controllers of the FH-1000/2000/3000/5000 series with four or eight Camera inputs have two Ethernet ports. Set the settings for the two Ethernet ports as follows: • Communication Module Settings: Use the same settings for both ports •...
  • Page 334 2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] • Obtain an IP ad- Set the IP address for the Sensor Controller. dress automatically. When Obtain an IP address automatically is • selected, the IP address of the Sensor Con- [Use the following IP troller will be automatically obtained.
  • Page 335 2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] • Obtain an IP ad- dress automatically. • [Use the following IP address] a.b.c.d a: 1 to 223 b: 0 to 255 IP Address c: 0 to 255 d: 0 to 254 [10.5.6.100]...
  • Page 336 2 Methods for Connecting and Communicating with External Devices On the Main window, click Tool - System Settings to open the system settings. Select System Settings - Communication - PROFINET. The PROFINET view is displayed. Set each item. Set value Setting item Description [Factory default]...
  • Page 337 2 Methods for Connecting and Communicating with External Devices Set value Setting item Description [Factory default] Valid only when Output control is set to Handshaking. A timeout error occurs when no response from ex- ternal devices is received at the following timing within the time that has been set.
  • Page 338: Io Data Communication Settings

    The communication areas in the PLC used for IO data communications with the Sensor Controller are set by assigning the I/O memory address with an engineering tool such as CX Configurator FDT. When an OMRON controller is connected and communicate via PROFINET, use CX Configurator FDT to assign the I/O memory address.
  • Page 339 Watchdog Factor respectively by clicking Configuration - IO Device Setup. • Maximum size for the data output in Multiple-line Random-trigger mode When a OMRON PROFINET interface unit is used, the allocatable data size to the slots in the Multiple-line Random-trigger mode will be limited up to 416 bytes.
  • Page 340: Output Data Settings (Processing Item Registration)

    2 Methods for Connecting and Communicating with External Devices 2-4-8 Output Data Settings (Processing Item Registration) Here, set the output items and output format to be used with PROFINET. Registering Processing Items Register the processing items for data output in the measurement flow. Click Edit flow in the Toolbar.
  • Page 341 2 Methods for Connecting and Communicating with External Devices Additional Information • The number of outputtable items for single data output processing is 8 depending on data output settings in each lines. If you need to output more data items, use more than one Out- put Unit.
  • Page 342 2 Methods for Connecting and Communicating with External Devices Specify the processing items, measurement results, and measurement data in the expression. Arithmetic or function calculations can be applied to the measurement data to output. For details of the calculation settings, refer to Calculation in the Vision System FH/FHV Series Processing Items Reference Manual (Cat.
  • Page 343 2 Methods for Connecting and Communicating with External Devices 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. Setting value Setting item Description [Factory default]...
  • Page 344: Setting Output Data (Numerical Values And Character Strings)

    2 Methods for Connecting and Communicating with External Devices 2-4-9 Setting Output Data (Numerical Values and Character Strings) Registering Processing Items Register the processing items for data output in the measurement flow. In the Main window, click Edit flow in the Toolbar. Click Result output (I/O) in the processing item tree.
  • Page 345 2 Methods for Connecting and Communicating with External Devices Setting the Output Device Here, set a communication method when data is output. Click Result output (I/O) icon in the unit list (flow) or Set to set the output device and the output data.
  • Page 346 2 Methods for Connecting and Communicating with External Devices Setting the Output Data Here, set the data to output such as processing item data or fixed character strings. In the item tab area, click Output data. The Result output (I/O) setting window is displayed. a) Setting data display area The No.
  • Page 347 2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] • Integer • Data type Double Sets the data type. • String There are two input methods. • Data Enter strings directly • Assign variables Title Enters the description for data.
  • Page 348 2 Methods for Connecting and Communicating with External Devices Data type Description • Entered data is handled as four-byte data. • Allowable entering range is a range of signed INT. • When string variables are specified for data, character strings like digits which can be converted into numerical values will be converted and output.When dec- imal digits are included, they are truncated.Moreover, they are handled as “0”...
  • Page 349 2 Methods for Connecting and Communicating with External Devices (2) In the case where assignment variable is assigned o data: Directly enter a variable name (Scene variable: SC. ) or specify a variable in Variable assignment window displayed by clicking •...
  • Page 350 2 Methods for Connecting and Communicating with External Devices Example: Click OK in the end of entering data to close the settings. 2 - 288 FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
  • Page 351: Testing Communications

    2 Methods for Connecting and Communicating with External Devices 2-4-10 Testing Communications Here, check whether or not the PROFINET communication settings are correct. If communications cannot be established after the setup, use the following procedures to check the setting details and the communication status. Before Testing Communications Here, Serial (Ethernet) - Normal (UDP) communication module is used as an example to describe the procedures.
  • Page 352 2 Methods for Connecting and Communicating with External Devices 1. On the Main Window, select [Tool] − [System Settings]. In the tree view on the left, select [System Settings] − [Communication] − [Ethernet Normal (xyz)]. (“xyz” depends on the Communications Module.) 2.
  • Page 353 2 Methods for Connecting and Communicating with External Devices Connect the Sensor Controller and a computer with an Ethernet cable. Set the high-order digits of the computer IP address to the same values as the Sensor Control- ler and the low-order one digit to a different value. <IP Address Setting Example>...
  • Page 354: Memory Allocation

    2 Methods for Connecting and Communicating with External Devices 2-4-11 Memory Allocation This section describes the assignments of the Command Area for the input connection to the Sensor Controller and the Response Area and Output Area for the output connection to the PLC. Input Connection to the Sensor Controller (PLC (IO Controller) to Sensor Controller (IO Device)) For the input connections to the Sensor Controller, specifies the control inputs, command codes, com-...
  • Page 355 2 Methods for Connecting and Communicating with External Devices Set the first channel in Name Command Area. User Input User Input Area 5 Area 5 Signal Signal name Function Performs a command. For details, Command Execution Bit refer to2-4-14 Command List on page 2 - 303.
  • Page 356 2 Methods for Connecting and Communicating with External Devices Output Connection to PLC (Sensor Controller (IO Device) to PLC (IO Controller)) For output connections to the PLC, execution results and output data from the Sensor Controller are set. The execution results such as control outputs, command codes, response codes, and response data are output to the Response Area, and the output data from the Sensor Controller or the User Out- put Area is output to the Data Output Area.
  • Page 357 2 Methods for Connecting and Communicating with External Devices First chan- nel in Data Name Output Area Output data DATA0 Output data DATA1 Output data DATA2 Output data DATA3 Output data DATA4 Output data DATA5 Output data DATA6 Output data DATA7 User Output User Output Area 0...
  • Page 358 2 Methods for Connecting and Communicating with External Devices Signal Signal name Function Turns ON when execution of an entered command during the Flow Command XFLG execution for the Fieldbus flow control is completed, i.e. Completion Bit XBUSY: ON to OFF). Flow Command Turns ON when an entered command is in execution during the XBUSY...
  • Page 359 2 Methods for Connecting and Communicating with External Devices Define variables with AT (assigned destination) specifications to the I/O memory addresses as- signed to each communication area as shown below. Setting example Variable AT specification Data type SensorOut_EXE D0.0 BOOL SensorOut_STEP D0.1 BOOL...
  • Page 360: I/O Signals

    2 Methods for Connecting and Communicating with External Devices 2-4-12 I/O Signals The following tables list the signals used to control I/O for EtherNet/IP. Input Signals ON/OFF timing Signal Signal name Function OFF to ON ON to OFF The user (PLC) turns The user (PLC) this signal ON when is- switches this signal...
  • Page 361 2 Methods for Connecting and Communicating with External Devices ON/OFF timing Signal Signal name Function OFF to ON ON to OFF The user (PLC) This is turned on when switches the signal from This signal switches a command will be per- OFF to ON when it in- from ON to OFF when Flow Com-...
  • Page 362 2 Methods for Connecting and Communicating with External Devices ON/OFF timing Signal Signal name Function OFF to ON ON to OFF • Without handshaking The signal turns ON when the Sensor Controller performs the Output Unit (Fieldbus Data Out- • Without handshaking The signal informs the put Unit)
  • Page 363 2 Methods for Connecting and Communicating with External Devices ON/OFF timing Signal Signal name Function OFF to ON ON to OFF The signal switches The signal is turned ON The signal indicates from ON to OFF when when a command per- Flow Com- that a command per- the Flow Command...
  • Page 364: Output Items

    2 Methods for Connecting and Communicating with External Devices 2-4-13 Output Items Measurement Results for which Output is Possible (Fieldbus Data Output) The following data can be output using the processing items related to the Result Output. Measurement values are also referred using processing units such as expressions. Measurement Character string Description...
  • Page 365: Command List

    2 Methods for Connecting and Communicating with External Devices 2-4-14 Command List This section describes the commands used in PROFINET. A command with command words in the Command Area first channel can be performed in IO data communications. For details of commands in IO data communications, refer to A-1-4 Command Details for PLC Link, EtherNet/IP, EtherCAT, and PROFINET on page A - 15.
  • Page 366 2 Methods for Connecting and Communicating with External Devices First word in Response Area Function Reference Gets the sub-image number that is currently displayed in 0020 5020 page A - 32 the specified image display window. Gets the image mode for the specified image display win- 0020 5030 page A - 34...
  • Page 367 2 Methods for Connecting and Communicating with External Devices l Commands to Read Data First word in Response Area Function Reference 0040 1000 Gets the specified processing unit data. page A - 59 0040 4050 Gets the conditions set for data logging. page A - 66 0040 4060...
  • Page 368: Command Response Processing

    2 Methods for Connecting and Communicating with External Devices 2-4-15 Command Response Processing About control command response processing, the following timing chart describes the ON/OFF timing of signals related to commands to be input. l Timing Chart for Command Execution The Command Request (EXE) signal is used as the trigger to input and execute various com- mands such as measurement execution stored in advance in the PLC memory.
  • Page 369 2 Methods for Connecting and Communicating with External Devices l Continuous Measurement Command (Without handshaking) Continuous execution is used to repeatedly execute measurement by starting the next measure- ment operation (image input and measurement processing) as soon as single measurement opera- tion (image input and measurement processing) is completed.
  • Page 370 2 Methods for Connecting and Communicating with External Devices <Operation to End Continuous Measurement> The PLC (user) sets the End Continuous Measurements command code during execution of continu- ous measurement by the Start Continuous Measurements command. The Command Request (EXE) signal is then turned ON and the instruction is sent to the Sensor Con- troller.
  • Page 371: Data Output

    2 Methods for Connecting and Communicating with External Devices The BUSY signal is turned OFF when the measurement flow is completed. 2-4-16 Data Output This section describes the ON/OFF timing for signals related to measurement data output after meas- urement completion using the following timing chart. l Without handshaking Fieldbus Data Output Fieldbus Data Output...
  • Page 372 2 Methods for Connecting and Communicating with External Devices Data prepared for output which an Output Unit has been already performed in the measurement flow. The PLC turns ON the Result Set Request (DSA) signal at the same time as the STEP or Fieldbus Data Output Fieldbus Data Output Command Request (EXE) signal and waits for...
  • Page 373: Timing Chart

    2 Methods for Connecting and Communicating with External Devices 2-4-17 Timing Chart This section describes the ON/OFF timing for signals related to the sequence of operation from control command input until measurement data output after measurement completion using the following tim- ing chart.
  • Page 374 2 Methods for Connecting and Communicating with External Devices Additional Information 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.
  • Page 375 2 Methods for Connecting and Communicating with External Devices Next, confirm that the BUSY signal and the Command Completion (FLG) signal have turned OFF and then turn ON the Command Request (EXE) signal. A request is sent to the Sensor Controller. The Sensor Controller turns ON the BUSY signal and executes measurement processing when the request is received.
  • Page 376: Profinet Troubleshooting

    Make sure that the EDS file version the Sensor Controller. from the firmware one. matches the firmware version. In OMRON PROFINET interface The total of the output data size ex- Adjust the output data size so that unit, the IO data settings cannot be ceeds the maximum size capable the total size is within 416 bytes.
  • Page 377 2 Methods for Connecting and Communicating with External Devices Problem Cause Action A timeout error for the IO controller The watchdog in the IO controller Increase the value set at the Up- occurred and the connection was operated and a timeout error occur- date Rate of the IO controller or disconnected.
  • Page 378: Non-Procedure Communications

    2 Methods for Connecting and Communicating with External Devices 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. 2-5-1 Communications Processing Flow The Sensor Controller communicates with an external device using command-based Non-procedure communications via Ethernet or RS-232C/422.
  • Page 379: Communications Setup Procedures

    2 Methods for Connecting and Communicating with External Devices 2-5-2 Communications Setup Procedures The following settings are required to use Non-procedure. ··· The communication method to be used is determined by select- 1. Communication Mod- ing a communication module. ule settings For details, refer to 2-5-3 Communications Module Settings (Startup settings) (Startup Settings) on page 2 - 317.
  • Page 380 2 Methods for Connecting and Communicating with External Devices Select one of the following Communication Modules based on the communication method used to connect with the Sensor Controller and the Unit to be connected, and then click Apply. Communications Module Description Serial (Ethernet) Performs Non-procedurecommunications through an Ethernet...
  • Page 381: Communications Specifications Settings

    2 Methods for Connecting and Communicating with External Devices 2-5-4 Communications Specifications Settings 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. For details, refer to 2-5-7 Testing Communications on page 2 - 338.
  • Page 382 2 Methods for Connecting and Communicating with External Devices Additional Information • Sensor Controllers of the FH-1000/2000/3000/5000 series with four or eight Camera inputs have two Ethernet ports. Set the settings for the two Ethernet ports as follows: • Communication Module Settings: Use the same settings for both ports •...
  • Page 383 2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] • Obtain an IP ad- Set the IP address for the Sensor Controller. dress automatically. When Obtain an IP address automatically is • selected, the IP address of the Sensor Con- [Use the following IP troller will be automatically obtained.
  • Page 384 2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] • Obtain an IP ad- dress automatically. • [Use the following IP address] a.b.c.d a: 1 to 223 b: 0 to 255 IP Address c: 0 to 255 d: 0 to 254 [10.5.6.100]...
  • Page 385 2 Methods for Connecting and Communicating with External Devices Connecting via RS-232C Additional Information • Input signals cannot be handled during setting of communications specifications. However, the input status can be checked with Confirmation. For details, refer to 2-5-7 Testing Communications on page 2 - 338. •...
  • Page 386: Output Data Settings (Processing Item Registration)

    2 Methods for Connecting and Communicating with External Devices Set value Setting item Description [Factory default] • Data length [bit] • • [None] Align the communication specifications with the external de- • parity vice. • Even • Stop bit [bit] •...
  • Page 387 2 Methods for Connecting and Communicating with External Devices Registering Processing Items Register the processing items for data output in the measurement flow. Select the Data Output processing item in the processing item tree. Click Append. The Data Output processing item is added at the bottom of the unit list (flow). Click Data Output icon and set the data output items and data format.
  • Page 388 2 Methods for Connecting and Communicating with External Devices The selected output data number is displayed under the list. Click next to the expression text box and set the expression. Specify the processing items, measurement results, and measurement data in the expression. Arithmetic or function calculations can be applied to the measurement data to output.
  • Page 389 2 Methods for Connecting and Communicating with External Devices Additional Information 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 390 2 Methods for Connecting and Communicating with External Devices Select the output format in Format setting. Setting value Setting item Description [Factory default] Outputs ASCII text. For details, refer to [ASCII] Character Code Table in the Vision System FH/FHV/FZ5 Output format Series User’s Manual (Cat.
  • Page 391 2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] • [- ] Select what is displayed in the sign digit for a negative Minus • number. • [None] Select what is displayed in the sign digit for a positive num- Plus •...
  • Page 392: Output Data Settings (Numerical Values/Character Strings)

    2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] The settings of the Ethernet View are applied. One of the following Ethernet Views is used to make the set- tings. • PLC Link Communications Settings [Refer System refer to 2-2-4 Communication Specifications Settings on (Ethernet)]...
  • Page 393 2 Methods for Connecting and Communicating with External Devices Setting the Output Device Here, set a communication method when data is output. Click the icon of Result output (Message) in the unit list (flow) or Set to set the output de- vice.
  • Page 394 2 Methods for Connecting and Communicating with External Devices Additional Information • Data is not output when test measurements are executed in TDM editor. • When Not output is selected in Output device, no data is output. However, Output data to the file has been checked, the data logging is executed.
  • Page 395 2 Methods for Connecting and Communicating with External Devices Setting the Output Data Set the data to output such as processing item data or fixed character strings. In the item tab area, click Output data. The setting window for Result output I/O is displayed. a) Setting data display area Display the No.
  • Page 396 2 Methods for Connecting and Communicating with External Devices Contents in the output data display area in binary (Hex) are displayed in this area. In the list, select the output data number to set the output and then click Insert. The following Output data editing dialog box is displayed.
  • Page 397 2 Methods for Connecting and Communicating with External Devices Data type Description • Number Entered data is converted into strings according to specified Digits of integer, Digits of decimal, 0 suppress, and Minus. • The number of total digits (integer + decimal) is 15. If it exceeds 15 digits the output data becomes “#ER”.
  • Page 398 2 Methods for Connecting and Communicating with External Devices Enter data, number or string, to Data text box. Directly enter a variable name (Scene variable: SC. ) or specify a variable in Variable assignment window displayed by clicking • When directly entering a variable name, enclose it with “ ”, e.g. “SC.AA&”. •...
  • Page 399 2 Methods for Connecting and Communicating with External Devices Example: Click OK in the end of entering data to close the settings. 2 - 337 FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
  • Page 400: Testing Communications

    2 Methods for Connecting and Communicating with External Devices 2-5-7 Testing Communications You can check whether the Normal(UDP) communications settings are correct. If communications cannot be performed even after set up the communications, use the following pro- cedure to check the settings and the communications status. When checking the communication settings, stop the program on the PLC.
  • Page 401 2 Methods for Connecting and Communicating with External Devices Additional Information 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. If you properly receive a response from the destination device, the network connection and net- work settings are correctly set.
  • Page 402 2 Methods for Connecting and Communicating with External Devices RS-232C/422 Communications l Before Performing a Communications Test This example assumes that Serial (RS-232C/422) − Normal or Normal (Fxxx series method) is se- lected as the Communications Module. When checking the communication settings, stop the program on the PLC. l Checking the Communication Settings Use the following procedures to check whether or not the communication settings are correct.
  • Page 403: Output Items

    2 Methods for Connecting and Communicating with External Devices 2-5-8 Output Items Measurement Results That You Can Output with the Data Output Processing Item The following data can be output using the processing items related to the Result Output. Measurement values are also referred using processing units such as expressions. Measurement Character string Description...
  • Page 404 2 Methods for Connecting and Communicating with External Devices Additional Information If you are using external reference numbers 5 to 12 on an FZ4 or earlier model, use 1000 to 1007 on the FH/FHV. 2 - 342 FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
  • Page 405: Command Formats

    2 Methods for Connecting and Communicating with External Devices 2-5-9 Command Formats This section describes the format of commands to be used in Non-procedure communicaitons. Precautions for Correct Use Japanese characters cannot be used. To load a scene or other data, set the file name with alphanumeric characters in advance. An Input Format Example ●...
  • Page 406 2 Methods for Connecting and Communicating with External Devices Additional Information In Ethernet, when the acquired data and the OK response are continuous, those are transmitted as a separate packet. ● When a parameter is a character string The character string must be enclosed with double quotation marks. Example: Save Scene with SCENESAVE command.
  • Page 407: Command List

    2 Methods for Connecting and Communicating with External Devices 2-5-10 Command List This section explains the input format for each command used for serial Non-procedure (normal) com- munications. Commands are input with ASCII text. Both lowercase and uppercase letters can be used. For details of commands, refer to A-1-5 Non-procedure Command Details on page A - 84.
  • Page 408 2 Methods for Connecting and Communicating with External Devices Abbrevia- Command Function Reference tion Gets the sub-image number that is currently dis- IMAGESUBNO page A - 115 played in the specified image display window. Gets the number of the Unit that is currently dis- IMAGEUNITNO page A - 117 played in the specified image display window.
  • Page 409 2 Methods for Connecting and Communicating with External Devices l Commands to Read Data Abbrevia- Command Function Reference tion DATALOGCOND Gets the conditions set for data logging. page A - 89 DATALOGFOLDER Gets the data logging folder name. page A - 91 DATE None Gets the date and time.
  • Page 410 2 Methods for Connecting and Communicating with External Devices l File Load Commands Abbrevia- Command Function Reference tion BKDLOAD None Loads the system + scene group 0 data. page A - 85 SCNLOAD None Loads the scene data. page A - 156 SGRLOAD None Loads the scene group data.
  • Page 411: Output Format

    2 Methods for Connecting and Communicating with External Devices 2-5-11 Output Format When the processing unit Data Output is placed in a scene, measurement results are sequentially out- put starting from the smallest data number set in Setting of Data Output. You can also place more than one Data Output Unit in the measurement flow.
  • Page 412 2 Methods for Connecting and Communicating with External Devices Outputting Binary Data Set the output format as Binary in Output form of the Data Output processing item. l Output Format Measured value x 1000 of Data 0 Measured value x 1000 of Data 1 Measured value x 1000 of Data 7 4 bytes 4 bytes...
  • Page 413: Non-Procedure Communications Troubleshooting

    2 Methods for Connecting and Communicating with External Devices 2-5-12 Non-procedure Communications Troubleshooting Cannot Input to the Sensor Controller Problem Cause Action Check the wiring. Check the cable The wiring is incorrect. connections. There is a problem with the com- Make sure that the settings are cor- munication specification settings.
  • Page 414 2 Methods for Connecting and Communicating with External Devices Problem Cause Action Check whether or not the communi- cations are available between the Communications has not been es- Sensor Controller and external de- tablished just after the Sensor Con- vices after the Sensor Controller troller start-up.
  • Page 415 2 Methods for Connecting and Communicating with External Devices Communications Fail just After Start-up of the Sensor Controller Problem Cause Action The Sensor Controller does not re- Communications are not establish- After confirming that communica- spond even serial commands are ed just after start-up of the Sensor tions are available between the sent to it just after its start-up.
  • Page 416: Parallel Communications

    2 Methods for Connecting and Communicating with External Devices Parallel Communications This section describes the communication settings, communication specifications, input/output format, and communication timing chart required for parallel communications between the Sensor Controller and external devices. 2-6-1 Communications Processing Flow The Sensor Controller communicates with external devices via a parallel interface.
  • Page 417 2 Methods for Connecting and Communicating with External Devices : With the default settings, output is performed even if the overall judgement result is NG, but this can be changed so that output is performed only when the overall judgement result is OK. For details, refer to Setting the Output Signal Specifications on page 2 - 360.
  • Page 418: Communications Setup Procedures

    2 Methods for Connecting and Communicating with External Devices 2-6-2 Communications Setup Procedures The following settings are required to use Parallel. ··· The communication method to be used is determined by select- 1. Communication Mod- ing a communication module. ule settings For details, refer to 2-6-3 Communications Module Settings (Startup settings) (Startup Settings) on page 2 - 357.
  • Page 419: Communications Module Settings (Startup Settings)

    2 Methods for Connecting and Communicating with External Devices 2-6-3 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, click Tool - System Settings to open the system settings. On the Multiview Explorer on the left, select System settings - Startup - Startup setting and then click the Communication tab.
  • Page 420 2 Methods for Connecting and Communicating with External Devices 2-6-4 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.
  • Page 421 2 Methods for Connecting and Communicating with External Devices Additional Information The GATE signal will not be output if there is no data set for parallel judgment output and paral- lel data output. If only the OR signal is output, read the OR signal when the BUSY signal turns OFF. •...
  • Page 422 2 Methods for Connecting and Communicating with External Devices Setting the Output Signal Specifications You can change the operation of signals output with parallel communications. l 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 sig- nals when the judgment results are OK or when they are NG.
  • Page 423 2 Methods for Connecting and Communicating with External Devices l 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.
  • Page 424 2 Methods for Connecting and Communicating with External Devices l 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 work- piece immediately after the exposure is completed.
  • Page 425: Communications Specifications Settings

    2 Methods for Connecting and Communicating with External Devices Precautions for Correct Use • If more than one Camera is connected, the SHTOUT signal will remain ON for the Camera with the longest exposure time. • You cannot use the Shutter Output (SHTOUT) signal when the image mode is set for Through image.
  • Page 426 2 Methods for Connecting and Communicating with External Devices Set value Setting item Description [Factory default] Sets the polarity of the judgment result output sig- nal. ON at OK: ON when the judgment result is OK. • ON at OK For the overall judgment, ON when all judgment Judge output polarity •...
  • Page 427 2 Methods for Connecting and Communicating with External Devices Set value Setting item Description [Factory default] Valid only when Output control is set to None. 1.0 to 1000.0 Sets the GATE signal ON time. Set the time re- Output time [ms] [5.0] quired for external devices to acquire measure- ment results.
  • Page 428: Output Data Settings (Processing Item Registration)

    2 Methods for Connecting and Communicating with External Devices 2-6-5 Output Data Settings (Processing Item Registration) Set the data to output with parallel communications. The following three types of data can be output with parallel communications: • OR signal • Parallel judgment output •...
  • Page 429 2 Methods for Connecting and Communicating with External Devices If the measurement value is out of range, the actual measurement value is not output and the mini- mum or maximum value within the range is output instead. Measurement value that is below the Measurement value that is above the Data type possible output range...
  • Page 430 2 Methods for Connecting and Communicating with External Devices Additional Information Data is output in the order that Output Units are registered in the measurement flow, i.e., the timing is different for each data output processing unit. (Data output is executed in the order that it is executed in the measurement flow.) l Set the items to output In an expression, set the data to output (i.e., the measured value of a processing item or the calcu-...
  • Page 431 2 Methods for Connecting and Communicating with External Devices Additional Information Output When Multiple Items Are Set The items that are set for output data numbers 0 through 7 are output to the PLC reception buf- fer in ascending order, one data item at a time (16-bit units). Each time a data item is output, the GATE signal turns ON.
  • Page 432 2 Methods for Connecting and Communicating with External Devices Registering Parallel Judgment Output Items Use the following procedure to output the judgment results that are set for parallel output. l Registering Parallel Judgment Output Items Use the following procedure to output the judgment results that are set for parallel output. Click Edit flow in the toolbar or on the Main Window.
  • Page 433 2 Methods for Connecting and Communicating with External Devices The selected output data number is displayed under the list. Click next to the expression text box and set the expression. Specify the processing items, measurement results, and measurement data in the expression. Arithmetic or function calculations can be applied to the measurement data to output.
  • Page 434: Output Data Settings (Numerical Value/Judgment)

    2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] • [System (paral- Selects Output polarity lel)] System (parallel) or Unit to set the output polarity. • Unit System (par- Select when you want to match the output polarity of the allel) evaluation result to the system setting.
  • Page 435 2 Methods for Connecting and Communicating with External Devices The Result output (Parallel I/O) is appended at the bottom of the unit list (flow). Click the icon of Result output (Parallel I/O) in the unit list (flow) or Set to set the output data.
  • Page 436 2 Methods for Connecting and Communicating with External Devices In the Output data editing dialog, set data to output. For each data settings of integer and judgment, refer to Setting for Integer Output on page 2 - 374 and Setting for Judgment Output on page 2 - 375. Repeat step 1 to 2 for the number of data to output.
  • Page 437 2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] Title Sets the description for the set item with character strings. The character strings set here is displayed on the Title col- umn in the Setting data display area. Multilingual input is also available.
  • Page 438 2 Methods for Connecting and Communicating with External Devices Setting value Setting item Description [Factory default] Judgment condi- -999999999.9999 Sets the range between the lower and upper limits for the tion judgment. Lower limit and 999999999.9999 When a value set in the Data is within the range set here, it is upper limit values [0.0000] to judged as OK.
  • Page 439 2 Methods for Connecting and Communicating with External Devices Item Description Data 0 to 15 Inputs a numeric value or variable name for the judgment target using alphanumeric characters. Lower limit value 0 Specifies a lower limit value with numeric values. to 15 Upper limit value 0 Specifies a upper limit value with numeric values.
  • Page 440: Testing Communications

    2 Methods for Connecting and Communicating with External Devices 2-6-7 Testing Communications Use the following procedures to check the communications status with the external devices connected with a parallel interface. You can check whether wiring and communications settings have been per- formed correctly.
  • Page 441 2 Methods for Connecting and Communicating with External Devices Each time ON and OFF are switched, the changed contents are displayed on the monitors of external devices. Make sure there are no problems. Additional Information For the FZ5-800/1100/1200 series, DO0 to DO7 of line 1 are assigned to the DO8 to DO15 par- allel terminals.
  • Page 442: I/O Signals

    2 Methods for Connecting and Communicating with External Devices 2-6-8 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 STEP Measurement Input measurement trig-...
  • Page 443 2 Methods for Connecting and Communicating with External Devices ON/OFF timing Signal Signal name Function OFF to ON ON to OFF ENC (Phase A, Encoder Input This is the encoder in- B, or Z) (Phase A, B, or put signal. Valid only when Use Encoder trigger is set in the system settings.
  • Page 444 2 Methods for Connecting and Communicating with External Devices ON/OFF timing Signal Signal name Function OFF to ON ON to OFF Overall Judg- Output the overall judg- Turn ON based on the The status of the OR ment signal ment. judgment results when signal is maintained un- This is determined...
  • Page 445 2 Methods for Connecting and Communicating with External Devices ON/OFF timing Signal Signal name Function OFF to ON ON to OFF • • GATE Data Output This signal indicates the No Handshaking: No Handshaking: Completion timing to load the output Turn ON when the The signal turns OFF signal...
  • Page 446 2 Methods for Connecting and Communicating with External Devices ON/OFF timing Signal Signal name Function OFF to ON ON to OFF READY Multi-input This signal indicates Turn ON when the Turn OFF when the Ready signal when the STEP signal STEP signal can be in- STEP signal cannot be can be input when the...
  • Page 447 2 Methods for Connecting and Communicating with External Devices ON/OFF timing Signal Signal name Function OFF to ON ON to OFF SHTOUT Shutter Output This signal indicates After the Camera expo- The signal turns OFF signal when Camera exposure sure is completed, the after the time set for the has been completed.
  • Page 448 2 Methods for Connecting and Communicating with External Devices ON/OFF timing Signal Signal name Function OFF to ON ON to OFF Error Signal This signal indicates Turn ON when the Sen- After the error is re- when the Sensor Con- sor Cotnroller detects moved, the user (PLC) troller of the FH/FHV...
  • Page 449 2 Methods for Connecting and Communicating with External Devices Two Lines Line number Line 0 Line 1 STEP STEP0 STEP1 DSA0 DSA1 DLINE DLINE0 (used for all lines) DI0 to DI7 (used for all lines) ENC1 Phase A, ENC1 Phase B, or ENC1 ENC0 Phase A, ENC0 Phase B, or ENC0 Phase Z Phase Z...
  • Page 450 2 Methods for Connecting and Communicating with External Devices Line number Line 0 Line 1 Line 2 Line 3 Line 4 Line 4 Line 6 Line 7 DILINE 0 to DILINE 1 (used for all lines) DLINE *DSA0 is assigned to DILINE1 and DSA1 is assigned to DILINE2. DI0 to DI7 (used for all lines) (Phase A, Phase B,...
  • Page 451 2 Methods for Connecting and Communicating with External Devices Parallel DI0 to DI6 1 ms Parallel DI7 Parallel BUSY signal Command Request ACK signal (Command Completion Flag) Timeout [s]* When executing continuous measurement commands, turn OFF DI7 when you want to stop continuous measurements, as shown below.
  • Page 452 2 Methods for Connecting and Communicating with External Devices Additional Information From the PLC, set signals DI0 to DI6 and turn ON the DI7 signal only when the BUSY, ACK, and DI7 signals are all OFF. From the PLC, you can check if a command was acknowledged by confirming that the BUSY signal turned ON.
  • Page 453: Output Items

    2 Methods for Connecting and Communicating with External Devices 2-6-9 Output Items In the FHV series, this processing item is unavailable. Parallel Data Output l 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 processing units such as expressions.
  • Page 454 2 Methods for Connecting and Communicating with External Devices Number Data name Set/Get Data range 0: No judgment (unmeasured) Judgment Get only 1: Judgment result OK -1: Judgment result NG 5 to 20 Data0 to Data 15 Get only -999999999.9999 to 999999999.9999 0: No judgment (unmeasured) 21 to 36 Judge 0 to Judge 15...
  • Page 455: Command Formats

    2 Methods for Connecting and Communicating with External Devices 2-6-10 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...
  • Page 456 2 Methods for Connecting and Communicating with External Devices Execution Command Set 0 (OFF) or 1 (ON) for each DI signal. Confirm commands and information, and turn DI7 (execution) ON with an interval of at least 1 [ms]. Precautions for Correct Use In FHV series, commands equivalent to those of the FH series is available when the Smart Camera data unit interface is connected.
  • Page 457 2 Methods for Connecting and Communicating with External Devices • FHV Input format (DI7 to DI0) Input exam- Data Description Execute Command (DI1, (DI7) DI0) Clears the measurement values, Clear Measure- OR signal, and Error signal. ment Values, Er- The ERROR indicator is also ror, OR cleared.
  • Page 458 2 Methods for Connecting and Communicating with External Devices l Multi-line Random-trigger Mode • FH Input format Input ex- (DI7 to DI0, DILINE0, DILINE1, and DILINE2) ample (DI- LINE2 to Com- Data Description DILINE0, Exe- Command Line number mand DI7 to DI5, cute information (DI6,...
  • Page 459: Time Charts

    2 Methods for Connecting and Communicating with External Devices Input format Input ex- (DI7 to DI0, DILINE0, DILINE1, and DILINE2) ample (DI- LINE2 to Com- Data Description DILINE0, Exe- Command Line number mand DI7 to DI5, cute information (DI6, and DI4 to (DI7) (DI4 to DI0) DI5)
  • Page 460 2 Methods for Connecting and Communicating with External Devices Output Control Timing Charts This section provides timing charts for each output control type (none, handshaking, and synchroniza- tion output). In the FHV series, there is no DO 0 to DO 15, GATE signal. Precautions for Correct Use •...
  • Page 461 2 Methods for Connecting and Communicating with External Devices Precautions for Correct Use Data Output Time and STEP Signal Input Interval Set the input interval for the STEP signal so that it is longer than the total output time. If the STEP signal input interval were shorter than the total output time, the data output buffer will eventually overflow and data will be lost.
  • Page 462 2 Methods for Connecting and Communicating with External Devices The user (PLC) reads the data and turns OFF the DSA signal when the GATE signal turns ON. A timeout error will occur, if the DSA signal were not turned OFF within the specified time after the GATE signal turned ON.
  • Page 463 2 Methods for Connecting and Communicating with External Devices l Output Control: Synchronization Control Operation When Number of Delays 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...
  • Page 464 2 Methods for Connecting and Communicating with External Devices Command Timing Charts Precautions for Correct Use • For details of functions and operation of each signal, refer to 2-6-8 I/O Signals on page 2 - 380. l Continuous Measurement Measurement is performed continuously while the DI7 signal is ON. Continuous measurement is stopped when the DI7 signal is turned OFF.
  • Page 465 2 Methods for Connecting and Communicating with External Devices Precautions for Correct Use • The measurement during continuous measurement is given priority. Therefore, display of the measurement results (overall judgment, images, judgment for each processing unit in the flow display, and detailed results) may sometimes not be updated. •...
  • Page 466 2 Methods for Connecting and Communicating with External Devices l Scene/Scene Group Switch Scenes and scene groups are switched as follows. After the number of the desired scene or scene group is set in DI0 to DI6, turning ON DI7 switches the scene or scene group to the number set.
  • Page 467 2 Methods for Connecting and Communicating with External Devices Signal Description DI0 to DI4 Sets the scene number (0 to 31). When a DI terminal offset is set, the set offset is added. Scene switching: OFF Scene Group switching: ON This is the execution trigger.
  • Page 468 2 Methods for Connecting and Communicating with External Devices l 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.
  • Page 469 2 Methods for Connecting and Communicating with External Devices l Clear Parallel OR+DO The OR signal and DO signals are cleared as follows. • Time Chart DI0 to DI6 signals 1000010 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 DI7.
  • Page 470 2 Methods for Connecting and Communicating with External Devices l Clear Error The error signal is cleared as follows. • Time Chart DI0〜DI6 signals 1000010 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 DI7.
  • Page 471 2 Methods for Connecting and Communicating with External Devices l Clear Measurement Values, Error, OR Clears the Measurement Values, OR signal and Error signal. The ERROR indicator is also cleared. • Time Chart The signal is turned OFF when the BUSY signal turns ON.
  • Page 472: Parallel Troubleshooting

    2 Methods for Connecting and Communicating with External Devices 2-6-12 Parallel Troubleshooting Problem Cause Action Data is not output at all. You have selected more than three Decrease the number of lines or lines in Multi-line Random-trigger use a communications method oth- Mode.
  • Page 473: Appendices

    Appendices Command Control ..................A - 2 A-1-1 Parameter Notation Examples for Command Control ........A - 2 A-1-2 Details of Commands Used in EtherCAT Communications ......A - 6 A-1-3 Command List....................A - 7 A-1-4 Command Details for PLC Link, EtherNet/IP, EtherCAT, and PROFINET .. A - 15 A-1-5 Non-procedure Command Details ..............
  • Page 474: A-1 Command Control

    Additional Information 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 475 Command code: (4000 0070 hex) +4 and +5 words Image data number: 1 (0000 0001 hex) +6 and +7 words Save destination: (USBDisk\IMG01\LABEL.IFZ) • OMRON or Yaskawa Electric PLCs Command (PLC to Sensor Controller) Hexa- First word in decimal Command...
  • Page 476 External reference number: 137 (0000 0089 hex) Lower limit of measurement coordinate X: 123.4 +8 and +9 words (x 1,000: 123,400 = 0001 E208 hex) • OMRON or Yaskawa Electric PLCs Command (PLC to Sensor Controller) Hexa- First word in...
  • Page 477 Appendices • Mitsubishi Electric PLCs Command (PLC to Sensor Controller) Hexa- First word in decimal Command Description nota- 15 - 12 11 - 8 7 - 4 3 - 0 Area tion 1000 0001 0000 0000 0000 Command code 0050 0000 0000 0101...
  • Page 478: A-1-2 Details Of Commands Used In Ethercat Communications

    Appendices A-1-2 Details of Commands Used in EtherCAT Communications Command codes and command parameters used in EtherCAT communications are specified as de- scribed below via the I/O port. Command Code :Holds the command code to execute. Command Parameter 0 to 3 :Holds the parameter for the command to execute.
  • Page 479: A-1-3 Command List

    Appendices A-1-3 Command List This section lists the commands that you can use with the FH or FHV series and the communications protocols for which each command is supported. Additional Information In addition to the standard communication commands that are given here, you can also create custom commands and define the processing for them.
  • Page 480 Appendices Non-pro- Parallel PLC link EtherCAT PROFINET EtherNet/IP cedure Ref.: Ref.: Ref.: Ref.: Function Ref.: Ref.: page page page page page 2 - 242 page 2 - 394 2 - 177 2 - 52 2 - 303 2 - 345 Returns the display posi- tion and display magnifi- cation to their default val-...
  • Page 481 Appendices l Commands to Get Status OK: Applicable command, RST: Command with restricted execution, NA: Non-applicable command Non-pro- PLC Link EtherCAT PROFINET EtherNet/IP cedure Ref.: Ref.: Ref.: Function Parallel Ref.: Ref.: page page page page 2 - 243 page 2 - 178 2 - 53 2 - 303 2 - 345...
  • Page 482 Appendices l Commands to Set Status OK: Applicable command, RST: Command with restricted execution, NA: Non-applicable command Non-pro- Parallel PLC link EtherCAT PROFINET EtherNet/IP cedure Ref.: Ref.: Ref.: Ref.: Function Ref.: Ref.: page page page page page 2 - 243 page 2 - 394 2 - 178...
  • Page 483 Appendices l Commands to Read Data OK: Applicable command, RST: Command with restricted execution, NA: Non-applicable command Non-pro- PLC link EtherCAT PROFINET EtherNet/IP cedure Ref.: Ref.: Ref.: Function Parallel Ref.: Ref.: page page page page 2 - 244 page 2 - 179 2 - 54 2 - 305 2 - 347...
  • Page 484 Appendices l Commands to Write Data OK: Applicable command, RST: Command with restricted execution, NA: Non-applicable command Non-pro- PLC link EtherCAT PROFINET EtherNet/IP cedure Ref.: Ref.: Ref.: Function Parallel Ref.: Ref.: page page page page 2 - 244 page 2 - 179 2 - 54 2 - 305 2 - 347...
  • Page 485 Appendices l File Load Commands The load destination differs depending on the Sensor Controller model. Load destination FH/FHV series RAMDisk C:\Data\RAMDisk External storage E:\, F:\, G:\, H:\, M:\ OK: Applicable command, RST: Command with restricted execution, NA: Non-applicable command Nonproce- PLC link EtherNet/IP dure...
  • Page 486 Appendices Non-pro- PLC link EtherNet/IP cedure Ref.: Function Parallel Ref.: EtherCAT PROFINET Ref.: page page 2 - 245 page 2 - 180 2 - 348 Saves the last logging image. Saves the system + scene group 0 data that is currently used by the Sensor Controller in a file.
  • Page 487: A-1-4 Command Details For Plc Link, Ethernet/Ip, Ethercat, And Profinet

    Appendices A-1-4 Command Details for PLC Link, EtherNet/IP, EtherCAT, and PRO- FINET This section provides details on the communications commands. Single Measurement Performs measurement one time. Command (PLC to Sensor Controller) First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0...
  • Page 488 Appendices First word in Command Response Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 0000 0000 0000 0000 Response code Command execution result 0000 0000 0000 0000 OK: 0 (0000 0000) NG: Not 0 (0000 0000) End Continuous Measurements Ends continuous measurements.
  • Page 489 Appendices Precautions for Correct Use You cannot use the Unit Stand-alone Test Measurement Execution command for the following Camera Image Input processing units. • Camera Image Input, Camera Image Input GigE, Camera Image Input FH, Camera Image In- put FHV, Camera Image Input HDR, and Camera Image Input HDR Lite. Response (Sensor Controller to PLC) First word in Command...
  • Page 490 Appendices Clear Data Output Buffer Clears the data output buffer. Command (PLC to Sensor Controller) First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 2020 0010 0000 0010 0000 Command code 0010 0000...
  • Page 491 Appendices Re-register Model Registers the model again. Command (PLC to Sensor Controller) First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 4010 0100 0000 0001 0000 Command code 0010 0000 0000 0001...
  • Page 492 Appendices Scroll The image display window whose number is specified is moved to 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 493 Appendices First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 0000 0000 0000 0000 Sets magnification. (Value mul- tiplied by 1000) 0000 0000 0000 0000 Example) 25%: Enter 250 (0.25 × 1,000) 1,600%: Enter 16000 (16 ×...
  • Page 494 Appendices First word in Command Response Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 0000 0000 0000 0000 Response code Command execution result 0000 0000 0000 0000 OK: 0 (0000 0000) NG: Not 0 (0000 0000) A - 22 FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
  • Page 495 Appendices Copy Scene Data 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. Command (PLC to Sensor Controller) First word in Command...
  • Page 496 Appendices Delete Scene Data Deletes the data for the scene whose number is specified with command argument 1. Command (PLC to Sensor Controller) First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 7020 0111...
  • Page 497 Appendices Response (Sensor Controller to PLC) First word in Command Response Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 7030 0111 0000 0011 0000 Command code Response target command co- 0010 0000 0000 0001 0000 0000...
  • Page 498 Appendices First word in Command Response Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 0000 0000 0000 0000 Response code Command execution result 0000 0000 0000 0000 OK: 0 (0000 0000) NG: Not 0 (0000 0000) Load Registered Image Loads the specified registered image as the measurement image.
  • Page 499 Appendices First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 0000 0000 0000 0000 Any data (2 words) 0000 0000 0000 0000 Response (Sensor Controller to PLC) First word in Command Response Description...
  • Page 500 Appendices Response (Sensor Controller to PLC) First word in Command Response Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area a010 1010 0000 0010 0000 Command code Response target command co- 0010 0000 0000 0001 0000 0000...
  • Page 501 Appendices Return to Start of Flow Branches to the start of the measurement flow (processing unit 0).Only supports execution of com- mands in the flow. Command (PLC to Sensor Controller) First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0...
  • Page 502 Appendices Get Scene Number Gets the current scene number. Command (PLC to Sensor Controller) First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 1000 0001 0000 0000 0000 Command code 0020 0010 0000...
  • Page 503 Appendices First word in Command Response Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 0000 0000 0000 0000 Response data Got scene group No. 0000 0000 0000 0000 Get Layout Number Gets the number of the layout that is currently displayed. Command (PLC to Sensor Controller) First word in Command...
  • Page 504 Appendices Get Display Image Unit Number Gets the number of the Unit that is currently displayed in the specified image display window. Command (PLC to Sensor Controller) First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area...
  • Page 505 Appendices First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 0000 0000 0000 0000 Display image window number FH: Image display window 0000 0000 0000 0000 number (0 to 23) FZ5: Displaying 1 image: 1 Displaying 2 images: 1 and 2...
  • Page 506 Appendices Get Image Display Status Gets the image mode for the specified image display window. Command (PLC to Sensor Controller) First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 5030 0101 0000...
  • Page 507 Appendices First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 0000 0000 0000 0000 Communication module types 0: Serial (Ethernet) 0000 0000 0000 0000 1: Serial (RS-232C/422) 2: Parallel I/O 3: Fieldbus 4: Remote operation Response (Sensor Controller to PLC)
  • Page 508 Appendices First word in Command Response Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 0000 0000 0000 0000 Response data Output state 0000 0000 0000 0000 0: Prohibited 1: Permitted A - 36 FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
  • Page 509 Appendices Get Parallel Terminal Status Gets the ON/OFF status for the specified parallel I/O terminal. Set the parallel I/O terminals with the terminal type and number. For how to set, refer to the following example and the description in the table. Example: When you want to get the terminal status of STEP0 in Line 0.
  • Page 510 Appendices FH-1000/2000/3000/5000 series Sensor Controller Terminal number Terminal type STEP STEP0 STEP1 STEP2 STEP3 STEP4 STEP5 STEP6 STEP7 DSA0 DSA1 DI_LINE DILINE0 DILINE1 DILINE2 FH-L/FHV series Sensor Controller Terminal number Terminal type STEP STEP0 DSA0 DI_LINE Precautions for Correct Use •...
  • Page 511 Appendices Get All Parallel Terminal Status Gets the ON/OFF status of all parallel terminals except for DI terminals. For how to set, refer to the following example and the description in the table. Example: When you want to get the terminal status except DI terminal of Line 0. (1) Send a command to get the all of the terminal status to the specified port number of Line0.
  • Page 512 Appendices Terminal Support- ed bit Line 0 Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 Line 7 BIT5 BIT6 BIT7 BIT8 BIT9 BIT10 BIT11 BIT12 BIT13 BIT14 BIT15 FH-L series Sensor Controller Terminal Support- ed bit Line 0 BIT0 STEP0...
  • Page 513 Appendices Get All Parallel DI Terminal Status Gets the ON/OFF status of all parallel DI terminals. For how to set, refer to the following example and the description in the table. Example: When you want to get 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.
  • Page 514 Appendices Terminal Support- ed bit Line 0 Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 Line 7 BIT5 BIT6 BIT7 BIT8 BIT9 BIT10 BIT11 BIT12 BIT13 BIT14 BIT15 FH-L series Sensor Controller Terminal Support- ed bitt Line 0 BIT0 BIT1...
  • Page 515 Appendices Command (PLC to Sensor Controller) First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 9000 1001 0000 0000 0000 Command code 0020 0000 0000 0010 0000 0000 0000 0000 0000 Item to be got...
  • Page 516 Appendices Get Logging Account Group ID Gets the group ID for the account currently logged in. Command (PLC to Sensor Controller) First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 9010 1001...
  • Page 517 Appendices First word in Command Response Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 0000 0000 0000 0000 Response code Command execution result 0000 0000 0000 0000 OK: 0 (0000 0000) NG: Not 0 (0000 0000) 0000 0000 0000...
  • Page 518 Appendices First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 0000 0000 0000 0000 Scene group No. 0000 0000 0000 0000 Response (Sensor Controller to PLC) First word in Command Response Description...
  • Page 519 Appendices Set Layout Number Sets the layout number and switches the image. Command (PLC to Sensor Controller) First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 4000 0100 0000 0000 0000 Command code...
  • Page 520 Appendices Set Display Image Unit Number Sets the number of the Unit to display in the specified image display window. Command (PLC to Sensor Controller) First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 5010...
  • Page 521 Appendices First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 0000 0000 0000 0000 Display image window number FH: Image display window 0000 0000 0000 0000 number (0 to 23) FZ5: Displaying 1 image: 1 Displaying 2 images: 1 and 2...
  • Page 522 Appendices Response (Sensor Controller to PLC) First word in Command Response Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 5030 0101 0000 0011 0000 Command code Response target command co- 0030 0000 0000 0011 0000 0000...
  • Page 523 Appendices Set Communications Output Status Permits/prohibits outputs to external devices. Command (PLC to Sensor Controller) First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 7020 0111 0000 0010 0000 Command code 0030 0000...
  • Page 524 Appendices First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 0000 0000 0000 0000 Terminal type: Set the terminal by combining 0000 0000 0000 0000 the Terminal number. Specified terminal differs ac- cording to the Sensor Controller series.
  • Page 525 Appendices Terminal number Terminal type GATE READY DO10 DO11 DO12 DO13 DO14 DO15 FH-L series Sensor Controller Terminal number Terminal type ERROR BUSY BUSY0 GATE GATE0 READY READY0 Terminal number Terminal type BUSY GATE READY DO10 DO11 DO12 DO13 DO14 DO15 Precautions for Correct Use •...
  • Page 526 Appendices Set All Parallel Terminal Status Sets the ON/OFF status of all parallel terminals except for DO terminals. For how to set, refer to the following example and the description in the table. Example: When you want to set the Parallel terminal status, except DO of Line 0, to ON at once: (1) Set the terminal status ON to the desired assignment BIT of Parallel terminal except DO.
  • Page 527 Appendices Terminal Support- ed bit Line 0 Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 Line 7 BIT7 BIT8 BIT9 BIT10 BIT11 BIT12 BIT13 BIT14 BIT15 FH-L series Sensor Controller Terminal Support- ed bit Line 0 BIT0 BIT1 ERROR...
  • Page 528 Appendices Set All Parallel DO Terminal Status Sets the ON/OFF status of all parallel DO terminals. For how to set, refer to the following example and the description in the table. Example) When you want to set the Parallel DO terminals status of Line 0, to ON at once: (1) Set the terminals status ON to the desired assignment BIT of the Parallel DO terminal status.
  • Page 529 Appendices Terminal Support- ed bit Line 0 Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 Line 7 BIT6 BIT7 BIT8 BIT9 BIT10 DO10 DO10 DO10 DO10 DO10 DO10 DO10 DO10 BIT11 DO11 DO11 DO11 DO11 DO11 DO11 DO11 DO11...
  • Page 530 Appendices Command (PLC to Sensor Controller) First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 9000 1001 0000 0000 0000 Command code 0030 0000 0000 0011 0000 0000 0000 0000 0000 Item to be got...
  • Page 531 Appendices Set Operation Log State Sets the state of the operation log. 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 (PLC to Sensor Controller) First word in Command Command...
  • Page 532 Appendices Response (Sensor Controller to PLC) First word in Command Response Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 1000 0001 0000 0000 0000 Command code Response target command co- 0040 0000 0000 0010 0000 0000...
  • Page 533 Appendices Get Version Information Gets the Sensor Controller version information. Command (PLC to Sensor Controller) First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 3000 0011 0000 0000 0000 Command code 0040 0000...
  • Page 534 Appendices First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 0000 0000 0000 0000 [Identifier 0] [Identifier 1] [Identifier 0]: Logging 0000 0000 0000 0000 [Identifier 1]: Identifier of setting 0000 0000 0000...
  • Page 535 Appendices First word in Command Response Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 0000 0000 0000 0000 [Identifier 0] [Identifier 1] [Identifier 0]: Logging 0000 0000 0000 0000 [Identifier 1]: Identifier of setting 0000 0000 0000...
  • Page 536 Appendices Response (Sensor Controller to PLC) First word in Command Response Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 4010 0011 0000 0000 0000 Command code Response target command co- 0040 0000 0000 0111 0000 0000...
  • Page 537 Appendices Get Screen Capture Folder Name Gets the screen capture folder name. Command (PLC to Sensor Controller) First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 4030 0100 0000 0011 0000 Command code...
  • Page 538 Appendices First word in Command Response Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 0000 0000 0000 0000 Response code Command execution result 0000 0000 0000 0000 OK: 0 (0000 0000) NG: Not 0 (0000 0000) 0000 0000 0000...
  • Page 539 Appendices Command (PLC to Sensor Controller) First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 4060 0100 0000 0110 0000 Command code 0040 0000 0000 0100 0000 Response (Sensor Controller to PLC) First word in Com- Response...
  • Page 540 Appendices Response (Sensor Controller to PLC) First word in Command Response Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 1000 0001 0000 0000 0000 Command code Response target command co- 0050 0000 0000 0101 0000 0000...
  • Page 541 Appendices Change Settings Related to Image Logging Changes the settings related to image logging. Command (PLC to Sensor Controller) First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 4000 0100 0000 0000...
  • Page 542 Appendices Response (Sensor Controller to PLC) First word in Command Response Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 4000 0100 0000 0000 0000 Command code Response target command co- 0050 0000 0000 0101 0000 0000...
  • Page 543 Appendices Set Data Logging Folder Name Sets the name for the data logging folder. Command (PLC to Sensor Controller) First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 4020 0100 0000 0010...
  • Page 544 Appendices First word in Command Response Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 0000 0000 0000 0000 Response code Command execution result 0000 0000 0000 0000 OK: 0 (0000 0000) NG: Not 0 (0000 0000) Set Image Logging Prefix Sets the prefix for the file name in which logged images are saved.
  • Page 545 Appendices First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 0000 0000 0000 0000 Data logging condition 0: None 0000 0000 0000 0000 1: Only NG 0000 0000 0000 0000 2: All Response (Sensor Controller to PLC)
  • Page 546 Appendices Set Parallel Terminal Offset Sets the parallel DI terminal offset data. The parallel DI terminal offset is the value that is added from the DI0 to DI4 command parameter when a parallel command is executed. This is useful in the following cases. Example: This example is for creating a custom communications command for parallel communications that sets a numeric value using from DI0 to DI6.
  • Page 547 Appendices Load Scene Data Loads the scene data. Command (PLC to Sensor Controller) First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 1000 0001 0000 0000 0000 Command code 0060 0000 0000...
  • Page 548 Appendices Response (Sensor Controller to PLC) First word in Command Response Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 2000 0010 0000 0000 0000 Command code Response target command co- 0060 0000 0000 0110 0000 0000...
  • Page 549 Appendices Load All Data Loads the system + scene group 0 data. Precautions for Correct Use With this command, be sure to restart the Sensor Controller after reading the system + scene group 0 data to enable the data that was read. Command (PLC to Sensor Controller) First word in Command...
  • Page 550 Appendices Response (Sensor Controller to PLC) First word in Command Response Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 1000 0001 0000 0000 0000 Command code Response target command co- 0070 0000 0000 0111 0000 0000...
  • Page 551 Appendices Save Scene Group Data Saves the scene group data. Command (PLC to Sensor Controller) First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 2000 0010 0000 0000 0000 Command code 0070 0000...
  • Page 552 Appendices Response (Sensor Controller to PLC) First word in Command Response Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 3000 0011 0000 0000 0000 Command code Response target command co- 0070 0000 0000 0111 0000 0000...
  • Page 553 Appendices Save All Image Data Saves all image data in the Sensor Controller's memory with ifz format in external storage. Command (PLC to Sensor Controller) First word in Command Command Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 4010...
  • Page 554 Appendices Response (Sensor Controller to PLC) First word in Command Response Description code 15 - 12 11 - 8 7 - 4 3 - 0 Area 4020 0100 0000 0010 0000 Command code Response target command co- 0070 0000 0000 0111 0000 0000...
  • Page 555 Appendices Capture Screen Captures the screen. The argument specifies a file name and extension in the absolute path of the save destination. The extension is "bmp". If there is no argument, the folder in which the captured image is saved is deter- mined by the system data settings, and the file name is the time stamp.
  • Page 556: A-1-5 Non-Procedure Command Details

    Appendices A-1-5 Non-procedure Command Details This section describes details of commands used in Non-procedure communications. ALLIMAGESAVE or AIS Writes all the image data in the image buffer (specified with main unit logging image) to external storage in ifz format. <Command format> A L L I M A G E S A V E Destination folder name (256 characters max.) A I S...
  • Page 557 Appendices BKDLOAD Reads system + scene group 0 data. <Command format> <Response format> When processing is performed normally: When processing is not performed normally: <Parameters explanation> The name of the file containing the System data and Scene group 0 data you wish to load.
  • Page 558 Appendices BKDSAVE The system + scene group 0 data currently being used by the Sensor Controller is saved to a file. <Command format> <Response format> When processing is performed normally: When processing is not performed normally: <Parameters explanation> The name of the file containing the System data and Scene group 0 data you wish to save.
  • Page 559 Appendices 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 F U <Response format> When processing is performed normally: When processing is not performed normally: CLRMEAS Clears all of the measurement values of the current scene.
  • Page 560 Appendices CPYSCEN 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. <Command format>...
  • Page 561 Appendices 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> 0: None Data logging condition 1: Only NG 2: All (Example)
  • Page 562 Appendices <Response format> When processing is performed normally: When processing is not performed normally: <Parameters explanation> 0: None Data logging condition 1: Only NG 2: All (Example) When setting the data logging condition to All: <Command> <Response> A - 90 FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
  • Page 563 Appendices 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: <Command>...
  • Page 564 Appendices D A T A L O G F O L D E Data logging folder name (128 characters max.) Data logging folder name (128 characters max.) <Response format> When processing is performed normally: When processing is not performed normally: <Parameters explanation>...
  • Page 565 Appendices 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: Additional Information • Executing DATASAVE command while you use Scene group 1 to 31, System + Scene group data is saved to the Sensor Controller's memory.
  • Page 566 Appendices DATE Getting date and time Gets 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/Month/Date/Hour/Minute/Second Year: 4 digits Month: 2 digits Date: 2 digits Hour: 2 digits...
  • Page 567 Appendices <Response format> When processing is performed normally: When processing is not performed normally: Additional Information <Hour: 2 digits>, <Minute: 2 digits>, and <Second: 2 digits> can be omitted during setting. Set- tings cannot be updated when these are omitted, however, and the previous time will be kept unchanged.
  • Page 568 Appendices 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 569 Appendices 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 to 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.
  • Page 570 Appendices Additional Information When the value of the parallel DI terminal offset data is set to 10, the Switch Scene parallel command will change the scene to scene 10 instead of scene 0 when 0 is specified in the target scene parameter.
  • Page 571 Appendices <Response> DIPORTCOND or DPC Gets the ON/OFF states of all parallel DI terminals at once. For how to use the command to get status, refer to the following example. Example: To get the parallel DI terminal status of Line 0. (1) Send the parallel DI terminal status command to the port number assigned to Line 0.
  • Page 572 Appendices (Example) When DI0 and DI4 are ON: <Command> <Response> DOPORTCOND or DPC Sets the ON/OFF states of all parallel DO terminals at once. For how to set the DO terminal state, refer to the following. Example: When you set the parallel DO terminal state of Line 0 to ON: (1) Set the command which turns the terminal state ON to the parallel DO terminal of assignment BIT.
  • Page 573 Appendices Specify the DO terminals to switch ON (0-65535). • 1st bit: DO0 Terminal 2nd bit: DO1 state 16th bit: DO15 Precautions for Correct Use This command sets the terminal state of each line by specifying its port number.When the termi- nal state of an unusable or a different line was set, the response code will be OK and the set terminal state will be discarded.
  • Page 574 Appendices <Parameters explanation> Arbitrary character Sets the character string returned as is. The response is the character string set here as is. string (Example) When returning the character string "TEST." <Command> E E C E S T <Response> E S T IMAGECAPTURE or EIC Captures the screen.
  • Page 575 Appendices E I C File name (256 characters max.) <Response format> When processing is performed normally: When processing is not performed normally: <Parameters explanation> The folder name to save image data when image logging performs. Specify the folder name as an absolute path. The file name needs the "BMP"...
  • Page 576 Appendices 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> Screen capture fold- Responds with the name of the folder that the screen capture is saved to with its abso- er name lute path.
  • Page 577 Appendices I M A G E C A P T U R E F O L D E R Screen capture folder name (128 characters max.) I C F Screen capture folder name (128 characters max.) <Response format> When processing is performed normally: When processing is not performed normally: <Parameters explanation>...
  • Page 578 Appendices 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 579 Appendices 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 580 Appendices IMAGEFIT or EIF Returns the display position and display zoom ratio for the image display window to their default val- ues. 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 581 Appendices Number of the image display window to return the display position and display Image display window num- magnification to their default values. FH: Image display window number (0 to 23) (Example) When returning the display position and display zoom ratio for the image display window 1 to their de- fault values <Command>...
  • Page 582 Appendices 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 Responds with the name of the folder the logging image is saved to with its absolute path. folder name (Example) When the image logging save destination is set to RAMDisk:...
  • Page 583 Appendices I M A G E L O G F O L D E R Image logging folder name (128 characters max.) I L F Image logging folder name (128 characters max.) <Response format> When processing is performed normally: When processing is not performed normally: <Parameters explanation>...
  • Page 584 Appendices 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 pre- fix character string is 32 characters.
  • Page 585 Appendices I M A G E L O G H E A D E R Image logging prefix (32 characters max.) I L H Image logging prefix (32 characters max.) <Response format> When processing is performed normally: When processing is not performed normally: <Parameters explanation>...
  • Page 586 Appendices 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 587 Appendices When moving the image display window 1 image in parallel 20 in the X direction and 10 in the Y direc- tion: <Command> E I S <Response> 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>...
  • Page 588 Appendices <Response> 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.)
  • Page 589 Appendices 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 590 Appendices 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 591 Appendices 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 592 Appendices Number of the image display window to return the display position and display Image display window num- magnification to their default values. FH: Image display window number (0 to 23) Magnification Sets the zoom ratio (250-16,000). 250 means 25%; 16,000 means 1600%. (Example) When zooming in image display window 1 to 200%: <Command>...
  • Page 593 Appendices The folder name to save image data. Specify the folder name as an absolute path. The file name needs the "IFZ" extension. The save destination to use differs by Sensor Controller model. Destination folder name Save destination FH series/FHV series RAMDisk C:\Data\RAMDisk External storage...
  • Page 594 Appendices 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 2: Parallel IO types...
  • Page 595 Appendices 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 what- soever. However, inputs related to hardware (parallel STEP signals/DSA signals and ECAT STEP, etc.) are not included in the prohibition. <Command format>...
  • Page 596 Appendices LASTIMAGESAVE or LIS Executes a save of the last input image. The character string handed over by the argument is used as the file name. <Command format> <Response format> When processing is performed normally: When processing is not performed normally: <Parameters explanation>...
  • Page 597 Appendices Additional Information • When the extension is ifz, the image is saved with the specified file name. • When the extension is anything other than ifz, the image is saved with ifz appended to the file name. • If there is no extension (only the folder name is given), the image is saved to a file named time stamp .ifz.
  • Page 598 Appendices When the currently displayed window (local) is the RUN window:: <Command> <Response> 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>...
  • Page 599 Appendices LOGINACCOUNT or LAI Gets 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>...
  • Page 600 Appendices <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) <Response format>...
  • Page 601 Appendices 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 602 Appendices 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: Additional Information For Normal (Fxxx series method), refer to 2-5-9 Command Formats on page 2 - 343. <Parameters explanation>...
  • Page 603 Appendices When processing is not performed normally: <Parameters explanation> When "Data Output" is set in the flow, the measurement results are output. Measurement result When "Data Output" is not set, the measurement results are not output. Refer to 2-5-11 Output Format on page 2 - 349. Completes continuous measurement Continuous measurement ends.
  • Page 604 Appendices 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> Specifies the unit number to run a test with: 0 to the uppermost unit model number in the Unit No.
  • Page 605 Appendices MOVESCENE 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 com- mand argument 1 after completing copying. If there is already data at the copy destination, the copied data is written over that data.
  • Page 606 Appendices 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> Logging opera- 0: OFF tion state 1: ON (Example) The following sample command returns an enabled logging operation state: <Command>...
  • Page 607 Appendices <Response format> When processing is performed normally: When processing is not performed normally: (Example) The following sample command enables the logging operation state: <Command> <Response> OUTPUTTRANSSTATE or OTS Gets output state to external device Gets the output state to an external device: Enabled or Disabled: <Command format>...
  • Page 608 Appendices When processing is not performed normally: <Parameters explanation> 0: Prohibited Output state 1: Permitted (Example) The following sample command retrieves the output state, Enabled: <Command> <Response> 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.
  • Page 609 Appendices <Command> <Response> 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 get the parallel terminal state of Line 0 except DO to turn ON at once: (1) Send this command to the port number set on Line 0.
  • Page 610 Appendices Terminal Support- ed bit 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 DILINE0 DILINE0 DILINE0 DILINE0 DILINE0 DILINE0 BIT3...
  • Page 611 Appendices Precautions for Correct Use • 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-2000 series • FH-3000 series •...
  • Page 612 Appendices <Response format> When processing is performed normally: When processing is not performed normally: <Parameters explanation> Terminal state 0: OFF Terminal state 1: ON For assigned terminal to each bit, refer to *1. *1: Assigned terminal to each bit FH-1000/2000/3000/5000 series Sensor Controller Terminal Support- ed bit...
  • Page 613 Appendices Terminal Supported bit Line 0 BIT3 BIT4 GATE0 BIT5 READY0 BIT6 BIT7 BIT8 BIT9 BIT10 BIT11 BIT12 BIT13 BIT14 BIT15 Precautions for Correct Use • 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 614 Appendices 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) Set 0 in terminal type, STEP is specified.
  • Page 615 Appendices Terminal number Terminal type STEP STEP0 STEP1 STEP2 STEP3 STEP4 STEP5 STEP6 STEP7 DSA0 DSA1 DI LINE DILINE0 DILINE1 DILINE2 FH-L series Sensor Controller Terminal number Terminal type STEP STEP0 DSA0 DI LINE Precautions for Correct Use • 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 616 Appendices For how to set, refer to the following contents or example. Example: When you want to set the OR3 terminal status of Line 3: (1) Set 6 in terminal type, OR is specified. (2) Set 6 in terminal type, OR3 is specified. (3) Set 1 in terminal type, OR3 terminal is set to OFF→ON.
  • Page 617 Appendices Terminal number Terminal type ERROR ROR1 ROR2 ROR3 ROR0 BUSY BUSY0 BUSY1 BUSY2 BUSY3 BUSY4 BUSY5 BUSY6 BUSY7 GATE GATE0 GATE1 READY READY0 READY1 READY2 READY3 READY4 READY5 READY6 READY7 Terminal number Terminal type BUSY GATE READY DO10 DO11 DO12 DO13 DO14...
  • Page 618 Appendices Precautions for Correct Use • 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-2000 series • FH-3000 series •...
  • Page 619 Appendices REIMAGE 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 was executed is the same as after the operation was executed for the Register Button in the Registered Image Manager.
  • Page 620 Appendices <Response> b. When registering an image with registered image number 100 and logging image number 10: <Command> <Response> 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.
  • Page 621 Appendices <Response> b. When loading an image with registered image number 100 as a measured image: <Command> <Response> Precautions for Correct Use JPG (JFZ) format image files cannot be registered or loaded. RESET Restart the Sensor Controller. <Command format> <Response format> None A - 149 FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
  • Page 622 Appendices SCENE or S Gets scene number Gets 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 got scene No. (currently used scene No.) is output as a response (0 to 127). (Example) When scene 0 is being used: <Command>...
  • Page 623 Appendices 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> <Response> SCNDATA Gets scene variable value Gets the value for a set scene variable. <Command format>...
  • Page 624 Appendices Specifies a scene variable to get with the variable name and the type identifier. • Specify a scene variable with the variable name and the type identifier. SC that indicates the kind of variables is not necessary. Ex.: When SC.aaa& is specified, enter aaa& •...
  • Page 625 Appendices Set value Specifes a value to set. Precautions for Correct Use If a different type of value were specified to a variable set by the variable name and the type identifier, an error is not returned but the following processing is applied. •...
  • Page 626 Appendices SCNGROUP or SG Gets scene group number Gets 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 Scene group No.
  • Page 627 Appendices 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> <Response> Precautions for Correct Use Do not switch the scene group during parallel continuous measurement or when the STEP sig- nal is being input continuously.
  • Page 628 Appendices SCNLOAD Loads scene data. <Command format> S C N L O A D File name of scene data 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.
  • Page 629 Appendices SCNSAVE Saves scene data. <Command format> S C N S A V E Save destination Scene No. (3 digits max.) <Response format> When processing is performed normally: When processing is not performed normally: <Parameters explanation> Scene number Specify the Scene number to save. (0 to 127) The name of the file containing the Scene data you wish to save.
  • Page 630 Appendices <Response> SGRLOAD Loads scene group data. <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. to be loaded (0 to 31) The name of the file containing the Scene group data you wish to load. Specify the file name as an absolute path.
  • Page 631 Appendices <Command> <Response> Additional Information For the USB memory drive, see Saving Data to the FH/FHV in the Vision System FH/FHV Series User’s Manual (Cat. No. Z365). SGRSAVE Saves scene group data. <Command format> <Response format> When processing is performed normally: When processing is not performed normally: <Parameters explanation>...
  • Page 632 Appendices Precautions for Correct Use • If the specified file name already exists, this existing file will be overwritten. • Do not turn off the power to the Sensor Controller until there is a response. • For the FH/FHV series, do not save to a non-volatile area on the C drive (such as C:\Pro- gramFiles\FZ).
  • Page 633 Appendices SYSDATA Gets settings related to logging Gets settings related to current logging. <Command format> <Response format> When processing is performed normally: When processing is not performed normally: <Parameters explanation> Data Identifier Setting value 0: None Image logging imageLogging 1: Only NG 2: All Folder name of image logging save Save destination folder name (one-...
  • Page 634 Appendices <Command> <Response> The current image logging save condition is 1: Only NG. Changes settings related to logging Changes settings related to logging. <Command format> <Response format> When processing is performed normally: When processing is not performed normally: <Parameters explanation> Data Identifier Setting value...
  • Page 635 Appendices Precautions for Correct Use The save destination folder differs depending on the Sensor Controller model.For the FH/FHV series, do not save to a non-volatile area on the C drive (such as C:\ProgramFiles\FZ). This would reduce the storage area for scene data etc. and make correct operation impossible. Save destination FH series/FHV series RAMDisk...
  • Page 636 Appendices SYSLOAD Loads system data. <Command format> <Response format> When processing is performed normally: When processing is not performed normally: <Parameters explanation> The name of the file containing the System data you wish to load. Specify the file name as an absolute path. The file name needs the "INI"...
  • Page 637 Appendices SYSSAVE Saves system data. <Command format> <Response format> When processing is performed normally: When processing is not performed normally: <Parameters explanation> The name of the file containing the System data you wish to save. Specify the folder name as an absolute path. The file name needs the "INI"...
  • Page 638 Appendices A - 166 FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
  • Page 639 Appendices TIMER or TMR Issues the specified command string after a specified delay. <Command format> 1,024 characters) 1,024 characters) <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 Latency to 99999.
  • Page 640 Appendices UNITDATA or UD Getting processing unit parameters and measurement values The set parameters and measurement values for the processing units set in the scene currently being used are got. <Command format> <Response format> When processing is performed normally: When processing is not performed normally: <Parameters explanation>...
  • Page 641 Appendices <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). Varies depending on the specified processing unit processing items. For details, refer to External reference ta- External Reference Table for each processing item in the Vision System FH/FHV series ble No.
  • Page 642 Appendices Additional Information To set a character string which includes spaces, enclose the character string with " ". Example: Setting the character string to compare (value of the external reference table No. 164 value) as "ABC EFG" of the second processing unit (Processing unit No.1). UNITDATA 1 164 "ABC EFG"...
  • Page 643 Appendices Specifies the target data. When the setting value is expressed in binary, if the 1st bit is 1, the model is re-regis- tered. When the setting value is expressed in binary, if the 2nd bit is 1, the reference posi- tion is updated.
  • Page 644 Appendices When processing is not performed normally: <Parameters explanation> Group Specifies a group ID to which a user account is to be added: 0 to 7. User ID Specifies a user ID of the user to be added with up to 32 characters. Password Specifies a password for the user to be added with up to 32 characters.
  • Page 645 Appendices When processing is not performed normally: <Parameters explanation> User ID Specifies the user ID of the user to be deleted with up to 32 characters. Specifies the user name for a user belonging to the UG0 group (32 characters maxi- User name (UG0) mum).
  • Page 646 Appendices (Example) When your software version is 5.00, and the date is June 1, 2013: <Command> <Response> F Z / F H / F J - X X X V e r . 5 . 0 0 2 0 1 3 / 0 6 / 0 1 A - 174 FH/FHV Series Vision System User's manual for Communication Settings (Z342-E1)
  • Page 647 OMRON AUTOMATION AMERICAS HEADQUARTERS • Chicago, IL USA • 847.843.7900 • 800.556.6766 • automation.omron.com OMRON CANADA, INC. • HEAD OFFICE OMRON ELETRÔNICA DO BRASIL LTDA • HEAD OFFICE Toronto, ON, Canada • 416.286.6465 • 866.986.6766 • automation.omron.com São Paulo, SP, Brasil • 55.11.2101.6300 • www.omron.com.br OMRON ELECTRONICS DE MEXICO •...

Table of Contents