4.4.5 Loop counter function ......................... 18 4.4.6 Universal digital channels – functions ................... 18 4.4.7 Turck Field Logic Controller (FLC) .................... 18 Technical accessories.................... 18 Installing............................. 19 Mounting the device in Zone 2 and Zone 22 ............ 19 Mounting devices in combination ................ 19 Mounting onto a mounting plate ................ 20 DIN rail (TS35) mounting ..................... 20...
Page 4
Meaning of the status bits ....................... 109 Digital channels – process output data.............. 109 8.7.1 Meaning of the command bits.................... 109 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 5
RFID channels – overview of commands ............... 110 8.8.1 Command: Idle.......................... 112 8.8.2 Command: Inventory......................... 114 8.8.3 Command: Read.......................... 117 8.8.4 Command: Write ......................... 119 8.8.5 Command: Change EPC length and write new EPC (UHF) .......... 121 8.8.6 Command: Write and verify .................... 122 8.8.7 Command: Continuous mode....................
Page 6
Flow chart: programming tags with a password.......... 271 16 Appendix: Approvals and Markings ................... 272 17 Turck Subsidiaries - Contact Information .................. 273 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
This symbol denotes actions that the user must carry out. RESULTS OF ACTION This symbol denotes relevant results of actions. Other documents Besides this document the following material can be found on the Internet at www.turck.com: Data sheet EU Declaration of Conformity (current version) Approvals Naming convention Read/write devices are called “read/write heads”...
If you have any suggestions for improving the design or if some information is missing in the document, please send your suggestions to techdoc@turck.com. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
2014/30/EU (electromagnetic compatibility) 2011/65/EU (RoHS Directive) 2014/34/EU (ATEX Directive) Turck service Turck supports you with your projects, from initial analysis to the commissioning of your applic- ation. The Turck product database under www.turck.com contains software tools for program- ming, configuration or commissioning, data sheets and CAD files in numerous export formats.
Observe national and international regulations for explosion protection. Use the device only within the permissible operating and ambient conditions (see approval data and Ex approval specifications). Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
ATEX and IECEx approval requirements for use in Ex area Only disconnect and connect circuits when no voltage is applied. Connect the metal protective cover to the equipotential bonding in the Ex area. Ensure impact resistance in accordance with EN IEC 60079-0 – alternative measures: –...
Four universal digital channels as 0.5 A PNP inputs or outputs Integrated web server LEDs and diagnostics Programmable with FLC/ARGEE Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Operating principle 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. The interfaces are provided with a fieldbus interface and fieldbus-independent I/O electronics with an RFID interface.
4.4.3 RFID channels – operating modes Five different data interfaces can be selected for the RFID channels: HF compact HF extended HF bus mode UHF compact UHF extended Different functions are available to the user, depending on the selected data interface. HF compact mode HF compact mode is suitable for transferring smaller data volumes of up to 128 bytes (e.g.
Page 16
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. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
UHF compact mode UHF compact mode enables up to 128 bytes of data to be transferred in single-tag applications (e.g. EPC). UHF extended mode All functions of the UHF compact mode are included in UHF extended mode. It is also possible to transfer more than 128 bytes of data.
Accessories for mounting, connecting and parameterizing can be found in product database or the accessories list for TBEN (D301367) under www.turck.com. The accessories are not part of the scope of delivery. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Installing 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. Mounting the device in Zone 2 and Zone 22 DANGER Potentially explosive atmosphere Risk of explosion through spark ignition...
To increase stability on the DIN rail, end brackets can be mounted on the right and left of the module or the module combination. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Mounting the device outdoors The device is UV-resistant according to DIN EN ISO 4892-2. Direct sunlight can cause material abrasion and color changes. The mechanical and electrical properties of the device are not af- fected. To avoid material abrasion and color changes: Protect the device from direct sunlight, e.g.
The shield of the fieldbus cables is connected to the grounding clip. Fig. 12: Mounting the grounding clip Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Connection NOTICE Intrusion of liquids or foreign bodies through leaking connections Loss of protection class IP65/IP67/IP69K, device damage possible Tighten M8 Ethernet connectors with a tightening torque of 0.4 Nm. Tighten the remaining connectors (M8 and M12) with a tightening torque of 0.6 Nm.
Do not use crossover cables in QuickConnect and Fast StartUp applications. Connect incoming Ethernet cables to P1. Connect outgoing Ethernet cables to P2. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
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...
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-M18-H1147/C53 up to 32 per port TN-CK40-H1147/C53 Fig. 22: HF bus mode setup...
– wiring diagram The channels are assigned to the sockets as follows: Channel Socket DXP (Ch4) DXP (Ch5) DXP (Ch6) DXP (Ch7) Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
The device is factory set to IP address 192.168.1.254 and does not have a PROFINET device name. The IP address can be set via the Turck Service Tool, the DTM, the web server, a DHCP server or PROFINET DCP. The following example shows the setting of the IP address via the Turck Service Tool.
Page 30
Fig. 28: Turck Service Tool – select the device to be addressed NOTE Clicking the IP address of the device opens the web server. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 31
Change the IP address and if necessary the network mask and gateway. Accept the changes by clicking Set in device. Fig. 29: Turck Service Tool – change device configuration 06.00 | 2021/07...
Display the set addressing method: Parameter Addressing method Addressing via DHCP is the default setting. Fig. 30: Displaying the set addressing method Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 33
Assigning a static IP address via PGM If DHCP mode is active, a static IP address can be assigned as follows: Enter the IP address in the IP address field. Execute Set network configuration. The IP address is assigned. Fig. 31: Assigning the static IP address 06.00 | 2021/07...
Page 34
At Parameter click Network reset and reboot or Factory reset and reboot. Confirm the following dialog. The reset is executed and DHCP mode is activated. Fig. 32: Activating DHCP mode Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Turck HMI TX507-P3CV01 (Modbus master) TBEN-S2-2RFID-4DXP block module (IP address: 192.168.1.61) Software used This example uses the following software: CODESYS 3.5.8.1 (available as a free download at www.turck.com) Prerequisites The programming software has been started. A new project has been created.
Modbus TCP master Modbus TCP slave Adding an Ethernet adapter Right-click Device (TX507-P3CV01) in the project tree. Fig. 33: Project tree Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 37
Select Add device. Select an Ethernet adapter. Click Add Device. The Ethernet adapter appears as Ethernet (Ethernet) in the project tree. Fig. 34: Adding an Ethernet adapter 06.00 | 2021/07...
Page 38
Double-click Modbus TCP Master. The Modbus master appears as Modbus_TCP_Master (Modbus TCP Master) in the project tree. Fig. 35: Adding a Modbus master Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 39
Adding a Modbus slave In the project tree right-click Modbus_TCP_Master (Modbus TCP Master). Select Add device. Double-click Modbus TCP Slave. The Modbus slave appears as Modbus_TCP_Slave in the project tree. Fig. 36: Adding a Modbus slave 06.00 | 2021/07...
Adapt the name of the slave in the project tree of the application. Fig. 37: Assigning a device name (here: TBEN-S2-2RFID_4DXP) Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
7.2.3 Setting up network interfaces Ò Click Device Scan network. Select Modbus master and confirm with OK. Fig. 38: Setting up a network interface to the Modbus master Double-click Ethernet (Ethernet). Open the Network Adapters dialog in the General tab via the […] button. ...
In the General tab enter the IP address of the slave. Fig. 40: Modbus slave – entering the IP address (here: 192.268.1.61) Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
7.2.5 Defining Modbus channels (registers) Defining channel 0 (input data) Double-click the Modbus TCP slave. Ò Select in the tab Modbus Slave Channel Add channel. Enter the following values: Name of channel Access type: Read Holding Registers Offset: 0x0000 Length: 64 registers (128 bytes) ...
Page 44
Click the Modbus TCP slave I/O Mapping tab. Enter the address in the corresponding table column. Fig. 43: Changing channel addresses Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
7.2.6 Connecting the device online with the controller Select device. Ò Click Online Login. 7.2.7 Reading out process data The process data can be interpreted via the mapping if the device is connected online with the controller. Double-click the Modbus TCP Slave.
HF bus mode: activate read/write 0xB00F 0xB021 head 17 … … … … HF bus mode: activate read/write 0xB00F 0xB021 head 32 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 47
RFID channels – process input data Description Register Bit offset Bit length Channel 0 Channel 1 Response code 0x0000 0x004C Error 0x0000 0x004C Busy 0x0000 0x004C Tag present at read/write head 0x0002 0x004E HF read/write head switched on 0x0002 0x004E Continuous mode active 0x0002 0x004E...
Page 48
Write data Byte 65 0x0813 0x0878 … … … … Write data Byte 126 0x084B 0x0897 Write data Byte 127 0x084B 0x0897 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 49
RFID diagnostic data Description Register Bit offset Bit length Channel 0 Channel 1 Overvoltage VAUX 0x0098 0x00AA Parameterization error 0x0098 0x00AA Configuration via DTM active 0x0098 0x00AA Memory full 0x0098 0x00AA Read/write head 1 detuned 0x009A 0x00AC Read/write head 2 detuned 0x009A 0x00AC …...
Page 50
DTM active in Force mode 0x00BE Undervoltage V1 0x00BE Undervoltage V2 0x00BE Module diagnostics available 0x00BE Internal error 0x00BE ARGEE program active 0x00BE Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
TN-Q80-H1147 HF read/write head Software used This example uses the following software: Rockwell RS Logix EDS file for TBEN-S2-2RFID-4DXP (download free of charge from www.turck.com) Prerequisites The programming software has been started. A new project has been created. The PLC has been added to the project.
The EDS file is available free of charge for download from www.turck.com. Ò Include an EDS file: Click Tools EDS Hardware Installation Tool. Fig. 45: Opening the EDS Hardware Installation Tool Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 53
The wizard for the installation of EDS files is started. Click Next to select the EDS file. Fig. 46: Starting the EDS Wizard 06.00 | 2021/07...
Page 54
Select the Register an EDS file(s) option and confirm with Next. Fig. 47: Option selection – registering an EDS file(s) Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 55
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. The Installation wizard guides you through the installation. Fig. 48: Selecting an EDS file 06.00 | 2021/07...
Connecting the device with the controller Ò Right-click I/O Configuration Ethernet. Click New Module. Fig. 49: Adding a new module Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 57
Select Turck under Module Type Vendor Filters. Select the TBEN-RFID module. Confirm the selection with Create. Fig. 50: Selecting an EDS file for TBEN-S2-2RFID-4DXP 06.00 | 2021/07...
Page 58
Assign a module name. Enter the IP address of the device. Fig. 51: Setting the module name and IP address Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 59
Ò Select an integer as a format for the input data and output data: Click Change in the following window select INT. Fig. 52: Selecting an integer as a format for the input data and output data 06.00 | 2021/07...
Page 60
Connecting a device to an EtherNet/IP controller Optional: Set the connection and port configuration. Fig. 53: Setting the connection Fig. 54: Setting the port configuration Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 61
The device appears in the project tree. Fig. 55: TBEN-S2-2RFID-4DXP in the project tree 06.00 | 2021/07...
Connecting the device online with the controller Select the controller. Click Go online. Fig. 56: Connecting the device online Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 63
In the following window (Connect To Go Online) click Download. Fig. 57: Click Download Confirm all the following messages. 06.00 | 2021/07...
Parameter data (tben_2rfid:C), input data (tben_2rfid:I1) and output data (tben_2rfid:O1) can be accessed. Fig. 59: Access to parameter data, input data and output data Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 65
Example: process input data – tag in detection range of read/write head In the following example a tag is located in the detection range of the read/write head. The process data can be interpreted by means of the mapping. Fig. 60: Process input data – example 06.00 | 2021/07...
HF bus mode: activate read/write 0x001E 0x0054 head 3 … … … … HF bus mode: activate read/write 0x003B 0x0071 head 32 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 67
RFID channels – process input data Description Word offset Bit offset Bit length Channel 0 Channel 1 Response code 0x0001 0x004D Error 0x0001 0x004D Busy 0x0001 0x004D Tag present at read/write head 0x0003 0x004F HF read/write head switched on 0x0003 0x004F Continuous mode active 0x0003...
Page 68
Write data Byte 65 0x002D 0x0079 … … … … Write data Byte 126 0x004C 0x0098 Write data Byte 127 0x004C 0x0098 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 69
RFID diagnostic data Description Register Bit offset Bit length Channel 0 Channel 1 Overvoltage VAUX 0x0099 0x00AB Parameterization error 0x0099 0x00AB Configuration via DTM active 0x0099 0x00AB Buffer full 0x0099 0x00AB Read/write head 1 detuned 0x009B 0x00AD Read/write head 2 detuned 0x009B 0x00AD …...
Page 70
Output value channel 4 0x0099 Output value channel 5 0x0099 Output value channel 6 0x0099 Output value channel 7 0x0099 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 71
Digital channels – diagnostic messages Description Word offset Bit offset Bit length Overvoltage at power supply terminal VAUX channel 4/5 0x00BE Overvoltage at power supply terminal VAUX channel 6/7 0x00BE Overvoltage at output (channel 4) 0x00BE Overvoltage at output (channel 5) 0x00BE Overvoltage at output (channel 6) 0x00BE...
AutoMDIX Deactivated Notes on the correct connection of the Ethernet cables in QuickConnect applications are provided in the chapter [} 24]. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 73
Activating QuickConnect via configuration assembly The configuration assembly is part of the assembly class of the device. Configure the configuration assembly in RSLogix. Activate QuickConnect via byte 9, bit 0 = 1 in the controller tags. Fig. 61: Configuring the configuration assembly in RSLogix Activating QuickConnect via the Class Instance Attribute ...
Page 74
Activating QuickConnect via the web server Ò Ò Click Parameter Activate QuickConnect Yes. Fig. 62: Setting QuickConnect in the web server Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 75
The settings required for QuickConnect are carried out in the port properties. Unsaved changes are indicated by the pen icon. Click Write. The changed parameters are written to the device. Fig. 63: Activating QuickConnect in the web server 06.00 | 2021/07...
The programming software has been started. A new project has been created. The PLC has been added to the project. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | 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). Fig. 64: Include the GSDML file 06.00 | 2021/07...
Page 78
Install a GSDML file: Enter the memory location of the GSDML file and click Install. The device is included in the hardware catalog of the programming software. Fig. 65: Installing a GSDML file Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | 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. Fig. 66: Connecting the device with the controller 06.00 | 2021/07...
7.4.4 Set the IP address in the TIA Portal Ò Ò Choose Device View Properties tab Ethernet addresses. Assign the required IP address. Fig. 68: Assigning the IP address 06.00 | 2021/07...
Connecting the device online with the controller Start online mode (connect online). The device was successfully linked to the controller. Fig. 69: Online mode Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
7.4.6 Setting module parameters Ò Choose Device view Device overview. Select the module to be set. Ò Ò Click Properties General Module Parameters. Set Station parameters. Fig. 70: Setting module parameters 7.4.7 PROFINET – mapping The PROFINET mapping is the same as the data mapping described in the “Settings” chapter. 06.00 | 2021/07...
RFID channels – parameter data Byte no. Channel 0 Operation mode (OMRFID) Select tag type (TAGTYPE) Bypass time (BYPASS) TERM ANTI HFIDLEMODE Reserved Command retries (CRET) HF: Command in Continuous mode (CCM) HF: Length in Continuous mode (LCM) HF: Address in Continuous mode (ACM) Reserved …...
1: Yes (multitag mode on) Deactivate all Diags (DDI) 0: No (all diagnostic messages on) 1: Yes (all diagnostic messages off) Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 87
Designation Meaning Deactivate HF detuned 0: No (diagnostic messages of the read/write head on) diagnostic (DXD) 1: Yes (diagnostic messages of the read/write head off) 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...
TP status bit of process input data indicate whether the tag is in the sensing range or not. Enter the required bridging time. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Addressing read/write heads automatically NOTE Turck recommends making the bus address of the read/write head visible on the device. The label on the cable can be used to mark the address on the read/write head. The appropriate labels can be ordered via Ident-No. 6936206.
Page 92
RFID cable Ethernet cable e.g. RK4.5T-…-RS4.5T/S2500 e.g. RSSD-RJ45… Fig. 72: Connecting the read/write head to a PC via the RFID interface Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 93
The appropriate labels can be ordered via Ident-No. 6936206. 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.
Page 94
Click Read. The found read/write head is displayed in the status message. Fig. 75: Window – HF RFID Reader Setup Tool Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 95
Enter the required address. Click Change. The new set address is displayed in the status message. Fig. 76: Changing the read/write head Activate the required read/write heads in the parameter data via the appropriate XCVR bit. 06.00 | 2021/07...
Execute the Restore settings UHF read/write head command. The data stored in the interface is transferred to the UHF reader. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
RFID channels – process input data Process input data – HF compact and UHF compact modes Byte no. PROFINET Modbus EtherNet/ Channel 0 n + 0 Response code (RESC) incl. ERROR and BUSY n + 1 n + 2 Loop counter (RCNT) n + 3 Reserved n + 4...
Page 98
Read data Byte 7 … … … n + 147 Read data Byte 127 Channel 1 152…303 Assignment identical to channel 0 148…295 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 99
Process input data – HF bus mode Byte no. PROFINET Modbus EtherNet/ Channel 0 n + 0 Response code (RESC) incl. ERROR and BUSY n + 1 n + 2 Loop counter (RCNT) n + 3 Reserved n + 4 TNC1 TRE1 PNS1...
UHF extended modes) Descending: Execution of a command completed Error message 0xFFFF: Memory overfilled, data loss of new data likely Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 101
Designation Meaning Read fragment No. (RFN) If the data to be read exceeds the size of the read data memory, the data is (only available with HF extended divided in max. 256 fragments. The fragments are numbered consecutively from and UHF extended modes) 1…255.
If two tags are detected in quick succession, the TP bit may remain set. The data of the second tag (UID and/or read data) is displayed. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
RFID channels – process output data Process output data – HF compact and UHF compact modes Byte no. PROFINET Modbus EtherNet/ Channel 0 n + 0 Command code (CMDC) n + 1 n + 2 Loop counter (RCNT) n + 3 Memory area (DOM) –...
Page 104
Write data Byte 7 … … … n + 147 Write data Byte 127 Channel 1 152…303 Assignment identical to channel 0 148…295 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 105
Process output data – HF bus mode Byte no. PROFINET Modbus EtherNet/ Channel 0 n + 0 Command code (CMDC) n + 1 n + 2 Loop counter (RCNT) n + 3 Memory area (DOM) – only available with UHF applications n + 4 Start address (ADDR) n + 5...
HF Inventory: Command executed once in the specified time (exception: Continuous mode) UHF Inventory: Command active for the entire specified time Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 107
Description Meaning Read fragment No. (RFN) If the data to be read exceeds the size of the read data memory, the data is divided 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.
1: Digital filter and impulse stretch activated Impulse stretch (IST) Impulse stretch: 0…2550 ms (adjustable in 10 ms steps), default value: 10 ms Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Digital channels – process input data Byte no. DXP7 DXP6 DXP5 DXP4 8.6.1 Meaning of the status bits Designation Meaning DXP4 0: Off (digital channel 1 not active) 1: On (digital channel 1 active) DXP5 0: Off (digital channel 2 not active) 1: On (digital channel 2 active) DXP6 0: Off (digital channel 3 not active)
Tune HF read/write head 0x0080 128 – – Set read/write head password 0x0100 256 Reset read/write head password 0x0101 257 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 111
Command Command code Possible for hex. dec. compact extended bus mode compact extended Set tag password 0x0102 258 Set tag protection with loop counter 0x2102 8450 Set tag protection 0x0103 259 Set tag protection with loop counter 0x2103 8451 Get HF tag protection status 0x0104 260 Set permanent lock 0x0105 261...
Not required Command timeout Not required Write fragment No. Not required Read fragment No. Not required Write data Not required Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 113
See description of the input data, p. [} 100]. Response Loop counter See description of the input data 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 Tag within the See description of the input data detection range...
See description of the input data Tag counter Ascending Write fragment No. Read fragment No. See description of the input data Read data, Bytes 0…n Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 115
Response (UHF) Loop counter See description of the input data Response code 0x0001 (hex.), 1 (dec.) Length Length of the read data Error code See description of the input data Tag within the See description of the input data detection range Data (bytes) available See description of the input data Tag counter...
Page 116
MSB) Ò uint32_t Time (LSB MSB) Ò uint16_t Phase (LSB MSB) uint16_t Number of the read operations Ò (LSB MSB) Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
8.8.3 Command: Read The Read command causes the read/write device 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 device only reads the appropriate tags.
Page 118
See description of the input data Write fragment No. Read fragment No. See description of the input data Read data, Bytes 0…n Read data Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
8.8.4 Command: Write The Write command causes the read/write device 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 device only writes the appropriate tags.
Page 120
See description of the input data Write fragment No. See description of the input data Read fragment No. Read data, Byte 0…127 Not required Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
8.8.5 Command: Change EPC length and write new EPC (UHF) NOTE The maximum EPC length of a tag depends on the chip type. Refer to the appropri- ate data sheet for the length. The Change EPC length and write new EPC (UHF) command causes the RFID module to auto- matically adapt the length for the EPC response set in the tag (change of the PC in the tag) and writes the EPC with this length to the tag.
Optional: UID or EPC of the tag to be written Byte 0…(size of the UID/EPC - 1) Write data, Write data Byte (size of the EPC)…127 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 123
See description of the input data, p. [} 100]. Response Loop counter See description of the input data Response code 0x0008 (hex.), 8 (dec.) Length Length of the read data Error code See description of the input data Tag within the See description of the input data detection range Data (bytes) available...
The parameters HF: Address in Continuous mode (ACM) and HF: Length in Continu- ous mode (LCM) cannot be changed when Continuous mode is running. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 125
See description of the output data, p. [} 106]. Request Loop counter See description of the output data Command code 0x0010 (hex.), 16 (dec.) Read/write head address See description of the output data Length of UID/EPC Not required Start address UHF Inventory 1: Grouping of the EPCs active, continuous detection 0: Grouping of the EPCs inactive, continuous detection >1: Not defined...
See description of the input data Write fragment No. Read fragment No. See description of the input data Read data Read data Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 127
Data format in UHF applications The UHF read data is formatted by means of a header. The header has the following structure: Type Name Meaning uint8_t Size Data size uint8_t Block type 1: UID/EPC/RSSI etc. 2: Read data Other values: reserved uint8_t Data [size] EPC/RSSI etc.
Page 128
Example: UID, grouping deactivated, HF bus mode Type Name Meaning uint8_t Data [64] uint16_t UID [64] uint8_t Reserved Reserved uint8_t Address Address of the read/write head Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
8.8.9 Command: Stop Continuous (presence sensing) mode Continuous and presence sensing mode can be stopped via the Stop Continuous (presence sensing) mode command. The data stored in the buffer memory of the interface is not deleted and can still be queried by the controller via the Read buffer (Cont. mode) command. See description of the output data, p.
Write fragment No. Read fragment No. See description of the input data Read data See description of the input data Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
8.8.11 Command: HF read/write head off The HF read/write head off 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 ne- cessary if the devices are mounted very closely together and the detection ranges overlap.
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 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
8.8.13 Command: Get UHF read/write head status/error NOTE The command is only available for UHF applications. The Get UHF read/write head status/error command enables error/status messages of a con- nected UHF reader to be read. See description of the output data, p. [} 106]. Request Loop counter See description of the output data...
Page 134
Meaning Read/write head was reset (after reset). Read/write head configuration damaged, default settings are used. Test mode active Tag present Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 135
Evaluating read data – RF status Meaning Limit value for radiated power exceeded No free channel present Antenna resistance too high or too low Reverse power too high PLL not locked Evaluating read data – device Status Meaning Error in message generation (in polling mode outside of memory area) Temperature warning Temperature too high Communication error...
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 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 137
See description of the input data, p. [} 100]. Response (UHF) Loop counter See description of the input data Response code 0x0050 (hex.), 80 (dec.) Length See description of the input data Error code See description of the input data Tag present at read/write head See description of the input data Data (bytes) available See description of the input data...
See description of the input data Write fragment No. Read fragment No. See description of the input data Read data Response to the direct command Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 139
Example: Direct command in HF applications (query read/write head version) Request Loop counter Command code 0x0060 Read/write head address Length of UID/EPC Start address Length Command timeout Write fragment No. Read fragment No. Write data 0xE0 (CC), 0x00 (CI) – see BL ident protocol Response Loop counter Response code...
Page 140
0x03 0x04 0x8B 0x00 0x00 0x20 0x01 0x01 Serial number: 0x01020304 Device type: 0x208B Software version: v1.00 Hardware version: v1.00 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 141
Example: Direct command in UHF applications (set output power) Read the set power from the RAM of the reader. Request Loop counter Command code 0x0060 Read/write head address Length of UID/EPC Start address Length Command timeout Write fragment No. Read fragment No.
Page 142
RFID channels – overview of commands The following table provides assistance in converting the power values from dBm to mW. 1.25 1000 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
8.8.16 Command: Get 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 Get HF read/write head address command. If a non-bus-compatible read/write head is connected, the device outputs an error message.
See description of the input data Write fragment No. Read fragment No. See description of the input data Read data Not required Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
8.8.18 Command: Tune HF read/write head NOTE The command is only available for the TNLR-… and TNSLR-… HF read/write heads. The Tune HF Read/write head command enables HF read/write heads to be tuned automatic- ally to their ambient conditions. The tuning values are saved until the next voltage reset in the read/write head.
See description of the input data Write fragment No. Read fragment No. See description of the input data Read data Not required Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
8.8.20 Command: Reset read/write head password NOTE The command is only available for applications with UHF tags and the HF tags with chip types EM42… and NXP SLIX2. The Reset read/write head password command directly resets the password for a write access, read access or kill command in the read/write device.
See description of the output data Write data, Byte 0…3 Password: ARRAY [0…3] OF BYTE Write data, Byte 4…127 Not required Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 149
See description of the input data, p. [} 100]. Response Loop counter See description of the input data Response code 0x0102 (hex.), 258 (dec.) Length Not required Error code See description of the input data Tag within the See description of the input data detection range Data (bytes) available See description of the input data...
The error code 0x2502 is sent if the restrictions are not observed. NOTE A write protection for UHF tags cannot be undone. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 151
See description of the output data, p. [} 106]. Request Loop counter See description of the output data Command code 0x0103 (hex.), 259 (dec.) Read/write head address See description of the output data Length of UID/EPC Enter UID or EPC size in bytes, if a particular tag is to be protected.
Page 152
Bit 5: Read protection, Page 13 Bit 6: Read protection, Page 14 Bit 7: Read protection, Page 15 UHF: Not required Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 153
Request Write data, Byte 6 EM4233 SLIC: 0 NXP SLIX2: Bit 0: Read protection, Page 16 Bit 1: Read protection, Page 17 Bit 2: Read protection, Page 18 Bit 3: Read protection, Page 19 Bit 4: Reserved Bit 5: Reserved Bit 6: Reserved Bit 7: Reserved UHF: Not required...
Tag counter See description of the input data Write fragment No. Read fragment No. See description of the input data Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 155
Response Read data, Byte 0 EM4233 SLIC/NXP SLIX2: Bit 0: Write protection, Page 0 Bit 1: Write protection, Page 1 Bit 2: Write protection, Page 2 Bit 3: Write protection, Page 3 Bit 4: Write protection, Page 4 Bit 5: Write protection, Page 5 Bit 6: Write protection, Page 6 Bit 7: Write protection, Page 7 UHF: Not required...
Page 156
Bit 3: Read protection, Page 19 Bit 4: Reserved Bit 5: Reserved Bit 6: Reserved Bit 7: Reserved UHF: Not required Read data, Byte 7 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
8.8.24 Command: Set permanent lock NOTE The command code for fast processing with the loop counter is 0x2105 (hex.) or 8453 (dec.). The Set permanent 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 device.
Page 158
See description of the input data Write fragment No. Read fragment No. See description of the input data Read data Not required Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
8.8.25 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.
Page 160
See description of the input data Write fragment No. Read fragment No. See description of the input data Read data Not required Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
8.8.26 Command: Restore settings UHF read/write head NOTE The command is only available for UHF applications. The Restore settings UHF read/write head command restores the parameters of a connected UHF reader from a backup (e.g. after a device swap). Type and firmware version must be identical for both readers.
See description of the input data Write fragment No. Read fragment No. See description of the input data Read data Not required Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
8.8.28 Command: Reset The Reset command resets the read/write device and the interface. The input, output data and the buffer are cleared. See description of the output data, p. [} 106]. Request Loop counter See description of the output data Command code 0x8000 (hex.), 32768 (dec.) Read/write head address See description of the output data...
The start page shows status information and network settings. Fig. 77: Example: Web server – start page Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
A login is required in order to edit settings via the web server. The default password is “password”. NOTE To ensure greater security, Turck recommends changing the password after the first login. Enter the password in the Login field on the start page of the web server.
Page 166
Write access to input, output and parameter data is possible after the login. Fig. 79: Web server – start page after the login Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 167
Example: setting the operation mode for channel 0 The operation mode of channel 0 is set to HF extended in the following example. Ò Click Local I/O Parameter in the navigation bar on the left of the screen. Select the RFID channel (here: RFID channel 0).
Page 168
Fig. 81: Drop-down-menu – Operation mode If necessary, print the station report via the Print button. Fig. 82: Print station report Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 169
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 Local I/O Output in the navigation bar on the left of the screen. ...
Page 170
The receipt of the command is confirmed in the input data at Input values Response code with 0x8002 Busy – Read. Fig. 84: Input data Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 171
The Read command is executed as soon as there is a tag in the detection range of the read/ write head. Fig. 85: Input data with successfully executed Read command 06.00 | 2021/07...
Page 172
Setting RFID interfaces via the web server Ò The read data can be called at Local I/O Input. Fig. 86: Read data Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 173
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. Two read/write heads are connected to channel 0 of the interface. Ò...
Page 174
Enter the read/write head in the Read/write head address parameter (here: 2). Fig. 88: Reading tags in HF bus mode – process output data Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | 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: Parameters: Adapt parameters to the actual application Measured values: Display of the data read by the RFID interface...
Page 176
Right-click the Ethernet adapter in the project tree. Click Add device. Select TBEN-S2-2RFID-4DXP. Confirm selection with OK. Fig. 90: Selecting TBEN-S2-2RFID-4DXP Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 177
Enter the IP address of the device (example: 192.168.1.20). Enter the IP address of the device (example: 192.168.1.254) Optional: Enter designation and device description. Confirm entries with OK. Fig. 91: Entering the IP address ü The project tree is fully open. ...
Click the operation mode in the Online parameterization window. Select the required operation mode from the drop-down menu. Fig. 94: Example – selecting the operation mode Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | 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. Right-click the device in the project tree. Click Measured value. Select in the middle window the required channel. The process output data is displayed in the window on the right-hand side (example: the device is in Idle mode).
The process output data is displayed in the window on the right-hand side (example: No diagnostics presents). Fig. 97: Diagnostics function of the DTM Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | 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. Right-click the device in the project tree. Click Simulation.
Write access to input, output and parameter data is possible after the connection has been established. Fig. 100: Launching RFID PC Demo for Modbus TCP Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
8.11.2 Editing settings Example: setting the operation mode for channel 0 The operation mode of channel 0 is set to HF extended in the following example. Ò Ò Channel 0 Parameter Operation mode: Select 2: HF extended via the drop-down menu.
Page 184
Enter the number of bytes to be read in the Length entry field (here: 16). Send the Read command: In the Command tab click the Submit button. Fig. 102: Setting a read command Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 185
The receipt of the command is confirmed at Response code with (0x8002) Busy. Fig. 103: Receiving a Read command 06.00 | 2021/07...
Page 186
The Read command is executed when there is a tag in the detection range of the read/write head. The read data is displayed in the Input data window. Fig. 104: Input data with successfully executed read command Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 187
Example: executing a command in bus mode In the following example, the read/write head with address 1 is required in HF bus mode to read eight bytes of a tag. Two read/write heads are connected to channel 0 of the interface. Ò...
Page 188
Command code: Select the 0x0070 Query HF read/write head address command via the drop-down menu. Fig. 106: Querying HF read/write head addresses Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 189
The addresses of the connected read/write heads are displayed in the input data. Fig. 107: HF read/write head addresses Ò Channel 0 Parameter: Activating the connected read/write heads in the right window (here: read/write heads 1 and 4). Click Submit. Fig. 108: Activating HF read/write heads 06.00 | 2021/07...
Page 190
Enter the read/write head address in the Antenna no. field (here: 1). Click Submit. Fig. 109: HF bus mode – setting a Read command Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 191
If a tag is present in the detection range of the set read/write head, the virtual LED in the Bus Mode – TP window is lit green and the read data is displayed in the input data. Fig. 110: HF bus mode – tag in the detection range of read/write head 1 06.00 | 2021/07...
Page 192
0 of the interface. Ò Ò Ò Click Channel 0 Read/Write Automatic Read Fig. 111: Automatic mode – Read Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 193
The Read command is executed permanently or cyclically depending on the set Modbus cycle time. The read data is shown in the Input data. Fig. 112: Automatic mode – Input data 06.00 | 2021/07...
Page 194
Ò Ò Ò Stop Read command: Click Channel 0 Read/Write Automatic Stop Fig. 113: Automatic mode – stop Read command Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 195
Example: triggering RFID commands via a connected DXP Ò Ò Channel 0 Read/Write Automatic: Activate the Using DXP option. Set the required DXP channel (here: DXP1). In the drop-down menu select the required edge trigger: Rising Edge: Change the DXP value from 0 to 1 DXP high "1": As long as the DXP is 1 Falling Edge: Change the DXP value from 1 to 0 Fig. 114: Automatic mode –...
Click the Log button at the top right. Select the option. Click Apply. All data is saved in a log file. Fig. 115: Activate logging Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 197
Opening the log On the View Data tab click the Open button. Select the file. Click Open. Fig. 116: Opening the log file The log data is displayed. Fig. 117: Example: Log data 06.00 | 2021/07...
Click UHF RFID CONFIG & DEMO to display and set the device parameters. Fig. 118: Web server – start page UHF reader Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 199
Click Parameter in the navigation bar on the left of the screen. All parameters of the device are displayed. Fig. 119: Web server – UHF reader parameters NOTE The parameters are arranged in the web server in the same way as in the UHF DTM. The access level displayed in the web server corresponds to the Advanced level in the DTM.
Command builder: Use of the Command builder is reserved for Turck Support and is not designed for setting device parameters or device operation. Fig. 120: Web server – RFID application Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 201
RFID Test enables EPC information on tags to be displayed and read out in single tag and multitag mode. The received RSSI values are displayed as a curve in relation to time. Fig. 121: Example of RFID test: detection of a tag with received RSSI values over time and the number of read opera- tions The currently received power level for each channel of the reader is displayed in the UHF Diagnostics window.
Write 1 kByte 4 ms 800 ms ≤ 20 % Inventory (4 tags) 4 ms 300 ms ≤ 10 % Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 203
HF bus mode The time required for the cyclical processing of a command depends on the time in which the tag is located in the detection range of the read/write head (bypass time). The default setting is 48 ms. The bypass time can be set by the user. If a different bypass time is set, the difference to the time required for processing the command must be added to or deducted from it.
Operation mode: Set required channel (here: RFID channel 0) to HF extended. Click Write to save. Fig. 123: Fragmentation – selecting the operating mode Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 205
Ò Click Local I/O Output in the navigation bar on the left of the screen. Ò Output values Length: Enter the total number of bytes to be read (here: 500). Observe the size of the tag. Choose the Read command via the Command code drop-down menu: 0x0002 Read. The Read command is executed as soon as there is a tag in the detection range of the read/write head.
Page 206
Enter at Read fragment No. the consecutive number of the next fragment to be read (here: The first 128 bytes of the input data are displayed at Input buffer. Fig. 125: Fragmentation – input data Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 207
Enter at Read fragment No. the consecutive number of the next fragment to be read (here: 1). Fig. 126: Fragmentation – read second fragment 06.00 | 2021/07...
Page 208
The second 128 bytes of the input data are displayed at Input buffer. Fig. 127: Fragmentation – input data of the second fragment Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 209
Repeat the operation until no more data is present on the TBEN module. If no more data is present on the TBEN module, the value 0 is displayed at Read fragment No. Fig. 128: Fragmentation – no more data present 06.00 | 2021/07...
The tag must not leave the detection range of the read/write head during the write operation. The write fragment no. must always start with 1. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 211
The first 128 bytes of the write data are displayed at Output buffer. Ò Click Local I/O Output in the navigation bar on the left of the screen. Ò Output values Length: Enter the total number of bytes to be written (here: 500). Observe the size of the tag.
Page 212
Write fragment No.: consecutive number of the fragment with the write data (here: 1) Fig. 131: Fragmentation – input data Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 213
The second 128 bytes of the write data are displayed at Output buffer. Enter at Write fragment No. the consecutive number of the fragment with the write data (here: 2). A tag is written directly if it is in the detection range. The data is stored in the TBEN module if there is no tag in the detection range.
Page 214
If the data was successfully written to the tag, the Response code changes to 0x0004 Write. Fig. 133: Fragmentation – no more data present on the TBEN module Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Using commands with a loop counter function NOTE The loop counter is only supported for fast execution commands. Setting the command: Enter the command code. Set the loop counter to 1. The command was successfully executed if the same command code appears in the pro- cess input data as in the process output data.
68 that is connected. If the LED on the read/write head is permanently lit, this indicates that the addressing is complete. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
9.5.3 HF Continuous bus mode – data query and speed All activated read/write heads are triggered within a bypass time + wait time. The command is permanently stored once in the activated read/write heads. The set command (e.g. Inventory, Read, Write) in Continuous mode is processed within this time. Only one read/write head sends data to the RFID interface during command execution of all activated read/write heads.
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. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 219
To end Continuous mode, execute the Stop Continuous mode command (0x0012). 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.
No data loss. The Read buffer (Cont. mode) command transfers the data to the controller. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Using NEXT mode NEXT mode can only be used 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. 9.8.1 Example: using NEXT mode for a read command ü...
Select individual pages of the memory area via Byte 0…7 and protect with the following parameters: Command code 0x0103 (Set tag protection) Memory area: USER Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
9.11 Use CODESYS function blocks Two function blocks are provided for the simple integration in (existing) CODESYS programs: FB_Compact FB_Extended Function block Operation mode FB_Compact HF compact UHF compact FB_Extended HF extended UHF extended The function blocks are part of the CODESYS package. FB_Compact BOOL xExecute...
Page 224
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) Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 225
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...
Page 226
In order to run the function block, the package file for RFID interfaces must be installed. Ò Call the Package Manager in CODESYS: Click Tools Package Manager. Fig. 137: Opening the Package Manager Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 227
Select the package file for RFID interfaces and install. Fig. 138: Installing a package file After the installation has been successfully completed, the package file is displayed as follows in the package manager: Fig. 139: Display of the package file in the package manager 06.00 | 2021/07...
Page 228
RFID RFID universal data interface. Click OK to add the library to the project. Fig. 140: Installing a CODESYS library Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 229
Create program in which the function block can be called. Add Box from the CODESYS ToolBox to the project. Add FB_Compact or FB_Extended function block. Fig. 141: Calling the function block 06.00 | 2021/07...
Page 230
Address of the write data as array Fig. 142: Activate the FB_Extended function block (example: Ch0, read or write 128 bytes) Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 231
Fig. 143: FB_Extended function block – overview of the inputs and outputs 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. 06.00 | 2021/07...
Page 234
(RFID_COMPACT_Mode) HwID_Read128B (RFID_EXTENDED_Mode) HwID_Write016B 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) Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 235
Output variables – FB10 and FB11 Name Data type Meaning RESC Response code, see description of the input data, [} 100] BUSY BOOL Status of the command execution, see description of the input data, [} 100] ERROR BOOL Error, see description of the input data, [} 100] RCNT_F Loop counter for fast processing, see description of the input data, [} 100]...
9.14 LEDs The device has the following LED indicators: Power supply Group and bus errors Status Diagnostics PWR LED Meaning No voltage or undervoltage at V1 Green Voltage at V1 and V2 ok No voltage or undervoltage at V2 LED BUS Meaning No voltage connected Green...
Page 238
Input level above min. input level Output active (max. 0.5 A) – Actuator overload Red flashing (1 Hz) Overload of the auxiliary voltage White flashing Wink command active (only DXP7) Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
9.15 Software diagnostic messages 9.15.1 Diagnostic messages – gateway functions Byte no. ARGEE DIAG Meaning of the diagnostic bits Designation Meaning Undervoltage V2 ARGEE ARGEE program active DIAG Module diagnostics available DTM active in Force mode Internal error Undervoltage V1 9.15.2 Diagnostic messages –...
Meaning Undervoltage V2 ARGEE ARGEE program active DIAG Module diagnostics available DTM active in Force mode Internal error Undervoltage V1 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Example: activating diagnostics via the PLC software The following example describes the activation of diagnostic messages with CODESYS 3 in PROFINET. Include the device in an existing project and connect to the controller (example: Turck TX510-P3CV01 HMI). Right-click an empty slot.
Page 242
Operation Example: activating diagnostics via the PLC software Click RFID diagnostics. Fig. 148: Selecting RFID diagnostics Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 243
Do not close the window. Select the next free slot. Select DXP diagnostics and confirm with Plug device. Fig. 149: Selecting DXP diagnostics The diagnostics can be read via the PLC program. 06.00 | 2021/07...
0x820E 33294 Next command not supported in multitag mode 0x820F 33295 Length of the UID outside of the permissible range Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 245
Error code (hex.) Error code (dec.) Meaning 0x8210 33296 Length outside of the tag specification 0x8211 33297 Address outside of the tag specification 0x8212 33298 Length and address outside of the tag specification 0x8213 33299 Memory area of the tag outside of the permissible range 0x8214 33300 Read/write head address outside of the permissible range...
Page 246
Error with the Backup function (required memory not available) 0xD102 53506 Error when restoring a backup 0xD103 53507 Error when restoring a backup (no backup present) Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 247
Error code (hex.) Error code (dec.) Meaning 0xD104 53508 Error when restoring a backup (backup data damaged) 0xD105 53509 Error when restoring the default settings 0xD106 53510 Error with the tag function 0xF0… 61… ISO -15693 error 0xF001 61441 ISO -15693 error: Command not supported 0xF002 61442 ISO -15693 error: Command not detected, e.g.
Page 248
UHF read/write head: No tag type specified in the command 0xF883 63619 Write command to a block failed 0xFFFE 65534 Timeout on the RS485 interface 0xFFFF 65535 Command aborted Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
9.18 Using extended diagnostics – RFID channels The extended diagnostics in the web server are used for specific troubleshooting for Turck Service technicians. Displaying extended diagnostics in the web server: Open the web server and log in on the device.
Page 250
Bit 2: Antenna resistance too high or too low Bit 3: No free channel present Bit 4: Limit value for radiated power exceeded Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 251
Status Description Values Device status Device specific The displayed values are based on the following bit structure: information Bit 0: Configuration invalid. Command execution not possible. Bit 1: Communication error Bit 2: Temperature too high Bit 3: Temperature warning Bit 4: Error in message generation (in Polling mode outside of memory area) 06.00 | 2021/07...
The Expert mode on/off button is displayed in the menu bar. Activate Expert mode. The time measurement is shown. Fig. 151: Time measurement in the DTM Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 253
Example: opening extended diagnostics in the web server Open the web server. Log into the device. Ò Ò Select LOCAL I/O Diagnosis Select RFID channel (here: RFID channel 0). The time measurement is shown. Fig. 152: Time measurement in the web server 06.00 | 2021/07...
The output is deactivated per default. Switch on the output via parameter does not switch Activate output (DXP_EN_DO =1). Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
The firmware of the device can be updated using the FDT/DTM. The PACTware FDT frame application, the DTM for the device and the latest firmware can be downloaded free of charge from www.turck.com. NOTICE Interruption of the power supply during the firmware update Risk of device damage due to faulty firmware update ...
Page 256
Fig. 154: Select the Ethernet interface Double-click the connected device. PACTware opens the Busaddress management function. Fig. 155: Opening Busaddress management Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 257
Searching for connected Ethernet devices: Click the Search icon. Select the required device. Fig. 156: Selecting the device NOTICE Incorrect firmware update Limited device functions due to missing web server Update the bootloader to version ≥ 10.0.1.0. 06.00 | 2021/07...
Page 258
If the bootloader version is < 10.0.1.0, it must be updated before the firmware update is carried out. If the bootloader version is ≥ 10.0.1.0, proceed with the firmware update (see [} 260]). Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 259
Updating the bootloader Click the Firmware Download button. Select the displayed bootloader and click Open. Fig. 158: Selecting the bootloader PACTware displays a green bar at the bottom of the screen to indicate the progress of the bootloader update. 06.00 | 2021/07...
Page 260
Updating the firmware Click the Firmware Download button. Select the firmware and click Open. Fig. 159: Starting the firmware update Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 261
PACTware displays a green bar at the bottom of the screen to indicate the progress of the bootloader update. Fig. 160: Firmware update in progress 06.00 | 2021/07...
Disposal The devices must be disposed of correctly and must not be included in general household garbage. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
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.
Page 264
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 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 265
Technical Data Potential isolation Galvanic isolation from the fieldbus, voltage proof up to 500 VDC 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.
= part 2…(n) acknowledge next fragment out.readFragmentNo := in.readFragmentNo done new command desired? Fig. 163: Flow chart for command processing with fragmentation Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
*) After increasing the Read Fragment No., the new data will be shown in the read data input. Fig. 165: Flow chart for Continuous mode without interruption before reading data Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
15.6 Flow chart: programming tags with a password start define password write desired data to tag command: set_read/write_head_password (with default password of tag = 0000) command: set_tag_password (with new password) ERROR = TRUE response code = command code error code command: set_read/write_head_password (with new password)
24 VDC ±10 % Input current I 5.5 A (total current per module) Output current I 0.5 A (per output) Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Turck Subsidiaries - Contact Information Germany Hans Turck GmbH & Co. KG Witzlebenstraße 7, 45472 Mülheim an der Ruhr www.turck.de Turck Australia Pty Ltd Australia Building 4, 19-25 Duerdin Street, Notting Hill, 3168 Victoria www.turck.com.au Belgium TURCK MULTIPROX Lion d'Orweg 12, B-9300 Aalst www.multiprox.be...
Page 274
Árpád fejedelem útja 26-28., Óbuda Gate, 2. em., H-1023 Budapest www.turck.hu Turck Inc. 3000 Campus Drive, USA-MN 55441 Minneapolis www.turck.us Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 275
Over 30 subsidiaries and over 60 representations worldwide! D500064 | 2021/07 D500064 www.turck.com...
Need help?
Do you have a question about the TBEN-S2-2RFID-4DXP and is the answer not in the manual?
Questions and answers