Download Print this page
Siemens SIMATIC MV500 Manual
Siemens SIMATIC MV500 Manual

Siemens SIMATIC MV500 Manual

Reader with simatic s7 controller via profinet io and the ident profile
Hide thumbs Also See for SIMATIC MV500:

Advertisement

Quick Links

Direct connection
between a SIMATIC
MV500 reader and a
SIMATIC S7 controller
via PROFINET IO and
the Ident profile
MV500 / Ident profile / V1.0
https://support.industry.siemens.com/cs/ww/en/view/109818917
Siemens
Industry
Online
Support

Advertisement

loading
Need help?

Need help?

Do you have a question about the SIMATIC MV500 and is the answer not in the manual?

Questions and answers

Summary of Contents for Siemens SIMATIC MV500

  • Page 1 Direct connection between a SIMATIC MV500 reader and a SIMATIC S7 controller via PROFINET IO and the Ident profile Siemens MV500 / Ident profile / V1.0 Industry Online https://support.industry.siemens.com/cs/ww/en/view/109818917 Support...
  • Page 2: Legal Information

    The foregoing provisions do not imply any change in the burden of proof to your detriment. You shall indemnify Siemens against existing or future claims of third parties in this connection except where Siemens is mandatorily liable.
  • Page 3: Table Of Contents

    Table of contents Table of contents Legal information ..................... 2 Introduction ....................4 Principle of operation ................. 6 1.1.1 Initialize the MV550 S optical reader ..........7 1.1.2 Read MV commands ("PHYSICAL READ" command) ....... 7 1.1.3 Send MV commands ("PHYSICAL WRITE" command) ...... 7 Components used ................
  • Page 4: Introduction

    S7-1200 This application example shows you what you should consider when configuring an optical reader in the SIMATIC MV500 family for direct connection to the PLC via PROFINET IO. Focal points of the application example This application example covers the following functions: •...
  • Page 5 1 Introduction The following Figure provides an overview of the automation task. Figure 1-1 S7 controller MV500 optical reader 1D/2D codes Benefits The solution presented here offers you the following advantages: • This application example will save you time and money when commissioning your own automation solution.
  • Page 6: Principle Of Operation

    SIMATIC S7 controllers S7-1500 S7-1200 PROFINET/IE SIMATIC MV500 reader MV550 S The "Ident_Profile" block from the "SIMATIC Ident" library serves as the communication interface between the MV550 S optical reader and the SIMATIC S7-1500 CPU. The MV550 S optical reader is connected to the SIMATIC S7-1500 CPU directly over PROFINET IO.
  • Page 7: Initialize The Mv550 S Optical Reader

    1 Introduction 1.1.1 Initialize the MV550 S optical reader In this application example, the MV550 S optical reader is initialized with a program selection. Initialization with program selection enables: • Initialization after startup – After the self-test, the optical reader switches to processing mode with the selected program number.
  • Page 8 1 Introduction Set image capture parameters This command assigns parameters to the focus setting (FOCUS), exposure time (EXPOSURE) and brightness (GAIN) – and for the "Scan" and "Auto-trigger" modes, the image capture rate (INTERVAL) – during analysis for all programs that are currently running.
  • Page 9 The parameters for constructing the string command are described in chapter Note entitled The PLC data type "typeCmdParam". For detailed information on the Ident profile ("Ident_Profile") and the "TO_Ident" technology object, please refer to the Ident profile manual: Note https://support.industry.siemens.com/cs/ww/en/view/109793329 MV500 via Ident Profile Article ID: 109818917, V1.0, 07/2023...
  • Page 10: Components Used

    1 Introduction Components used The following hardware and software components were used to create this application example: Table 1-4 Component Quantity Item number Note SIMATIC 6EP1332-4BA00 Regulated PM1507/1AC/DC24V/3A power supply for SIMATIC S7-1500 SIMATIC S7-1500 6ES7511-1AK01-0AB0 A different SIMATIC S7-1500 CPU or a CPU 1511-1 PN SIMATIC S7-1200 V4.0 or later can also...
  • Page 11: Engineering Of The Step 7 Program

    2 Engineering of the STEP 7 program Engineering of the STEP 7 program Overview Introduction The STEP 7 project contains: • The user program for the S7 CPU with the function block "MV500_ReadWrite", which in turn calls the "Ident_Profile" block •...
  • Page 12 2 Engineering of the STEP 7 program Element Description DB "DBIdent" Global data block for storing: • the necessary parameters for implementing the functions • the status of the "MV500_ReadWrite" function block • the call parameters • System block The Ident profile serves as the communication interface between the MV500 optical reader and the "Ident_Profile"...
  • Page 13: Mv500_Readwrite" Function Block

    2 Engineering of the STEP 7 program "MV500_ReadWrite" function block The "MV500_ReadWrite" function block contains all functionality for communicating with the MV500 optical reader. The "MV500_ReadWrite" function block is a proprietary development for this application example and is already integrated in the STEP 7 project so that you can adapt it to your requirements.
  • Page 14 2 Engineering of the STEP 7 program Table 2-2 State Description FB_STATE_NO_PROCESSING Idle process: The process is in idle mode and is waiting for inputs. • FB_STATE_CMD_INIT The reader is initialized with program selection. • During initialization, the values configured in the "SIMATIC Ident_MV500"...
  • Page 15 2 Engineering of the STEP 7 program Parameter The Figure and Table below show the call interface of the function block "MV500_ReadWrite". Figure 2-3 Table 2-3 Parameter Data type Description BOOL Enable input. Only relevant in FDP and LAD view •...
  • Page 16 2 Engineering of the STEP 7 program Parameter Data type Description • autoSetup BOOL Activates automatic setup of the MV500 reader. • Reacts to rising edge. • This function is only executed if the inputs "init", "read" and "setImageAcq" are FALSE. readCodeLen Length of the code to be read hwConnect...
  • Page 17: Global Data Block "Dbident

    2 Engineering of the STEP 7 program Global data block "DBIdent" The "DBIdent" DB contains: 1. The parameters for the MV code being read: – readCodeLen Length of the code to be read – readCode[0..1] Actual length of the received code –...
  • Page 18: The Plc Data Type "Typecmdparam

    2 Engineering of the STEP 7 program 2.3.1 The PLC data type "typeCmdParam" The "cmdParam" parameter of the "MV500_ReadWrite" function block are used to save the required parameters for constructing the MV commands. 1. Set image capture parameters 2. Automatic setup Figure 2-5 Set image capture parameters The Table below shows the parameters required for assembling the command:...
  • Page 19: The Plc Data Type "Typediagnostics

    2 Engineering of the STEP 7 program Table 2-5 Parameter Description • autoSrc Number of the source program [0...15] • 0: New program • autoTgt Number of the target program [0...15] • 0: Next free program autoExp Optimization of exposure •...
  • Page 20: The Technology Object "Simatic Ident_Mv500

    For how to create a "TO_Ident" SIMATIC Ident technology object, refer to: Note https://support.industry.siemens.com/cs/ww/en/view/109769780 During initialization of the SIMATIC MV500 reader, the values configured in the "SIMATIC Ident_MV500" technology object are transmitted to the reader. This application example uses program selection for initialization...
  • Page 21: Diagnostics And Error Messages

    2 Engineering of the STEP 7 program Diagnostics and error messages The function block "MV500_ReadWrite" supplies the status of the instruction via the output parameter "status". In the event of an error, it sends various error messages via the output parameters "status" and "diagnostics". Status of the instruction The following Table provides an overview of the instruction status.
  • Page 22: Installation And Commissioning

    3 Installation and commissioning Installation and commissioning Hardware configuration Components used chapter lists the required hardware components. Observe the SIMATIC S7-1500 setup guidelines. Please read the CAUTION corresponding device manual: \4\. CAUTION Only switch on the power supply after you have completed and checked the assembly.
  • Page 23: Downloading The Step 7 Program

    Description CPU 1511-1 PN 192.168.0.1 SIMATIC S7-1500 CPU SIMATIC MV550 S 192.168.0.2 SIMATIC MV500 reader Engineering station 192.168.0.10 STEP 7 V16 / STEP 7 V17 / STEP 7 V18 The subnet mask in all network components is 255.255.255.0. Downloading the STEP 7 program Proceed as follows to download the STEP 7 program: 1.
  • Page 24 3 Installation and commissioning – "Functions > Assign PROFINET device name > Update List > select MV500 > Assign name". 6. Load the configuration "PLC_1". MV500 via Ident Profile Article ID: 109818917, V1.0, 07/2023...
  • Page 25: Configuring The Mv500 Optical Reader

    3 Installation and commissioning Configuring the MV500 optical reader The MV500 devices are configured via the Web Based Management (WBM). 1. Open an internet browser. 2. In the address bar, enter the IP address of the MV500 reader registered in the TIA project (192.168.0.2).
  • Page 26 3 Installation and commissioning The operating environment of the MV500 reader must have stable conditions. If the position of the device, the ambient lighting or ambient temperature changes, Note recalibration is necessary. 4. In Program 1, set "EXPOSURE" to "Manual". 5.
  • Page 27 3 Installation and commissioning 6. Save the changes in Program1. Communication settings In order for the MV500 reader to work with the "Ident profile" function block, you must set the following communication settings in the WBM. 1. Change the "IP mode" setting to "PROFINET (Ident profile)". 2.
  • Page 28: Operation

    4 Operation Operation Introduction In this chapter, you will learn how to operate the functions of this application example: • Initialize the MV500 reader • Read code via single trigger • Set image capture parameters of the MV500 reader • Automatic setup for the MV500 reader Initialization with program selection The MV500 reader must be initialized each time after it starts, and after an error.
  • Page 29 4 Operation 3. Set the "DBIdent.init" input to TRUE Note This function is only executed if the inputs "DBIdent.read", "DBIdent.setImageAcq" and "DBIdent.autoSetup" are FALSE. Result: Watch table: • "DBIdent.done" =TRUE The process has been completed successfully. • "DBIdent.status"=16#0003 The MV500 reader has been initialized and turned on. MV500 reader WBM: 4.
  • Page 30 4 Operation Read code via single trigger For code reading, "Single trigger" or "Scan" must be set in the MV500 reader's Note WBM (see Configuring the MV500 optical reader). 5. Enter the length "DBIdent.cmdParam.readCodeLen" of the code you wish to read.
  • Page 31 4 Operation Result: Watch table • "DBIdent.done" =TRUE The process has been completed successfully. • DBIdent.status=16#0004 The code was read. 7. Reset the input "DBIdent.read". MV500 via Ident Profile Article ID: 109818917, V1.0, 07/2023...
  • Page 32 4 Operation Set image capture parameters 8. Assign values to all parameters for setting the image capture parameters of the MV500 reader: – DBIdent.cmdParam.distanceValue – DBIdent.cmdParam.gainValue – DBIdent.cmdParam.exposureTime – DBIdent.cmdParam.imageAcqInterval For setting image capture parameters, either "Auto-trigger" or "Scan" must be set Note in the MV500 reader's WBM.
  • Page 33 4 Operation Result: Watch table: • "DBIdent.done" =TRUE The process has been completed successfully. • DBIdent.status=16#0005 Image capture parameters were set. MV500 reader WBM: The diagnostics in the WBM of the MV500 reader will provide you with more information about the event that occurred: "Diagnostics >...
  • Page 34 4 Operation Automatic setup 11. Assign values to all parameters for automatic setup of the MV500 reader: – DBIdent.cmdParam.autoSrc – DBIdent.cmdParam.autoTgt – DBIdent.cmdParam.autoExp – DBIdent.cmdParam.autoLmp – DBIdent.cmdParam.autoFcs – DBIdent.cmdParam.autoDec 12. Set the input "DBIdent.autoSetup" to TRUE. Note This function is only executed if the inputs "DBIdent.init", "DBIdent.read" and "DBIdent.setImageAcq"...
  • Page 35 4 Operation Result: Watch table: • "DBIdent.done" =TRUE The process has been completed successfully. • DBIdent.status=16#0006 The MV500 reader has been automatically set up. MV500 reader WBM: The program settings in the WBM of the MV500 reader will provide you with more information about the event that occurred: "Program >...
  • Page 36: Appendix

    Industry Online Support Do you have any questions or need assistance? Siemens Industry Online Support offers round the clock access to our entire service and support know-how and portfolio. The Industry Online Support is the central address for information about our products, solutions and services.
  • Page 37: Industry Mall

    5 Appendix Industry Mall The Siemens Industry Mall is the platform on which the entire siemens Industry product portfolio is accessible. From the selection of products to the order and the delivery tracking, the Industry Mall enables the complete purchasing processing –...