Académique Documents
Professionnel Documents
Culture Documents
Identification with
SIMATIC RF200 and
RF180C
We do not accept any liability for the information contained in this document.
Any claims against us based on whatever legal reason resulting from the use of
the examples, information, programs, engineering and performance data etc.,
described in this Application Example shall be excluded. Such an exclusion shall
not apply in the case of mandatory liability, e.g. under the German Product Liability
Act (Produkthaftungsgesetz), in case of intent, gross negligence, or injury of life,
body or health, guarantee for the quality of a product, fraudulent concealment of a
deficiency or breach of a condition which goes to the root of the contract
(wesentliche Vertragspflichten). The damages for a breach of a substantial
contractual obligation are, however, limited to the foreseeable damage, typical for
Siemens AG 2017 All rights reserved
the type of contract, except in the event of intent or gross negligence or injury to
life, body or health. The above provisions do not imply a change of the burden of
proof to your detriment.
Any form of duplication or distribution of these Application Examples or excerpts
hereof is prohibited without the expressed consent of the Siemens AG.
Security Siemens provides products and solutions with industrial security functions that support the
informa- secure operation of plants, systems, machines and networks.
tion In order to protect plants, systems, machines and networks against cyber threats, it is
necessary to implement and continuously maintain a holistic, state-of-the-art industrial
security concept. Siemens products and solutions only form one element of such a
concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines
and networks. Systems, machines and components should only be connected to the
enterprise network or the internet if and to the extent necessary and with appropriate
security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens guidance on appropriate security measures should be taken into
account. For more information about industrial security, please visit
http://www.siemens.com/industrialsecurity.
Siemens products and solutions undergo continuous development to make them more
secure. Siemens strongly recommends to apply product updates as soon as available and
to always use the latest product versions. Use of product versions that are no longer
supported, and failure to apply latest updates may increase customers exposure to cyber
threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security
RSS Feed under http://www.siemens.com/industrialsecurity.
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 2
Table of Contents
Table of Contents
Warranty and Liability ................................................................................................. 2
1 Task ..................................................................................................................... 4
2 Solution............................................................................................................... 5
2.1 Overview............................................................................................... 5
2.2 Description of the core functionality ..................................................... 6
2.3 Hardware and software components ................................................... 7
3 PLC Program ...................................................................................................... 8
3.1 Complete overview ............................................................................... 8
3.2 Basics of using the Ident blocks ......................................................... 10
3.3 Explanation of HW_CONNECT ....................................................... 11
3.4 Explanation of the Ident blocks .......................................................... 13
3.4.1 Ident_Profile (FB1900) functionality................................................. 13
3.4.2 ResetRF200 functionality ................................................................. 15
3.4.3 SetAntRF200 functionality ............................................................... 16
3.4.4 Read functionality ............................................................................ 17
3.4.5 Write functionality............................................................................. 18
3.5 Diagnostics and error messages ........................................................ 18
4 Configuration and Project Engineering ......................................................... 19
5 Installation and Startup ................................................................................... 22
Siemens AG 2017 All rights reserved
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 3
1 Task
1 Task
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 what needs to be considered when configuring
SIMATIC RFID systems.
PLC
RFID transponders
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 4
2 Solution
2 Solution
2.1 Overview
Diagrammatic representation
The diagrammatic representation below shows the most important components of
the solution:
Figure 2-1
SIMATIC S7 controllers
S7-300/
S7-400
PROFINET / IE
Siemens AG 2017 All rights reserved
SIMATIC
communication module
RF180C
RF200
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 5
2 Solution
Advantages
The application example offers the following advantages:
You save time and money when commissioning your own automation solution.
The supplied hardware configuration can be expanded as required or
integrated into your project.
By using the RF180C, the SIMATIC RFID reader is integrated into a control
system via PROFINET. This is a frequent requirement in modern automation
solutions.
The ready-to-use blocks significantly simplify operating the SIMATIC RFID
readers.
Trigger Display
reset job result
Siemens AG 2017 All rights reserved
Data
storage
Perform a reset (initialization) using the Reset block to set the RFID reader to
ready for operation. Once the reset has been performed, the user can choose
between different RFID operations and monitor their status.
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 6
2 Solution
Hardware components
Table 2-1
Component No. Article number Note
SIMATIC S7-300 1 6ES7318-3EL00- Alternatively, you can use a
CPU 319-3 PN/DP 0AB0 different S7-300/S7-400 CPU.
Software components
Siemens AG 2017 All rights reserved
Table 2-2
Component No. Article number Note
STEP 7 V5.5 1 6ES7810-4C.10-.. V5.5 SP4 or higher
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 7
3 PLC Program
3 PLC Program
The following chapters describe the PLC program of the configuring aid.
User program
Ident blocks
Reset
RF200
SetAnt
RF200
Read Write
Hardware
SIMATIC S7 controllers
Siemens AG 2017 All rights reserved
Interface modules
The Ident blocks control the RFID operations of the RFID readers. The command
frames the user blocks generate are sent from the SIMATIC S7 controller to the
SIMATIC RFID readers via the interface modules. The response frames of the
RFID 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 is irrelevant whether the interface modules are connected to
the control system via PROFIBUS, PROFINET or on a proprietary basis.
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 8
3 PLC Program
Program overview
The following figure shows the call hierarchy of the user program of this application
example:
Figure 3-2
Reset Hw
Interface
RF200 Connect
Read IdentData
Write
Siemens AG 2017 All rights reserved
Ident Profile
SetAnt Ident_
OB 1
RF200 Profile
To show the use of the Ident blocks in a simplified manner, the application example
calls them directly in the OB 1 cycle. Therefore, a minimum PLC program is
created.
Each Ident block is responsible for a specific RFID functionality.
The transponder data read and to be written is 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.
The block names describe their basic core functionality. The following ready-to-use
blocks are available for the SIMATIC RF200 product portfolio:
Table 3-1
Ident block name Implemented in this example
ResetRF200 Yes
SetAntRF200 Yes
Read Yes
Write Yes
ReadUid No
AdvancedCMD No
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 9
3 PLC Program
This application example discusses only the four implemented blocks as they
determine the basic operation of SIMATIC RF readers.
Reset block
Before a SIMATIC RFID reader can perform its function, an execute must be
performed at the Reset block.
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 10
3 PLC Program
transponder in the RFID field. The buffered job will not be executed before a
transponder passes through the RFID field. To cancel a running buffered job, you
have to perform a reset.
For addressing the interface modules, the following three fields are provided in
UDT 1901:
HW_ID
CM_CHANNEL
Siemens AG 2017 All rights reserved
LADDR
The CM_CHANNEL is the slot of the RFID reader on communication module 1 or
2. LADDR is the I/O address of the RFID communication channel.
Note You have to create a separate address tag for each SIMATIC RFID reader in
your project.
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 11
3 PLC Program
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 12
3 PLC Program
The Ident Profile block is a complex block. It includes all the functionalities for
communicating with RFID readers. The Ident blocks are a simplified interface to the
Ident Profile block. Each Ident block contains a single Ident Profile command.
Note Basically, the decision which blocks to use, Ident Profile or Ident blocks, must be
made at the outset. You can only use one of the two blocks. Mixed use of the
Ident Profile and Ident blocks per channel is not possible!
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 (\10\).
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 13
3 PLC Program
Table 3-3
Siemens AG 2017 All rights reserved
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 14
3 PLC Program
The ResetRF200 block sets the reader to ready for operation. When the block is
called, all settings of the blocks input parameters are transferred to the reader,
active reader jobs are canceled and reader errors are acknowledged.
Table 3-4
Siemens AG 2017 All rights reserved
Parameter Description
execute Starts the reset job
mdsControl Presence check on/off
tagType Transponder type:
1 = ISO transponder
3 = MDS D3xx optimization
rfPower Transmitter power (for RF290R only):
HF power from 0.5 W to 5 W in increments of 0.25 W (range of
values: 0x02 ... 0x14); default value 0x04 1 W
hwConnect Address tag
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 15
3 PLC Program
The SetAntRF200 block turns the RF field of the readers on and off. This block is
mainly used to prevent overlapping fields between adjacent readers.
Table 3-5
Parameter Description
execute Starts the antenna job
Siemens AG 2017 All rights reserved
NOTICE After a reset, the antennas of the SIMATIC RFID readers are turned on by
default. If, after a reset, you execute an antenna command with the value
TRUE at the antenna parameter, you will receive an error message. This error
occurs as you cannot reactivate an antenna that has already been active.
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 16
3 PLC Program
The Read block allows you to read process data from a transponder. The
addrTag and lenData parameters are used to define the memory area to be
read. The read data is provided via the identData.RXRef parameter.
Table 3-6
Parameter Description
execute Starts the read job
addrTag Physical address starting with which the transponder data is read
lenData Length of the data to be read
lenId (For RF600 only)
epcIdUid (For RF600 only)
hwConnect Address tag
identData Data buffer for the read transponder data
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 17
3 PLC Program
The Write block allows you to write process data to a transponder. The addrTag
and lenData parameters are used to define the transponder memory area to be
written. The data to be written is provided via the identData.TXRef parameter.
Table 3-7
Parameter Description
execute Starts the write job
addrTag Physical address starting with which the transponder data is
written
lenData Length of the data to be written
lenId (For RF600 only)
epcIdUid (For RF600 only)
hwConnect Address tag
identData Data buffer for the transponder data to be written
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 18
4 Configuration and Project Engineering
Note Chapter 4 is only relevant if you are using hardware that differs from the
hardware listed in Chapter 2.3. If you are using identical hardware, continue with
Chapter 5.
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 19
4 Configuration and Project Engineering
5. In the SIMATIC 300 > CPU-300 hardware catalog folder, select the S7 CPU
you are using. Make sure that the CPU has a PROFINET port. For S7-400
CPUs, add a PROFINET CP to the CPU. Assign the CPU to slot 2 and set up
the PROFINET connection.
6. Open the Hardware catalog, PROFINET IO > Ident Systems > SIMATIC
RFID. Use drag and drop to move the interface module (RF180C V2.2) from
the hardware catalog to your workspace and connect the PROFINET port to
the CPU. Enter the device name for the RF180C. Click OK.
Siemens AG 2017 All rights reserved
7. Click Slot 0 in the declaration row of the RF180C. Open Object Properties.
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 20
4 Configuration and Project Engineering
9. Download the user program and the hardware configuration to your S7 CPU.
Siemens AG 2017 All rights reserved
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 21
5 Installation and Startup
L+ (24V)
M (0V)
SIMATIC S7-300
Siemens AG 2017 All rights reserved
PROFINET IE
RF180C
SIMATIC RF220R
Reader cable
Note Always follow the installation guidelines for SIMATIC S7-300 (\8\), SIMATIC
RF180C (\5\) and SIMATIC RF200 (\4\).
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 22
5 Installation and Startup
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 23
5 Installation and Startup
The watch table is divided into four sections. Each section belongs to one of the
functions called in OB 1:
Reset Reader: INIT
Set Ant: Set Ant on/off
Read Tag: Read Data
Write Tag: Write Data
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 24
5 Installation and Startup
The sections contain the tags from the Interface data block to be modified and
monitored. These tags are directly linked to the blocks.
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 25
5 Installation and Startup
3. Execute a reset. To do this, click the row of the executeReset tag and press
<CTRL + F9>.
4. The Interface.resetError, Interface.resetDone and Interface.resetStatus
tags allow you to check whether or not the reset was successful.
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 26
5 Installation and Startup
Note When you have executed a read job, the command will be buffered in the reader
until a transponder passes through the RF field. The readDone, readError and
readStatus output parameters will not be set before this has happened.
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 27
5 Installation and Startup
Note When you have executed a write job, the command will be buffered in the reader
until a transponder passes through the RF field. The writeDone, writeErrorand
writeStatus output parameters will not be set before this has happened.
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 28
5 Installation and Startup
In this example, the value for Interface.antOnOff is set to FALSE to turn off
the readers antenna.
Note After a reset, the antennas of the SIMATIC RFID readers are turned on by
default. If, after a reset, you execute an antenna command with the value
TRUE at the antenna parameter, you will receive an error message. This error
occurs as you cannot reactivate an antenna that has already been active.
2. Click any cell of the watch table. Press <CTRL + F9> to transfer the values
entered in 1 directly to the data block of the S7 CPU.
3. Execute an antenna command. Click the row of the
Siemens AG 2017 All rights reserved
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 29
6 Tips and Tricks
Note Prerequisite: You have previously executed a reset command with the
mdsControl parameter = TRUE.
When a transponder has passed through the RF field, a CPU cycle elapses
before the transponder operation is started.
Use the command buffer of the SIMATIC RFID readers to minimize the effective
processing time for transponder operations. This is particularly helpful when
implementing applications with fast transponder sequences.
When the Done output parameter of the previous transponder operation is set,
start a transponder operation (e.g., read or write) via the execute input
parameter.
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 30
7 Links & Literature
\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/ww/en/view/47189592
\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 8-1
Version Date Modifications
V1.0 05/2017 First version
RFID Basics
Entry ID: 109483371, V1.0, 05/2017 31