RFID
RFID
TBEN-S2-2RFID-4DXP
Compact RFID Interface
Instructions for Use
2 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Contents
1 About these Instructions................................................................................................................... 7
1.1 Target groups................................................................................................................... 7
1.2 Explanation of symbols used ........................................................................................ 7
1.3 Other documents ............................................................................................................ 7
1.4 Feedback about these instructions.............................................................................. 7
2 Notes on the product......................................................................................................................... 8
2.1 Product identification..................................................................................................... 8
2.2 Scope of delivery ............................................................................................................. 8
2.3 Legal requirements......................................................................................................... 8
2.4 Manufacturer and service .............................................................................................. 8
3 For Your Safety.................................................................................................................................... 9
3.1 Intended use..................................................................................................................... 9
3.2 General safety notes ....................................................................................................... 9
4 Product description.......................................................................................................................... 10
4.1 Device overview ............................................................................................................ 10
4.1.1 Display elements............................................................................................................................ 10
4.2 Properties and features................................................................................................ 10
4.3 Operating principle....................................................................................................... 11
4.4 Functions and operating modes ................................................................................ 11
4.4.1 Multiprotocol technology........................................................................................................... 11
4.4.2 Data transfer to the PLC............................................................................................................... 12
4.4.3 RFID channels – Operating modes .......................................................................................... 12
4.4.4 RFID commands ............................................................................................................................. 14
4.4.5 Loop counter function ................................................................................................................. 14
4.4.6 Configurable digital channels – functions............................................................................ 15
4.4.7 Turck Field Logic Controller (FLC) ............................................................................................ 15
4.5 Technical accessories.................................................................................................... 15
5 Mounting............................................................................................................................................ 16
5.1 Mounting devices in combination ............................................................................. 16
5.2 Mounting onto a mounting plate .............................................................................. 17
5.3 DIN rail (TS35) mounting ............................................................................................. 17
5.4 Mounting the device outdoors................................................................................... 18
5.5 Grounding the device................................................................................................... 18
5.5.1 Grounding and shielding concept........................................................................................... 18
5.5.2 Ground the device (FE) ................................................................................................................ 19
6 Connection......................................................................................................................................... 20
6.1 Connecting the device to Ethernet ............................................................................ 20
6.1.1 QuickConnect and Fast Start-Up applications .................................................................... 20
6.2 Connecting the power supply .................................................................................... 21
6.3 Connecting RFID read/write heads............................................................................ 22
6.3.1 Connecting read/write heads for the HF bus mode.......................................................... 23
6.4 Connecting digital sensors and actuators................................................................ 24
05.00 | 2019/11 3
Contents
7 Commissioning ................................................................................................................................. 25
7.1 Setting the IP address................................................................................................... 25
7.2 Connecting the device to a Modbus master ............................................................ 28
7.2.1 Connecting the device with the controller .......................................................................... 29
7.2.2 Renaming a Modbus slave.......................................................................................................... 33
7.2.3 Setting up network interfaces................................................................................................... 34
7.2.4 Modbus TCP slave – Setting the IP address.......................................................................... 35
7.2.5 Defining Modbus channels (registers) ................................................................................... 36
7.2.6 Connecting the device online with the controller............................................................. 38
7.2.7 Reading out process data ........................................................................................................... 38
7.2.8 Modbus TCP – Mapping .............................................................................................................. 39
7.3 Connecting a device to an EtherNet/IP™ controller................................................ 44
7.3.1 Installing an EDS file...................................................................................................................... 45
7.3.2 Connecting the device with the controller .......................................................................... 49
7.3.3 Connecting the device online with the controller............................................................. 55
7.3.4 Reading out process data ........................................................................................................... 57
7.3.5 EtherNet/IP™ – Mapping ............................................................................................................. 59
7.3.6 Activating QuickConnect (QC) .................................................................................................. 65
7.4 Connecting a device to a Siemens PROFINET controller ....................................... 68
7.4.1 Installing a GSDML file ................................................................................................................. 69
7.4.2 Connecting the device with the controller .......................................................................... 71
7.4.3 Assigning the PROFINET device name ................................................................................... 72
7.4.4 Set the IP address in the TIA Portal.......................................................................................... 72
7.4.5 Connecting the device online with the controller............................................................. 73
7.4.6 Setting module parameters ....................................................................................................... 74
7.4.7 PROFINET – Mapping.................................................................................................................... 74
8 Setting ................................................................................................................................................ 75
8.1 RFID channels – Parameter data................................................................................. 76
8.1.1 Meaning of the parameter bits ................................................................................................. 77
8.1.2 HF applications – Selecting the tag type............................................................................... 79
8.1.3 HF applications – Setting the bridging time (bypass time)............................................ 81
8.1.4 HF applications – Setting HF bus mode ................................................................................ 82
8.1.5 UHF applications – Setting Continuous presence sensing mode................................ 88
8.1.6 UHF applications – Transferring read/write head settings ............................................. 88
8.2 RFID channels – Process input data ........................................................................... 89
8.2.1 Meaning of the status bits .......................................................................................................... 92
8.2.2 Tag in detection range (TP) – Using bit or pre-loading the command ...................... 94
8.3 RFID channels – Process output data ........................................................................ 95
8.3.1 Meaning of the command bits.................................................................................................. 98
8.4 Digital channels – Parameter data .......................................................................... 100
8.4.1 Meaning of the parameter bits .............................................................................................. 100
8.5 Digital channels – Setting advanced parameters (EXT LEAN) ........................... 100
8.5.1 Meaning of the parameter bits .............................................................................................. 100
8.6 Digital channels – Process input data .................................................................... 101
8.6.1 Meaning of the status bits ....................................................................................................... 101
8.7 Digital channels – Process output data.................................................................. 101
8.7.1 Meaning of the command bits............................................................................................... 101
8.8 RFID channels – Overview of commands............................................................... 102
8.8.1 Command: Idle............................................................................................................................. 104
8.8.2 Command: Inventory................................................................................................................. 105
8.8.3 Read command............................................................................................................................ 109
8.8.4 Command: Write ......................................................................................................................... 111
4 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.8.5 Command: Write and verify .................................................................................................... 113
8.8.6 Command: Continuous mode................................................................................................ 115
8.8.7 Command: Get data from buffer command (Continuous mode/Continuous
presence sensing mode) .......................................................................................................... 117
8.8.8 Command: Continuous presence sensing mode (UHF) ............................................... 120
8.8.9 Command: End Continuous (presence sensing) mode ................................................ 121
8.8.10 Command: Read/write head identification ....................................................................... 122
8.8.11 Command: Switch off HF read/write head ........................................................................ 123
8.8.12 Command: HF read/write head tuning............................................................................... 124
8.8.13 Command: Query HF read/write head address ............................................................... 125
8.8.14 Command: Set HF read/write head address ..................................................................... 126
8.8.15 Direct read/write head command ........................................................................................ 127
8.8.16 Command: Set tag password.................................................................................................. 131
8.8.17 Command: Set read/write head password........................................................................ 133
8.8.18 Command: Reset read/write head password ................................................................... 134
8.8.19 Command: Set tag protection................................................................................................ 135
8.8.20 Command: Query HF tag protection status ...................................................................... 137
8.8.21 Command: Set permanent lock (Lock)................................................................................ 139
8.8.22 Command: Tag info.................................................................................................................... 141
8.8.23 Command: Kill UHF tag............................................................................................................. 143
8.8.24 Command: Restore UHF read/write head settings ......................................................... 144
8.8.25 Command: Backup settings of the UHF read/write head............................................. 145
8.8.26 Command: Query error/status of UHF read/write head ............................................... 146
8.8.27 Command: Reset ......................................................................................................................... 149
8.9 Setting RFID interfaces via the web server............................................................ 150
8.9.1 Opening a web server ............................................................................................................... 150
8.9.2 Processing settings in the web server ................................................................................. 151
8.10 Testing and parameterizing RFID interfaces via the DTM.................................. 161
8.10.1 Connecting the device with the PC...................................................................................... 161
8.10.2 Editing parameter data with the DTM – Online parameterization ........................... 164
8.10.3 Reading process input data with the DTM – Measured value.................................... 165
8.10.4 Changing process output data with the DTM – Simulation........................................ 165
8.10.5 Evaluating diagnostics with the DTM.................................................................................. 166
8.10.6 Example: Executing a read command with the DTM..................................................... 167
8.11 Setting UHF read/write heads.................................................................................. 168
9 Operation ......................................................................................................................................... 169
9.1 Executing a command and calling data................................................................. 169
9.1.1 Typical times for command processing via a controller............................................... 169
9.2 Using fragmentation ................................................................................................. 171
9.2.1 Example: Using fragmentation in the web server – Read ............................................ 171
9.2.2 Example: Using fragmentation in the web server – Write ........................................... 177
9.3 Using commands with a loop counter function ................................................... 182
9.4 HF applications – Using Continuous mode ........................................................... 182
9.5 Using HF bus mode .................................................................................................... 183
9.5.1 Executing commands in HF bus mode ............................................................................... 183
9.5.2 Replacing bus-capable read/write heads........................................................................... 183
9.5.3 Continuous HF bus mode — Data retrieval ...................................................................... 184
9.6 HF applications — Using continuous HF bus mode ............................................ 185
9.7 Query UID in HF Continuous bus mode ................................................................. 187
9.8 Using NEXT mode....................................................................................................... 188
9.8.1 Example: Using NEXT mode for a read command .......................................................... 188
9.9 Using the UHF password function .......................................................................... 189
05.00 | 2019/11 5
Contents
6 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
1 About these Instructions
These operating instructions describe the structure, functions and the use of the product and
will help you to operate the product as intended. Read these instructions carefully before using
the product. This is to avoid possible damage to persons, property or the device. Retain the in-
structions for future use during the service life of the product. If the product is passed on, pass
on these instructions as well.
05.00 | 2019/11 7
Notes on the product
Manufacturer and service
Turck supports you with your projects, from initial analysis to the commissioning of your applic-
ation. The Turck product database contains software tools for programming, configuration or
commissioning, data sheets and CAD files in numerous export formats. You can access the
product database at the following address: www.turck.de/products
For further inquiries in Germany contact the Sales and Service Team on:
8 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
3 For Your Safety
The product is designed according to state-of-the-art technology. However, residual risks still
exist. Observe the following warnings and safety notices to prevent damage to persons and
property. Turck accepts no liability for damage caused by failure to observe these warning and
safety notices.
05.00 | 2019/11 9
Product description
Properties and features
4 Product description
The devices are designed with a fully encapsulated housing with degree of protection IP65/
IP67/P69K. Two RFID channels are provided for connecting read/write heads. It is also possible
to connect sensors and actuators via four digital I/O channels, which can be configured as in-
puts or outputs as required. The terminals for the read/write heads and for digital I/Os are M12
sockets. An M8 socket is provided for the fieldbus connection.
28 24 32
P1 C3 C2 C1 C0 X1
ø 4.6
32
17.9
P2 X2
132
144.3
Fig. 1: Dimensions
10 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
4.3 Operating principle
The BL ident® interfaces connect the RFID system with the higher-level controller system. The
interfaces are provided with a fieldbus interface and fieldbus-independent I/O electronics with
an RFID interface. The interface signals of up to four sensors and actuators can also be pro-
cessed via four configurable digital channels. The interfaces are provided with a multiprotocol
fieldbus interface for Modbus TCP, EtherNet/IP™ and PROFINET. The fieldbus interface connects
the RFID system to an (existing) fieldbus as an EtherNet/IP™ device, Modbus TCP slave or
PROFINET device. During operation, the process data is exchanged between the fieldbus and
RFID system and diagnostics information is also generated for the controller. The read/write
heads are connected to the interfaces via the RFID interfaces.
05.00 | 2019/11 11
Product description
Functions and operating modes
HF compact mode
HF compact mode is suitable for transferring smaller data volumes of up to 128 bytes (e.g. UID)
in single-tag applications.
HF extended mode
HF extended mode contains all the functions provided in HF compact mode. It is also possible
to transfer more than 128 bytes by fragmenting the data. The operating mode is suitable for
single-tag and multitag applications.
NOTE
Not all commands are supported in Multitag mode.
The user can set a command timeout to define the time for the execution of a command.
HF extended mode enables the use of Continuous mode for the repeated execution of an In-
ventory, tag info, read or write command. In Continuous mode the read/write head executes
the commands autonomously. Different data is stored in the internal memory of the interface.
The memory operates as a FIFO memory.
12 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
HF bus mode
In HF bus mode, up to 32 bus-compatible read/write heads per RFID channel can be connected
to the TBEN module. Depending on the number of read/write heads connected and the power
consumption of the connected heads, an additional power supply may be required. In order to
determine whether an additional power supply is required, a power consumption analysis of
the connected read/write heads must be performed. A tool to help calculate the power con-
sumption of the read/write heads is available at www.turck.com/hf-busmodus.
Every connected read/write head supplies a "tag present" signal in HF bus mode. By default, a
command can only be processed by one read/write head, making HF bus mode suitable for
static applications and slow dynamic applications.
In Continuous HF bus mode, a command is performed simultaneously at all read/write heads in
a bus topology. The logged data is stored in the ring memory of the module.
RFID connection cable
(e.g. RK4.5T-0.3-RS4.5T/S2503)
TBEN-S2-2RFID-4DXP
VT2-FKM5-FKM5-FSM5
TN-M30-H1147/C53
TN-CK40-H1147/C53
n TN-M18-H1147/C53
n TB-M18-H1147/C53
n TN-M30-H1147/C53
n TB-M30-H1147/C53
n TN-CK40-H1147/C53
n TNSLR-Q42TWD-H1147/C53
n TB-Q08-0.15-RS4.47T/C53
n TB-Q08-0.15-RS4.47T/C53
n TN-Q14-0.15-RS4.47T/C53
n TNSLR-Q80WD-H1147/C53
HF bus mode supports the HF read/write heads from firmware version Vx.90. Continuous bus
mode supports HF read/write heads from firmware version Vx.93.
Firmware version V3.6.1.0 or higher is also required for Continuous bus mode on the TBEN-S
module.
05.00 | 2019/11 13
Product description
Functions and operating modes
14 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
4.4.6 Configurable digital channels – functions
The device is provided with four digital channels, which can be configured as inputs or outputs
according to the application requirements. In all, up to four 3-wire PNP sensors or four PNP DC
actuators with a maximum output current of 0.5 A can be connected per input or output.
05.00 | 2019/11 15
Mounting
Mounting devices in combination
5 Mounting
The device can be mounted on a DIN rail according to EN 60715 (TS35) or screwed on a mount-
ing plate. Both combined mounting as well as single mounting are possible.
1 1
2 2
3 3
4 4
Fig. 3: Module groups for mounting on a Fig. 4: Module groups for mounting on a DIN
mounting plate rail (TS35)
Undo locking lever (1) with a flat tool (e.g. screwdriver).
Fully open the locking lever (2).
Connect the TBEN-S module and adapter so that the spring of the adapter engages with
the groove of the TBEN-S module (3).
Push down the locking lever and close until the locking lever engages with an audible
click (4).
Repeat steps 1 to 4 until the module group is complete.
16 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
5.2 Mounting onto a mounting plate
The devices are fixed on a pre-drilled mounting plate with two M4 screws. The maximum tight-
ening torque for the M4 screws is 1.3 Nm
Mount the modules or the module composites according to the following figure.
NOTICE
Incorrect mounting
Missing grounding may cause malfunction
Align the adapters so that the arrow on the locking lever points in the direction
of the M8 Ethernet sockets.
Connect the grounding contact of the adapter with the grounding contact of
the module.
Mount one spacer to the left and one to the right of the module.
Place the module/ the module-cluster onto the DIN-rail so that the cut-out in the spacer/
spacers enclose the DIN rail (1).
To activate the DIN rail lock, turn the pintle in the cover flap of every spacer by means of a
screw driver (2).
Optional: Ground the device.
NOTE
To increase stability on the DIN rail, end brackets can be mounted on the right and
left of the module or the module combination.
05.00 | 2019/11 17
Mounting
Grounding the device
X1 X2
C0
C1
C2
C3
P1 P2
1
2
4
3
Fig. 8: rounding clip (1), Fig. 9: Grounding contact Fig. 10: Grounding the TB-
grounding ring (2) and metal NNS0-DRS… adapters
screw (3)
The grounding clip (1) on the M8 plug connectors for the fieldbus connection (P1, P2) connects
the shield of the fieldbus cables.
The grounding ring (2) provides the shield on the flange of the M8 plug connectors for the
fieldbus connection via an RC circuit.
By mounting the module on a mounting plate (with connectors of type TBNN-S0-STD) the
module is connected to the reference potential of the installation via a metal screw (3) through
the mounting hole. The TBNN-S0-DRS adapters for mounting the TBEN-S modules on a DIN rail
(TS 35) connect the grounding contact (4) of the modules with the DIN rail and thus FG.
18 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
5.5.2 Ground the device (FE)
Grounding clip and grounding ring are connected together.
If a common reference potential for I/O level and fieldbus level is not required: remove
the grounding clip to disconnect the fieldbus shield.
05.00 | 2019/11 19
Connection
Connecting the device to Ethernet
6 Connection
6.1 Connecting the device to Ethernet
The connection to Ethernet is realized via an auto-crossing switch is done using two 4-pin, D-
coded M8 x 1-Ethernet-connectors.
NOTICE
Interchanging of Ethernet- and power cables
Destruction of module electronic
Observe using the correct M8-connectors when connecting Ethernet- and
power cables:
- Ethernet: P1 and P2,
supply voltage: X1and X2
v v
1 = TX + 1 = RX +
4 2 2 = RX + 4 2 2 = TX +
3 1 3 = RX – 3 1 3 = TX –
4 = TX – 4 = RX –
P1 P2
20 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
6.2 Connecting the power supply
The device is provided with two 4-pin M8 plug connectors for connecting the power supply. V1
and V2 are electrically isolated from each other.
NOTICE
Interchanging of Ethernet- and power cables
Destruction of module electronic
Observe using the correct M8-connectors when connecting Ethernet- and
power cables:
- Ethernet: P1 and P2,
supply voltage: X1and X2
Connect the device to the power supply according to the pin assignment below.
w v
1 BN = V1 (+)
2 4 2 WH = V2 (+) 4 2
1 3 3 BU = GND V1 3 1
4 BK = GND V2
X1 X2
Connection Meaning
X1 Incoming voltage supply
X2 Routing the voltage to the next node
V1 Supply voltage 1 (incl. electronics supply)
V2 Power supply 2
NOTE
The system voltage (V1) and the load voltage (V2) are supplied and monitored sep-
arately. If the voltage goes below the permissible lower limit, the sockets are discon-
nected according to the supply concept of the module type. If V2 goes below the
permissible minimum voltage, PWR LED changes from green to red. If V1 goes below
the permissible minimum, the LED goes out.
05.00 | 2019/11 21
Connection
Connecting RFID read/write heads
Connect the read/write heads to the device as per the pin assignment shown below.
v
2 1 = Vaux1
2 = Data B
1 3 3 = GND V1
4 = Data A
5 4 5 = FE/Shield
v
2 1 = BN (+)
2 = BK (Data)
1 3 3 = BU (GND)
4 = WH (Data)
5 4
5 = shield
Fig. 19: …/S2500 connection cables – Pin assignment of the read/write head connections
v
2 1 = BN (+)
2 = WH (Data)
1 3 3 = BU (GND)
4 = BK (Data)
5 4
5 = shield
Fig. 20: …/S2501 connection cables – Pin assignment of the read/write head connections
v
2 1 = RD (+)
2 = BU (Data)
1 3 3 = BK (GND)
4 = WH (Data)
5 4 5 = shield
Fig. 21: …/S2503 connection cables – Pin assignment of the read/write head connections
22 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
6.3.1 Connecting read/write heads for the HF bus mode
In HF bus mode up to 32 bus-capable read/write heads per RFID channel can be connected to
the device. The user must determine by means of a power consumption analysis whether an
additional power supply is required for the connected read/write heads (see information in the
data sheet).
Connect the read/write head as per the figure below. The maximum length of the spur
line is 2 m.
Take the power supply into account, particularly at switch-on (see data sheet), as well as
the maximum current carrying capacity of the lines (4 A).
Take the voltage drop on the line into account. If necessary provide an additional power
supply between the read/write heads using junction box VB2-FKM5-FSM5.205-FSM5.305/
S2550.
Connect a terminating resistor (e.g. RSE57-TR2/RFID) behind the last read/write head.
RFID connection cable
(e.g. RK4.5T-0.3-RS4.5T/S2503)
TBEN-S2-2RFID-4DXP
VT2-FKM5-FKM5-FSM5
TN-M30-H1147/C53
TN-CK40-H1147/C53
05.00 | 2019/11 23
Connection
Connecting digital sensors and actuators
Fig. 23: M12 plug connector for connecting digital sensors and actuators
Connect the sensors and actuators to the device as per the pin assignment below.
v 3 BU –
4 BK Sensor
2 1 = Vaux2 5 FE or
2 = Signal In/Out
1 3 3 = GND V2 1 BN + Actuator
4 = Signal In/Out
5 4 5 = FE 2 WH Sensor
or
C2...C3 3 BU – Actuator
vC2…C3
Fig. 24: Connections for digital sensors and ac- Fig. 25: Connections for digital sensors and ac-
tuators – Pin assignment tuators – Wiring diagram
The channels are assigned to the slots as follows:
Channel Slot Pin
DXP (Ch4) C2 4
DXP (Ch5) C2 2
DXP (Ch6) C3 4
DXP (Ch7) C3 2
24 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7 Commissioning
The device is operational automatically once the cables are connected and the power supply is
switched on.
Connected HF read/write heads are switched on automatically. Connected UHF read/write
heads are switched off automatically and are activated automatically when a command is ex-
ecuted (apart from Idle mode).
In the default configuration the idle command (0x0000) is active. If an HF read/write head is
connected, the Tag Present bit is set and the UID is output in the input data if a tag is located in
the detection range of the read/write head.
Set the IP address of the device in order to carry out further commands.
05.00 | 2019/11 25
Commissioning
Setting the IP address
NOTE
Clicking the IP address of the device opens the web server.
26 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Change the IP address and if necessary the network mask and gateway.
Accept the changes by clicking Set in device.
05.00 | 2019/11 27
Commissioning
Connecting the device to a Modbus master
Hardware used
This example uses the following hardware components:
n TN-Q80-H1147 HF read/write head
n Turck HMI TX507-P3CV01 (Modbus master)
n TBEN-S2-2RFID-4DXP block module (IP address: 192.168.1.61)
n TN-Q80-H1147 HF read/write head
Software used
This example uses the following software:
n CODESYS 3.5.8.1 (download free of charge from www.turck.com)
Prerequisites
n The programming software has been started.
n A new project has been created.
n The PLC has been added to the project.
28 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.2.1 Connecting the device with the controller
To connect the device to the controller, the following components must be added in CODESYS
first of all:
n Ethernet adapter
n Modbus TCP master
n Modbus TCP slave
05.00 | 2019/11 29
Commissioning
Connecting the device to a Modbus master
30 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Adding a Modbus master
Right-click Ethernet (Ethernet) in the project tree.
Select Add device.
Double-click the Modbus TCP Master.
a The Modbus master appears as Modbus_TCP_Master (Modbus TCP Master) in the pro-
ject tree.
05.00 | 2019/11 31
Commissioning
Connecting the device to a Modbus master
32 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.2.2 Renaming a Modbus slave
Click the Modbus slave in the project tree.
Press F2.
Adapt the name of the slave in the project tree of the application.
05.00 | 2019/11 33
Commissioning
Connecting the device to a Modbus master
Double-click Ethernet.
Open the Network Adapter dialog in the General tab via the … button.
Enter the IP address of the Modbus master.
34 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.2.4 Modbus TCP slave – Setting the IP address
Double-click the Modbus TCP slave.
In the General tab enter the IP address of the slave.
05.00 | 2019/11 35
Commissioning
Connecting the device to a Modbus master
36 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Defining channel 1 (output data)
Double-click the Modbus TCP slave.
Select in the tab Modbus slave channel Ò Add channel.
Enter the following values:
n Name of channel
n Access type: Write multiple registers
n Offset: 0x0800
n Length: 64 registers (128 bytes)
Confirm with OK.
05.00 | 2019/11 37
Commissioning
Connecting the device to a Modbus master
38 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.2.8 Modbus TCP – Mapping
05.00 | 2019/11 39
Commissioning
Connecting the device to a Modbus master
40 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
RFID channels – Process output data
Description Register Bit offset Bit length
Channel 1 Channel 2
Command code 0x0800 0x084C 0 16
Loop counter 0x0801 0x084D 0 8
Memory area (only UHF) 0x0801 0x084D 8 8
Start address 0x0802 0x084E 0 32
Length 0x0804 0x0851 0 16
Length UID/EPC 0x0805 0x0851 0 8
Antenna no. 0x080A 0x0856 0 8
Timeout 0x0806 0x0852 0 16
Read fragment no. 0x0807 0x0853 0 8
Write fragment no. 0x0807 0x0853 8 8
Write data Byte 0 0x080C 0x0858 0 8
Write data Byte 1 0x080C 0x0858 8 8
… … … … 8
Write data Byte 14 0x0813 0x085F 0 8
Write data Byte 15 0x0813 0x085F 8 8
… … … … 8
Write data Byte 64 0x0813 0x0878 0 8
Write data Byte 65 0x0813 0x0878 8 8
… … … … 8
Write data Byte 126 0x084B 0x0897 0 8
Write data Byte 127 0x084B 0x0897 8 8
05.00 | 2019/11 41
Commissioning
Connecting the device to a Modbus master
42 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Digital channels – Output data
Description Register Bit offset Bit length
Output value channel 4 0x0898 4 1
Output value channel 5 0x0898 5 1
Output value channel 6 0x0898 6 1
Output value channel 7 0x0898 7 1
05.00 | 2019/11 43
Commissioning
Connecting a device to an EtherNet/IP™ controller
Hardware used
This example uses the following hardware components:
n Rockwell controller CompactLogix L30ER
n TBEN-S2-2RFID-4DXP block module
n TN-Q80-H1147 HF read/write head
Software used
This example uses the following software:
n Rockwell RS Logix
n EDS file for TBEN-S2-2RFID-4DXP (download free of charge from www.turck.com)
Prerequisites
n The programming software has been started.
n A new project has been created.
n The PLC has been added to the project.
44 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.3.1 Installing an EDS file
The EDS file is available free of charge for download from www.turck.com.
Include an EDS file: Click Tools Ò EDS Hardware Installation Tool.
05.00 | 2019/11 45
Commissioning
Connecting a device to an EtherNet/IP™ controller
46 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Select the Register an EDS file(s) option and confirm with Next.
05.00 | 2019/11 47
Commissioning
Connecting a device to an EtherNet/IP™ controller
Select an EDS file: Select a single file or folder (example: single file).
Enter a path for the memory location of the EDS file.
Confirm with Next.
a The Installation wizard guides you through the installation.
48 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.3.2 Connecting the device with the controller
Right-click I/O Configuration Ò Ethernet.
Click New Module.
05.00 | 2019/11 49
Commissioning
Connecting a device to an EtherNet/IP™ controller
50 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Assign a module name.
Enter the IP address.
05.00 | 2019/11 51
Commissioning
Connecting a device to an EtherNet/IP™ controller
Select an integer as a format for the input data and output data: Click Change Ò In the
following window select INT.
Fig. 49: Selecting an integer as a format for the input data and output data
52 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Optional: Set the connection and port configuration.
05.00 | 2019/11 53
Commissioning
Connecting a device to an EtherNet/IP™ controller
54 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.3.3 Connecting the device online with the controller
Select the controller.
Click Go online.
05.00 | 2019/11 55
Commissioning
Connecting a device to an EtherNet/IP™ controller
56 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.3.4 Reading out process data
Select Controller Tags in the project tree.
Parameter data (tben_2rfid:C), input data (tben_2rfid:I1) and output data (tben_2rfid:O1) can
be accessed.
05.00 | 2019/11 57
Commissioning
Connecting a device to an EtherNet/IP™ controller
58 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.3.5 EtherNet/IP™ – Mapping
Description Assembly instance Size (words)
Input 103 191
Output 104 154
05.00 | 2019/11 59
Commissioning
Connecting a device to an EtherNet/IP™ controller
60 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
RFID channels – Process output data
Description Word offset Bit offset Bit length
Channel 1 Channel 2
Command code 0x0001 0x004D 0 16
Loop counter 0x0002 0x004E 0 8
Memory area (only UHF) 0x0002 0x004E 8 8
Start address 0x0003 0x004F 0 32
Length 0x0005 0x0051 0 16
Length UID/EPC 0x0006 0x0052 0 8
Read/write head address 0x000B 0x0057 0 8
Timeout 0x0007 0x0053 0 16
Read fragment no. 0x0008 0x0054 0 8
Write fragment no. 0x0008 0x0054 8 8
Write data Byte 0 0x000D 0x0059 0 8
Write data Byte 1 0x000D 0x0059 8 8
… … … … 8
Write data Byte 14 0x0014 0x0060 0 8
Write data Byte 15 0x0014 0x0060 8 8
… … … … 8
Write data Byte 64 0x002D 0x0079 0 8
Write data Byte 65 0x002D 0x0079 8 8
… … … … 8
Write data Byte 126 0x004C 0x0098 0 8
Write data Byte 127 0x004C 0x0098 8 8
05.00 | 2019/11 61
Commissioning
Connecting a device to an EtherNet/IP™ controller
62 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
DXP channels – Parameter data
Description Register Bit offset Bit length
DXP 4 – Manual reset of the output 0x0076 0 1
after an overcurrent
DXP 5 – Manual reset of the output 0x0077 0 1
after an overcurrent
DXP 6 – Manual reset of the output 0x0078 0 1
after an overcurrent
DXP 7 – Manual reset of the output 0x0079 0 1
after an overcurrent
DXP 4 – Active output 0x007A 0 1
DXP 5 – Active output 0x007B 0 1
DXP 6 – Active output 0x007C 0 1
DXP 7 – Active output 0x007D 0 1
DXP 4 – Extended digital function 0x007E 0 1
DXP 4 – Input filter 0x007E 0 1
DXP 4 – Pulse extension (*10 ms) 0x007F 0 8
DXP 5 – Extended digital function 0x0082 0 1
DXP 5 – Input filter 0x0083 0 1
DXP 5 – Pulse extension (*10 ms) 0x0084 0 8
DXP 6 – Extended digital function 0x0086 0 1
DXP 6 – Input filter 0x0087 0 1
DXP 6 – Pulse extension (*10 ms) 0x0088 0 8
DXP 7 – Extended digital function 0x008A 0 1
DXP 7 – Input filter 0x0139 0 1
DXP 7 – Pulse extension (*10 ms) 0x008B 0 8
05.00 | 2019/11 63
Commissioning
Connecting a device to an EtherNet/IP™ controller
64 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.3.6 Activating QuickConnect (QC)
The devices support QuickConnect. QuickConnect enables the controller to establish connec-
tions to EtherNet/IP™ nodes in less than 500 ms after the EtherNet/IP™ network is switched on.
This requires the fast startup of the devices, particularly with fast tool changers on robot arms,
e.g. in the automobile industry.
The startup time for the RFID interfaces is < 150 ms.
QuickConnect can be activated via the web server of the device or in RS Logix via the configura-
tion assembly or class instance attributes.
NOTE
The activation of QuickConnect causes the automatic adaption of all necessary port
properties.
Notes on the correct connection of the Ethernet cables in QuickConnect applications are
provided in [} 20]
05.00 | 2019/11 65
Commissioning
Connecting a device to an EtherNet/IP™ controller
66 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Activating QuickConnect via the web server
Tick the Activate Quick Connect check box in the web server.
05.00 | 2019/11 67
Commissioning
Connecting a device to a Siemens PROFINET controller
Hardware used
This example uses the following hardware components:
n Siemens S7-1500 controller
n TBEN-S2-2RFID-4DXP block module
n TN-Q80-H1147 HF read/write head
Software used
This example uses the following software:
n SIMATIC STEP7 Professional V13 (TIA Portal)
n GSDML file for TBEN-S2-2RFID-4DXP (download free of charge from www.turck.com)
Prerequisites
n The programming software has been started.
n A new project has been created.
n The PLC has been added to the project.
68 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.4.1 Installing a GSDML file
The GSDML file is available free of charge for download from www.turck.com.
Include the GSDML file: Click Options Ò Manage general station description files
(GSD).
05.00 | 2019/11 69
Commissioning
Connecting a device to a Siemens PROFINET controller
Install a GSDML file: Enter the memory location of the GSDML file and click Install.
a The device is included in the hardware catalog of the programming software.
70 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.4.2 Connecting the device with the controller
Select the RFID interface from the hardware catalog and drag it to the hardware window.
Connect the device with the controller in the hardware window.
05.00 | 2019/11 71
Commissioning
Connecting a device to a Siemens PROFINET controller
72 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.4.5 Connecting the device online with the controller
Start online mode (connect online).
a The device was successfully linked to the controller.
05.00 | 2019/11 73
Commissioning
Connecting a device to a Siemens PROFINET controller
74 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8 Setting
The device can be controlled, read and set via parameter data, process input data, process out-
put data and diagnostic data. The following table shows the data mapping:
Socket Channel Parameter data Process input data Process output data Diagnostic data
Bytes Meaning Bytes Meaning Bytes Meaning
0 GW 0…1 Parameters 0…1 Diagnostics
GW GW
1 0 0…31 RFID para- 0…23 Input data 0…23 Output data 0…36 Diagnostics
meters RFID RFID RFID chan-
nel
2 0 32…33 Length of 24…151 Read data
read data
3 0 34…35 Length of 24…151 Write data
write data
4 1 36…37 RFID para- 152…175 Input data 152…175 Output data 36…76 Diagnostics
meters RFID RFID RFID chan-
nel
5 1 68…69 Length of 176…303 Read data
read data
6 1 70…71 Length of 176…303 Write data
write data
7 Diag 304…375 Diagnostics
CHx of RFID
channels
8 4DXP 72…73 Parameters 376…377 Input data 304…305 Output data 72…73 Diagnostics
Basic DXP DXP DXP DXP
9 4DXP 378…379 Error mes-
Diag sages DXP
10 EXT 74…75 Settings DXP
LEAN
11 EXT 76…77 Settings DXP
LEAN
12 EXT 78…79 Settings DXP
LEAN
13 EXT 80…81 Settings DXP
LEAN
14 Module 380…381 Module
status status
05.00 | 2019/11 75
Setting
RFID channels – Parameter data
76 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.1.1 Meaning of the parameter bits
The default values of the firmware, the DTM and the EDS file are shown in bold type. The de-
fault values for PROFINET may differ.
Designation Meaning
Operating mode (OMRFID) 0: Deactivated
1: HF compact
2: HF extended
3: HF bus mode
4: UHF compact
5: UHF extended
Tag type (TAGTYPE) 0: Automatic detection
1: NXP I-Code SLI/SL2
2: Fujitsu MB89R118
3: TI Tag-it HF-I Plus
4: Infineon SRF55V02P
5: NXP I-CODE SLI S
6: Fujitsu MB89R119
7: TI Tag-it HF-I
8: Infineon SRF55V10P
9: Reserved
10: Reserved
11: NXP I-CODE SLI L
12: Fujitsu MB89R112
13: EM4233SLIC
Read/write heads with firmware from V1.91 also support:
14: NXP SLIX2
15: TI Tag-it HFI Pro
16: Turck sensor tag
17: Infineon SRF55V02S
18: Infineon SRF55V10S
19: EM4233
20: EM4237
21: EM4237 SLIC
22: EM4237 SLIX
23: EM4033
Bridging time (BYPASS) Bridging time in ms, adjustable from 4…1020 ms, default setting: 200 ms
Automatic tuning of 0: Automatic tuning off
read/write head (AT) 1: Automatic tuning on
RS 485 terminating resistor 0: RS485 terminating resistor off
(TERM) 1: RS485 terminating resistor on
In HF bus mode the RS485 bus terminating resistor is activated by default.
HF: Heartbeat read/write head The device confirms its operational readiness via a signal which is sent at regular
(HB) intervals to the controller. NOTE: A heartbeat slows down the system since a
heartbeat and another command cannot be executed simultaneously.
0: Heartbeat read/write head off
1: Heartbeat read/write head on
HF: Multitag mode (ANTI) 0: Multitag mode off
1: Multitag mode on
Diagnostic input filter (DID) 0: All diagnostic messages on
1: Diagnostic messages off
Deactivate diagnostic HF read/ 0: Diagnostic messages of the read/write head on
write head tuning (DXD) 1: Diagnostic messages of the read/write head off
05.00 | 2019/11 77
Setting
RFID channels – Parameter data
Designation Meaning
HF: Idle mode (HFIDLEMODE) Defines which data is to be displayed in idle mode (not available in the EDS file)
0: UID
1: 8 bytes of user data memory
2: UID and 8 bytes of user memory
3: UID and 64 bytes of user memory
Command repetitions in the Number of command repetitions after an error message, default setting: 2
event of an error (CRET)
HF: Command in Continuous 0x01: Inventory
mode (CCM) 0x02: Read
0x03: Tag info
0x04: Write
HF: Length in Continuous mode Number of bytes that still have to be read or written in Continuous mode, default
(LCM) setting: 8
HF: Address in Continuous mode Start address of the USER memory area on the tag to be read or written, default
(ACM) setting: 0
HF bus mode: Activate read/ 0: Deactivate read/write head
write head (XCVR0…XCVR31) 1: Activate read/write head
In HF bus mode all connected and addressed read/write heads are deactivated
by default and must be activated in the parameters.
Length of write data (WDS) Size of the write data, default setting depends on the selected interface and field-
bus
Length of read data (RDS) Size of the read data, default setting depends on the selected interface and field-
bus
78 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.1.2 HF applications – Selecting the tag type
In multitag applications select a tag type for executing the read and write commands.
The automatic tag detection is not supported for the read and write commands in multi-
tag mode.
The tag types that can be selected depends on the firmware of the connected read/write head.
The firmware version of the read/write head can be read with the Read/write head identifica-
tion command.
NOTE
The firmware version of the interface up to 3.3.5.0 only displays in the web server, in
the associated DTM as well as in the catalog and GSDML files those tags that were
detected by read/write heads with a firmware version up to 1.90. The tags shown in
the table below can be detected irrespective of this.
If a tag is selected that is not supported by the firmware of the connected read/write head, the
RFID interface outputs the “Length outside of tag specification” error.
The tag type does not have to be selected in single tag applications and for inventory com-
mands in multitag applications if the read/write head detects the tags automatically.
Tag Firmware status Firmware status Selectable Automatic Indicated in the
Read/write head interface detection web server, DTM,
possible GSDML and
catalog files
1: NXP Icode SLIX ≥ V1.91 ≥ V3.4.1.0 x x x
≥ V1.91 ≤ V3.3.5.0 x x x
≤ V1.90 all x x x
2: Fujitsu ≥ V1.91 ≥ V3.4.1.0 x x x
MB89R118 ≥ V1.91 ≤ V3.3.5.0 x x x
≤ V1.90 all x x x
3: TI Tag-it HF-I ≥ V1.91 ≥ V3.4.1.0 x x x
Plus ≥ V1.91 ≤ V3.3.5.0 x x x
≤ V1.90 all x x x
4: Infineon SR- ≥ V1.91 ≥ V3.4.1.0 x x x
F55V02P ≥ V1.91 ≤ V3.3.5.0 x x x
≤ V1.90 all x x x
5: NXP Icode SLIX- ≥ V1.91 ≥ V3.4.1.0 x x x
S ≥ V1.91 ≤ V3.3.5.0 x x x
≤ V1.90 all x – x
6: Fujitsu ≥ V1.91 ≥ V3.4.1.0 x x x
MB89R119 ≥ V1.91 ≤ V3.3.5.0 x x x
≤ V1.90 all x – x
7: TI Tag-it HF-I ≥ V1.91 ≥ V3.4.1.0 x x x
≥ V1.91 ≤ V3.3.5.0 x x x
≤ V1.90 all x – x
8: Infineon SR- ≥ V1.91 ≥ V3.4.1.0 x x x
F55V10P ≥ V1.91 ≤ V3.3.5.0 x x x
≤ V1.90 all x – x
05.00 | 2019/11 79
Setting
RFID channels – Parameter data
80 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.1.3 HF applications – Setting the bridging time (bypass time)
Due to the expansion of the HF transmission zone the tag may drop out momentarily during a
write or read operation and then later return again. The period between the dropout and the
return to the transmission zone must be bridged so that the write or read operation is com-
pleted. The bridging time is the time between the dropout and the return to the detection
range. The Bridging time parameter takes up 1 word in the parameter data image and is stated
in ms.
The bridging time can be set between 4…1020 ms. The bridging time parameter depends on
the components used, the write/read distances, the speed of the tag to the read/write head
and other external factors.
The following figure shows the typical characteristics of the detection range and the path
covered by the read/write head. A shows the section to be bridged:
05.00 | 2019/11 81
Setting
RFID channels – Parameter data
NOTE
In HF bus mode a command is only meant for one read/write head. While the com-
mand is being executed, there is no data communication with other read/write
heads.
HF bus mode supports the HF read/write heads from firmware version Vx.90. Continuous HF
bus mode supports HF read/write heads from firmware version Vx.93. The read/write heads can
be addressed as follows:
n Automatic addressing
n Manual addressing via the Set HF read/write head address command
n Manual addressing via the Turck Service Tool
NOTE
Turck recommends making the bus address of the read/write head visible on the
device.
Read/write heads with the default bus address 68 can be automatically addressed. For this the
corresponding XCVR bit must be set in the parameter data.
Switch on the RFID interface power supply.
Activate the required read/write heads in the parameter data via the appropriate XCVR
bit.
Connect the read/write heads to the interface in a line one by one.
a The read/write heads are automatically assigned addresses in ascending order in the or-
der of connection. The lowest address is automatically assigned to the next connected
read/write head with the default address 68.
a The addressing is successful if the LED of the read/write head is permanently lit.
82 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Manually addressing read/write heads – Set read/write head address command
NOTE
Turck recommends making the bus address of the read/write head visible on the
device.
For information on addressing the read/write heads via the RFID interface with the Set HF read/
write head address command see page [} 126]. With manual addressing via the Set HF read/
write head address command, the read/write heads must not be activated until the addressing
is completed.
Activate the required read/write heads in the parameter data via the appropriate XCVR
bit.
05.00 | 2019/11 83
Setting
RFID channels – Parameter data
NOTE
Turck recommends making the bus address of the read/write head visible on the
device.
The following accessories are required to address the read/write heads in HF bus mode via the
Turck Service Tool. Accessories are not supplied with the device and must be ordered separ-
ately.
n STW-RS485-USB interface converter (Ident No. 7030354)
n STW-RS485-USB-PS power supply unit (Ident No. 7030355)
Connect the read/write head to the interface converter using a suitable connection cable
(e.g. RK4.5T-2/S2500) according to the following color coding:
STW-RS485-USB …/S2500 …/S2501 …/S2503
plug connectors plug connectors plug connectors
VCC Brown (BN) Brown (BN) Red (RD)
GND Blue (BU) Blue (BU) Black (BK)
RS485-A White (WH) Black (BK) White (WH)
RS485-B Black (BK) White (WH) Blue (BU)
Fig. 69: Connecting the read/write head via the interface converter with a PC
84 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Fig. 70: Function selection – Set HF RFID reader bus address
05.00 | 2019/11 85
Setting
RFID channels – Parameter data
86 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Activate the required read/write heads in the parameter data via the appropriate XCVR
bit.
05.00 | 2019/11 87
Setting
RFID channels – Parameter data
NOTE
The Continuous presence sensing mode command also stays active after the Idle
command is sent.
To pass on data from the FIFO memory of the interface to the controller, execute the Get
data from buffer (0x0011) command. The length of the data must be less than or equal
to the value of the available data bytes (BYFI). Depending on the length of the data, it is
no longer used for grouping.
NOTE
If Grouping is active: Only read data from the buffer if the number of available bytes
is stable. If stable data was fetched, the command can be terminated by means of a
reset since the grouping is no longer based on the fetched data and therefore old
EPCs can be detected again.
Do not carry out the reset until the data has been successfully read from the buffer.
To end Continuous presence sensing mode and clear the FIFO memory of the interface
send the Reset command (0x0800).
88 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.2 RFID channels – Process input data
05.00 | 2019/11 89
Setting
RFID channels – Process input data
90 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Process input data – HF bus mode
Byte no. Bit
PROFINET 7 6 5 4 3 2 1 0
0 Response code (RESC)
1
2 Loop counter for rapid processing (RCNT)
3 Reserved
4 TNCx TREx PNSx XDx TP1
5 CMON TON
6 Length (LEN)
7
8 Error code (ERRC)
9
10 Tag counter (TCNT)
11
12 Data (bytes) available (BYFI)
13
14 Read fragment no.
15 Write fragment no.
16 Reserved
17 Reserved
18 Reserved
19 Reserved
20 TP8 TP7 TP6 TP5 TP4 TP3 TP2 TP1
21 TP16 TP15 TP14 TP13 TP12 TP11 TP10 TP9
22 TP24 TP23 TP22 TP21 TP20 TP19 TP18 TP17
23 TP32 TP31 TP30 TP29 TP28 TP27 TP26 TP25
24 Read data Byte 0
25 Read data Byte 1
26 Read data Byte 2
27 Read data Byte 3
28 Read data Byte 4
29 Read data Byte 5
30 Read data Byte 6
31 Read data Byte 7
… …
151 Read data Byte 127
05.00 | 2019/11 91
Setting
RFID channels – Process input data
92 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Designation Meaning
Write fragment no. (WFN) If the data to be written exceeds the size of the write data memory, the data is di-
vided in max. 256 fragments. The fragments are numbered consecutively from
1…255. From fragment number 256 numbering starts again at 1.
The sending of a fragment is confirmed by the device if the write fragment num-
ber appears in the process input data. After the confirmation the next fragment
is written.
0: No fragmentation
In Idle mode the size of fragments is stated. With a write command the number
of the fragments is stated that contain data.
TP1…TP32 Tag in detection range of the connected read/write head (only available in HF
bus mode)
Read data User-defined read data
05.00 | 2019/11 93
Setting
RFID channels – Process input data
8.2.2 Tag in detection range (TP) – Using bit or pre-loading the command
The Tag in detection range bit is set automatically if a read/write head detects a tag.
In HF applications the bit is set by default in all operating modes and in Idle mode. To set the
bit in Idle mode in UHF applications, the read/write head must be set to Presence sensing
mode via the DTM.
All commands can be sent irrespective of whether the Tag in detection range bit (TP) is set. If
no tag is present in the detection range when the command is sent, the command is executed
by a rising edge at TP. A command is executed immediately if there is a tag in the detection
range at the time of sending.
NOTE
If the read/write head detects a new tag in the detection range, the Tag in detection
range bit and the UID are indicated at the same time in Idle mode. If two tags are de-
tected in quick succession, the TP bit may remain set. The UID of the second tag is
displayed.
94 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.3 RFID channels – Process output data
05.00 | 2019/11 95
Setting
RFID channels – Process output data
96 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Writing process output data – HF bus mode
Byte no. Bit
7 6 5 4 3 2 1 0
0 Command code (CMDC)
1
2 Loop counter for rapid processing (RCNT)
3 Memory area (DOM) – only available with UHF applications
4 Start address (ADDR)
5
6
7
8 Length (LEN)
9
10 Length UID/EPC (SOUID)
11 reserved
12 Timeout (TOUT)
13
14 Read fragment number (RFN)
15 Write fragment number (WFN)
16 reserved
17 reserved
18 reserved
19 reserved
20 Read/write head address (ANTN) – only available with HF applications
21 reserved
22 reserved
23 reserved
24 Write data Byte 0
25 Write data Byte 1
26 Write data Byte 2
27 Write data Byte 3
28 Write data Byte 4
29 Write data Byte 5
30 Write data Byte 6
31 Write data Byte 7
… …
139 Write data Byte 127
05.00 | 2019/11 97
Setting
RFID channels – Process output data
98 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Description Meaning
Read fragment no. (RFN) If the data to be read exceeds the size of the read data memory, the data is di-
vided in max. 256 fragments. The fragments are numbered consecutively from
1…255. From fragment number 256 numbering starts again at 1. The sending of
a fragment is confirmed by the device if the read fragment number appears in
the process input data. After the confirmation the next fragment is read.
0: No fragmentation
In Idle mode the size of fragments is stated. With a read command the number of
the fragments containing data is stated.
Write fragment no. (WFN) If the data to be written exceeds the size of the write data memory, the data is di-
vided in max. 256 fragments. The fragments are numbered consecutively from
1…255. From fragment number 256 numbering starts again at 1.
The sending of a fragment is confirmed by the device if the write fragment num-
ber appears in the process input data. After the confirmation the next fragment
is written.
0: No fragmentation
In Idle mode the size of fragments is stated. With a write command the number
of the fragments is stated that contain data.
Read/write head address HF bus mode: Address of the read/write head, if several bus-capable read/write
heads are connected
UHF: Values are ignored or set automatically.
Write data User-defined write data or entry of a UID or EPC to select a specific tag for the
command execution (if the Length of UID/EPC (SOUID) command parameter is
greater than 0)
05.00 | 2019/11 99
Setting
Digital channels – Setting advanced parameters (EXT LEAN)
100 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.6 Digital channels – Process input data
Byte no. Bit
7 6 5 4 3 2 1 0
0 DXP7 DXP6 DXP5 DXP4
1
NOTE
After commands are executed without the loop counter function, the device must
be reset to the Idle state before a new command is sent.
After a command is executed, send an idle command to the device.
102 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Command Command code Possible for
hex. dec. HF HF HF UHF UHF
compact extended bus mode compact extended
Query HF tag 0x0104 260 x** x** x** x x
protection status
Set permanent lock (Lock) 0x0105 261 x x x x x
Set permanent lock with fast com- 0x2105 8453 x x x x x
mand processing
Tag info 0x0050 80 x x x x x
Tag info with fast command 0x2050 8272 x x x x x
processing
Kill UHF tag 0x0200 512 – – – x x
* With automatic tag type detection Continuous mode only supports the inventory command.
** The command is only supported by the TW-R…-M-B146 tags.
In UHF applications the EPC is indicated if the read/write head is set directly in Presence sensing
mode via the DTM.
NOTE
If the read/write head detects a new tag in the detection range, the Tag in detection
range bit and the UID are indicated at the same time in Idle mode. If two tags are de-
tected in quick succession, the TP bit may remain set. The UID of the second tag is
displayed.
Request
Loop counter Not required
Command code 0x0000 (hex.), 0 (dec.)
Read/write head address Not required
Length UID/EPC Not required
Start address Not required
Length Not required
Command timeout Not required
Write fragment no. Not required
Read fragment no. Not required
Write data Not required
Response
Loop counter See description of the input data, [} 92]
Response code 0x0000 (hex.), 0 (dec.)
Length Length of the UID/EPC of the tag in the detection range
Error code See description of the input data, [} 92]
Tag within the See description of the input data, [} 92]
detection range
Data (bytes) available See description of the input data, [} 92]
Tag counter See description of the input data, [} 92]
Write fragment no. Size of the fragments
Read fragment no. Size of the fragments
Read data, Bytes 0…n UID/EPC of the tag in the detection range
104 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.8.2 Command: Inventory
The Inventory command causes the read/write head to search for tags in the detection range
and read the UID, EPC of the tags, or if activated in the UHF read/write head, the RSSI. The In-
ventory command can be executed in single-tag mode and in multitag mode. NEXT mode is
only possible in single-tag mode.
NOTE
The command code for fast processing with the loop counter is 0x2001 (hex.) or
8193 (dec.).
Request
Loop counter See description of the output data, [} 98]
Command code 0x0001 (hex.), 1 (dec.)
Read/write head address See description of the output data, [} 98]
Length UID/EPC Not required
Start address 1: Grouping of the EPCs active (only UHF)
0: Grouping of the EPCs inactive (only UHF)
Length 0: The actual length (bytes) of the transferred UID or EPC is
transferred with an inventory.
> 0 in HF applications:
n 8: Return message 8 bytes UID
n 1…7: Return message of an abbreviated UID
n > 8: Error message
> 0 in UHF applications: EPC completely output.
-1: NEXT mode (only available in HF single-tag applications):
An HF tag is always only read, written or protected if the UID
is different to the UID of the last read or written tag.
Command timeout See description of the output data, [} 98]
Write fragment no. 0
Read fragment no. See description of the output data, [} 98]
Write data Not required
Response (HF)
Loop counter See description of the input data, [} 92]
Response code 0x0001 (hex.), 1 (dec.)
Length Length of the read data in bytes
Error code See description of the input data, [} 92]
Tag within the See description of the input data, [} 92]
detection range
Data (bytes) available See description of the input data, [} 92]
Tag counter Ascending
Write fragment no. 0
Read fragment no. See description of the input data, [} 92]
Read data, Bytes 0…n UID
Response (UHF)
Loop counter See description of the input data, [} 92]
Response code 0x0001 (hex.), 1 (dec.)
Length Length of the read data
Error code See description of the input data, [} 92]
Tag within the See description of the input data, [} 92]
detection range
Data (bytes) available See description of the input data, [} 92]
Tag counter Ascending
Write fragment no. 0
Read fragment no. See description of the input data, [} 92]
Read data, Bytes 0…n See example: UHF read data
The size of EPC/RSSI etc. depends on the settings of the read/write head.
106 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Example: UHF read data (header and EPC, grouping activated)
Type Name Meaning
uint8_t Size 14
uint8_t Block type 1
uint8_t Data [14] uint8_t EPC [12]
uint16_t Number of the read operations (LSB
Ò MSB) [2]
Example: UHF read data (header and EPC, grouping with RSSI activated)
Type Name Meaning
uint8_t Size 16
uint8_t Block type 1
uint8_t Data [18] uint8_t EPC [12]
uint16_t RSSI [2]
uint16_t Number of the read operations (LSB
Ò MSB) [2]
Example: UHF read data (header, EPC, grouping with RSSI, socket, time, phase activated)
Type Name Meaning
uint8_t Size 24
uint8_t Block type 1
uint8_t Data [24] uint8_t EPC [12]
uint16_t RSSI (LSB Ò MSB)
uint16_t Socket (LSB Ò MSB)
uint32_t Time (LSB Ò MSB)
uint16_t Phase (LSB Ò MSB)
uint16_t Number of the read operations (LSB
Ò MSB)
108 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.8.3 Read command
The Read command causes the read/write head to read the data of tags in the detection range.
128 bytes are transferred in a read operation by default. Larger data volumes can be transferred
in fragments. If a particular UID or EPC is entered, the read/write head only reads the appropri-
ate tags. All other tags in the detection range are ignored in this case.
NOTE
The command code for fast processing with the loop counter is 0x2002 (hex.) or
8194 (dec.).
Request
Loop counter See description of the output data, [} 98]
Command code 0x0002 (hex.), 2 (dec.)
Memory area See description of the output data, [} 98]
Read/write head address See description of the output data, [} 98]
Length UID/EPC Enter UID or EPC size in bytes, if a particular tag is to be read.
The UID or EPC must be defined in the write data. (start byte:
0). The function of the length of the UID/EPC depends on
the command used.
0: No entry of a UID/EPC for executing the command. Only
one tag can be located in the detection range of the read/
write head.
> 0: EPC length of the tag to be read if an EPC is present in
the write data
-1: NEXT mode: A tag is always only read if the UID/EPC is dif-
ferent to the UID/EPC of the last read or written tag.
Start address Start address of the memory area on the tag to be read
(entry in bytes)
Length Length of the data to be read in bytes
Command timeout See description of the output data, [} 98]
Write fragment no. 0
Read fragment no. See description of the output data, [} 98]
Write data, Byte 0…(size of the UID or EPC of the tag to be read
UID/EPC-1)
Write data, Byte (size of the EPC) Not required
…127
Response
Loop counter See description of the input data, [} 92]
Response code 0x0002 (hex.), 2 (dec.)
Length Length of the read data
Error code See description of the input data, [} 92]
Tag within the See description of the input data, [} 92]
detection range
Data (bytes) available Increases during command execution
Tag counter See description of the input data, [} 92]
Write fragment no. 0
Read fragment no. See description of the input data, [} 92]
Read data, Bytes 0…n Read data
110 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.8.4 Command: Write
The Write command causes the read/write head to write data to tags in the detection range.
128 bytes are transferred in a write operation by default. Larger data volumes can be trans-
ferred in fragments. If a particular UID or EPC is entered, the read/write head only reads the ap-
propriate tags. All other tags in the detection range are ignored in this case.
NOTE
With multitag applications enter the UID or EPC of the tag to be written.
NOTE
The command code for fast processing with the loop counter is 0x2004 (hex.) or
8196 (dec.).
Request
Loop counter See description of the output data, [} 98]
Command code 0x0004 (hex.), 4 (dec.)
Memory area See description of the output data, [} 98]
Read/write head address See description of the output data, [} 98]
Length UID/EPC Enter UID or EPC size in bytes, if a particular tag is to be writ-
ten. The UID or EPC must be defined in the write data. (start
byte: 0). The function of the length of the UID/EPC depends
on the command used.
0: No entry of a UID/EPC for executing the command. Only
one tag can be located in the detection range of the read/
write head.
> 0: EPC length of the tag to be written if an EPC is present in
the write data
-1: NEXT mode: A tag is always only written if the UID/EPC is
different to the UID/EPC of the last read or written tag.
Start address Start address of the memory area on the tag to be written
(entry in bytes)
Length Length of the data to be written in bytes
Command timeout See description of the output data, [} 98]
Write fragment no. 1: Using fragmentation
0: Do not use fragmentation
Read fragment no. 0
Write data, Byte 0…(size of the UID or EPC of the tag to be written
UID/EPC-1)
Write data, Byte (size of the EPC) Write data
…127
Response
Loop counter See description of the input data, [} 92]
Response code 0x0004 (hex.), 4 (dec.)
Length Length of the read data
Error code See description of the input data, [} 92]
Tag within the See description of the input data, [} 92]
detection range
Data (bytes) available Increases during command execution
Tag counter See description of the input data, [} 92]
Write fragment no. See description of the input data, [} 92]
Read fragment no. 0
Read data, Byte 0...127 Not required
112 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.8.5 Command: Write and verify
The Write and verify command writes a number of bytes defined by the user. The written data
is also sent back to the interface and verified. 128 bytes are transferred by default in a write op-
eration. Larger data volumes can be transferred in fragments. The written data is only verified in
the interface and is not sent back to the controller. If the verification fails, an error message is
output. If the command is processed without an error message, the data was verified success-
fully.
NOTE
With multitag applications enter the UID or EPC of the tag to be written.
NOTE
The command code for fast processing with the loop counter is 0x2008 (hex.) or
8200 (dec.).
Request
Loop counter See description of the output data, [} 98]
Command code 0x0008 (hex.), 8 (dec.)
Memory area See description of the output data, [} 98]
Read/write head address See description of the output data, [} 98]
Length UID/EPC Enter UID or EPC size in bytes, if a particular tag is to be writ-
ten. The UID or EPC must be defined in the write data. (start
byte: 0). The function of the length of the UID/EPC depends
on the command used.
0: No entry of a UID/EPC for executing the command. Only
one tag can be located in the detection range of the read/
write head.
> 0: EPC length of the tag to be written if an EPC is present in
the write data
-1: NEXT mode: A tag is always only written if the UID/EPC is
different to the UID/EPC of the last read or written tag.
Start address Start address of the memory area on the tag to be written
(entry in bytes)
Length Length of the data to be written in bytes
Command timeout See description of the output data, [} 98]
Write fragment no. 1: Using fragmentation
0: Do not use fragmentation
Read fragment no. 0
Write data, Byte 0…(size of the optional: UID or EPC of the tag to be written
UID/EPC-1)
Write data, Byte (size of the EPC) Write data
…127
Response
Loop counter See description of the input data, [} 92]
Response code 0x0008 (hex.), 8 (dec.)
Length Length of the read data
Error code See description of the input data, [} 92]
Tag within the See description of the input data, [} 92]
detection range
Data (bytes) available Increases during command execution
Tag counter See description of the input data, [} 92]
Write fragment no. See description of the input data, [} 92]
Read fragment no. 0
Read data, Not required
Byte 0…MIN (127, set length-1)
114 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.8.6 Command: Continuous mode
NOTE
Continuous mode is only available in HF applications for single-tag applications. The
repeated reading of the same tag is edge-triggered.
In Continuous mode, a user-defined command is sent to the read/write head and saved in the
read/write head. With HF the following values can be set: Write, read, inventory, tag info. With
UHF the commands write, read and inventory can be executed in Continuous mode. With UHF
applications the parameters for Continuous mode must be set via the DTM directly in the read/
write head.
The command is continuously executed until the user terminates Continuous mode. Continu-
ous mode can be terminated with a reset command.
NOTE
The reset command resets all read data.
Read/write heads in Continuous mode send all command related data to the interface. The
data is stored in the FIFO memory of the interface and can be queried by the controller via the
Get data from buffer command.
Commands in Continuous mode are triggered if the read/write head detects a tag. If there is a
tag in the detection range of the read/write head when Continuous mode is started, the com-
mand sent in Continuous mode is executed with the next tag.
NOTE
In Continuous mode the Tag in detection range signal is not updated.
Start address and length cannot be changed during the execution of Continuous
mode.
After Continuous mode is restarted, all data of the already running Continuous
mode is deleted.
Request
Loop counter See description of the output data, [} 98]
Command code 0x0010 (hex.), 16 (dec.)
Read/write head address See description of the output data, [} 98]
Length UID/EPC Not required
Start address UHF Inventory
1: Grouping of the EPCs active
0: Grouping of the EPCs inactive
>1: Not defined
HF bus mode
1: Grouping of the UIDs active
0: Grouping of the UIDs inactive
>1: Not defined
Length Not required
Command timeout Not required
Write fragment no. 0
Read fragment no. See description of the output data, [} 98]
Write data Not required
Response
Loop counter See description of the input data, [} 92]
Response code 0x0010 (hex.), 16 (dec.)
Length 0
Error code See description of the input data, [} 92]
Tag within the See description of the input data, [} 92]
detection range
Data (bytes) available Increases during command execution
Tag counter Increases with each read or written UID/EPC
Write fragment no. 0
Read fragment no. See description of the input data, [} 92]
Read data See description of the input data, [} 92]
116 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.8.7 Command: Get data from buffer command (Continuous mode/Continuous presence
sensing mode)
NOTE
The command code for fast processing with the loop counter is 0x2011 (hex.) or
8209 (dec.).
The Get data from buffer command (Continuous mode) passes on data stored in the interface
to the controller. The command is required to transfer read data to the controller in Continuous
mode or in Continuous presence sensing mode. The data is transferred to the controller in frag-
ments of up to 128 bytes. The size of the fragments can be set by the user. A UID or EPC is not
divided by fragment limits. If a UID or EPC does not fit completely in a fragment, it is automatic-
ally moved to the next fragment.
NOTE
The Get data from buffer command does not end Continuous mode.
Request
Loop counter See description of the output data, [} 98]
Command code 0x0011 (hex.), 17 (dec.)
Read/write head address See description of the output data, [} 98]
Length UID/EPC Not required
Start address Not required
Length Max. length of the data to be read by the device (≤ size of
the data that the device has actually stored), entered in
bytes
Command timeout See description of the output data, [} 98]
Write fragment no. 0
Read fragment no. See description of the output data, [} 98]
Write data Not required
Response
Loop counter See description of the input data, [} 92]
Response code 0x0011 (hex.), 17 (dec.)
Length Length of the read data. The data is stated in complete
blocks.
Error code See description of the input data, [} 92]
Tag within the See description of the input data, [} 92]
detection range
Data (bytes) available Is automatically decreased after the execution of the com-
mand
Tag counter See description of the input data, [} 92]
Write fragment no. 0
Read fragment no. See description of the input data, [} 92]
Read data Read data
The size of EPC/RSSI etc. depends on the settings of the read/write head.
Example: UHF read data (header, EPC, grouping with RSSI, socket, time, phase activated)
Type Name Meaning
uint8_t Size 24
uint8_t Block type 1
uint8_t Data [24] uint8_t EPC [12]
uint16_t RSSI (LSB Ò MSB)
uint16_t Socket (LSB Ò MSB)
uint32_t Time (LSB Ò MSB)
uint16_t Phase (LSB Ò MSB)
uint16_t Number of the read operations (LSB
Ò MSB)
118 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Data format in HF applications
In HF applications the data is not formatted by means of a header. Some examples of HF data
are listed below.
NOTE
The reset command resets all read data.
Read/write heads in Continuous presence sensing mode send all command related data to the
interface. The data is stored in the buffer of the interface and can be queried by the controller
via the Get data from buffer command. In Continuous presence sensing mode the Tag in de-
tection range signal is not permanently updated.
Request
Loop counter See description of the output data, [} 98]
Command code 0x0020 (hex.), 32 (dec.)
Read/write head address See description of the output data, [} 98]
Length UID/EPC Not required
Start address 0: Grouping inactive
1: Grouping active
>1: Not defined
Length Not required
Command timeout Not required
Write fragment no. 0
Read fragment no. See description of the output data, [} 98]
Write data Not required
Response
Loop counter See description of the input data, [} 92]
Response code 0x0020 (hex.), 32 (dec.)
Length Not required
Error code See description of the input data, [} 92]
Tag within the See description of the input data, [} 92]
detection range
Data (bytes) available Increases during command execution
Tag counter Increases with each read or written UID/EPC
Write fragment no. 0
Read fragment no. See description of the input data, [} 92]
Read data See description of the input data, [} 92]
120 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.8.9 Command: End Continuous (presence sensing) mode
Continuous and presence sensing mode can be stopped via the Shut down Continuous (pres-
ence sensing) mode command. The data in the buffer of the interface is not deleted after the
command is executed and can still be called up by the controller via the Get data from buffer
command.
Request
Loop counter See description of the output data, [} 98]
Command code 0x0012 (hex.), 18 (dec.)
Read/write head address Not required
Length UID/EPC Not required
Start address Not required
Length Not required
Command timeout See description of the output data, [} 98]
Write fragment no. 0
Read fragment no. See description of the output data, [} 98]
Write data Not required
Response
Loop counter See description of the input data, [} 92]
Response code 0x0012 (hex.), 18 (dec.)
Length Not required
Error code See description of the input data, [} 92]
Tag within the See description of the input data, [} 92]
detection range
Data (bytes) available See description of the input data, [} 92]
Tag counter See description of the input data, [} 92]
Write fragment no. 0
Read fragment no. See description of the input data, [} 92]
Read data Not required
Response
Loop counter See description of the input data, [} 92]
Response code 0x0041 (hex.), 65 (dec.)
Length See description of the input data, [} 92]
Error code See description of the input data, [} 92]
Tag within the See description of the input data, [} 92]
detection range
Data (bytes) available See description of the input data, [} 92]
Tag counter Increases with each read or written UID/EPC
Write fragment no. 0
Read fragment no. See description of the input data, [} 92]
Read data, Byte 0...19 Ident No.: ARRAY [0…19] of BYTE
Read data, Byte 20...35 Serial number: ARRAY [0…15] of BYTE
Read data, Byte 36...37 Hardware version: INT16 (Little Endian)
Read data, Byte 38...41 Firmware status: ARRAY [0…] of BYTE: V (0x56), x, y, z (Vx.y.z)
Read data, Byte 42...119 Not required
122 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.8.11 Command: Switch off HF read/write head
The Switch off HF read/write head command enables HF read/write heads to be switched off
until a write or read command is present. The switching on and off of the read/write heads may
be necessary if the devices are mounted very closely together and the detection ranges over-
lap. When a command is executed the read/write heads are automatically reactivated. After the
command is executed, the read/write head is switched off again.
Request
Loop counter See description of the output data, [} 98]
Command code 0x0040 (hex.), 64 (dec.)
Read/write head address See description of the output data, [} 98]
Length UID/EPC Not required
Start address Not required
Length Not required
Command timeout See description of the output data, [} 98]
Write fragment no. 0
Read fragment no. See description of the output data, [} 98]
Write data Not required
Response
Loop counter See description of the input data, [} 92]
Response code 0x0040 (hex.), 64 (dec.)
Length Not required
Error code See description of the input data, [} 92]
Tag within the See description of the input data, [} 92]
detection range
Data (bytes) available See description of the input data, [} 92]
Tag counter See description of the input data, [} 92]
Write fragment no. 0
Read fragment no. See description of the input data, [} 92]
Read data Not required
NOTE
The command is only available for the TNLR-… and TNSLR-… HF read/write heads.
The Read/write head tuning command enables HF read/write heads to be tuned automatically
to their ambient conditions. The tuning values are saved until the next voltage reset in the
read/write head.
HF read/write head tuning is carried out automatically by default after each voltage reset.
Request
Loop counter See description of the output data, [} 98]
Command code 0x0080 (hex.), 128 (dec.)
Read/write head address See description of the output data, [} 98]
Length UID/EPC Not required
Start address Not required
Length Not required
Command timeout See description of the output data, [} 98]
Write fragment no. 0
Read fragment no. See description of the output data, [} 98]
Write data Not required
Response
Loop counter See description of the input data, [} 92]
Response code 0x0080 (hex.), 128 (dec.)
Length 2
Error code See description of the input data, [} 92]
Tag within the See description of the input data, [} 92]
detection range
Data (bytes) available See description of the input data, [} 92]
Tag counter See description of the input data, [} 92]
Write fragment no. 0
Read fragment no. See description of the input data, [} 92]
Read data, Byte 0 Tuning value:
TNLR-…: 0x00…0x0F
TNSLR-…: 0x00…0x1F
Read data, Byte 1 empfangener Spannungswert (0x00…0xFF)
124 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.8.13 Command: Query HF read/write head address
NOTE
The command is only available in HF bus mode.
The interface can query the addresses of all connected HF read/write heads via the Query HF
read/write head address command. If a non-bus-compatible read/write head is connected, the
device outputs an error message.
Request
Loop counter See description of the output data, [} 98]
Command code 0x0070 (hex.), 112 (dec.)
Read/write head address Not required
Length UID/EPC Not required
Start address Not required
Length Not required
Command timeout See description of the output data, [} 98]
Write fragment no. 0
Read fragment no. See description of the output data, [} 98]
Write data Not required
Response
Loop counter See description of the input data, [} 92]
Response code 0x0070 (hex.), 112 (dec.)
Length Not required
Error code See description of the input data, [} 92]
Tag within the See description of the input data, [} 92]
detection range
Data (bytes) available See description of the input data, [} 92]
Tag counter See description of the input data, [} 92]
Write fragment no. 0
Read fragment no. See description of the input data, [} 92]
Read data, byte 0…[number of Addresses of the connected read/write heads (uint8_t)
the connected read/write heads]
Read data, byte [number of the Not required
connected read/write
heads] ...127
NOTE
The command is only available in HF bus mode.
Only one bus-compatible read/write head can be connected to the interface during
command execution.
Deactivate read/write heads before manual addressing via the parameter data so
that automatic address assignment is not executed.
The address of HF bus-compatible read/write heads can be set via the Set HF read/write head
address command. Command execution does not depend on activation or an already set ad-
dress of a read/write head. An already existing read/write head address is overwritten.
Response
Loop counter See description of the input data, [} 92]
Response code 0x0071 (hex.), 113 (dec.)
Length Not required
Error code See description of the input data, [} 92]
Tag within the See description of the input data, [} 92]
detection range
Data (bytes) available See description of the input data, [} 92]
Tag counter See description of the input data, [} 92]
Write fragment no. 0
Read fragment no. See description of the input data, [} 92]
Read data Not required
126 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.8.15 Direct read/write head command
NOTE
The command code for fast processing with the loop counter is 0x2060 (hex.) or
8288 (dec.).
A direct command enables commands from the read/write head protocol to be sent directly to
the read/write head. The commands are defined and interpreted by the entries in the write and
read data.
NOTE
The read/write head protocol is not part of this documentation and must be reques-
ted from Turck and specially released. Send any inquiries about the read/write head
protocol to Turck.
Request
Loop counter See description of the output data, [} 98]
Command code 0x0060 (hex.), 96 (dec.)
Read/write head address See description of the output data, [} 98]
Length UID/EPC 0
Start address Not required
Length Length of the description of the direct command in the
write data, entry in bytes
Command timeout See description of the output data, [} 98]
Write fragment no. 0
Read fragment no. See description of the output data, [} 98]
Write data Description of the direct command
Response
Loop counter See description of the input data, [} 92]
Response code 0x0060 (hex.), 96 (dec.)
Length Length of the description of the direct command in the
write data
Error code See description of the input data, [} 92]
Tag within the See description of the input data, [} 92]
detection range
Data (bytes) available See description of the input data, [} 92]
Tag counter See description of the input data, [} 92]
Write fragment no. 0
Read fragment no. See description of the input data, [} 92]
Read data Response to the direct command
Response
Loop counter 0
Response code 0x0060
Length 6
Error code 0
Tag within the 0
detection range
Data (bytes) available 0
Tag counter 0
Write fragment no. 0
Read fragment no. 0
Read data 0xE0 (CC), 0x00 (CI), 0x04, 0x06, 0xA1, 0x77
The BL ident® protocol enables the following information to be scanned with the described
bytes:
n Byte 5 – read/write head ID: 4
n Byte 6 – Hardware version: 6
n Byte 7 – Software version x.y, y (A1)
n Byte 8 – Software version x.y, y (0x77)
n The entire software version information consists of Byte 7 and Byte 8 (A1v77).
128 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Example: Direct command in UHF applications (scan read/write head version)
Request
Loop counter 0
Command code 0x0060
Read/write head address 0
Length UID/EPC 0
Start address 0
Length 2
Command timeout 200
Write fragment no. 0
Read fragment no. 0
Write data 0x02 (CMD), 0x00 (application) – see debus protocol
Response
Loop counter 0
Response code 0x0060
Length 12
Error code 0
Tag within the 0
detection range
Data (bytes) available 0
Tag counter 0
Write fragment no. 0
Read fragment no. 0
Read data 0x02, 0x00, 0x01, 0x02, 0x03, 0x04, 0x8B, 0x20, 0x00, 0x01,
0x00, 0x01
Request
Start address 0
Length 5
Command timeout 200
Write fragment no. 0
Read fragment no. 0
Write data 0x09 8A 4A 03 01
Change output power: Write “30 dBm” power in the RAM and flash memory of the read/
write head. The sixth byte of the write data sets the power in dBm as a hexadecimal
value.
Request
Loop counter 0
Command code 0x0060
Read/write head address 0
Length UID/EPC 0
Start address 0
Length 6
Command timeout 200
Write fragment no. 0
Read fragment no. 0
Write data 0x09 8A 3C 03 01 1E
The following table provides assistance in converting the power values from dBm to mW.
dBm mW dBm mW
1 1.25 16 40
2 1.6 17 50
3 2 18 63
4 2.5 19 80
5 3 20 100
6 4 21 125
7 5 22 160
8 6 23 200
9 8 24 250
10 10 25 316
11 13 26 400
12 16 27 500
13 20 28 630
14 25 29 800
15 32 30 1000
130 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.8.16 Command: Set tag password
NOTE
The command is only available for applications with UHF tags and the HF tags TW-
R…-M-B146.
NOTE
The command code for fast processing with the loop counter is 0x2102 (hex.) or
8450 (dec.).
The Set tag password command sets a password in the tag. Tag protection is not activated un-
til the Set tag protection command has also been carried out. When sending the command
only one tag can be located in the detection range of the read/write head. After the password is
sent, other commands (e.g. Set tag protection) can be sent to the tag. The Set tag password
command prevents a Kill password from being set in the tag.
The password function is only available in HF applications in single-tag mode. An error message
is output with multitag applications. For troubleshooting set the HF: multitag mode parameter
to 0: Set Multitag mode off.
Request
Loop counter See description of the output data, [} 98]
Command code 0x0102 (hex.), 258 (dec.)
Read/write head address See description of the output data, [} 98]
Length UID/EPC Enter UID or EPC size in bytes, if a particular tag is to be pro-
tected. The UID or EPC must be defined in the write data.
(start byte: 0). The function of the length of the UID/EPC de-
pends on the command used.
0: No entry of a UID/EPC for executing the command. Only
one tag can be located in the detection range of the read/
write head.
> 0: EPC length of the tag to be protected if an EPC is
present in the write data
-1: NEXT mode: A tag is always only protected if the UID/EPC
is different to the UID/EPC of the last read or written tag.
Start address Not required
Length 4 Byte
Command timeout See description of the output data, [} 98]
Write fragment no. 0
Read fragment no. See description of the output data, [} 98]
Write data, Byte 0...3 Password: ARRAY [0…3] OF BYTE
Write data, Byte 4...127 Not required
Response
Loop counter See description of the input data, [} 92]
Response code 0x0102 (hex.), 258 (dec.)
Length Not required
Error code See description of the input data, [} 92]
Tag within the See description of the input data, [} 92]
detection range
Data (bytes) available See description of the input data, [} 92]
Tag counter See description of the input data, [} 92]
Write fragment no. 0
Read fragment no. See description of the input data, [} 92]
Read data Not required
132 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.8.17 Command: Set read/write head password
NOTE
The command is only available for applications with UHF tags and the HF tags TW-
R…-M-B146.
The Set read/write head password command directly sets a password for write access, read ac-
cess or a kill command. The password is stored temporarily in the memory of the read/write
head. After the voltage of the read/write head is reset, the password must be set again in the
read/write head. With UHF applications, the password is stored in the memory of the interface.
The password stored in the read/write head is automatically sent with a write command, a read
command or a kill command so that the command can be carried out on a protected tag.
The password function is only available in HF applications in single-tag mode. An error message
is output with multitag applications. For troubleshooting set the HF: multitag mode parameter
to 0: Set Multitag mode off.
Request
Loop counter See description of the output data, [} 98]
Command code 0x0100 (hex.), 256 (dec.)
Read/write head address See description of the output data, [} 98]
Length UID/EPC Not required
Start address Not required
Length Not required
Command timeout See description of the output data, [} 98]
Write fragment no. 0
Read fragment no. See description of the output data, [} 98]
Write data, Byte 0...3 Password: ARRAY [0…3] OF BYTE
Write data, Byte 4...127 Not required
Response
Loop counter See description of the input data, [} 92]
Response code 0x0100 (hex.), 256 (dec.)
Length Not required
Error code See description of the input data, [} 92]
Tag within the See description of the input data, [} 92]
detection range
Data (bytes) available See description of the input data, [} 92]
Tag counter See description of the input data, [} 92]
Write fragment no. 0
Read fragment no. See description of the input data, [} 92]
Read data Not required
NOTE
The command is only available for applications with UHF tags and the HF tags TW-
R…-M-B146.
The Reset read/write head password command directly resets a password for write access,
read access or a kill command in the read/write head. The password function is switched off,
there is no password exchange between the read/write head and the tag.
The password function is only available in HF applications in single-tag mode. An error message
is output with multitag applications. For troubleshooting set the HF: multitag mode parameter
to 0: Set Multitag mode off.
Request
Loop counter See description of the output data, [} 98]
Command code 0x0101 (hex.), 257 (dec.)
Read/write head address See description of the output data, [} 98]
Length UID/EPC Not required
Start address Not required
Length Not required
Command timeout See description of the output data, [} 98]
Write fragment no. 0
Read fragment no. See description of the output data, [} 98]
Write data Not required
Response
Loop counter See description of the input data, [} 92]
Response code 0x0101 (hex.), 257 (dec.)
Length Not required
Error code See description of the input data, [} 92]
Tag within the See description of the input data, [} 92]
detection range
Data (bytes) available See description of the input data, [} 92]
Tag counter See description of the input data, [} 92]
Write fragment no. 0
Read fragment no. See description of the input data, [} 92]
Read data Not required
134 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.8.19 Command: Set tag protection
NOTE
The command is only available for applications with UHF tags and the HF tags TW-
R…-M-B146.
NOTE
The command code for fast processing with the loop counter is 0x2103 (hex.) or
8451 (dec.).
The Set tag protection command defines password protection for the tag with a direct com-
mand. For this it has to be specified whether a write protection or a read protection should be
set and the area of the tag to which the password applies. Protection for all areas is defined
with one command. When sending the command only one tag can be located in the detection
range of the read/write head.
The password function is only available in HF applications in single-tag mode. An error message
is output with multitag applications. For troubleshooting set the HF: multitag mode parameter
to 0: Set Multitag mode off.
NOTE
A write protection for UHF tags cannot be undone.
Request
Loop counter See description of the output data, [} 98]
Command code 0x0103 (hex.), 259 (dec.)
Read/write head address See description of the output data, [} 98]
Length UID/EPC Enter UID or EPC size in bytes, if a particular tag is to be pro-
tected. The UID or EPC must be defined in the write data.
(start byte: 0). The function of the length of the UID/EPC de-
pends on the command used.
0: The command is executed for the tag which is located in
the detection range of the read/write head.
> 0: EPC length of the tag to be protected if an EPC is
present in the write data
-1: NEXT mode: A tag is always only protected if the UID/EPC
is different to the UID/EPC of the last read or written tag.
Start address Not required
Memory area Possible values:
n HF: USER memory (memory areas 1 and 3)
n UHF: PC and EPC (memory area 1), USER memory
(memory area 3)
UHF: The entire memory area selected is protected with a
password.
HF: Entry of the memory area not necessary. The pages of
the memory area are selected via Byte 0 of the write data. A
page consists of 4 blocks (16 bytes).
Length UHF: 0 byte
HF: 8 byte
Request
Command timeout See description of the output data, [} 98]
Write fragment no. 0
Read fragment no. See description of the output data, [} 98]
Write data, Byte 0 HF:
n Bit 0: Write protection, Page 0
n Bit 1: Write protection, Page 1
n Bit 2: Write protection, Page 2
n Bit 3: Write protection, Page 3
n Bit 4: Write protection, Page 4
n Bit 5: Write protection, Page 5
n Bit 6: Write protection, Page 6
n Bit 7: Write protection, Page 7
UHF: Not required
Write data, Byte 1 0
Write data, Byte 2 0
Write data, Byte 3 0
Write data, Byte 4 HF:
n Bit 0: Read protection, Page 0
n Bit 1: Read protection, Page 1
n Bit 2: Read protection, Page 2
n Bit 3: Read protection, Page 3
n Bit 4: Read protection, Page 4
n Bit 5: Read protection, Page 5
n Bit 6: Read protection, Page 6
n Bit 7: Read protection, Page 7
UHF: Not required
Write data, Byte 5 0
Write data, Byte 6 0
Write data, Byte 7 0
Write data, Byte 8...127 Not required
Response
Loop counter See description of the input data, [} 92]
Response code 0x0103 (hex.), 259 (dec.)
Length Not required
Error code See description of the input data, [} 92]
Tag within the See description of the input data, [} 92]
detection range
Data (bytes) available See description of the input data, [} 92]
Tag counter See description of the input data, [} 92]
Write fragment no. 0
Read fragment no. See description of the input data, [} 92]
Read data Not required
136 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.8.20 Command: Query HF tag protection status
NOTE
The command is only available for applications with the HF tags TW-R…-M-B146.
The Get HF tag protection status command queries with a direct command whether a specific
area of the tag is password protected. When sending the command only one tag can be loc-
ated in the detection range of the read/write head.
The password function is only available in HF applications in single-tag mode. An error message
is output with multitag applications. For troubleshooting set the HF: multitag mode parameter
to 0: Set Multitag mode off.
Request
Loop counter See description of the output data, [} 98]
Command code 0x0104 (hex.), 260 (dec.)
Read/write head address See description of the output data, [} 98]
Length UID/EPC Enter UID or EPC size in bytes, if a particular tag is to be pro-
tected. The UID or EPC must be defined in the write data.
(start byte: 0). The function of the length of the UID/EPC de-
pends on the command used.
0: The command is executed for the tag which is located in
the detection range of the read/write head.
> 0: EPC length of the tag to be protected if an EPC is
present in the write data
-1: NEXT mode: A tag is always only protected if the UID/EPC
is different to the UID/EPC of the last read or written tag.
Start address Not required
Length 8 Byte
Command timeout See description of the output data, [} 98]
Write fragment no. 0
Read fragment no. See description of the output data, [} 98]
Write data Not required
Response
Loop counter See description of the input data, [} 92]
Response code 0x0104 (hex.), 260 (dec.)
Length Not required
Error code See description of the input data, [} 92]
Tag within the See description of the input data, [} 92]
detection range
Data (bytes) available See description of the input data, [} 92]
Tag counter See description of the input data, [} 92]
Write fragment no. 0
Read fragment no. See description of the input data, [} 92]
Read data, Byte 0 HF:
n Bit 0: Write protection, Page 0
n Bit 1: Write protection, Page 1
n Bit 2: Write protection, Page 2
n Bit 3: Write protection, Page 3
n Bit 4: Write protection, Page 4
n Bit 5: Write protection, Page 5
n Bit 6: Write protection, Page 6
n Bit 7: Write protection, Page 7
UHF: Not required
Read data, Byte 1 0
Read data, Byte 2 0
Read data, Byte 3 0
Read data, Byte 4 HF:
n Bit 0: Read protection, Page 0
n Bit 1: Read protection, Page 1
n Bit 2: Read protection, Page 2
n Bit 3: Read protection, Page 3
n Bit 4: Read protection, Page 4
n Bit 5: Read protection, Page 5
n Bit 6: Read protection, Page 6
n Bit 7: Read protection, Page 7
UHF: Not required
Read data, Byte 5 0
Read data, Byte 6 0
Read data, Byte 7 0
138 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.8.21 Command: Set permanent lock (Lock)
NOTE
The command code for fast processing with the loop counter is 0x2105 (hex.) or
8453 (dec.).
The Set perma lock command permanently sets a complete memory block of the tag with a
direct command and permanently locks it. When sending the command only one tag can be
located in the detection range of the read/write head.
The function is only available in HF applications in single-tag mode. An error message is output
with multitag applications. For troubleshooting set the HF: multitag mode parameter to 0: Set
Multitag mode off.
Request
Loop counter See description of the output data, [} 98]
Command code 0x0105 (hex.), 261 (dec.)
Read/write head address See description of the output data, [} 98]
Length UID/EPC 0: The command is executed for the tag which is located in
the detection range of the read/write head.
> 0: EPC or UID length of the tag to be locked if an EPC or
UID is present in the write data
-1: NEXT mode: A tag is always only protected if the UID/EPC
is different to the UID/EPC of the last read or written tag.
Start address UHF: Not required
HF: Address of the first bit in the block to be locked (EEPROM
tag: 0, 4, 8, …, FRAM tag: 0, 8, 16, …)
Memory area Possible values:
n HF: USER memory (memory areas 1... 4)
n UHF: Kill password (memory area 1), PC and EPC (memory
area 1), USER memory (memory area 3) Access password
(memory area 4)
UHF: The entire memory area selected is permanently
locked.
HF: Entry of the memory area not necessary
Length HF: Length of the data to be locked in bytes. Only multiples
of the block size can be specified.
0: 1 Lock block
UHF: Not required
Command timeout See description of the output data, [} 98]
Write fragment no. 0
Read fragment no. See description of the output data, [} 98]
Write data Not required
Response
Loop counter See description of the input data, [} 92]
Response code 0x0105 (hex.), 261 (dec.)
Length Not required
Error code See description of the input data, [} 92]
Tag within the See description of the input data, [} 92]
detection range
Data (bytes) available See description of the input data, [} 92]
Tag counter See description of the input data, [} 92]
Write fragment no. 0
Read fragment no. See description of the input data, [} 92]
Read data Not required
140 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.8.22 Command: Tag info
NOTE
The command code for fast processing with the loop counter is 0x2050 (hex.) or
8272 (dec.).
The Tag info command enables the chip information of an HF tag to be queried. For HF applic-
ations the command is only available with automatic detection. In UHF applications the alloca-
tion class identifier, tag mask designer identifier and tag model number are queried. The data is
queried from the GSI record of the tag.
Request
Loop counter See description of the output data, [} 98]
Command code 0x0050 (hex.), 80 (dec.)
Read/write head address See description of the output data, [} 98]
Length UID/EPC Not required
Start address Start address in the GSI record
Length Length of the system data read (bytes)
0: All system data is read.
Command timeout Not required
Write fragment no. Not required
Read fragment no. See description of the output data, [} 98]
Write data Not required
Response (HF)
Loop counter See description of the input data, [} 92]
Response code 0x0050 (hex.), 80 (dec.)
Length See description of the input data, [} 92]
Error code See description of the input data, [} 92]
Tag within the See description of the input data, [} 92]
detection range
Data (bytes) available See description of the input data, [} 92]
Tag counter See description of the input data, [} 92]
Write fragment no. 0
Read fragment no. See description of the input data, [} 92]
Read data, Byte 0...7 UID, MSB (always 0xE0)
Read data, Byte 8 DSFID (data storage format identifier)
Read data, Byte 9 AFI (application identifier)
Read data, Byte 10 Memory size: Block number (0x00…0xFF)
Read data, Byte 11 Memory size: Byte/block (0x00…0x1F)
Read data, Byte 12 IC reference
Response (UHF)
Loop counter See description of the input data, [} 92]
Response code 0x0050 (hex.), 80 (dec.)
Length See description of the input data, [} 92]
Error code See description of the input data, [} 92]
Tag within the detection range See description of the input data, [} 92]
Data (bytes) available See description of the input data, [} 92]
Tag counter See description of the input data, [} 92]
Write fragment no. 0
Read fragment no. See description of the input data, [} 92]
Read data, Byte 0...3 First 32 bytes of the TID (tag class, manufacturer and chip
type)
Read data, Bytes 4…n EPC (length variable)
142 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.8.23 Command: Kill UHF tag
NOTE
The command is only available for UHF applications.
NOTE
The command code for fast processing with the loop counter is 0x2200 (hex.) or
8704 (dec.).
The Kill UHF tag command makes the tag memory unusable. After a kill command, the tag can
neither be read nor written. A Kill command cannot be undone.
Request
Loop counter See description of the output data, [} 98]
Command code 0x0200 (hex.), 512 (dec.)
Read/write head address See description of the output data, [} 98]
Length UID/EPC Enter UID or EPC size in bytes if a particular tag is to be de-
leted. The UID or EPC must be defined in the write data.
(start byte: 0). The function of the length of the UID/EPC de-
pends on the command used.
0: No entry of a UID/EPC for executing the command. Only
one tag can be located in the detection range of the read/
write head.
> 0: EPC length of the tag to be deleted if an EPC is present
in the write data.
-1: NEXT mode: A tag is always only deleted if the UID/EPC is
different to the UID/EPC of the last read or written tag.
Start address Not required
Length 1 Byte
Command timeout See description of the output data, [} 98]
Write fragment no. 0
Read fragment no. See description of the output data, [} 98]
Write data, Byte 0...3 Password: ARRAY [0…3] OF BYTE
Write data, Byte 4...127 Not required
Response
Loop counter See description of the input data, [} 92]
Response code 0x0200 (hex.), 512 (dec.)
Length Not required
Error code See description of the input data, [} 92]
Tag within the See description of the input data, [} 92]
detection range
Data (bytes) available See description of the input data, [} 92]
Tag counter See description of the input data, [} 92]
Write fragment no. 0
Read fragment no. See description of the input data, [} 92]
Read data Not required
NOTE
The command is only available for UHF applications.
The Restore settings UHF read/write head command restores the parameters of a connected
UHF read/write head from a backup (e.g. after a device swap). Type and firmware version must
be identical for both read/write heads. To execute the command, a backup must be created be-
forehand via the Backup settings UHF read/write head command.
Request
Loop counter See description of the output data, [} 98]
Command code 0x1000 (hex.), 4096 (dec.)
Read/write head address See description of the output data, [} 98]
Length UID/EPC Not required
Start address Not required
Length Not required
Command timeout See description of the output data, [} 98]
Write fragment no. 0
Read fragment no. See description of the output data, [} 98]
Write data Not required
Response
Loop counter See description of the input data, [} 92]
Response code 0x1000 (hex.), 4096 (dec.)
Length Not required
Error code See description of the input data, [} 92]
Tag within the See description of the input data, [} 92]
detection range
Data (bytes) available See description of the input data, [} 92]
Tag counter See description of the input data, [} 92]
Write fragment no. 0
Read fragment no. See description of the input data, [} 92]
Read data Not required
144 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.8.25 Command: Backup settings of the UHF read/write head
NOTE
The command is only available for UHF applications.
The Backup settings of the UHF read/write head command saves the current settings of the
connected read/write head in the memory of the interface. The backup is retained also after the
voltage of the interface is reset. The Restore UHF read/write head settings command can re-
store the backup data when a device is swapped. Type and firmware version must be identical
for both read/write heads.
Request
Loop counter See description of the output data, [} 98]
Command code 0x1001 (hex.), 4097 (dec.)
Read/write head address See description of the output data, [} 98]
Length UID/EPC Not required
Start address Not required
Length Not required
Command timeout See description of the output data, [} 98]
Write fragment no. 0
Read fragment no. See description of the output data, [} 98]
Write data Not required
Response
Loop counter See description of the input data, [} 92]
Response code 0x1001 (hex.), 4097 (dec.)
Length Not required
Error code See description of the input data, [} 92]
Tag within the See description of the input data, [} 92]
detection range
Data (bytes) available See description of the input data, [} 92]
Tag counter See description of the input data, [} 92]
Write fragment no. 0
Read fragment no. See description of the input data, [} 92]
Read data Not required
NOTE
The command is only available for UHF applications.
The Query error/status of UHF read/write head command enables error/status messages of a
connected UHF read/write head to be read.
Request
Loop counter See description of the output data, [} 98]
Command code 0x042 (hex.), 66 (dec.)
Read/write head address Not required
Length UID/EPC Not required
Start address Address in the Get Status response record
Length Length of the data to be read from the Get Status response
record
0: Read entire Get Status response record
Command timeout See description of the output data, [} 98]
Write fragment no. 0
Read fragment no. See description of the output data, [} 98]
Write data Not required
146 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Response
Loop counter See description of the input data, [} 92]
Response code 0x042 (hex.), 66 (dec.)
Length See description of the input data, [} 92]
Error code See description of the input data, [} 92]
Tag within the See description of the input data, [} 92]
detection range
Data (bytes) available See description of the input data, [} 92]
Tag counter See description of the input data, [} 92]
Write fragment no. 0
Read fragment no. See description of the input data, [} 92]
Read data, Byte 0...(Length-1) n Status general: 1 byte general status
n RF status: 1 byte status of the RF module
n Device status: 1 byte device-specific status information
n RF mode: 1 byte, defines the reason for starting the read
operation
n Trigger status: 1 Byte, trigger number of RF mode
n I/O status: 1 byte, status of the inputs and outputs (0 =
low, 1 = high)
n Ambient temperature: 1 byte, ambient temperature in °C
(data format: 8 bit, two’s complement)
n PA temperature: 1 byte, PA temperature in °C (data
format: 8 bit, two’s complement)
n RF antenna temperature: 1 byte, ambient temperature in
°C (data format: 8 bit, two’s complement)
n Transmit power: 2 bytes, output power of the read/write
head in 1/10 dBm steps, LSB…MSB (data format: 16 bit,
two’s complement)
n Reverse power: 2 bytes, returned reverse power in 1/10
dBm steps, LSB…MSB (data format: 16 bit, two’s comple-
ment)
n Antenna DC resistance: 4 bytes, resistance at the antenna
port in Ω, LSB…MSB
n Jammer power: 2 bytes, input power at the RX port in
1/10 dBm steps, LSB…MSB (data format: 16 bit, two’s
complement)
n Channel: Number of the currently used channel (offset
from the next available channel)
Read data, byte (Length)...127 Not required
148 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.8.27 Command: Reset
The Reset command resets the read/write head and interface. The input and output data and
the buffer are also cleared.
Request
Loop counter See description of the output data, [} 98]
Command code 0x8000 (hex.), 32768 (dec.)
Read/write head address See description of the output data, [} 98]
Length UID/EPC Not required
Start address 0: Software reset
1: Voltage reset
Length Not required
Command timeout See description of the output data, [} 98]
Write fragment no. 0
Read fragment no. See description of the output data, [} 98]
Write data Not required
Response
Loop counter See description of the input data, [} 92]
Response code 0x8000 (hex.), 32768 (dec.)
Length Not required
Error code See description of the input data, [} 92]
Tag within the See description of the input data, [} 92]
detection range
Data (bytes) available See description of the input data, [} 92]
Tag counter See description of the input data, [} 92]
Write fragment no. 0
Read fragment no. See description of the input data, [} 92]
Read data Not required
NOTE
The web server always displays all setting options. All values are displayed as
decimal numbers.
The devices can be set and commands can be sent to the devices via the integrated web server.
To be able to open the web server with a PC, the device and the PC must be in the same IP net-
work.
In the delivery state the device has the IP address 192.168.1.254. To open the web server via a
web browser, enter http://192.168.1.254 in the address bar of the web browser.
150 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.9.2 Processing settings in the web server
A login is required to edit settings via the web server. The default password is "password".
NOTE
For security reasons, Turck recommends changing the password after the first login.
Enter the password in the login field on the start page of the web server.
Click Login
Fig. 74: Login field on the start page of the web server (marked in red)
After the login, write access to input, output and parameter data is possible.
152 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Example: Setting the operating mode for channel 0
The operating mode of channel 0 is set to HF compact in the following example.
Click RFID control/status 0 in the navigation bar on the left of the screen.
Select Parameters.
Select the operating mode via the Operating mode drop-down menu.
154 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Example: Executing a read command
In the following example 8 bytes of a tag are read by a read/write head connected to channel 0
of the interface.
Click RFID control/status 0 in the navigation bar on the left of the screen.
Click Outputs.
Select the read command via the Command code drop-down menu: 0x0002 (read)
Enter in the Length entry field the number of bytes to be read.
Send the read command: Click Submit.
The receipt of the command is confirmed in the input data at Response code.
Call the input data: Click Inputs in the navigation bar on the left of the screen.
156 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
The read command is executed as soon as there is a tag in the detection range of the read/
write head.
158 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Example: Executing a command in Bus mode
In the following example, the read/write head with address 2 is required in HF bus mode to
read eight bytes of a tag. Three read/write heads are connected to channel 0 of the interface.
Click RFID control/status 0 in the navigation bar on the left of the screen.
Select Parameters.
Set HF bus mode.
Activate connected read/write heads.
Click RFID control/status 0 in the navigation bar on the left of the screen.
Click Outputs.
Select the read command (0x0002 Read).
Enter the length of the read data.
Enter the read/write head address in the read/write head address parameter.
160 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.10 Testing and parameterizing RFID interfaces via the DTM
The device can be tested and assigned parameters with the DTM (Device Type Manager) via
PACTware™.
The different functions of the DTM are displayed by right-clicking the device in the project tree.
You can start the following functions:
n Parameters: Adapt parameters to the actual application
n Measured values: Display of the data read by the RFID interface
n Simulation: Set output parameter of the device for the function test
n Diagnostics: Display of the diagnostic messages of the device or the entire RFID system
162 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Enter the IP address of the device (example: 192.168.1.20).
Optional: Enter designation and device description.
Confirm entries with OK.
164 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.10.3 Reading process input data with the DTM – Measured value
The measured value function of the DTM enables the reading of the process input data.
166 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.10.6 Example: Executing a read command with the DTM
In the following example 8 bytes of a tag are read by a read/write head connected to channel 0
of the interface.
The read data is displayed in the Measured value window. The data format is hexadecimal.
A comprehensive description of the settings for UHF read/write heads is provided in the oper-
ating instructions for the specific device.
168 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
9 Operation
NOTE
The read and write data stored in the module is reset after a power reset.
NOTE
A command is successful when the response code is the same as the command
code.
HF applications
Command System cycle time Required time Dependence on factors such as
protocol, system etc.
Read 8 bytes 4 ms 10 ms ≤ 20 %
Write 8 bytes 4 ms 10 ms ≤ 20 %
Read 8 bytes 20 ms 60 ms ≤ 20 %
Write 8 bytes 20 ms 60 ms ≤ 20 %
Read 128 bytes 4 ms 40 ms ≤ 20 %
Write 128 bytes 4 ms 50 ms ≤ 20 %
Read 1 kByte 4 ms 700 ms ≤ 20 %
Write 1 kByte 4 ms 800 ms ≤ 20 %
Inventory (4 tags) 4 ms 300 ms ≤ 10 %
HF bus mode
The time required to cyclically process the command depends on how long the tag is in the de-
tection range of the read/write head (bypass time). The bypass time is set at 48 ms by default.
The bypass time can be set by the user. If the bypass time is set differently, the difference from
the time taken to process a command must be added or deducted.
The time taken for all read/write heads to be addressed once by the interface is calculated as
follows:
Number of read/write heads × bypass time
This time corresponds to the update rate for the Tag in detection range bit and must also be
taken into account when calculating the total time taken to process a command.
The inventory command must be executed separately for all read/write heads.
Command System cycle time Time required Dependence on factors such as
protocol, system, etc.
Read UID on a read/write 4 ms 24 ms Depending on the system
head with rising edge at TP, cycle time, the bypass time
tag within the detection must be added.
range
Read UID on a read/write 20 ms 80 ms
head with rising edge at TP,
tag within the detection
range
Read 112 bytes from different 4 ms 180 ms per read/write The length of time for which
read/write heads one after head the individual read/write
the other, default bypass time heads are accessed varies.
(48 ms)
UHF applications
Command System cycle time Required time Dependence on factors such
as protocol, system etc.
Read 12 bytes EPC 4 ms 120…220 ms not detectable
Write 12 bytes EPC 4 ms 260…400 ms not detectable
Read 1 kByte 4 ms 2500 ms ≤ 20 %
Write 1 kByte 4 ms 7300 ms ≤ 20 %
Inventory (100 tags, read/ 4 ms 5500 ms ≤ 20 %
write head in report mode,
dynamic application)
170 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
9.2 Using fragmentation
If more data is read than the set size of the data interface, the fragment counter is incremented
in the input data.
To read more data, increase the fragment counter in the output data.
Repeat process until the read or write fragment no. in the input data equals 0.
If less data is read than the set size of the data interface, the fragment counter stays at 0.
Click RFID control/status 0 Ò Outputs in the navigation bar on the left of the screen.
Select the read command via the Command code drop-down menu: 0x0002 Read.
Enter in the Length entry field the total number of bytes to be read. Observe the size of
the tag.
Send the read command: Click Submit.
a The read command is executed as soon as there is a tag in the detection range of the
read/write head.
172 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Call the input data via RFID control/status 0 Ò Inputs.
The following information is displayed in the input data:
n Response code: Read command successfully executed
n Data (bytes) available: Number of bytes that are still stored on the TBEN module and are not
yet displayed in the read data
n Read fragment No.: Consecutive number of the next fragment to be read
174 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Call the input data via RFID control/status 0 Ò Inputs.
The following information is displayed in the input data:
n Response code: Read command successfully executed
n Data (bytes) available: Number of bytes that are still stored on the TBEN module and are not
yet displayed in the read data
n Read fragment No.: Consecutive number of the next fragment to be read
176 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
9.2.2 Example: Using fragmentation in the web server – Write
The following example describes the writing of 500 bytes in fragments of 128 bytes each.
Open the web server of the device.
Log into the device as administrator.
Set the operating mode of the required channel via RFID control/status 0 Ò Paramet-
ers to HF extended (here: channel 0).
Save the set operating mode with Submit.
NOTE
The tag must not leave the detection range of the read/write head during the write
operation.
Enter the first 128 bytes of write data via RFID write data 0 Ò Outputs.
Click RFID control/status 0 Ò Outputs in the navigation bar on the left of the screen.
Choose the write command via the Command code drop-down menu: 0x0004 (write).
Enter the total number of bytes to be written in the Length entry field. Observe the size
of the tag.
Enter the value 1 at Write fragment No.
Send the write command: Click Submit.
a The write command is executed as soon as there is a tag in the detection range of the
read/write head. If a tag is present in the detection range of the read/write head, the data
is written directly and not stored on the TBEN module.
178 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Call the input data via RFID control/status Ò Inputs.
The following information is displayed in the input data:
n Response code: 0x8004 Busy – Write (write command active)
n Data (bytes) available: Number of bytes that are still stored on the TBEN module and were
not yet written to the tag
n Write fragment No.: Consecutive number of the next fragment to be read
Enter the second 128 bytes of write data at RFID write data 0 Ò Outputs.
Click RFID control/status 0 Ò Outputs in the navigation bar on the left of the screen.
Enter at Write fragment No. the consecutive number of the next fragment to be written
(here: 2).
Send the write command: Click Submit.
It is written directly if a tag is in the detection range. The data is stored in the TBEN module if
there is no tag in the detection range.
The tag must stay in the detection range until the command is fully executed. The device out-
puts an error message if the tag is removed from the detection range before the command has
been completed.
180 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Repeat the operation until all data is present on the TBEN module.
a If the data was successfully written to the tag, the Response code changes to 0x0004
Write.
NOTE
The loop counter is only supported for fast execution commands.
Repeating the command: Increase the loop counter in the output data by 1.
a The command was successfully executed if the same loop counter value appears in the
process input data as in the process output data. The RFID data is stored in the buffer of
the interface.
Setting a new command: Enter the new command code and set the loop counter to 0.
With read or write command: Enter the tag type. Automatic detection is not possible.
Select the command in Continuous mode (CCM): Inventory, read, tag info and write are
possible.
Enter the length in Continuous mode (LCM): Enter the length of the data to be read in
bytes.
Enter the start address for the command in Continuous mode (ACM). The start address
must be a multiple of the block size of the tag used. The addressing of an uneven byte
number is not possible.
For a write command enter the data to be written in the write data area.
Execute the Continuous mode command.
a The set command is preloaded and carried out for all active read/write heads as soon as a
tag is in the field.
The data received from the read/write head is queried cyclically and stored in the FIFO
memory of the interface.
Execute Idle command (0x0000).
To pass on data from the FIFO memory of the interface to the controller, execute the Get
data from buffer (0x0011) command. The length of the data must equal the value of the
available data bytes (BYFI).
To end Continuous mode, execute the End Continuous mode command (0x0012).
or
To end Continuous mode and clear the FIFO memory of the interface, send the Reset
command (0x0800).
182 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
9.5 Using HF bus mode
9.5.1 Executing commands in HF bus mode
Set the parameter data.
Select the HF bus mode operating mode.
Activate the connected read/write heads.
Set the input data.
Specify the command code.
Set the start address for the command.
Set the required read/write head address.
Send the command to the read/write head.
NOTE
The repeated reading of the same tag is time-triggered. The grouping in the process
output data can be activated in order to prevent the storing of the same UID mul-
tiple times.
During the time between two requests and when sending data to the RFID interface, the read/
write heads do not recognize any tags. The required waiting times are given in the following
table:
Command Waiting time
Inventory 15 ms
Read 25 ms
Write 35 ms
184 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
9.6 HF applications — Using continuous HF bus mode
In HF Continuous mode the read/write head can read or write up to 64 bytes (see the table for
user data areas of the HF tags.
The following parameters must be set in Continuous mode:
n Tag Type
n Command in Continuous mode
n Length in Continuous mode
n Start address for the command in Continuous mode
n Optional: Start address in the process output data for activating the grouping
With read or write command: Enter the tag type. Automatic detection is not possible.
Select the command in Continuous mode (CCM): Inventory, read, tag info and write are
possible.
Enter the length in Continuous mode (LCM): Enter the length of the data to be read in
bytes. The start address must be a multiple of the block size of the tag used.
Enter the start address for the command in Continuous mode (ACM). The start address
must be a multiple of the block size of the tag used. Refer to the table below for the block
size of the tags. Uneven bytes cannot be addressed.
Set the grouping function via the Start address in the process output data parameter if
required: Set the value for the Start address parameter to 1. If the grouping function is
activated and a UID is still stored in the FIFO memory of the module, a UID after the first
read is no longer stored as a new read. With subsequent read operations only the address
of the read/write head that has last read the tag and the number of the read operations is
updated.
For a write command enter the data to be written in the write data area.
Execute the Continuous mode command.
a The set command is preloaded and carried out for all active read/write heads as soon as a
tag is in the field.
With the read command and when querying UIDs, the data received by the read/write
head is polled cyclically and stored in the FIFO memory of the interface:
Type Name Meaning
uint8_t data[8] uint8_t UID [8]
uint8_t Reserved
uint8_t Address Read/write head address
uint16_t Number of read operations (only if grouping is activ-
ated)
Execute Idle command (0x0000). The Idle command does not end Continuous mode.
To pass on data from the FIFO memory of the interface to the controller, execute the Get
data from buffer (0x0011) command. The address of the read/write head used is also
transferred in addition to the read data. The length of the available data in the FIFO
memory is displayed in the input data at Data (bytes) available (BYFI). The length of the
data must be consistent. Example: If UID, reserved byte and read/write head address are
written to the FIFO memory for each tag, at least 10 bytes of data must be read from the
buffer.
NOTE
Data in the FIFO memory is not overwritten until it was transferred to the controller.
New read operations are appended in the FIFO memory of the interface.
To end Continuous mode, execute the End Continuous mode command (0x0012).
or
To end Continuous mode and clear the FIFO memory of the interface, send the Reset
command (0x0800).
NOTE
The data must be passed on regularly from the device to the parent level. No other
data can be stored if the 16 KByte ring memory is full. The device outputs an error
message.
186 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
9.7 Query UID in HF Continuous bus mode
There are three ways of querying the UID in HF Continuous bus mode.
n Use HF bus mode in Idle
n Use the Inventory command in HF bus mode
n Use HF Continuous bus mode with the Inventory command
The following tables describe the benefits and disadvantages of the particular applications.
Application Functions Notes
Use HF bus mode n UID is automatically displayed in the input n If tags with different UIDs are present in the
in Idle data. detection range of different read/write
heads, the UID is overwritten with each de-
tection operation: Data loss possible.
n No commands required by the controller
n Grouping function only possible via the
controller
Use the Inventory n Inventory command must be sent individu- n No overwriting of data: Only one read/write
command in HF ally to each read/write head. head performs the particular command.
bus mode n UID is displayed in the input data. n Only useful for static applications: The bus
cycle time must be shorter than the time
until a new tag is in the field.
n Grouping function only possible via the
controller
Use Continuous HF n Inventory command must be sent once by n All read/write heads are activated and save
bus mode with In- the controller. data.
ventory command n All UIDs are stored with the read/write head n Grouping function possible as long as the
address in the ring memory of the TBEN data was not yet sent to the controller
module: No data loss.
n The Get data from buffer command trans-
fers the data to the controller.
The controller sends a second read command in NEXT mode to the RFID interface. The read
command is not transferred from the interface to the read/write head as long as tag A is in the
detection range of the read/write head.
The read command is transferred from the interface to the read/write head if tag B is in the de-
tection range of the read/write head. The read/write head reads the data of tag B.
PLC TBEN RW-head Tags
Tag A
Tag A
Read Read
Tag B
188 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
9.9 Using the UHF password function
9.9.1 Access password
A write or read protection for EPC and user memory can be set with an access password.
Write access password with the following parameters to the tag:
n Command code 0x0102 (set tag password)
n Password: 4 bytes in the output data
n Length: 4 bytes
Set access password with the following parameters in the read/write head:
n Command code 0x0100 (set read/write head password)
n Password: 4 bytes in the output data
NOTE
If an incorrect access password is used for write accesses, the appropriate area can-
not be written. The device outputs an error message.
190 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Function blocks – Output variables
Name Data type Meaning
xDone BOOL 1: Command successfully executed
0: Command not executed
xBusy BOOL 1: Command active
0: No command active
xError BOOL 1: Error detected, command execution aborted
0: No error detected
xAborted BOOL 1: Command execution aborted by user
0: Command execution not aborted
eError ERROR Error code, [} 209]
xTP BOOL 1: Tag within the detection range
0: No tag within the detection range
xRWHeadNotConnected BOOL 1: No read/write head connected
0: Read/write head connected
uiTagCounter UINT Shows the number of the detected tags. In HF
multitag applications and in UHF applications,
tags are only counted with an inventory com-
mand. In HF single-tag applications all tags are
counted that are detected by the read/write
head. The tag counter is reset after the follow-
ing commands:
n Inventory (exception: single-tag applica-
tions)
n Continuous mode
n Continuous presence sensing mode
n Reset
uiDataRxLength UINT Length for the selected command, e.g. length
of the data read or written
siLengthOfUidEpc SINT Entry for the EPC or UID length for addressing
a specific tag to be read or written. The UID or
EPC must be defined in the write data.
0: Size of the EPC or UID not checked
-1: NEXT mode: A tag is always only read if the
UID/EPC is different to the UID/EPC of the last
read or written tag.
Only the values 0, -1 and 8 are possible in HF
applications.
pReadDataMapping POINTER TO BYTE Start address in the input data (ARRAY[..] OF
BYTE)
pWriteDataMapping POINTER TO BYTE Start address in the output data (ARRAY[..] OF
BYTE)
pDataTx POINTER TO BYTE Write data (ARRAY[..] OF BYTE)
pDataRx POINTER TO BYTE Read data (ARRAY [..] OF BYTE)
192 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
After the installation has been successfully completed, the Package file is displayed as follows
in the Package Manager:
Add the CODESYS library: Choose Add Library Ò Turck Ò Application Ò RFID Ò RFID
universal data interface.
Click OK to add the library to the project.
194 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Create the required instances for the function block: Map inputs and outputs directly to
the addresses of the corresponding module registers.
Activate the function block.
In the following example 128 bytes can be read or written via the function block. The input and
output data and the write and read data is assigned in the example as follows:
Byte Meaning
IB100 Start address of the process input data
QB100 Start address of the process output data
IB116 Address of the read data as array
QB116 Address of the write data as array
Fig. 114: Activate the FB_Extended function block (example: Read or write 128 bytes)
NOTE
When using function blocks, the UID is not automatically displayed in Idle mode. The
device does not have to be reset to Idle mode between two identical commands.
196 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
9.11 Using function blocks for Siemens TIA portal
Two function blocks are provided for the simple integration in (existing) programs in the TIA
portal:
n RFID_COMPACT_Mode
n RFID_EXTENDED_Mode
The function blocks can be downloaded as elements of example programs free of charge at
www.turck.com. The example programs are available for TIA V14 and TIA V15 and the Siemens
S7-1200 and S7-1500 controllers.
The required command can be selected via the FC20 and FC30 functions. More parameters can
be set on function block FB10 (Compact) and FB11 (Extended).
FC10
BOOL xCmdRead wCMDC HEX
BOOL xCmdWrite
BOOL xCmdReset
BOOL xCmdInventory
BOOL xCmdTagInfo
BOOL xCmdDirectExecute
HEX wDirectCommandCode
FB10
DEC HwID_HFcompact RESC HEX
HEX CMDC BUSY BOOL
DEC RCNT ERROR BOOL
DEC DOM RCNT_F DEC
DEC ADDR TP1 BOOL
DEC LEN XDx BOOL
DEC SOUID PNSx BOOL
DEC HwID_Read016B TREx BOOL
DEC HwID_Write016B TNCx BOOL
POINTER WriteDataBuffer 16B TONx BOOL
CMON BOOL
LEN_F DEC
ERRC HEX
TCNT DEC
ReadDataBuffer 16B POINTER
FB11
DEC HwID_HFextended RESC HEX
HEX CMDC BUSY BOOL
DEC RCNT ERROR BOOL
DEC DOM RCNT_F DEC
DEC ADDR TP1 BOOL
DEC LEN XDx BOOL
DEC SOUID PNSx BOOL
DEC TOUT TREx BOOL
DEC RFN TNCx BOOL
DEC WFN TONx BOOL
DEC HwID_Read128B CMON BOOL
DEC HwID_Write128B LEN_F DEC
POINTER WriteDataBuffer 128B ERRC HEX
TCNT DEC
BYFI DEC
RFN_F DEC
WFN_F DEC
ReadDataBuffer 128B POINTER
198 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Name Data type Meaning
RFN DEC Read fragment no., see description of the out-
put data, [} 98]
WFN DEC Write fragment no., see description of the out-
put data, [} 98]
HwID_Read016B DEC Hardware identifier for the read data
(RFID_COMPACT_Mode)
HwID_Read128B
(RFID_EXTENDED_Mode)
HwID_Write016B DEC Hardware identifier for the write data
(RFID_COMPACT_Mode)
HwID_Write128B
(RFID_EXTENDED_Mode)
WriteDataBuffer16B POINTER Write data
(RFID_COMPACT_Mode)
WriteDataBuffer128B
(RFID_EXTENDED_Mode)
200 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
9.12 Using Inventory command and Continuous (presence sensing) mode
The Inventory command and Continuous (presence sensing) mode transfer data to the PLC in
different ways. Continuous mode is suitable for high-speed applications, in which a command
(e.g. read or write) is to be performed repetitively. Repeated execution of the same command
by the controller is unnecessary.
The following lists the most important differences between an Inventory command and Con-
tinuous mode:
Inventory Continuous mode Continuous presence sensing
mode
Triggered reading of UID or n Repeated reading of UIDs n UHF read/write head
EPC and EPCs switches on as soon as a tag
n Automatic repetition of the is detected
same command (e.g. In- n Repeated reading of UIDs
ventory, read, write) and EPCs
n Automatic repetition of the
same command (e.g. In-
ventory, read, write)
Data is displayed in the read Data must be read from the Data must be read from the
data after the command has memory of the interface with a memory of the interface with a
ended. separate command. separate command.
Grouping of EPCs possible Grouping of EPCs possible Grouping of EPCs possible
No buffering on the read/write No buffering on the read/write No buffering on the read/write
head head head
Terminate command: Terminate command: Terminate command:
1. Timeout 1. Timeout 1. Timeout
2. Automatically after com- 2. Separate command 2. Separate command
mand execution
9.13 LEDs
The device has the following LED indicators:
n Power supply
n Group and bus errors
n Status
n Diagnostics
PWR LED
LED green LED red Meaning
Off Off No voltage or undervoltage at V1
Lit Off Voltage at V1 and V2 ok
Off Lit No voltage or undervoltage at V2
BUS LED
LED green LED red Meaning
Off Off No voltage present
Lit Off Logical connection to a master established
Flashes 3 × green in Off ARGEE/FLC active
2 s
Flashing (1 Hz) Lit Device is operational
Off Lit IP address conflict or Modbus connection timeout
Off Flashing (1 Hz) Wink command active: A Wink command enables the identification of
nodes on an Ethernet network. If a device is an Ethernet node and re-
ceives a Wink command, it responds with an optical signal (e.g. flashing
LED).
Flashing (1 Hz) Flashing (1 Hz) Auto-negotiation and/or DHCP/BootP search of the settings
ERR LED
LED green LED red Meaning
Off Off No voltage present
Lit Off No diagnostics, device running error-free
Off Lit Diagnostics present
202 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
RFID channel LEDs Ident 0 and Ident 1
TP… LED green TP… LED red Meaning
Off Off No tag within the detection range
Lit Off Tag within the detection range
Flashing Off Tag in the detection range, command is processed
Flashing (1 Hz) Flashing (1 Hz) Connection with DTM. No connection to controller active.
Off Lit Diagnostics present
CMD… LED green CMD... LED red
Off Off Read/write head switched off
Lit Off Read/write head switched on
Flashing Off BUSY (command active)
Off Flashing Interface memory full
Off Lit Error in the data interface
TP… and CMD… flash red simultan- Overload of the auxiliary voltage
eously
TP… and CMD… flash red alternately Parameter error
204 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
9.14.3 Diagnostic messages – Digital channels
Byte no. Bit
7 6 5 4 3 2 1 0
0 VAUX VAUX
1 ERR7 ERR6 ERR5 ERR4
206 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Click RFID diagnostics.
208 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
9.16 Reading error codes
The error codes are part of the process input data.
Error code (hex.) Error code (dec.) Meaning
0x8000 32768 Channel not active
0x8001 32769 Read/write head not connected
0x8002 32770 Memory full
0x8003 32771 Block size of the tag not supported
0x8004 32772 Length exceeds the size of the read fragment
0x8005 32773 Length larger than the size of the write fragment
0x8006 37774 Read/write head does not support HF bus mode
0x8007 32775 Only one read/write head should be connected for addressing.
0xC000 49152 Internal error (response of the read/write head too short)
0xC001 49153 Command not supported by read/write head version
210 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Error code (hex.) Error code (dec.) Meaning
0xB0DA 45274 Error with the “Tag in detection range” function
0xB0E0 45280 Error when reading the read/write head version
0xB0E1 45281 Error when reading the extended read/write head version
0xB0F1 45297 Error with automatic read/write head tuning
0xB0F8 45304 Error when resetting a command in Continuous mode
0xB0FA 45306 Error when outputting the response code
0xB0FF 45311 Error when resetting the read/write head
0xB0B3 45235 Error when setting the tag password
0xB0B6 45238 Error when setting the write or read protection
0xB0B8 45240 Error when reading the protection status of the memory area on the tag
0xB0C3 45251 Error when setting the password in the read/write head
212 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Error code (hex.) Error code (dec.) Meaning
0xF836 63542 UHF read/write head: The opcode is not valid for this type of configuration
memory.
0xF880 63616 UHF read/write head: no tag in the field
0xF881 63617 UHF read/write head: The EPC of the command does not match the EPC in
the detection range.
0xF882 63618 UHF read/write head: Incorrect tag type specified in the command
0xF883 63619 Write command to a block failed
If a particular tag is selected in the HF: Select tag type parameter, the time measurement for
the write command is already started with its activation. The time measurement is carried out
irrespective of whether a tag is present in the detection range. The time measurement function
is available for read/write heads from firmware version 1.91.
The following values can be displayed in the web server or in the DTM for extended diagnostics
and for system tests. Actual as well as minimum and maximum values are available.
n Time in which the Tag present bit is set
n Duration of an Inventory command
n Duration of a read command
n Duration of a write command
n Cycle time of HF bus mode
n Cycle time of HF Continuous bus mode
214 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Example: Opening extended diagnostics with the PACTware™ FDT/DTM frame application
Open Diagnose in PACTware™.
Select the RFID channel (here: Channel 0).
a The Expert mode on/off button is displayed in the menu bar.
Activate Expert mode.
The time measurement is shown.
216 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
10 Troubleshooting
If the device does not function as expected, first check whether ambient interference is present.
If there is no ambient interference present, check the connections of the device for faults.
If there are no faults, there is a device malfunction. In this case, decommission the device and
replace it with a new device of the same type.
11 Maintenance
Ensure that the plug connections and cables are always in good condition.
The devices are maintenance-free, clean dry if required.
NOTICE
Interruption of the power supply during the firmware update
Risk of device damage due to faulty firmware update
Do not interrupt the power supply during the firmware update.
During the firmware update do not reset the power supply.
Example: Update the Firmware with the PACTware™ FDT Frame Application
Launch PACTware™.
Right-click Host PC Ò Add device.
218 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Select BL Service Ethernet and confirm with OK.
220 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Click Firmware Download to start the firmware update.
12 Repair
The device must not be repaired by the user. The device must be decommissioned if it is faulty.
Observe our return acceptance conditions when returning the device to Turck.
13 Disposal
The devices must be disposed of correctly and must not be included in normal
household garbage.
222 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
14 Technical data
Technical data
Power supply
Power supply voltage 24 VDC
Permissible range 18…30 VDC
Total current max. 4 A per voltage group
Total current V1 + V2 max. 5.5 A at 70 °C per
module
Voltage supply connection 2 × M8, 4-pin
Operating current V1: max. 120 mA
V2: max. 30 mA
RFID power supply Sockets C0…C1 from V1 short-circuit proof,
1.2 A ≤ 55 °C, 55 °C < 0.5 A ≤ 70 °C per channel
Sensor/actuator supply Sockets C2…C3 from V2 short-circuit proof,
0.14 A < 55 °C, 55 °C < 0.05 A < 70 °C
Potential isolation Galvanic isolation of V1 and V2 voltage group
Voltage proof up 500 VDC
System data
Ethernet transfer rate 10 Mbit/s / 100 Mbit/s
Ethernet connection technology 2 × M8, 4-pin, D-coded
Protocol detection Automatic
Web server Default: 192.168.1.254
Service interface Ethernet via P1 or P2
Field Logic Controller (FLC)
ARGEE firmware version 3.3.5.0
ARGEE engineering version 2.0.26.0
Modbus TCP
Addressing Static IP, BOOTP, DHCP
Supported function codes FC1, FC2, FC3, FC4, FC5, FC6, FC15, FC16, FC23
Number of TCP connections 8
Input register start address 0 (0x0000)
Output register start address 2048 (0x0800)
EtherNet/IP™
Addressing As per EtherNet/IP™ specification
Quick Connect (QC) < 500 ms
Device Level Ring (DLR) Supported
Class 3 connections (TCP) 3
Class 1 connections (CIP) 10
Input assembly instance 103
Output assembly instance 104
Configuration assembly instance 106
PROFINET
Addressing DCP
Conformity class B (RT)
Technical data
MinCycleTime 1 ms
Fast start-up (FSU) < 500 ms
Diagnostics According to PROFINET Alarm Handling
Topology detection Supported
Automatic addressing Supported
Media redundancy protocol (MRP) Supported
System redundancy S2
RFID
No. of channels 2
Connection technology M12
Power supply 1.2 A ≤ 55 °C, 55 °C < 0.5 A ≤ 70 °C per channel,
short-circuit proof
Operation per channel 1 × HF or UHF read/write head, up to 32 bus-
capable HF read/write heads with suffix / C53
(if necessary additional power feed required)
RFID data interface HF and UHF
Cable length max. 50 m
Digital inputs
No. of channels 4
Connection technology of inputs M12, 5-pin
Input type pnp
Type of input diagnostics Channel diagnostics
Switch threshold EN 61131-2 Type 3, PNP
Signal voltage Low signal <5V
Signal voltage High signal > 11V
Signal current Low signal <1.5 mA
Signal current High signal > 2 mA
Input delay 0.05 ms
Potential isolation Galvanic isolation from the fieldbus, voltage
proof up to 500 VDC
Digital outputs
No. of channels 4
Connection technology of outputs M12, 5-pin
Output type pnp
Type of input diagnostics Channel diagnostics
Output voltage 24 VDC from potential group V2
Output current per channel 0.5 A, short-circuit resistance
Utilization factor 1 (0.03 > 55 °C)
Load type EN 60947-5-1: DC-13
Short-circuit protection Yes
Potential isolation Galvanic isolation from the fieldbus, voltage
proof up to 500 VDC
224 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Technical data
Conformity with standard/directive
Vibration test according to EN 60068-2-6, acceleration up to
20 g
Shock testing Acc. to EN 60068-2-27
Drop and topple Acc. to IEC 60068-2-31/IEC 60068-2-32
EMC (electromagnetic compatibility) Acc. to EN 61131-2
Approvals and certificates CE
FCC
UV resistant acc. to DIN EN ISO 4892-2A (2013)
UL certificate cULus LISTED 21 W2, Encl.type 1 IND.CONT.EQ.
General information
Dimensions (W × L × H) 32 × 144 × 31 mm
Operating temperature -40…+70 °C
Storage temperature -40…+70 °C
Operating height max. 5000 m
Protection class IP65/IP67/IP69K
MTTF 179 years acc. to SN 29500 (Ed. 99) 20 °C
Housing material PA6-GF30
Housing color Black
Material of label Polycarbonate
Halogen-free Yes
Mounting 2 fixing holes, Ø 4.6 mm
Start
idle:
out.commandCode := 0
out.loopCount := 0
in.responseCode <> 0
initiate command:
out.commandCode :=
0x0002 READ
in.responseCode ≤ 0
busy
yes no
in.responseCode < 0x4000
done done
in.errorCode = 0x0000 in.errorCode = [0x0001…0xffff ]
226 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
15.2 Flow chart: Rapid command processing with loop counter
Start
idle:
out.commandCode := 0
out.loopCount := 0
in.loopCout <> 0
or
in.responseCode <> 0
select command:
out.commandCode :=
0x2002 LOOP_READ
initiate command:
out.loopCount :=
out.loopCount+1
yes no
in.responseCode < 0x4000
done done
in.errorCode = 0x0000 in.errorCode = [0x0001…0xffff ]
Fig. 131: Flow chart for fast command processing with loop counter
idle:
out.loopCount := 0
out.commandCode := 0
out.writeFragmentNo := 0
out.readFragmentNo := 0
in.loopCount <> 0
or
in.responseCode <> 0
no
more than one fragment left
yes
send next fragment:
out.writeFragmentNo := out.writeFragmentNo+1
out.writeData := part 2…(n-1)
in.responseCode < 0
busy
yes no
in.responseCode < 0x4000
no
in.readFragmentNo <> 0
yes
out.readFragmentNo == in.readFragmentNo
done
228 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
15.4 Flow chart: Continuous mode with interruption before reading data
Idle:
Command Code = 0
Response Code = 0
Yes
Set command:
Command Code = 0x0010
ERROR= TRUE
Response Code = Command Code Error Code
Set parameter:
„Length“ := data (bytes) available
Set command:
Command Code := 0x0011
Read-Fragment +1
No
Data bytes available = 0
Yes
Done
Fig. 133: Flow chart for Continuous mode with interruption before reading data
15.5 Flow chart: Continuous mode without interruption before reading data
Idle:
Command Code = 0
Response Code = 0
Yes
Set command:
Command Code := 0x0010
ERROR= TRUE
Response Code = Command Code Error Code
Set parameter:
„Length“ : define value
Set command:
Command Code := 0x0011
*)
Read-Fragment +1
No
Data bytes available = 0
Yes
Set command:
Command Code := 0x0010
Set command:
Command Code := 0x0012
*) After increasing the Read Fragment No., the new data will be shown in the read data input.
Fig. 134: Flow chart for Continuous mode without interruption before reading data
230 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
16 Appendix: Declaration of Conformity
EU-Konformitätserklärung Nr.: 5035-2M
EU Declaration of Conformity No.:
Kompakte I/O Module in IP20/IP67: Typen / types: FDN20-*, FDNL-*, FDNP-*, FDP20-*, FGDP-*, FGEN-*,
Compact I/O modules in FLDP-*, FLIB-*, FXEN-*, SDPX-*, TBDP-*, TBEN-*, TBIL-*, TBPN-*
IP20/IP67:
auf die sich die Erklärung bezieht, den Anforderungen der folgenden EU-Richtlinien durch Einhaltung der
folgenden Normen genügen:
to which this declaration relates are in conformity with the requirements of the following EU-directives by compliance with the following
standards:
Zusätzliche Informationen:
Supplementary infomation:
D500064 | 2019/11
D500064 www.turck.com