Omron Sysmac F430-F Series Connection Manual

Omron Sysmac F430-F Series Connection Manual

Hide thumbs Also See for Sysmac F430-F Series:

Advertisement

Quick Links

Machine Automation Controller
NX Series
General Ethernet (TCP/IP) Connection
Guide
Smart camera
F430-F Series
Z443-E-01

Advertisement

Table of Contents
loading

Summary of Contents for Omron Sysmac F430-F Series

  • Page 1 Machine Automation Controller NX Series General Ethernet (TCP/IP) Connection Guide Smart camera F430-F Series Z443-E-01...
  • Page 2 Windows is a registered trademark of Microsoft Corporation in the USA and other countries. ODVA、EtherNet/IP are trademarks of ODVA. Sysmac and SYSMAC are trademarks or registered trademarks of OMRON Corporation in Japan and other countries for OMRON factory automation products. Company names and product names in this document are the trademarks or registered...
  • Page 3 Contents Related Manuals ..................3 Terms and Definitions ................4 Restrictions and Precautions ..............5 Overview ....................6 Applicable Devices and Device Configuration ........7 5.1. Applicable Devices ................7 5.2. Device Configuration ................8 Ethernet Settings ..................10 6.1. Ethernet Communications Settings ..........
  • Page 4: Related Manuals

    To ensure system safety, make sure to always read and follow the information provided in all Safety Precautions and Precautions for Safe Use in the manuals for each device which is used in the system. The following Omron Corporation (hereinafter referred to as "Omron") manuals are related to this document: Manual No.
  • Page 5: Terms And Definitions

    2. Terms and Definitions Below is a list of terms used in this manual and their definitions. Term Description / Definition IP Address Ethernet communicates using an IP address. An IP address (Internet Protocol address) is an address for identifying a node (host computer, controller, etc.) on Ethernet.
  • Page 6: Restrictions And Precautions

    (4) It is prohibited to copy, to reproduce, and to distribute a part or the whole of this document without the permission of OMRON Corporation. (5) The information contained in this document is current as of January 2020.
  • Page 7 In this project file, the Ethernet connection is checked by sending a measurement execution command to the smart camera and receiving the measurement data from it. Please prepare the latest file of "Sysmac Studio project file" from Omron beforehand. Name...
  • Page 8: Applicable Devices And Device Configuration

    For detailed information on the above products (other than communication connection procedure), please refer to the instruction manual of the product or contact OMRON. Note In this document, from among the above target devices, connection confirmation is performed using the devices listed in section 5.2.
  • Page 9: Device Configuration

    (Smart camera) Precautions for Correct Use Please prepare the latest file of "Sysmac Studio project file" from Omron Corp. beforehand. (Contact Omron for information on how to obtain these files.) Note If the device configuration or versions are different, it may not be reproducible. After confirming the configuration, models and versions, if it is different from your configuration, please contact Omron.
  • Page 10 Note Refer to "Industrial Switching Hub W4S1 Series User Manual" (0969584-7) for power supply specifications that can be used for 24 VDC power supply (for switching hub). Note Refer to the "Smart Camera F430-F Series User Manual" (Z433) for the power supply specifications that can be used for DC24V power supply (for Smart camera).
  • Page 11: Ethernet Settings

    6. Ethernet Settings This manual explains communication parameter specifications and cable wiring. Note This document and this project file can only operate with the settings and commands described in this chapter. For communication other than this setting, it is necessary to modify the project file.
  • Page 12 6.2. Communication Verification Example In this document, a program in structured text (hereinafter, ST) language is used as an example when executing "socket open", "send / receive" and "socket close" from the controller to the smart camera. The controller sends an “inspection trigger command” to the smart camera. The smart camera sends its output data to the controller.
  • Page 13: Steps For Connecting

    Run the project file and check that the correct data is the receive data written to the controller variable. Precautions for Correct Use Please prepare the latest file of "Sysmac Studio project file" from Omron Corp. beforehand. (Contact Omron for information on how to obtain these files.)
  • Page 14 7.2. Smart Camera Setup Set up the Smart camera. Precautions for Correct Use Use a PC (personal computer) to set the parameters for the smart camera. Note that there may be some changes required for the PC settings depending on the current state of PC.
  • Page 15 Set the IP Address of the PC. Set the IP Address to "192.168.188.100" set the subnet mask to "255.255.0.0". Refer to Step 4 for the procedure to open the dialog on the right on a Windows 7 system. (1) From the Windows Start menu, select Control Panel - Network and Internet - Network and Sharing Center.
  • Page 16 ・Are the respective IP Addresses on the PC and on the F430 smart camera set correctly? → Refer to 4. for setting the IP Address of the PC. ・Do a hardware reset of the F430. → When turning the power on, press and hold the setup button on the smart camera body until its light turns on.
  • Page 17 Click on Inspection Outputs and in its menu select “TCP/IP and Serial Out”. In the popup dialog, set "String output port" to "TCP1 (49211)". Click the icon in the Output String and select Output Value.
  • Page 18 Click the icon in the red frame and select the data to output. Here, select the location from “Locate Shape”. When selected, the current value is displayed in the "Output String" part of the red frame. Repeat steps 13-14 to build the output string.
  • Page 19: Controller Setup

    The download is complete when you can successfully transition to the Run screen. 7.3. Controller Setup Set up the Controller. 7.3.1. Start Sysmac Studio and Load the Project File Start the "Sysmac Studio" (Automation Software) and load the Project File in to Sysmac Studio.
  • Page 20 * About Sysmac Studio Sample project file for Smart camera F430-F Series Machine Automation Controller NX Series General Ethernet (TCP/IP) Connection Guide, contact your OMRON representative. [OMRON_F430_ETN(TCP)_V1 00] project screen is displayed. The left side of the screen is called "Multiview Explorer", the right side is called "Toolbox",...
  • Page 21 7.3.2. Verify Parameters and Execute Builds Check the configuration parameters and execute program check and build of the project data. Double-click Built-in EtherNet/IP Port Settings under Configurations Setup Controller Setup in the Multiview Explorer. The Built-in EtherNet/IP Port Settings Tab Page is displayed in the Edit Pane.
  • Page 22 The "Task Settings" Tab Page is displayed in the Edit Pane. Select [Program Assignment Settings] and confirm that [Primary Task] is set to [Program0]. From the Main Menu in Sysmac Studio, select [Project] – [Check All Programs]. The [Build Tab Page] will be displayed under [Edit...
  • Page 23 7.3.3. Connect Online and Transfer Project Data Connect online in Sysmac Studio and transfer the project data to Controller. From the Menu Bar, select [Controller] – [Communications Setup]. The [Communications Setup] dialog opens. Make sure that [Ethernet connection via a hub] is selected for the [Connection Type].
  • Page 24 When you are online, a yellow frame will be displayed in the upper part of the [Edit window]. From the Menu Bar, select [Controller] – [Synchronize]. [Synchronization] dialog opens. Make sure that the data you want to transfer (in the right figure, [NX1P2]) is checked, and click [Transfer to Controller].
  • Page 25: Check The Connection Status

    7.4. Check the Connection Status Run the transferred project file and check that Ethernet communication is performed correctly. Precautions for Correct Use Before performing the following steps, confirm that the Ethernet cable is connected securely. If they are not connected, first turn the power to each device OFF and then connect the Ethernet cable.
  • Page 26 Confirm the monitoring status of the controller by selecting either [Monitor] or [Stop Monitoring] from the Sysmac Studio toolbar. Monitor As shown in the right figure, Stop Monitoring check that the [Monitor] button is selected (Monitoring), and that the [Stop Monitoring] button is selectable.
  • Page 27 When communication completes normally, each error code will be "0". The TCP Connection status (Output_EtnTcpSta) will become "CLOSED". * If it terminates abnormally, an error code is stored according to the abnormality that occurred. Refer to section 9.7. "Error Processing". In addition, [Online value] of [Local_Status.Done] indicating the program execution status will...
  • Page 28: Initializing The System

    8. Initializing the System The explanations of procedures given in this document are based on the use of the factory default settings on all the devices. When using a device that has been changed from the default settings, various settings may not be able to proceed according to the procedures described.
  • Page 29: Project File

    9. Project file The details of the project file used in this document are shown. 9.1. Overview This chapter describes the specifications and functions of the project file used for connecting a smart camera (F430-F series) (hereinafter referred to as "Partner device") and a controller (Built-in EtherNet/IP port) (hereinafter referred to as "Built-in EtherNet/IP port").
  • Page 30: Communication Data Flow

    9.1.1. Communication Data Flow This is the flow from issuing a command from the Built-in EtherNet/IP port via TCP socket communication and receiving the response data from the Smart camera. In this project file, a series of processes from TCP Open to Close is executed continuously. When response data is divided and received as multiple data packets, the Receive process is repeated.
  • Page 31 9.1.2. TCP Socket Communications via Socket Service Commands This section gives an overview of the general behavior of TCP socket communication and Send / Receive messages by the TCP Socket Service Function Block (hereinafter referred to as socket service instruction). Note For more detailed information, refer to Chapter 2 “Instruction Descriptions"...
  • Page 32 ● Send / Receive Message Send Message Partner Header Command Data Footer Device Controller Receive Msg (Response) Header Response Data Footer Receive Msg (Error Response) Header Response Data(Error Code) Footer ● Send / Receive Sequence When using TCP communication between an external device (server) and controller (client), the process proceeds as follows.
  • Page 33: Command Overview

    9.2. Partner Device Command An explanation of the partner device commands in this project file. 9.2.1. Command Overview In this project file, Ethernet communication is performed with the external device using the “TRIGGER (Serial Trigger)” command. Command Content TRIGGER Execute inspection Note For details, refer to sections “3-2 Serial (TCP) Control and Output”...
  • Page 34: Command Settings

    9.2.2. Command Settings This section explains setting details for the "TRIGGER” (Inspection trigger) command. ● Settings for Send Data (Command) Send Data is set by Function Block: SendMessageSet_instance. <Partnering device specifications> ・Data is stored in ASCII code. Variable Content (Data format) Setting value Send_Header Send Header (STRING[5])
  • Page 35 ● Sent/Received Message Send Message 'T’ (Normal processing: measurement data 369 171 -1,LOT123456 DATE05/2012,123456<CR><LF>) ‘3’ ‘6’ ‘9’ ‘ ’ ‘1’ ‘7’ ‘1’ ‘ ’ ‘-’ ‘1’ ‘,’ ‘L’ ‘O’ ‘T’ ‘1’ ‘2’ ‘3’ ‘4’ ‘5’ ‘6’ ‘ ’ ‘D’ ‘A’ ‘T’...
  • Page 36 9.3. Error Judgment Processing This section describes the error judgment processing in this project file. 9.3.1. Project File Error Judgment Processing In this project file, error judgment processing is performed for the following three items ① to ③. For more information on Error codes, refer to section 9.7.1. "Error Code List". Controller Partner Device Ethernet cable...
  • Page 37 9.3.2. Time monitoring function This section describes the Time monitoring function in this project file. The setting of the monitoring time can be changed by the variable used in the "ParameterSet" Function Block. ●Time monitoring function by timer in project file In this project file, it is possible to interrupt the process (Timeout) by the timer in the project file, if the process is not completed due to some error condition.
  • Page 38 9.4. Variables Used Variables used in this project file. 9.4.1. List of Variables Used A list of the variables required to run this project file. ● Input Variables Variables used for operation of this project file. Variable name Data format Description Input_Start BOOL...
  • Page 39 ● Internal Variable Variables only used for calculations in this project file. Variable name Data format Description Local_Status sStatus Run status of the program (STRUCT) Busy BOOL It becomes TRUE while this project file is being executed and becomes FALSE when it is not being executed. Done BOOL It becomes TRUE when this project file ends normally and...
  • Page 40 Variable name Data format Description Send BOOL Execute Send processing command (TRUE) / Do not execute (FALSE) Recv BOOL Execute Receive processing command (TRUE) / Do not execute (FALSE) Open BOOL Execute Open processing command (TRUE) / Do not execute (FALSE) Close BOOL...
  • Page 41 Variable name Data format Description Recv BOOL Receive processing required (TRUE) / Not required (FALSE). * In the case of Send Processing Required / Receive Processing Required: It waits for the arrival of receive data after transmission processing. After confirming the arrival of the received data, transit to the receive processing.
  • Page 42 9.4.2. List of Variables for Function Blocks / Functions used This is a list of user-defined function blocks in the program when this project file is executed. Refer to "9.5.3 Detailed Explanation of Function Block" for the variables of the following function block.
  • Page 43 9.5. Program (ST Language) 9.5.1. Functional Configuration of Program in ST Language This project file is programmed in ST language. The function configuration is as follows. Major Minor classification Content classification 1.1.Communication processing start Start communication process. 1.2.Communication processing status Communicati flag column clear 1.3.Communication...
  • Page 44 processing, Send processing, or Receive processing ends with an error Processing number error Execute error processing when a nonexistent Error processing processing number is detected. processing...
  • Page 45 9.5.2. Detailed Explanation of the Main Program The following are included in the project file. Communication settings, transmission data (command) settings, and reception data (response data) confirmation that need to be changed depending on the connected device are performed in the function block (ETN_ParameterSet_instance, ETN_SendMessageSet_instance, ETN_ReceiveCheck_instance).
  • Page 46 2. Initialization processing...
  • Page 48 3. Open processing...
  • Page 49 4. Send processing...
  • Page 50 5. Receive processing...
  • Page 52 6. Close processing...
  • Page 53 7. Processing number error processing...
  • Page 54 9.5.3. Detailed Explanation of Function Blocks The function block of this project file is shown below. Data in the Function Block that will change depending on the partnering device is highlighted in the red frame of the function block shown below. ●...
  • Page 55 Informati Error ErrorIDEx DWORD Informati ・Internal Variable Table: None...
  • Page 56 ・Program...
  • Page 57 ●ETN_SendMessageSet_instance: Content of Function Block (SendMessageSet) Graphic Command Name FB/FUN ST Expression display General Ethernet communication ETN_SendMessageSet_instance SendMessageSet Set Send/Receive (Execute, Send_Data, ComType); Sequence ・Input/Output variable table (arguments) ・Input Variable Data Valid Factory name format Name Content Range Unit default When OFF (FALSE) turns to ON Depends Execute...
  • Page 58 ・Program...
  • Page 59 ●ETN_ReceiveCheck_instance: Content of Function Block (ReceiveCheck) Graphic Command Name FB/FUN ST Expression display General Ethernet ETN_ReceiveCheck_instance communication ReceiveCheck (Execute, Recv_Data, Recv_Buff, Receive Error, ErrorID, ErrorIDEx); Processing ・Input/Output variable table (arguments) ・Input Variable Data Valid Factory name format Name Content Range Unit default When OFF (FALSE) turns to ON...
  • Page 60 ・Program...
  • Page 61 9.6. Timing Chart Timing Chart of Program in ST Language. Start &Setting Input_Start Local_Status. BoolData[0](Busy) Send data **** Control data **** Common parameters **** Receive data 0000 Output_sktCmds 0000 ErrorID Local_Status. BoolData[1](Done) or Local_Status. BoolData[2](Error) If [Input_Start] is changed from "True (ON)" to "False (OFF)" during execution of the following, one cycle of End Normal or End with Error is output after processing is completed.
  • Page 62 ● Open Processing Input_Start Input_Start SktTCPConnect SktTCPConnect _instance.Execute _instance.Execute Topen_TON Topen_TON _instance.Q _instance.Q SktTCPConnect SktTCPConnect _instance.Busy _instance.Busy SktTCPConnect SktTCPConnect _instance.Busy _instance.Busy SktTCPConnect SktTCPConnect _instance.Done _instance.Done SktTCPConnect SktTCPConnect _instance.Error _instance.Error SktTCPConnect SktTCPConnect 0000 0000 **** _instance.ErrorID _instance.ErrorID Local_ErrCode.b[2] Local_ErrCode.b[2] Open Process Error Open process error Output_sktCmds Output_SktCmds...
  • Page 63 ● Send Processing SktTCPConnect SktTCPConnect _instance.Done _instance.Done SktTCPSend SktTCPSend _instance.Execute _instance.Execute Tfs_TON Tfs_TON _instance.Q _instance.Q SktTCPSend SktTCPSend _instance.Busy _instance.Busy SktTCPSend SktTCPSend _instance.Done _instance.Done SktTCPSend SktTCPSend _instance.Error _instance.Error SktTCPSend SktTCPSend 0000 **** 0000 _instance.ErrorID _instance.ErrorID Local_ErrCode.b[8] Local_ErrCode.b[8] Timeout Timeout Output_sktCmds Output_sktCmds 0000 **** 0000...
  • Page 64 ● Receive Processing SktTCPSend _instance.Done SktTCPSend _instance.Done SktGetTCPStatus _instance.DatRcvFlag SktGetTCPStatus SktTCPRcv _instance.DatRcvFlag _instance.Execute SktTCPRcv Tr_TON_instance.Q _instance.Execute Rcv. Wait Time Tfr_TON_instance.Q SktTCPRcv Tr_TON_instance.Q _instance.Busy SktTCPRcv SktTCPRcv _instance.Busy _instance.Busy SktTCPRcv SktTCPRcv **** _instance.RcvDat _instance.Busy SktTCPRcv SktTCPRcv _instance.Done 0000 **** **** _instance.RcvDat SktTCPRcv SktTCPRcv _instance.Error _instance.Error...
  • Page 65 SktTCPSend SktTCPSend _instance.Done _instance.Done SktGetTCPStatus SktGetTCPStatus _instance. _instance. SktTCPRcv SktTCPRcv _instance.Execute _instance.Execute Tfr_TON_instance.Q Tfr_TON _instance.Q SktTCPRcv SktTCPRcv _instance.Busy _instance.Busy SktTCPRcv SktTCPRcv _instance.Busy Stopp _instance.Busy Stopp SktTCPRcv SktTCPRcv 0000 0000 _instance.RcvDat _instance.RcvDat SktTCPRcv SktTCPRcv _instance.Done _instance.Done SktTCPRcv SktTCPRcv _instance.Error _instance.Error SktTCPRcv SktTCPRcv 0000 0000...
  • Page 66 ● Close processing SktTCPRcv _instance.Done, etc SktClose SktTCPRcv _instance.Execute _instance.Done, etc. Tclose_TON SktClose _instance.Q _instance.Execute SktClose _instance.Busy Tclose_TON SktClose _instance.Q _instance.Busy Stopp SktClose SktClose _instance.Busy _instance.Done SktClose SktClose _instance.Error _instance.Busy Stopp SktClose 0000 SktClose _instance.ErrorID _instance.Done SktGetTCPStatus _instance.Execute SktClose SktGetTCPStatus _instance.Error _instance.Busy SktClose...
  • Page 67 9.7. Error Processing 9.7.1. Error Code List The list of error code that occur when this ST language is executed is shown below. ● TCP Connection Status Error [Output_EtnTcpSta] If TCP connection status does not become normal status (_CLOSED) in time after Close processing, TCP connection status code is set to variable [Output_EtnTcpSta].
  • Page 68 ● Error codes [Output_SktCmdsErrorID], [Output_SkTcloseErrorID] If an error occurs in any of Open processing, Send processing, or Receive processing, after setting the error code to the variable [Output_SktCmdsErrorID], Close processing is done. If an error occurs during Close processing, the error code is set to the variable [Output_SkTcloseErrorID] and processing ends.
  • Page 69 ● Error Flag (Terminate with Error / Timeout) [Output_ErrCode] If any of the Open, Send, Receive, or Close process ends with an error or times out, an error flag is set in the variable [Output_ErrCode], and an error code is stored in either the variable [Output_SktCmdsErrorID] or the variable [Output_SkTcloseErrorID].
  • Page 70 9.7.2. TCP Connection Status Errors and Corrective Actions This subsection describes situations in which "TCP connection status error" occurs and the corrective action for it. ● Implications of TCP connection status errors If this project file is re-executed without taking any corrective action after "TCP connection status error"...
  • Page 71: Revision History

    10. Revision History Revision Revised year and Revised Page and Reason Symbol date April 2022 First Publication...
  • Page 72 The Netherlands Hoffman Estates, IL 60169 U.S.A. Tel: (31)2356-81-300/Fax: (31)2356-81-388 Tel: (1) 847-843-7900/Fax: (1) 847-843-7787 © OMRON Corporation 2022 All Rights Reserved. OMRON (CHINA) CO., LTD. OMRON ASIA PACIFIC PTE. LTD. In the interest of product improvement, Room 2211, Bank of China Tower, 438B Alexandra Road, #08-01/02 Alexandra specifications are subject to change without notice.

This manual is also suitable for:

Sysmac f430-f000m12m-swa

Table of Contents