Siemens SIMATIC MV400 Series Manual

Siemens SIMATIC MV400 Series Manual

Running via profibus as a technology objekt

Advertisement

Quick Links

Running a SIMATIC
MV400 via PROFIBUS
as a Technology
Objekt
SIMATIC MV / PROFIBUS / SIMATIC S7-1200/1500
https://support.industry.siemens.com/cs/ww/en/view/109757269
Siemens
Industry
Online
Support

Advertisement

Table of Contents
loading

Summary of Contents for Siemens SIMATIC MV400 Series

  • Page 1 Running a SIMATIC MV400 via PROFIBUS as a Technology Objekt Siemens SIMATIC MV / PROFIBUS / SIMATIC S7-1200/1500 Industry Online https://support.industry.siemens.com/cs/ww/en/view/109757269 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 Overview....................4 Mode of operation ................6 Components used ................7 Engineering ......................9 Complete overview ................9 Basics of using the Ident blocks ............11 Explanation of the technology object ..........12 Explanation of the "MvControl"...
  • Page 4: Introduction

    Introduction To implement automatic identification of goods, materials and material carriers for process and production plants, the SIMATIC Ident product portfolio from Siemens offers customized modules for this task. This application example shows what needs to be considered when configuring MV systems with MV420 / MV440 and ASM 456.
  • Page 5 1 Introduction Diagrammatic representation The diagrammatic representation below shows the most important components of the solution: Figure 1-2 SIMATIC S7 controllers S7-1500 S7-1200 PROFIBUS DP SIMATIC communication module ASM 456 Serial connection / RS422 SIMATIC MV MV Basics Entry ID: 109757269, V1.0, 04/2018...
  • Page 6: Mode Of Operation

    1 Introduction Advantages The solution presented here offers the following advantages:  The illustrations and explanations included in this application example save you time and costs when commissioning your own automation solution.  You can expand the supplied hardware configuration as required or integrate it into your project.
  • Page 7: Components Used

    1 Introduction Components used Prerequisites and restrictions This application deals only with receiving and evaluating the data of the MV440. It only provides a partial description of setting up the MV440. The following components are required to implement the solution: ...
  • Page 8 1 Introduction Sample files and projects The following list contains all files and projects that are used in this example. Table 1-3 Component Note 109757270_SIMATIC_MV440_ASM456_S7- This zip file contains the STEP 1200_TO.zip 7 project for the SIMATIC 1200. 109757270_SIMATIC_MV440_ASM456_S7- This zip file contains the STEP 1500_TO.zip 7 project for the SIMATIC 1500.
  • Page 9: Engineering

    2 Engineering Engineering The following chapters describe the PLC program of the configuring aid. Complete overview The diagrammatic representation below shows the interaction between the user program and the SIMATIC hardware: Figure 2-1 User program Ident blocks … Reset_ Set_MV_ Read_MV Write Reader...
  • Page 10 2 Engineering Program overview The following figure shows the call hierarchy of the user program of this application example: Figure 2-2 Data storage MvControl OB 1 cycle Ident blocks MvControl ToMv440 Interface Reset_ Reader Read_MV MvData Write Ident Profile Set_MV_ Ident_ Main Program...
  • Page 11: Basics Of Using The Ident Blocks

    2 Engineering Table 2-1 Ident block name Implemented in this example  Reset_Reader  Reset_MV  Set_MV_Program  Read_MV  Write  Read  AdvancedCMD This application example discusses only the four implemented blocks as they determine the basic operation of SIMATIC MV code readers. Basics of using the Ident blocks To be able to use the Ident blocks, the following requirements must be met: Call of the blocks...
  • Page 12: Explanation Of The Technology Object

    2 Engineering Explanation of the technology object The "HW_CONNECT" input parameter of the Ident blocks is used to address the configured interface modules/readers and requires "TO_IDENT" as the data type. This data type is automatically generated when creating a technology object. Creating a technology object The following description explains how to create a technology object: 1.
  • Page 13: Explanation Of The "Mvcontrol" Block

    2 Engineering 6. Select the "channel" for connecting the reader and in "Reader parameter assignment", set "MV4x0". 7. Go to "Ident device parameters" and check the settings. If the settings do not match the parameters shown below, click "Auto configuration". This sets the "User mode"...
  • Page 14 2 Engineering The block was created in SCL and commented in the source code. Program details about the block Figure 2-3 Table 2-2 Parameter Description resetMv Starts the reset job readMv Starts the read job setMvProgram Starts the program change setDisa Starts 'set DISA' resetDisa...
  • Page 15: Explanation Of The Ident Blocks

    2 Engineering Explanation of the Ident blocks This chapter explains the most important Ident blocks. General output parameters of the Ident blocks All Ident blocks share the following output parameters: Table 2-3 Parameter Description DONE Job successfully completed BUSY Job active ERROR Job completed with error STATUS...
  • Page 16: Read_Mv" Functionality

    2 Engineering Program details about the block Figure 2-5 Table 2-5 Parameter Description EXECUTE Starts the program change PROGRAM Program number Range of values: 0x01 … 0x0F HW_CONNECT Address tag "Read_MV" functionality The "Read_MV" block reads out the read result of a camera. Based on the length of the created receive buffer, the camera automatically determines the length of the data to be read.
  • Page 17: Write" Functionality

    2 Engineering Note Change the length of the "IDENT_DATA" data type such that it is as close as possible to the maximum expected length of the read result (2 bytes code length + read code). This ensures that optimum speed is achieved. "Write"...
  • Page 18: Explanation Of The "Ident_Profile" Block

    2 Engineering Explanation of the "Ident_Profile" block All Ident blocks are based on the "Ident_Profile" block. The simplified Ident blocks run the Ident profile with the suitable parameter interconnection for the respective RFID functionality. Therefore, the blocks are a simplified interface of the Ident profile.
  • Page 19 2 Engineering Figure 2-8 Display The diagnostics display shows the last 5 occurred error messages, including the error code, time stamp and error description. The following figure shows an example of the diagnostics display in the technology object. Figure 2-9 MV Basics Entry ID: 109757269, V1.0,...
  • Page 20 2 Engineering The following values of the technology object are read and displayed: Table 2-8 Values displayed Description Date and time Displays the date and time when the error occurred. Command Displays the command where the error occurred. Error description Displays a brief description of the error that occurred.
  • Page 21: Configuration

    2 Engineering Configuration This chapter shows the configuration steps necessary to create a project with the SIMATIC S7 CPU, ASM 456 and SIMATIC MV420 / MV440 readers. Note Follow the instructions in this chapter if you are using alternative hardware. If you are using identical hardware (see chapter "1.3 Components used"), the...
  • Page 22 "OK". 5. Go to the "Network view"; in the "Hardware Catalog", click "Other field devices" > "PROFIBUS DP" > "Ident Systems" > "Siemens AG" > "Moby" > "ASM456". Use drag and drop to move the interface module ("6GT2002-0ED00") from the hardware catalog to your workspace and connect the PROFIBUS port to the CPU.
  • Page 23 2 Engineering 6. When parameterizing the submodules, make sure to assign the same address range to "I address" and "Q address". 7. Open an FC, FB or OB in which you want to call the Ident blocks. 8. In TIA Portal, navigate to "Instructions" > "Optional packages" > "SIMATIC Ident".
  • Page 24 2 Engineering MV Basics Entry ID: 109757269, V1.0, 04/2018...
  • Page 25: Configuring Mv420 / Mv440

    2 Engineering Configuring MV420 / MV440 This chapter shows the settings for communication with the PLC and an example of creating programs for reading 1D and 2D codes. Communication parameter settings 1. In the "Connections" > "Interfaces" applet, make sure that "IP mode" is set to "Manual".
  • Page 26 2 Engineering 6. Save these settings in the MV440. MV Basics Entry ID: 109757269, V1.0, 04/2018...
  • Page 27 The product DVD supplied with the camera contains the MV plug-in for the ALM. This plug-in must be installed first. For a detailed description, refer to chapter 7.3 of the MV440 manual. https://support.industry.siemens.com/cs/ww/en/view/84553392 To transfer a license, the reader must be in STOP. Note Make sure that the Automation License Manager and the MV plug-in have the same bit version (32- or 64-bit).
  • Page 28: Installation And Startup

    2 Engineering Note Once the license has been transferred, disconnect from the MV440 target system. 2.10 Installation and startup This chapter shows the steps necessary to install and start up the example using the code from the download and the components from the hardware list. Hardware configuration The following figure shows the hardware configuration of the application.
  • Page 29 2 Engineering Installing the software (download) This chapter describes the steps for installing the sample code. 1. Install TIA Portal V14 SP1 or higher. 2. The Step 7 V14 SP1 project is available on the HTML page from which you downloaded this document (\2\).
  • Page 30: How To Use The Application Example

    3 How to Use the Application Example How to Use the Application Example The application example is controlled using a watch table. This chapter describes how to use the application example. Description of the watch table The following figure shows the watch table for using the application example: Figure 3-1 The watch table is divided into four sections.
  • Page 31 3 How to Use the Application Example  Result: length and result of the result string. The sections contain the tags – from the "Interface" data block – to be modified and monitored. These tags are directly linked to the "MV_Control" block. Using the watch table This chapter describes the steps for using the sample code.
  • Page 32 3 How to Use the Application Example Executing a reset command 1. To do this, right-click the row of the "executeResetMv" tag, select "Modify" and left-click "Modify to 1". 2. The "done", "error" and "status" tags allow you to check whether or not the job has successfully completed.
  • Page 33 3 How to Use the Application Example Executing a SetDisa command 1. Execute a setDisa command. To do this, right-click the row of the "executeSetDisa" tag, select "Modify" and left-click "Modify to 1". 2. The "done", "error", "status", "stateMv" and "stateDisa" tags allow you to check whether or not the job has successfully completed.
  • Page 34 3 How to Use the Application Example Executing a ResetDisa command 1. Execute a resetDisa command. To do this, right-click the row of the "executeResetDisa" tag, select "Modify" and left-click "Modify to 1". 2. The "done", "error", "status", "stateMv" and "stateDisa" tags allow you to check whether or not the job has successfully completed.
  • Page 35 3 How to Use the Application Example 3. Now execute a "SetMvProgram" command. To do this, right-click the row of the "executeSetMvProgram" tag, select "Modify" and left-click "Modify to 1". 4. The "done", "error" and "status" tags allow you to check whether or not the job has successfully completed.
  • Page 36: Tips And Tricks

    4 Tips and Tricks Tips and Tricks This chapter additionally provides a number of tips and tricks to optimize your SIMATIC MV applications. Outputting binary results of the read operation The binary results of the read operation can be included in the format text output: In the "Total read result"...
  • Page 37 4 Tips and Tricks Checking the data buffer in the interface module / MV4x0 If you have logged in as the "Service" user and triggered the MV440 for test purposes in "RUN" mode, the read results are buffered in the data buffer of the reader / interface module and not transferred to the PLC.
  • Page 38 4 Tips and Tricks Visit our SIMATIC Ident guide The "Industrial Identification with SIMATIC Ident in the Siemens Industry Online Support" guide (\9\) provides you with a large number of SIMATIC Ident-related application examples and more information on the topic.
  • Page 39: Links & Literature

    SIMATIC S7-1500, ET 200MP Automation System https://support.industry.siemens.com/cs/ww/en/view/59191792 SIMATIC S7 S7-1200 Programmable Controller https://support.industry.siemens.com/cs/ww/en/view/109478121 SIMATIC MV420 / MV440 firmware update version 7.0.2 https://support.industry.siemens.com/cs/en/en/view/109745995 Industrial Identification with SIMATIC Ident in the Siemens Industry Online Support https://support.industry.siemens.com/cs/ww/en/view/109477926 \10\ PROFIBUS User Organization home page http://www.profibus.com/ History...

This manual is also suitable for:

Simatic mv420Simatic mv440

Table of Contents