Industrial Identification With SIMATIC MV320 Via RF170C
Industrial Identification With SIMATIC MV320 Via RF170C
Identification with
SIMATIC MV320 via
RF170C
Siemens
SIMATIC MV, PROFINET, PROFIBUS, STEP 7 V15 Industry
Online
https://support.industry.siemens.com/cs/ww/en/view/109755705 Support
Legal information
Legal information
Use of application examples
Application examples illustrate the solution of automation tasks through an interaction of several
components in the form of text, graphics and/or software modules. The application examples are
a free service by Siemens AG and/or a subsidiary of Siemens AG (“Siemens”). They are non-
binding and make no claim to completeness or functionality regarding configuration and
equipment. The application examples merely offer help with typical tasks; they do not constitute
customer-specific solutions. You yourself are responsible for the proper and safe operation of the
products in accordance with applicable regulations and must also check the function of the
respective application example and customize it for your system.
Siemens grants you the non-exclusive, non-sublicensable and non-transferable right to have the
application examples used by technically trained personnel. Any change to the application
examples is your responsibility. Sharing the application examples with third parties or copying the
application examples or excerpts thereof is permitted only in combination with your own products.
The application examples are not required to undergo the customary tests and quality inspections
of a chargeable product; they may have functional and performance defects as well as errors. It is
your responsibility to use them in such a manner that any malfunctions that may occur do not
result in property damage or injury to persons.
Disclaimer of liability
Siemens shall not assume any liability, for any legal reason whatsoever, including, without
limitation, liability for the usability, availability, completeness and freedom from defects of the
application examples as well as for related information, configuration and performance data and
any damage caused thereby. This shall not apply in cases of mandatory liability, for example
under the German Product Liability Act, or in cases of intent, gross negligence, or culpable loss of
life, bodily injury or damage to health, non-compliance with a guarantee, fraudulent
non-disclosure of a defect, or culpable breach of material contractual obligations. Claims for
damages arising from a breach of material contractual obligations shall however be limited to the
foreseeable damage typical of the type of agreement, unless liability arises from intent or gross
Siemens AG 2018 All rights reserved
negligence or is based on loss of life, bodily injury or damage to health. 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.
By using the application examples you acknowledge that Siemens cannot be held liable for any
damage beyond the liability provisions described.
Further notes
Siemens reserves the right to make changes to the application examples at any time without
notice. In case of discrepancies between the suggestions in the application examples and other
Siemens publications such as catalogs, the content of the other documentation shall have
precedence.
The Siemens terms of use (https://support.industry.siemens.com) shall also apply.
Security information
Siemens provides products and solutions with Industrial Security functions that support the secure
operation of plants, systems, machines and networks.
In order to secure plants, systems, machines and networks against cyber threats, it is necessary
to implement (and to maintain continuously) a holistic, state-of-the-art Industrial Security concept.
With this in mind, Siemens’ products and solutions are only part of such a concept.
It is the client’s responsibility to prevent unauthorized access to his plants, systems, machines
and networks. Systems, machines and components should only be connected with the company’s
network or the Internet, when and insofar as this is required and the appropriate protective
measures (for example, use of firewalls and network segmentation) have been taken.
In addition, the recommendations by Siemens regarding the respective protective measures have
to be observed. For additional information on industrial security measures that may be
implemented, please visit https://www.siemens.com/industrialsecurity.
Siemens' products and solutions undergo continuous development to make them more secure.
Siemens explicitly recommends to carry out updates as soon as the respective updates are
available and always only to use the current product versions. Use of product versions that are no
longer supported, and failure to apply latest updates may increase customer’s exposure to cyber
threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed
at: http://www.siemens.com/industrialsecurity.
Table of Contents
Legal information ......................................................................................................... 2
1 Introduction ........................................................................................................ 4
1.1 Overview............................................................................................... 4
1.2 Mode of operation ................................................................................ 6
1.3 Hardware and software components ................................................... 7
2 Engineering ........................................................................................................ 8
2.1 General overview ................................................................................. 8
2.2 Basics on using the Ident blocks ........................................................ 10
2.3 Explanation of HW_CONNECT .......................................................... 11
2.4 Explanation of the blocks ................................................................... 13
2.4.1 "MV3x0Control" (FB1) functionality .................................................... 13
Realized functions of the block .......................................................... 14
Note on the internal Ident block "Reset_Univ" ................................... 14
2.4.2 "freePortControl" (FB2) functionality .................................................. 14
Block interface .................................................................................... 14
Realized functions of the block .......................................................... 15
Note on initialization via the "Ident_Profile" block .............................. 15
2.5 Diagnostic and error messages ......................................................... 16
2.5.1 MOBY mode-specific error messages ............................................... 16
3 Configuration and Settings............................................................................. 17
Siemens AG 2018 All rights reserved
1 Introduction
In order to implement automatic identification of goods, materials and workpiece
carriers for process and production plants, the SIMATIC Ident product portfolio
from Siemens offers customized modules.
This application example shows you what has to be observed for the configuration
of the SIMATIC MV320 optical handheld readers in combination with the SIMATIC
RF170C interface module. In addition, user blocks are provided to receive reading
results automatically using a SIMATIC S7-PLC.
1.1 Overview
The figure below provides an overview of the automation task.
Figure 1-1
PLC
RFID connection
Schematic layout
The figure below shows a schematic overview of the most important components of
the solution:
Figure 1-2
SIMATIC S7 controllers
PROFINET IE
PROFIBUS DP
RF170C
MV320
Advantages
The application example offers the following advantages:
The illustrations and explanations included in this application example save
you time and money in the commissioning of your own automation solution.
You can expand the provided hardware configuration as desired or integrate it
in your project.
By using the RF170C, the SIMATIC MV320 optical handheld reader is
integrated into a control system via PROFINET or PROFIBUS. This is a
frequent requirement in modern automation solutions.
The ready-to-use blocks significantly simplify operating the SIMATIC MV320
optical handheld readers.
Trigger Display
reset job result
Siemens AG 2018 All rights reserved
Display
job result
Perform a reset (initialization) using the included user block to make the optical
handheld reader ready for operation. Once the reset has been performed, the user
can read 1D and 2D barcodes and further process the results in a PLC.
Hardware components
Table 1-1
Component Qty. Article number Note
SIMATIC S7-1500 1 6ES7 516-3AN00- Alternatively, you can use a
CPU 1516-3 PN/DP 0AB0 different S7-CPU.
ET 200pro 1 6ES7154-1AA01- For PROFIBUS connection
IM 154-1 DP 0AB0
ET 200pro 1 6ES7153-4AB10- For PROFINET connection
IM 154-4 PN HF 0AB0
SIMATIC RF170C 1 6GT2002-0JD01 FW V2 or higher
SIMATIC MV320 1 6GF3320-0HT01 Alternatively, you can use a
different SIMATIC MV340
reader.
KAB_KONF_ V320_5M 1 6GT2191-0BH50 For MV340
6GT2191-0AH50
Siemens AG 2018 All rights reserved
Software components
Table 1-2
Component Qty. Article number Note
STEP 7 TIA Portal V15 1 6ES7822-1..05-..
2 Engineering
The following chapters describe the PLC program of the configuration help.
User program
MV3x0 Reset
Control Read
Univ
Hardware
Siemens AG 2018 All rights reserved
SIMATIC S7 controllers …
Interface modules …
SIMATIC MV320 …
The user block controls the operations of the optical handheld readers MV320
using the integrated Ident blocks. The command frames generated by the user
block are sent from the SIMATIC S7 controller to the SIMATIC MV320 readers via
the interface modules. The response frames of the MV320 readers take the same
path back to the user program and are provided to the user via the block outputs.
For the Ident blocks, it does not matter whether the interface modules are
connected to the control system via PROFIBUS, PROFINET or in a proprietary
manner.
Program overview
The following figure shows the call hierarchy of the user program in this application
example:
Figure 2-2
Reset HW
Interface
Univ Connect
Read IdentData
OB 1
Siemens AG 2018 All rights reserved
Ident profile
MV3x0
Control
Ident_
Profile
To show the use of the Ident blocks in a simplified manner, the application example
calls them all together directly in the "MV3x0Control" function block. Each Ident
block is responsible for a specific functionality.
The user data read are stored in the “IdentData” data block.
The “Interface” data block includes all tags of the application example that are to be
modified.
Internally, all Ident blocks call the basic block, “Ident Profile”. Therefore, the Ident
blocks are only an encapsulation of the complex “Ident Profile” block to make it
easier for you to implement the RFID functionalities.
For more information about using the “IID_HW_CONNECT” UDT, please refer to
chapter 2.3.
Reset block
Before a SIMATIC MV320 reader can start, a reset has to be performed. For this,
the "Reset_Univ" block is available.
The RESET command is used for establishing the connection to the optical
handheld reader. You can read the firmware version of the RF170C in the instance
DB of the Ident profile or MOBY_DB.
A successfully established connection is signaled by a triple acoustic signal of the
optical handheld reader. The RESET command is made without any reader-
specific parameters and triggers the deletion of the buffer of the optical handheld
reader.
After the “Reset”, the handheld reader is ready for use.
If the connection is not established or in case of a faulty connection attempt, the FB
outputs the "0xE4FE03" error message.
have been scanned and are available in the RF170C for being fetched via a “Read”
command.
The following three fields are provided for the addressing of the interface modules:
“HW_ID” (only for S7 1200 and S7 1500 PLC)
Siemens AG 2018 All rights reserved
“CM_CHANNEL”
“LADDR”
The “CM_CHANNEL” is the slot of the optical handheld reader on communication
module 1 or 2. “LADDR” is the I/O address of the RFID communication channel.
“HW_ID” is the hardware identification number automatically assigned by TIA
Portal.
Using "IID_HW_CONNECT"
Proceed as follows to create the addressing tags:
1. Create a tag of type “IID_HW_CONNECT” in a global data block.
2. This is where you enter the correct address values in the tag (see bottom).
3. Connect this tag to the “hwConnect” input parameter of the “MV3x0Control”
block.
Note You have to create a separate address tag for each SIMATIC MV320 reader in
your project.
Figure 2-4
Note For the connection of third-party optical readers, use the setting of the MOBY
Mode "Freeport protocol" in the HW Config. Instead of calling the
"MV320Control" function block, call the "freePortControl" function block included
in the project.
The Ident profile is based on the standardized “Proxy Ident Function Block”
protocol. For the specification of the protocol, please refer to the PROFIBUS User
Organization.
Siemens AG 2018 All rights reserved
Block interface
Figure 2-5
Block interface
Figure 2-6
Note The "FreePortControl" user block resets only the RF170C communication
module. If your connected reader requires a “Reset” function, additionally send
Siemens AG 2018 All rights reserved
the reset frame mentioned above to the end device using the Ident command
"PHYSICAL_WRITE" (command code 71hex).
The table below gives an overview of the error messages specific for the MOBY
mode "MV3xx”.
Table 2-5
Error ID Meaning
0xE4FE03 Connection error to the reader
0xE2FE01 Negative acknowledgment or faulty frame from the reader
0xE6FE01 Unknown command, wrong command parameters or inadmissible
command chain (wrong length specification)
0xE1FE03 Address error in the command (≠ "0x0000", "0x0002", "0xFFFF)
0xE4FE8D Internal communication error
0xE4FE04 New data were received before available data have been fetched.
• Scan mode: Latest data are lost.
Siemens AG 2018 All rights reserved
Figure 3-2
Siemens AG 2018 All rights reserved
L+ (24V)
M (0V)
SIMATIC S7-1500
Siemens AG 2018 All rights reserved
PROFIBUS DP
PROFINET / IE
Reader cable
Note Follow the installation guidelines for SIMATIC S7-1500 (\6\), SIMATIC RF170C
(\5\), SIMATIC MV320 (\10\).
\3\ SIMATIC Ident RFID systems Ident profile and Ident blocks, standard function for
Ident systems
https://support.industry.siemens.com/cs/ww/en/view/106368029
\4\ SIMATIC Ident RFID Systems SIMATIC RF200
https://support.industry.siemens.com/cs/de/en/view/47189592
https://support.industry.siemens.com/cs/ww/en/view/13008499
\9\ Industrial Identification with SIMATIC Ident in the Siemens Industry Online Support
https://support.industry.siemens.com/cs/ww/en/view/109477926
8 History
Table 9-1
Version Date Modifications
V1.0 02/2018 First version