2 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 3
Table of Contents
1About these Instructions 1
1.1Target Groups1
1.2Explanation of symbols used1
1.3Additional Documents1
1.4Feedback about these instructions2
2Notes on the Product 3
2.1Product Identification3
2.2Scope of Delivery3
2.3Legal Requirements3
2.4Manufacturer and Service3
3For Your Safety 5
3.1Intended Use5
3.2General Safety Instructions5
4Product Description 7
4.1Device Overview7
4.2Display Elements7
4.3Properties and Features8
4.4Functional Principle8
4.5Functions and Operating Modes9
4.5.1 Multi protocol functionality9
4.5.2 Serial RS232 or RS485 Data Communication9
4.5.3 Modbus RTU Data Communication10
4.6Configurable Digital Channels10
4.7Technical Accessories10
5Mounting 11
2018/03
5.1Mounting Module Composites11
5.2Mounting on Mounting Plate12
5.3Mounting on a DIN rail (TS 35)12
1
Page 4
5.4Grounding the Device13
5.4.1 Grounding and Shielding Concept13
5.4.2 Ground the Device (FE)14
6Connecting 15
6.1Connecting the Modules to the Ethernet15
6.1.1 Ethernet Connection for QC/FSU Applications15
6.2Connecting Power Supply16
6.2.1 Supply Concept17
6.3Connecting Serial Devices17
6.3.1 Activating/Deactivating of RS485 Termination and Biasing 18
6.4Connecting Digital Sensors and Actuators19
7Commissioning 21
7.1Setting the IP address21
7.2Commissioning the Device in PROFINET23
7.2.1 GSDML file23
7.2.2 FSU - Fast Start-Up (prioritized startup)23
7.2.3 PROFINET IO Device Model24
7.2.4 TBEN-S2-2COM-4DXP – Slots and Sub slots (Overview)24
7.2.5 PROFINET diagnostics40
7.2.6 Description of the User Data for Acyclic Services41
7.3Connecting the device to a Siemens PLC in PROFINET43
7.3.1 Used Hardware43
7.3.2 Used Software43
7.3.3 Prerequisites43
7.3.4 Installing the GSDML-file44
7.3.5 Configuring the Device45
7.3.6 Connecting the device to the PLC46
7.3.7 Assigning PROFINET device name47
7.3.8 Setting the IP address in TIA Portal48
7.3.9 Going online with the PLC49
7.3.10 Setting Module Parameters50
7.4Commissioning the Device in EtherNet/IP™51
7.4.1 EDS-file51
7.4.2 QuickConnect (QC)51
7.4.3 Diagnostic messages via process data53
7.4.4 EtherNet/IP™-standard classes54
7.4.5 Assembly Object (0x04)56
7.4.6 Connection Manager Object (0x06)61
7.4.7 TCP/IP Interface Object (0xF5)62
7.4.8 Ethernet Link Object (0xF6)66
7.4.9 VSC-Vendor Specific Classes68
7.4.10 Extended DXP Functions Class (VSC 164)80
2
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 5
7.5Connecting the device to an EtherNet/IP™ PLC81
7.5.1 Used Hardware81
7.5.2 Used Software81
7.5.3 Prerequisites81
7.5.4 Installing the EDS-file82
7.5.5 Connecting the device to the PLC83
7.5.6 Going online with the PLC88
7.5.7 Reading Process Data90
7.5.8 Parameterizing Devices via Class Instance Attribute92
7.6Commissioning the Device in Modbus TCP95
7.6.1 Implemented Modbus functions95
7.6.2 Modbus Registers95
7.6.3 Register mapping TBEN-S2-2COM-4DXP100
7.7Connecting the Device to a Modbus TCP Master101
7.7.1 Used Hardware101
7.7.2 Used Software101
7.7.3 Prerequisites101
7.7.4 Connecting the device to the PLC101
7.7.5 Parameterizing the Device109
7.7.6 Parameterizing the Device via Web Server109
7.7.7 Reading Process Data in CODESYS113
7.7.8 Going online with the PLC115
8Configuring and Parameterizing 117
8.1Setting Parameters117
8.1.1 Setting Parameters – COM0/COM1 117
8.1.2 Setting Parameters – Server Configuration Block (SCB)121
8.1.3 Setting Parameters – DXP Channels127
9Operating 129
9.1Evaluating Process Input data 129
9.1.1 Evaluating Process Input Data - RS232/RS485 Mode130
9.1.2 Evaluating Process Input Data – Modbus Client Mode132
9.1.3 Evaluating Process Input Data –DXP Channels134
9.1.4 Evaluating Process Input Data –Module Status135
9.2Writing Process Output Data136
9.2.1 Writing Process Output Data – RS232/RS48 Mode137
9.2.2 Writing Process Output Data – Modbus Client Mode138
9.2.3 Writing Process Input Data – DXP Channels139
9.3Transmit and Receive Data140
9.3.1 Transmit Data140
9.3.2 Receive Data141
2018/03
9.4Evaluating LED Displays142
9.5Evaluating Diagnostic Data 144
3
Page 6
9.5.1 Evaluating Diagnostic Data – COM channel diagnostics144
9.5.2 Evaluating Diagnostic Data – DXP Diagnostics145
10Troubleshooting 147
11Maintenance 149
11.1Executing the firmware update149
11.1.1 Example: Update the firmware with the PACTware™ FDT frame application149
12Repair 153
12.1Returning devices153
13Disposal 155
14Technical Data 157
15Appendix 161
15.1Possible Network Structures (Examples)161
15.1.1 Daisy Chain - Maximum Number of Connected Modules163
15.2ARGEE/FLC163
4
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 7
1About 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 instructions
for future use during the service life of the product. If the product is passed on, pass on these instructions as well.
1.1Target Groups
These instructions are aimed at qualified personnel and must be carefully read by anyone mounting, commissioning, operating, maintaining, dismantling or disposing of the device.
1.2Explanation of symbols used
The following symbols are used in these instructions:
DANGER!
DANGER indicates an immediately dangerous situation, with high risk, the death or severe
injury, if not avoided.
WARNING!
WARNING indicates a potentially dangerous situation with medium risk, the death or
severe injury, if not avoided.
ATTENTION!
ATTENTION indicates a situation that may lead to property damage, if it is not avoided.
NOTE
In NOTES you find tips, recommendations and important information. The notes facilitate
work, provide more information on specific actions and help to avoid overtime by not following the correct procedure.
CALL TO ACTION
This symbol identifies steps that the user has to perform.
RESULTS OF ACTION
This symbol identifies relevant results of steps
1.3Additional Documents
The following additional documents are available online at www.turck.com:
Data sheet
TBEN-Accessories list (D301367)
2018/03
1
Page 8
About these Instructions
1.4Feedback about these instructions
We make every effort to ensure that these instructions are as informative and as clear as possible. 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.
2
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 9
2Notes on the Product
2.1Product Identification
These instructions apply for the following compact serial interface modules:
TBEN-S2-2COM-4DXP
2.2Scope of Delivery
The delivery scope contains:
TBEN-S2-2COM-4DXP
Closure caps for M12 female connectors
2.3Legal Requirements
The device falls under the following EU directives:
2014/30/EU (electromagnetic compatibility)
2011/65/EC (RoHS II Directive)
2.4Manufacturer and Service
Hans Turck GmbH & Co. KG
Witzlebenstraße 7
45472 Muelheim an der Ruhr
Germany
Turck supports you with your projects, from initial analysis to the commissioning of your application. 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:
Should you have any further questions, please contact the sales and service team in Germany under
the following telephone numbers:
Sales: +49 208 4952-380
Technology: +49 208 4952-390
Internet:
Outside Germany, please contact your local Turck representative.
www.turck.de
www.turck.en/products
2018/03
3
Page 10
Notes on the Product
4
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 11
3For 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.
3.1Intended Use
The devices are only intended for use in industrial applications.
The block module TBEN-S2-2COM-4DXP offers two serial interfaces for connecting serial RS232 and
RS482 data terminal devices.
Besides the raw RS232/RS485-communication, the device supports Modbus RTU. 32 Modbus RTU
server can be connected per port.
Additionally, the module provides 4 universal digital channels. The multiprotocol interfaces can be
used as EtherNet/IP™ Device, Modbus TCP Slave, oder PROFINET® Device.
The devices may only be used as described in this manual. Any other use is not in accordance with
the intended use. Turck accepts no liability for any resulting damage.
3.2General Safety Instructions
The device may only be assembled, installed, operated and maintained by professionally trained
personnel.
The device may only be used in accordance with applicable national and international regula-
tions, standards and laws.
The device only meets the EMC requirements for industrial areas and is not suitable for use in res-
idential areas.
2018/03
5
Page 12
For Your Safety
6
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 13
4Product Description
132
144.3
32
32
C0C1C2C3
24
17.9
28
X2
X1
P2
P1
ø 4.6
The devices are designed in a fully encapsulated housing with degree of protection IP65/IP67/
IP69K. Two ports are available for connecting devices with serial interfaces. You can also connect
sensors and actuators via 4 digital I/O channels which can be used as inputs and outputs without
configuration. The terminals for serial devices and digital I/Os are M12 sockets. Two 4-pole M8 sockets are provided for the Ethernet connection. The supply voltage is also connected using two 4 pole
M8 connectors.
4.1Device Overview
Fig. 1: Dimensions
4.2Display Elements
The devices have multi-color LEDs with the following functions:
Integrated Ethernet switch, allows line topology
Transmission speed 10 Mbps/100 Mbps
4-pole M8-connectors for voltage supply
Separated power groups for safety shutdown
Two serial interface which can be used as RS232 or RS485
Integrated Modbus RTU Client function for connecting up to 32 Modbus RTU Server per port
Four universal digital channels as PNP inputs or outputs (0,5 A)
192 byes per port per write or read operation
Integrated web server
LED displays and diagnostics
Fibre-glass reinforced housing
Shock and vibration tested
Fully potted module electronics
Degree of protection IP65/IP67/IP69K
4.4Functional Principle
The devices provide a multiprotocol Ethernet interface for Modbus TCP, EtherNet/IP™ and PROFINET. The device is connected to Ethernet as PROFINET IO Device, EtherNet/IP™ Device or Modbus
TCP Slave via the Ethernet interface. Process data between Ethernet and TBEN-S are exchanged
during runtime. The RS232/RS485 interfaces are used for connecting devices with RS232 and/or
RS485 interface (e.g. barcode readers, printers, drives, light curtains, etc.)
8
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 15
4.5Functions and Operating Modes
4.5.1Multi protocol functionality
The compact I/O-stations of the TBEN-S product line combine the three Ethernet-protocols:
PROFINET
EtherNet/IP™
Modbus TCP
A multi-protocol device can be operated without intervention of the user (which means, without
changes in the parameterization) in all of the three Ethernet protocols mentioned.
During the start-up, after a power-on, the module runs in "snooping" mode and detects the Ethernet protocol which requests a link connection by listening the traffic.
If a protocol is detected, the device is set automatically to the respective protocol. After this an
access to the device from other protocols is read-only.
Manual Protocol Selection
The protocol can also be determined manually. This skips the snooping-phase and the device is permanently set to the selected protocol. An access to the device from other protocols is read-only.
The explicit protocol selection allows thus an additional locking mechanism.
4.5.2Serial RS232 or RS485 Data Communication
In the RS232 mode one device can be connected to each serial port. In the RS485 mode up to 32
devices can be connected to one port.
Transmit and receive sequence: s. Transmit and Receive Data, page 141
2018/03
9
Page 16
Product Description
4.5.3Modbus RTU Data Communication
The Modbus RTU data communication is coordinated by the TBEN-S2-2COM-4DXP and is transparent for PLC programmers. The TBEN-S2-2COM-4DXP functions as a Modbus RTU Client (Modbus
RTU Master). The process values of connected Modbus RTU Servers (Modbus RTU Slaves) are directly
available. In addition to that, the state of all Modbus connections can be monitored.
Modbus Client Mode
The Modbus Client Mode RS232, allows the connection of up to 8 Modbus RTU Servers. The Modbus
Client Mode RS485 allows the connection of up to 32 Modbus RTU Servers without any programming effort. Depending on the connected devices, applications with up to 64 RS485-devices are
possible .
Standard mode (s. p. 124)
–
1 Modbus RTU Server per Server Configuration Block (SCB)
– max. 8 Modbus RTU Servers per COM port
Multi server mode (s. p. 125)
–
Up to 12 identical Modbus RTU Servers per Server Configuration Block (SCB)
– Max. 32 Modbus RTU Servers per COM port, in total max. 64 per TBEN-S2-2COM-4DXP device.
Read/ write extension (s. p. 126)
–
Connection of Modbus RTU Servers with more than 12 registers, which have to be read or written.
4.6Configurable Digital Channels
The device provides four digital channels. The channels can be used as input or output without configuration. Each output is short-circuit proof with 0.5 A.
4.7Technical Accessories
Accessories for mounting, connecting and parameterizing can be found in the Accessories List for
TBEN (D301367) under www.turck.com. The accessories are not part of the scope of delivery.
10
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 17
5Mounting
1
2
3
4
The device can be mounted on a DIN rail according to EN 60715 (TS35) or screwed onto a mounting
plate. Both composite and individual assembly are possible.
5.1Mounting Module Composites
The TBNN-S0… adapters can be used to build module composites for group assembly.
1
4
2
3
Fig. 2: Build module groups four mounting the
devices onto a mounting plate
Unlock the cover flap with a flat tool (e.g. screw driver) (1).
Open the flap completely (2).
To join the TBEN-S-module and the spacer, insert the key of the spacer into the slot of the TBEN-
S-module (3).
Flap back the cover and close it (4). It has to engage audibly.
Repeat steps 1 to 4 until the module group in complete.
2018/03
Fig. 3: Build module groups four mounting the
devices onto a DIN rail (TS35)
11
Page 18
Mounting
5.2Mounting on Mounting Plate
The devices are fixed on a pre-drilled mounting plate with two M4 screws. The spacers TBNN-S0-STD
are necessary for mounting module composites.
Mount the modules or the module composites according to Fig. 4:Fixing the device to the
mounting plate.
Fig. 4: Fixing the device to the mounting plate
5.3Mounting on a DIN rail (TS 35)
Single modules or module composites can be mounted on a DIN rail (TS 35) using the spacers TBNNS0-DRS.
ATTENTION!
Incorrect mounting
Malfunction due to faulty grounding
Orient the spacers so that the arrow in the cover flap of every spacer points in direction
to the M8 Ethernet connectors.
Connect the grounding contact of the spacer to the grounding contact of the device.
Mount spacers on the right and the left side of the device.
Place the device or the composite on the DIN rail so that the cut-outs in the spacers enclose the
DIN rail (1).
Close the rotating pin in the spacers by means of a screw driver (2)
Ground the device.
2
12
1
Fig. 5: Mounting the Module Composite on a DIN rail
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 19
NOTE
To increase stability on the moun
right side of the modules/module composites.
5.4Grounding the Device
5.4.1Grounding and Shielding Concept
Field bus and I/O part of the TBEN-S modules can be grounded separately.
ting rail, end brackets can be mounted on the left and
Fig. 8: Grounding contactFig. 9: Grounding of spacers
Grounding ring (2) and
Metal screw (3)
4
TBNN-S0-DRS
2018/03
The grounding clamp (1) at the M8 connectors for the fieldbus connection (P1, P2) connects the
shield of the fieldbus lines.
The grounding ring (2) leads the shield at the flange of the M8 connectors for the fieldbus connection via an RC-circuit to the outside of the station.
By mounting the module onto a mounting plate through the mounting hole, the module is connected to the reference potential of the installation by a metal screw (3).
The spacers TBNN-S0-DRS for mounting the TBEN-S-modules onto a DIN rail (TS 35) connect the
grounding contact (4) of the modules with the DIN rail and thus with FE.
13
Page 20
Mounting
5.4.2Ground the Device (FE)
Grounding clamp and grounding ring are connected.
When mounting on a DIN rail fix the enclosed metal screw at the lower mounting hole.
The shield at the flange of the M8 connectors for the field bus connection is connected to the
reference potential of the installation.
If a common reference potential is not required, remove the grounding clamp to disconnect the
fieldbus shield or fix the module with a plastic screw.
Removing the Grounding Clamp
Use a flat screwdriver to slide the grounding clamp forward and remove it.
Fig. 10: Removing the Grounding Clamp
Mounting the grounding clamp
Insert the grounding clamp between the fieldbus connectors (using a screwdriver if necessary)
so that it makes contact with the metal housing of the connector.
The shielding of the fieldbus lines is now connected to the grounding clamp.
Fig. 11: Mounting the grounding clamp
14
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 21
6Connecting
1 = TX +
2 = RX +
3 = RX –
4 = TX –
1 = RX +
2 = TX +
3 = TX –
4 = RX –
v
P1P2
42
31
v
42
31
6.1Connecting the Modules to the Ethernet
The TBEN-S2 module is provided with an integrated autocrossing switch with two 4-pin M8 Ethernet plug connectors for connecting to the fieldbus.
ATTENTION!
Interchanging of Ethernet- and power cables
Destructio
Observe using the correct M8-connectors when connecting Ethernet- and power
cables (Ethernet: P1 and P2, power: X1and X2).
Fig. 12: M8 Ethernet connector
Connect the device to Ethernet according to the pin assignment below.
n of module electronic
Fig. 13: Pin assignment Ethernet connectors
6.1.1Ethernet Connection for QC/FSU Applications
NOTE
Please observe the following for QuickConnect (
–do not use a crossover-cable
– ETH1 = connector for
– ETH2 = connector for
Further information concerning QuickConnect and FSU can be found here:
EtherNet/IP™: QC – QuickConnect, page 51
PROFINET: FSU - Fast Start-Up (prioritized startup), page 23
incoming Ethernet-line
outgoing Ethernet-line
QC)- and Fast Start-Up (FSU)-applications:
2018/03
15
Page 22
Connecting
1 BN = V1 (+)
2 WH = V2 (+)
3 BU = GND V1
4 BK = GND V2
wv
X1X2
24
13
42
31
6.2Connecting Power Supply
The TBEN-S2 module is provided with two 4-pin M8 plug connectors for connecting the power supply. V1 and V2 are galvanically isolated.
ATTENTION!
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, power: X1and X2).
Fig. 14: M8 connector for connecting the supply voltage
Connect the device to the voltage supply according to the pin assignment below.
Pin assignment
X1Power feed
X2Continuation of the power to the next node
V1Power supply 1 (incl. supply of electronics)
V2Power supply 2
Fig. 15: Pin assignment power supply connectors
NOTE
The system voltage (V1) and the load voltage (V2) are fed in and monitored separately. In
case of an undercut of the admissible voltage, the connectors are switched-off according
to the module's supply concept. In case of an undervoltage at V2, the LED PWR changes
from green to red. In case of an undervoltage at V1, the LED is turned off.
16
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 23
6.2.1Supply Concept
V1
V2
All TBEN-S1-modules are supplied via two separate voltages V1 and V2.
The I/O-channels are separated into the different potential groups "detachable I/O" (supplied
through V2) and "non-detachable" I/O (supplied through V1).
This allows a safety shutdown of parts of an installation via emergency-off circuits.
V1 = supply of module electronics and the respective connectors
V2 = supply of the respective connectors
Fig. 16: Power supply of TBEN-S2-2COM-4DXP
6.3Connecting Serial Devices
The TBEN-S2 module is provided with two 5-pin M12 connectors for connecting serial RS232 or
RS485 device.
Fig. 17: M12 connector for connecting serial RS232 and RS485 devices
Connect the device to the voltage supply according to the pin assignment below.
6.3.1Activating/Deactivating of RS485 Termination and Biasing
Fig. 20: RS485 termination and biasing
RS485 Termination
The TBEN-S2 module is provided with one internal bus termination resistor per COM port which can
be activated or deactivated via the parameter "Termination active" (s. p. 117). In the default setting
the internal termination is activated. The termination can also be done externally. The internal termination has to be deactivated if an external termination is used.
The termination at TBEN-S2-2COM-4DXP is necessary, if the device is mounted at the beginning or
the end of the RS485 line. When building up an RS485 line topology a terminating resistor (e.g.
RSE57-TR2/RFID) has to be set at the other end of the RS485 line.
Accessories for mounting, connecting and parameterizing can be found in the Accessories List for
TBEN (D301367) under www.turck.com. The accessories are not part of the scope of delivery.
Biasing
Activating the biasing function suppresses undefined signal levels on both signal lines in the RS485
network by means of a bias resistor.
In the TBEN-S2-2COM-4DXP the biasing is is done with a biasing resistor of 600 W.
The biasing function can be activated or deactivated via the parameter "Biasing active" s. p. 117 In
the default setting the biasing function is activated.
We recommend to activate the biasing function, if the TBEN-S2-2COM-4DXP is mounted at the
beginning or the end of the RS485.
18
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 25
6.4Connecting Digital Sensors and Actuators
The TBEN-S2 module is provided with eight 5-pin M12 connectors for connecting digital sensors
and actuators. The following combinations of sensors an actuators can be connected:
2 digital inputs
2 digital outputs
1 digital input and 1 digital output
Fig. 21: M12 connector for connecting digital sensors and actuators
Connect the sensors and actuators to the device according to the pin assignment shown below.
Pin assignment
v
2
1
5
4
C2...C3
1 = V
3
2
aux
2 = DXP
3 = GND V2
4 = DXP
5 = FE
Fig. 22: Pin assignment for digital sensors and actuators
The channels are assigned to the connectors as follows:
ChannelSlotPin
DXP4 (Ch4)C2
DXP5 (Ch5)C2
DXP6 (Ch6)C3
DXP7 (Ch7)C3
4
2
4
2
2018/03
19
Page 26
Connecting
20
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 27
7Commissioning
The module automatically starts after the electrical wiring and connecting the supply voltage.
7.1Setting the IP address
In the delivery state the module has the IP address 192.168.1.254. A PROFINET device name has not
yet been assigned. The IP address can be set via the Turck Service Tool, the DTM, the web server, a
DHCP server or PROFINET DCP. In the following example, the IP address is set by means of the Turck
Service Tool. The tool is available for free under ww.turck.com.
Connect the device to a PC via the Ethernet interface.
Open the Turck Service Tool.
Click "Search" or press F5.
Fig. 23: Turck Service Tool – start dialog
The Turck Service Tool shows the connected devices.
Fig. 24: Turck Service Tool – found devices
Click on the desired device.
2018/03
21
Page 28
Commissioning
Click "Change" or press F2.
Fig. 25: Turck Service Tool – select the device to be addressed
NOTE
Clicking the IP address of the TBEN-S2-2COM-4DXP opens the device's web server.
Change the IP address and the network mask if necessary.
Assume the changes by clicking "Set in device".
Fig. 26: Turck Service Tool – Change device configuration
22
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 29
7.2Commissioning the Device in PROFINET
7.2.1GSDML file
The actual GSDML-file for TBEN-S can be downloaded from the Turck-home page www.turck.com.
FSU enables a PLC to build up connections to PROFINET-nodes in less than 500 ms after switchingon the network power supply. The fast start-up is necessary for fast tool changing applications at
robot arms for example in the automobile industry.
The TBEN-S2-2COM-4DXP support FSU, but the function can only be guaranteed for the digital
channels.
TBEN-S_PROFINET.zip
2018/03
23
Page 30
Commissioning
7.2.3PROFINET IO Device Model
The technical properties of PROFINET IO devices are defined via their device description file, the
GSDML file. A PROFINET IO device consists of 1…n slots, which can also contain 1…n sub slots. Sub
slots are placeholders for sub modules and establish the interface to the process. Sub modules can
contain parameters, data and diagnostics.
Slot 0 is always reserved as Device Access Point (DAP). The DAP contains the physical interface to
the Ethernet network and represents the device. The other slots or sub slots represent the other
device functions. The structure is defined by the manufacturer of field devices. It is not necessary
that every slot/sub slot is related to physical functions. This device model allows manufacturers to
design modular and flexible decentral field devices. User are flexible in configuring decentralized
field devices.
7.2.4TBEN-S2-2COM-4DXP – Slots and Sub slots (Overview)
Besides Slot 0 (DAP) all other slots of TBEN-S2-2COM-4DXP contain only one sub slot. for this rea-
son slots and sublots are described as synonyms in the following.
Slot-no. Name DescriptionPluggable devices
0TBEN-S2-2COM-4DXPThis slot represents the access to
the device via PROFINET, Device
Access Point.
– Device Access Point
– Ethernet interface
– Ethernet port 0
– Ethernet port 1
1COM channel 0This slot defines the function of
the first COM port (COM0).
– RS232 simple (s. p. 27)
– RS232 advanced (s. p. 28)
– RS485 simple (s. p. 29)
– RS485 advanced (s. p. 30)
– MB Client RS232 (s. p. 32)
– MB Client RS485 (s. p. 32)
2…9Buffer/server channel 0Slots 2 to 9 are used to configure
the data buffer for the in- and
output data or to configure
server connected via Modbus
RTU. The settings relate to COM0.
10COM channel 1Slot 10 defines the function of
the second COM port (COM1).
– RS Data 24Byte IN/24Byte OUT
(s. p. 31)
– MB-Server 1 Reg. IN/1 Reg. OUT
– (s. p. 28)
– MB-Server 12 Reg. IN/12 Reg. OUT
(s. p. 28)
– RS232 simple (s. p. 27)
– RS232 advanced (s. p. 28)
– RS485 simple (s. p. 29)
– RS485 advanced (s. p. 30)
– MB Client RS232 (s. p. 32)
– MB Client RS485 (s. p. 32)
24
11 -18Buffer/server channel 1Slots 11 to 18 are used to config-
ure the data buffer for the in- and
output data or to configure
server connected via Modbus
RTU. The settings relate to COM1.
19COM diagnosticsSlot 19 is used to map the cyclic
diagnostic data.
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
– RS Data 24Byte IN/24Byte OUT
p. 31)
(s.
– MB-Server 1 Reg. IN/1 Reg. OUT
– (s. p. 32)
– MB-Server 12 Reg. IN/12 Reg. OUT
(s. p. 33)
COM diagnostics (s.
p. 34)
Page 31
Slot-no. Name DescriptionPluggable devices
20MB-Server StatusSlot 20 is used to cyclically map
the status data of connected
Modbus RTU server.
21MB-Server TimingSlot 21 can be used to cyclically
map timing data of connected
Modbus RTU server.
22DXPSlot 22 is used to configure and
to use the 4 digital in- or output
channels (DXP).
23DXP diagnosticsSlot 22 is used to map the cyclic
diagnostic data for the DXP
channels.
24…27 Ext. DXP functions 4…7Slots 24…27 are used to config-
ured the input filter times and
the pulse stretching for the digital input channels 4…7.
28Module statusSlot 28 is used to cyclically map
module status data.
MB-Server Status (s. p. 35)
MB-Server Timing (s.
DXP (s.
p. 37)
DXP diagnostics (s. p. 38)
DIF pulses (s.
Module status (s.
p. 37)
p. 38)
p. 39)
2018/03
25
Page 32
Commissioning
Sub module "TBEN-S2-2COM-4DXP" (Device Access Point)
The Device Access Point "TBEN-S2-2COM-4DXP" provides device's PROFINET interface.
This module is always plugged in slot 0 and cannot be deleted.
PROFINET IO
FeaturesDescription
Conformance ClassB
Update time [ms]1…512
Media Redundancy Protocol (MRP)MRP Client
Fast Startup (FSU)< 500 ms
Topology detection though LLDPyes
Parameters
Parameters ValueMeaningDescription
Output behav, at
communic. loss
Deactivate all diagnostics
Deactivate load voltage diagnostics
Deactivate I/O-ASSISTANT Force Mode
Deactivate Modbus0noDeactivates the Modbus protocol
Deactivate
EtherNet/IP
Deactivate
PROFINET
00set to 0Depending on the parameterization, the digital out-
01hold current
value
0noDeactivates all diagnostics
1yes
0noDeactivates the under voltage diagnostics for V2.
1yes
0noDeactivates the forcing of output values via DTM.
1yes
1yes
0noDeactivates the EtherNet/IP™ protocol
1yes
0noDeactivates the PROFINET protocol
1yes
puts switch to 0 or hold the current value, if the
PROFINET IO communication between the device
and the PLC is disturbed.
26
Deactivate
Web server
Process data
0noDeactivates the web server
1yes
This sub module has no process data.
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 33
Sub module "RS232 simple"
The sub module "RS232 simple" can be plugged into slots 1 (COM 0) and slot 10 (COM 1). It switches
the COM port to the RS232 mode, provides parameters for the configuration and process data for
control and status data. More detailed information about the transmit and receive sequence can be
found under Transmit and Receive Data, page 141.
Parameters (s. p. 118)
The following functions are preset in this sub module an can not be changed:
Parameters Value
EOF detectionCharacter time-
out
Character timeout100Character timeout in ms.
Response timeout0No timeout
Process input data (s. p. 130)
Process valueOffsetData type
COM – Status bits of the COM port%IB0USINT
Transmitter ready
Receive complete%IX0.1BOOL
Frame error%IX0.2BOOL
Parity/format error%IX0.3BOOL
Buffer overflow%IX0.4BOOL
Timeout%IX0.5BOOL
Invalid TX length%IX0.6BOOL
Invalid RX length%IX0.7BOOL
The character timeout defines the duration of time within
which another character must be received after receiving a
character. Exceeding this time is interpreted as the end of the
data packet.
%IX0.0BOOL
2018/03
Reserved%IB1USINT
Received frame length%IB2USINT
Process output data (s. p. 138)
Process valueOffsetData type
COM – Control bits of the COM port%QB0USINT
Transmit
Receive%QX0.1BOOL
Reserved%QB1USINT
Transmitter frame length%QB2USINT
Reserved%QB3USINT
Receiver frame length%QB4USINT
%QX0.0BOOL
27
Page 34
Commissioning
Sub module "RS232 advanced"
The sub module "RS232 simple" can be plugged into slots 1 (COM 0) and slot 10 (COM 1). It switches
the COM port to the RS232 mode, provides parameters for the configuration and process data for
control and status data. More detailed information about the transmit and receive sequence can be
found under Transmit and Receive Data, page 141.
Parameters (s. p. 117)
The sub module contains additional parameters:
–
EOF detection: character timeout, 1st end delimiter, 2nd end delimiter, frame length
– response timeout
Process input data (s. p. 130)
Process valueOffsetData type
COM – Status bits of the COM port%IB0USINT
Transmitter ready%IX0.0BOOL
Receive complete%IX0.1BOOL
Frame error%IX0.2BOOL
Parity/format error%IX0.3BOOL
Buffer overflow%IX0.4BOOL
Timeout%IX0.5BOOL
Invalid TX length%IX0.6BOOL
Invalid RX length%IX0.7BOOL
Reserved%IB1USINT
Received frame length%IB2USINT
Process output data (s. p. 138)
Process valueOffsetData type
COM – Control bits of the COM port%QB0USINT
Transmit%QX0.0BOOL
Receive%QX0.1BOOL
Reserved%QB1USINT
Transmitter frame length%QB2USINT
28
Reserved%QB3USINT
Receiver frame length%QB4USINT
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 35
Sub module "RS485 simple"
The sub module "RS485 simple" can be plugged into slots 1 (COM 0) and slot 10 (COM 1). It switches
the COM port to the RS485 mode, provides parameters for the configuration and process data for
control and status data. More detailed information about the transmit and receive sequence can be
found under Transmit and Receive Data, page 141.
Parameters (s. p. 117)
The following functions are preset in this sub module an can not be changed:
Parameters Value
Swap A/B linenoStandard configuration, A = pin 2, B = pin 4
Termination activeyesRS485 termination
Biasing activeyesBiasing activated
EOF detectionCharacter
Character timeout100Character timeout in ms.
Response timeout0no timeout
Process input data (s. p. 130)
Process valueOffsetData type
timeout
The character timeout defines the duration of time within which
another character must be received after receiving a character.
Exceeding this time is interpreted as the end of the data packet.
COM – Status bits of the COM port%IB0USINT
Transmitter ready
Receive complete%IX0.1BOOL
Frame error%IX0.2BOOL
Parity/format error%IX0.3BOOL
Buffer overflow%IX0.4BOOL
Timeout%IX0.5BOOL
Invalid TX length%IX0.6BOOL
Invalid RX length%IX0.7BOOL
Reserved%IB1USINT
Received frame length%IB2USINT
%IX0.0BOOL
2018/03
29
Page 36
Commissioning
Process output data (s. p. 138)
Process valueOffsetData type
COM – Control bits of the COM port%QB0USINT
Transmit%QX0.0
Receive%QX0.1
Reserved%QB1USINT
Transmitter frame length%QB2USINT
Reserved%QB3USINT
Receiver frame length%QB4USINT
Sub module "RS485 advanced"
The sub module "RS485 simple" can be plugged into slots 1 (COM 0) and slot 10 (COM 1). It switches
the COM port to the RS485 mode, provides parameters for the configuration and process data for
control and status data. More detailed information about the transmit and receive sequence can be
found under Transmit and Receive Data, page 141.
Parameters
The sub module contains additional parameters:
–
EOF detection: character timeout, 1st end delimiter, 2nd end delimiter, frame length
– Termination active
– Biasing active
– response timeout
Process input data (s. p. 130)
BOOL
BOOL
Process valueOffsetData type
COM – Status bits of the COM port%IB0USINT
Transmitter ready%IX0.0BOOL
Receive complete%IX0.1BOOL
Frame error%IX0.2BOOL
Parity/format error%IX0.3BOOL
Buffer overflow%IX0.4BOOL
Timeout%IX0.5BOOL
Invalid TX length%IX0.6BOOL
Invalid RX length%IX0.7BOOL
Reserved%IB1USINT
Received frame length%IB2USINT
30
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 37
Process output data (s. p. 138)
Process valueOffsetData type
COM – Control bits of the COM port%QB0USINT
Transmit
Receive%QX0.1BOOL
Reserved%QB1USINT
Transmitter frame length%QB2USINT
Reserved%QB3USINT
Receiver frame length%QB4USINT
Sub module "RS Data 24Byte IN/24Byte OUT"
The sub module "RS Data 24Byte IN/24Byte OUT" can be plugged into slots 2…9 (COM 0) and slot
11…18 (COM 1). The sub module is used to set up the transmit and receive buffer for the serial communication via RS232 or RS485 modularly in steps of 24 bytes. The maximum length for the transmit
and receive buffer for one COM port is 8 × 24 bytes = 192 bytes.
This sub module can only be used for COM ports which are used as pure RS232 or RS485 interface.
Parameters
This sub module requires no configuration and has thus no parameters.
Process input data (s. p. 139)
Process valueOffsetData typeDescription
Byte 0%IB0ByteFirst byte of the receive buffer block
%QX0.0BOOL
……
Byte 23%IB23ByteLast byte of the receive buffer block
……
Process output data (s. p. 131)
Process valueOffsetData typeDescription
Byte 0%QB0ByteFirst byte of the transmit buffer block
……
Byte 23%QB23ByteLast byte of the transmit buffer block
……
2018/03
31
Page 38
Commissioning
Sub module "MB-Client RS232"
Sub module "MB-Client RS485"
The sub module "MB-Client RS232" can be plugged into slots 1 (COM 0) and slot 10 (COM 1). It
switches the COM port to the RS232 mode and activates the Modbus RTU Client function for this
COM port.
Parameters (s. p. 118)
Process input data (s. p. 135)
Process valueOffsetData type
Reserved - not used for the Modbus RTU Client function%IB0…%IB3 USINT
MB-Server cycle time (*1 ms)%IB4UINT
The sub module "RS485 simple" can be plugged into slots 1 (COM 0) and slot 10 (COM 1). It switches
the COM port to the RS485 mode and activates the Modbus RTU Client function for this COM port.
Parameters (s. p. 118)
Process input data (s. p. 135)
Process valueOffsetData type
Reserved - not used for the Modbus RTU Client function%IB0…%IB3 USINT
MB-Server cycle time (*1 ms)%IB4UINT
Sub module "MB-Server 1Reg. IN/1Reg. OUT”
Sub module "MB-Server 1Reg. IN/1Reg. OUT” can be plugged into slots 2…9 (COM 0) and slot
11…18 (COM 1). This sub module is used to configure connected Modbus RTU-Servers and to
exchange data with the connected servers. Eight Modbus RTU servers can be configured for each
COM port.
This sub module can only be used for COM ports which are used as Modbus RTU Clients.
Parameters (s. p. 121)
Process input data (s. p. 135)
Process valueOffsetData typeDescription
Input register 0%IW0UINTInput register of the Modbus server
Process output data (s. p. 140)
32
Process valueOffsetData typeDescription
Output register 0%QW0
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
UINT
Output register of the Modbus server
Page 39
Sub module "MB-Server 12 Reg. IN/12 Reg. OUT"
The sub module "MB-Server 12Reg IN/12Reg. OUT" can be plugged into slots 2…9 (COM 0) and slot
11…18 (COM 1). This sub module is used to configure connected Modbus RTU-Servers and to
exchange data with the connected servers. Eight Modbus RTU servers can be configured for each
COM port.
This sub module can only be used for COM ports which are used as Modbus RTU Clients.
Parameters (s. p. 121)
Process input data (s. p. 135)
Process valueOffsetData typeDescription
Input register 0%IW0UINTFirst input register of the Modbus server
……
Input register 11%IW011UINTLast input register of the Modbus server
Process output data (s. p. 140)
Process valueOffsetData typeDescription
Output register 0%QW0UINTFirst output register of the Modbus server
……
Output register 11%QW11UINTLast output register of the Modbus server
……
……
2018/03
33
Page 40
Commissioning
Sub module"COM diagnostics"
The sub module "COM diagnostics" can be plugged into slot 19. This sub module provides diagnostic data for the COM ports via cyclic input data.
Parameters
This sub module requires no configuration and has thus no parameters.
Process input data (s. p. 145)
Process valueOffsetData type
Diagnostics for COM 0%IB0USINT
Hardware error%IX0.0BOOL
Parameterization error%IX0.1BOOL
Overcurrent supply VAUX1%IX0.7BOOL
Modbus diagnostics for COM 0%IB1
Error MB-server 0%X1.0BOOL
………
Error MB-server 7%X1.7BOOL
Diagnostics for COM 1%IB0USINT
Hardware error%IX0.0BOOL
Parameterization error%IX0.1BOOL
Overcurrent supply VAUX1%IX0.7BOOL
Modbus diagnostics for COM 1%IB1
Error MB-server 0%X1.0BOOL
………
Error MB-server 7%X1.7BOOL
34
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 41
Sub module "MB-Server Status"
The sub module Sub module "MB-Server Status" can be plugged into slot 20. This sub module cyclically provides status data for the connected Modbus RTU servers.
Parameters
This sub module requires no configuration and has thus no parameters.
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 43
Sub module "MB-Server Timing"
The sub module Sub module "MB-Server Timing" can be plugged into slot 21. This sub module cyclically provides timing data for the connected Modbus RTU servers.
Parameters
This sub module requires no configuration and has thus no parameters.
Process input data (s. p. 135)
Process valueOffsetData type
COM 0 MB-Server Timing (*1ms) Ch0 %IW0UINT
……
COM 0 MB-Server Timing (*1ms) Ch0 %IW7UINT
COM 1 MB-Server Timing (*1ms) Ch0 %IW8UINT
………
COM 1 MB-Server Timing (*1ms) Ch0 %IW15UINT
Sub module "DXP"
The sub module "DXP" can be plugged into slot 22. It provides parameters for the configuration as
well as process data for the four digital channels (Ch4…Ch7) of the module. The DXP channels can
be used as input or output without any configuration.
Parameters (s. p. 127)
Process input data (s. p. 135)
Process valueOffsetData type
DXP%IB0USINT
Input value Ch4
Input value Ch5%IX0.5BOOL
Input value Ch6%IX0.6BOOL
…
%IX0.4BOOL
2018/03
Input value Ch7%IX0.7BOOL
Process output data (s. p. 140)
Process valueOffsetData type
DXP%QB0USINT
Outp
ut value Ch4%QX0.4BOOL
Output value Ch5%QX0.5BOOL
Output value Ch6%QX0.6BOOL
Output value Ch7%QX0.7BOOL
37
Page 44
Commissioning
Sub module "DXP diagnostics"
The sub module "DXP diagnostics" can be plugged into slot 23. The sub module cyclically provides
diagnostic data for the four digital channels.
Parameters
This sub module requires no configuration and has thus no parameters.
Process input data (s. p. 146)
Process valueOffsetData type
DXP%IB0USINT
Overcurrent VAUX2 K4/K5%IX0.2BOOL
Overcurrent VAUX2 K4/K5%IX0.3BOOL
DXP%IB1USINT
Overcurrent output Ch4%IX1.4BOOL
Overcurrent output Ch5%IX1.5BOOL
Overcurrent output Ch6%IX1.6BOOL
Overcurrent output Ch7%IX1.7BOOL
Sub module "DIF pulses"
The sub module "DIF pulses” (DIF = Digital Input Filter) can be plugged into slots 24…27. It provides
parameters for the configuration as well as process data for the four digital channels (Ch4…Ch7) of
the module. One slot is assigned to each digital channel. Slot 24 is assigned to the digital channel 4
and slot 27 is assigned to the digital channel 7. This sub module is used to configure the filter times
and the pulse stretching for the digital channels.
Parameters (s. p. 127)
Process data
This sub module has no process data. The configured parameters affect the input process values
of the sub module "DXP" (slot 22).
38
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 45
Sub module "Module status"
The sub module "Module status" can be plugged into slot 28. This sub module cyclically provides
module status data.
Parameters
This sub module requires no configuration and has thus no parameters.
Process input data (s. p. 136)
Process valueOffsetData type
Module status – byte
Undervoltage V1%IX0.1BOOL
Internal error%IX0.2BOOL
Force Mode active%IX0.6BOOL
Module status – byte 1%IB1USINT
Module diagnostics pending%IX1.0BOOL
Undervoltage V2%IX1.7BOOL
0%IB0USINT
2018/03
39
Page 46
Commissioning
7.2.5PROFINET diagnostics
In addition to the diagnostic information mapped to the process image, the TBEN-S2-2COM-4DXP
supports the following event-based PROFINET diagnostics.
286720x7000Module parametersWORDr/wActivate active field bus protocol
0xAFF5 0xAFFF
I&M5 to I&M15-functions
Description of the Acyclic I/O Channel User Data
Index NameData typer/wComment
Dec.Hex.
1
2
3
Module parametersspecificr/wParameters of the module
0x01
Module typeENUM
0x02
UINT8
Module versionUINT8rFirmware version of the I/O-channels
0x03
r/wI&M tag Function and location
not supported
rContains the module type
4
5…9
Module IDDWORDrIdent number of the I/O
0x04
reserved
0x05
…0x09
10
11…18
0x0B…0
0x0A
Slave controller
Version
reserved
UINT8
array [8]
rVersion number of the slave
controller.
x12
190x13Input dataspecificrInput data of the respective
I/O channel
20…220x14 …
0x16
230x17Output dataspecificr/wOutput data of the respective
……reserved
reserved
I/O channel
42
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 49
7.3Connecting the device to a Siemens PLC in PROFINET
The following example describes the connection of the devices to a Siemens OPLC in PROFINET by
means of the programming software SIMATIC STEP7 Professional V13 (TIA-Portal).
7.3.1Used Hardware
The following hardware components are used in this example:
Siemens PLC S7-1500
Block module TBEN-S2-2COM-4DXP
8 × Banner K50TGRYS1QP at COM 0 as Modbus server
7.3.2Used Software
The following software tools are used in this example:
SIMATIC STEP7 Professional V13 (TIA-Portal)
GSDML file for TBEN-S2-2COM-4DXP (to be downloaded for free under
www.turck.com)
7.3.3Prerequisites
The programming software has been started.
A new project has been created.
The PLC has been added to the project.
2018/03
43
Page 50
Commissioning
7.3.4Installing the GSDML-file
The GSDML-file can be downloaded for free from www.turck.com .
Verfügung.
Adding the GSDML-file: Click "Options" "Manage general station description files (GSD)".
Fig. 27: Adding the GSDML-file
Installing the GSDML-file: Define the source path for the GSDML-file.
Select the GSDML-file to be installed and click "Install".
Fig. 28: Installing the GSDML-file
The device is added to the Hardware catalog of the programming software.
44
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 51
7.3.5Configuring the Device
Select the TBEN-S2-2COM-4DXP from the Hardware catalog and drag it into the "Device & net-
works" editor.
Configure the device per drag & drop depending on the application.
Define the function of the two COM ports (slot 1 and 10) and define the other slots by assigning
the suitable sub modules.
NOTE
The PROFINET device model, the sub modu
tion options are described under PROFINET IO Device Model, page 24 and Structure of
the TBEN-S2-2COM-4DXP, page 24.
le functions as well as the possible configura-
Fig. 29: Configuring the Device
2018/03
45
Page 52
Commissioning
7.3.6Connecting the device to the PLC
Connect the device to the PLC in the "Devices & networks" editor.
Fig. 30: Connecting the device to the PLC
46
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 57
7.4Commissioning the Device in EtherNet/IP™
FeaturesDescription
QuickConnect< 500 ms
Device Level Ring
Number of TCP connections3
Number of CIP connections 10
Input Assembly Instance 103
Output Assembly Instance 104
Configuration Assembly Instance 106
7.4.1EDS-file
The actual EDS-files for TBEN-S can be downloaded from the TURCK home page www.turck.com.
EDS-fileZIP-file
TBEN-S2-2COM-4DXP_Rx.x.edsTBEN-S_ETHERNETIP.zip
7.4.2QuickConnect (QC)
QuickConnect enables a PLC to build up connections to EtherNet/IP™ nodes in less than 500 ms
after switching-on the power supply for the EtherNet/IP™ network. The fast start-up is necessary for
fast tool changing applications at robot arms
for example in the automobile industry.
The modules TBEN-S2-2COM-4DXP support QuickConnect, but the function can only be guaranteed for the digital channels.
(DLR) yes
NOTE
Activating QuickConnect also activa
Autonegotiation
Transmission speed
Duplex
Topology
AutoMDIX
ted the automatic setting of all necessary port-properties:
= deactivated
= 100BaseT
= Full duplex
= linear
= deactivated
2018/03
51
Page 58
Commissioning
Ethernet connection for QC-applications
QuickConnect in TBEN-S
Turck TBEN-S devices support QuickConnect.
NOTE
Please read Ethernet Connection for QC/FSU Applications, page 15 for information about
the correct Ethernet-cabling in QC-applications with TBEN-S,
QuickConnect can be activated via the EDS-file of the device, the
bute or the web server
EDS-fileAssembly Class 0x04, Configuration Assembly 106, Bit 9 = 1 (see s. p. 57)
QuickConnect can also be activated or deactivated using the device's web server.
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 59
7.4.3Diagnostic messages via process data
The diagnostic messages of the COM and the DXP channels are directly mapped into the process
data (see Process Data Mapping, page 60.)
Additionally, the device's status word contains the module diagnostics: In the default setting of the
device, the status word is mapped before the device’s process input data (s. p. 60).
Status word The status word contains the module status.
Byte 1 (MSB)Byte 0 (LSB)
Bit 15Bit 14Bit 13Bit 12Bit 11Bit 10Bit 9Bit 8 Bit 7Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1Bit 0
res.
Force
Mode
active
reserved
Control word
Internal
error
Under-
voltage V1res.
Under-
voltage
V2
res.
ARGEE
Program
Running
Module
Diagnostics
Available
Evaluating Process Input Data –Module Status, page 136
or
In the default setting of the device, the control word is mapped before the device’s process output
data (s. p. 60).
The control word has no function.
2018/03
53
Page 60
Commissioning
7.4.4EtherNet/IP™-standard classes
The modules support the following EtherNet/IP™ Standard Classes in accordance with the CIP specification.
Class CodeObject name
Dec.Hex.
010x01Identity Object (0x01)
040x04Assembly Object (0x04)
060x06Connection Manager Object (0x06)
2450xF5TCP/IP Interface Object (0xF5)
2460xF6
Identity Object (0x01)
The following description of the Ethernet Link Object is taken from the CIP specification, Vol. 2, Rev.
2.1 by ODVA & ControlNet International Ltd. and adapted to the Turck products.
Class attributes
Attr. No.Attribute nameGet/ Set TypeValue
Dec.Hex.
1 0x01REVISIONGUINT1
2 0x02MAX OBJECT INSTANCEGUINT1
6 0x06MAX CLASS ATTRIBUTEGUINT7
7 0x07MAX INSTANCE ATTRIBUTEGUINT7
Instance attributes
Attr. No.Attribute nameGet/
Dec.Hex.
Ethernet Link Object (0xF6)
TypeDescription
Set
54
1 0x01VENDORGUINTContains the vendor ID. Turck = 48
2 0x02PRODUCT TYPEGUINTShows the general product type.
Communications Adapter 12
3 0x06PRODUCT CODE GUINTIdentifier for a specific product of a device type.
default: 27247
4 0x04REVISION
Major Minor
5 0x05DEVICE STATUSGWORDSee
6 0x06SERIAL NUMBER GUDINTContains the ident-no. of the product (3 last
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
GSTRUCT
OF: USINT
USINT
Revision of the item the Identity Object is representing.
0x01
0x06
bytes of the MAC-ID).
Device Status
dec =
6A6F
= 0x0C
dez
Page 61
Attr. No.Attribute nameGet/
Set
Dec.Hex.
TypeDescription
7 0x07PRODUCT NAME
LENGTH
NAME
GSTRUCT
OF:
USINT
STRING
[13]
Device Status
BitNameDefinition
0…1reserveddefault = 0
2C
3reserveddefault = 0
4…7Extended Device
8…15reserveddefault = 0
onfiguredTRUE = 1
The application of the device has been configured ( defaultsettings).
0011 = no I/O connection established
Status
0110 = at least one I/O connection in RUN mode
0111 = at least one I/O connection established, all in IDLE mode
All other settings = reserved
Common services
e. g.:
TBEN-S2-2COM-4DXP
Service code
Dec.Hex.
01 0x01yesyesGet_Attribute_All
05 0x05noyesreset
14 0x0EyesyesGet_Attribute_Single
16 0x10nonoSet_Attribute_Single
Class
InstanceService name
Returns a
Starts the reset service for the device.
Returns the contents of a specified attribute.
Modifies a single attribute.
predefined list of the object‘s attributes.
2018/03
55
Page 62
Commissioning
7.4.5Assembly Object (0x04)
Assembly Objects bind attributes of multiple objects to allow data to or from each object to be sent
or received over a single connection.
The following description of the Ethernet Link Object is taken from the CIP specification, Vol. 2, Rev.
2.1 by ODVA & ControlNet International Ltd. and adapted to the Turck products.
Class attributes
Attr. No.Attribute nameGet/ Set TypeValue
Dec.Hex.
1 0x01REVISIONGUINT2
2 0x02MAX OBJECT INSTANCEGUINT104
Instance attributes
Attr. No.Attribute nameGet/
Dec.Hex.
3 0x03DATASARRAY OF
4 0x04SIZEGUINT Number of bytes in attr. 3
TypeDescription
Set
BYTE
256 or variable
Common services
Service codeClassInstanceService name
Dec.Hex.
01 0x01yesyesGet_Attribute_All
14 0x0EnoyesGet_Attribute_Single
56
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 63
Configuration Assembly (Instance 106)
The modules support Configuration Assembly. It enables an EDS-based configuration/parameterization of the devices in the PLC software (if supported by the PLC).
The Configuration Assembly contains:
10 bytes device configuration data (EtherNet/IP™-specific)
The process data mapping of the TBEN-S2-2COM-4DXP for EtherNet/IIP™ corresponds to the process data mapping described in chapter Operating. But, in EtherNet/IP™, the status and the control
word are mapped before the process data.
The mapping of the status and the control word can be deactivated via Gateway Class (VSC
100), GW Status Word, page 70 or Gateway Class (VSC 100), GW Control word, page 70.
ATTENTION!
Activating/deactivating the status and control word in EtherNet/IP™
Changes in the process data mapping
Observe the changes in the process data mapping if the status and control word are
activated or deactivated.
INWord
Offset
Status
word
Input
data
OUTBit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Control
word
Output
data
0
1
0
1
Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Module status
(s. p. 136)
Process input data
(
s. p. 129)
(without function)
Process output data
(
s. p. 137)
60
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 67
7.4.6Connection Manager Object (0x06)
This object is used for connection and connectionless communications, including establishing connections across multiple subnets.
The following description of the Ethernet Link Object is taken from the CIP specification, Vol. 2, Rev.
2.1 by ODVA & ControlNet International Ltd. and adapted to the Turck products.
Common services
Service code
Dec.Hex.
84 0x54noyesFWD_OPEN_CMD
78 0x4EnoyesFWD_CLOSE_CMD
82 0x52noyesUNCONNECTED_SEND_CMD
Class
InstanceService name
(Ope
ns a connection)
(Closes a connection)
2018/03
61
Page 68
Commissioning
7.4.7TCP/IP Interface Object (0xF5)
The following description of the Ethernet Link Object is taken from the CIP specification, Vol. 2, Rev.
1.1 by ODVA & ControlNet International Ltd. and adapted to the Turck products.
Class attributes
Attr. No.Attribute nameGet/ Set TypeValue
Dec.Hex.
1 0x01REVISIONGUINT1
2 0x02MAX OBJECT INSTANCEGUINT1
3 0x03NUMBER OF INSTANCESGUINT1
6 0x06MAX CLASS IDENTIFIERGUINT 7
7 0x07MAX INSTANCE ATTRIBUTEGUINT 6
Instance attributes
Attr. No.Attribute nameGet/
Dec.Hex.
1 0x01STATUS GDWORDInterface status (s. p. 63, Interface Sta-
2 0x02CONFIGURATION
CAPABILITY
3 0x03CONFIGURATION
CONTROL
4 0x04PHYSICAL LINK
OBJECT
Path size
Path:
5 0x05INTERFACE CON-
FIGURATION
IP addressGUDINTActual IP address
NETWORK MASKGUDINTActual network mask
GATEWAY ADDR.GUDINTActual default gateway
TypeDescription
Set
tus
)
GDWORDInterface Capability Flag (s.
uration Capability
G/SDWORDInterface Control Flag (s.
ration Control
GSTRUCT
UINTNumber of 16 bit words: 0x02
Padded
EPATH
GStructure
of:
0x20, 0xF6, 0x24, 0x01
TCP/IP Network Interface Configuration (s.
p. 64)
)
p. 64, Configu-
)
p. 63, Config-
62
NAME SERVERGUDINT0 = no server address configured
NAME SERVER 2UDINT0 = no secondary server address config-
ured
DOMAIN NAMEGUDINT0 = no domain name configured
6 0x06HOST NAMEGSTRING0 = no Host Name configured (s.
12 0x0CQuick ConnectG/SBOOL0 = deactivate
1 = activate
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
p. 64)
Page 69
Common services
Service
code
Dec.Hex.
01 0x01yesyesGet_Attribute_All
02 0x02no
14 0x0EyesyesGet_Attribute_Single
16 0x10noyesSet_Attribute_Single
Interface Status
ClassInstanceService name
noSet_Attribute_All
The Status attribute indicates the status of the TCP/IP network interface.
Refer to the state diagram, Fig. 36:TCP/IP object state diagram (acc. to CIP Spec., Vol.2, Rev. 1.1)
for a description of object states as they relate to the Status attribute.
BitNameDefinition
0-3Interface Configuration Sta-
tu
s
4…31reserved
Indicates the status of the Interface Configuration attribute:
0 = The Interface Configuration attribute has not been configured
1 = The Interface Configuration attribute contains valid configuration.
2…15 = reserved
Configuration Capability
The Configuration Capability indicates the device’s support for optional network configuration
capability.
BitNameDefinitionValue
0BOOTP ClientThe device is capable of
work configuration via BOOTP.
1DNS ClientThe device is capable of resolving host
names by querying a DNS server.
2DHCP ClientThe device is capable of obtaining its net-
work configuration via DHCP.
obtaining its net-
1
0
1
2018/03
63
Page 70
Commissioning
Configuration Control
The Configuration Control attribute is used to control network configuration options.
BitNameDefinition
0-3Startup-
Configuration
4DNS EnableAlways 0
5-31reservedSet to 0
Interface Configuration
Determines how the device shall obtain its initial configuration.
0 = The device shall use the interface configuration values previously stored (for example, in non-volatile memory or via hardwareswitches, etc).
1…3 = reserved
This attribute contains the configuration parameters required to operate as a TCP/IP node. To modify the Interface Configuration attribute, get the Interface Configuration attribute first, change the
desired parameters, then set the attribute.
The TCP/IP Interface Object applies the new configuration upon completion of the Set service. If the
value of the Startup Configuration bits (Configuration Control attribute) is 0, the new configuration
is stored in non-volatile memory.
The device does not reply to the set service until the values are safely stored to non-volatile memory.
An attempt to set any of the components of the Interface Configuration attribute to invalid values
results in an error (status code 0x09) returned from the Set service.
If initial configuration is obtained via BOOTP or DHCP, the Interface Configuration attribute components are all 0 until the BOOTP or DHCP reply is received.
Upon receipt of the BOOTP or DHCP reply, the Interface Configuration attribute shows the configuration obtained via BOOTP/DHCP.
Host Name
This attribute contains the device’s host name.
The host name attribute is used when the device supports the DHCP-DNS Update capability and has
been configured to use DHCP upon start up.
64
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 71
The mechanism allows the DHCP client to transmit its host name to the DHCP server. The DHCP
Non-existent
Obtaining initial
configuration
Waiting
for
configuration
Applying
configuration
TCP/IP network
interface configured
Status = 0×00000001
Powerup/ Reset
BOOTP/DHCP
response received
BOOTP/DHCP
disabled and
stored config.
valid
Set_Attributes
request received
Change interface
configuration
Status =
0×00000000
Configuration applied
BOOTP OR
DHCP enabled
BOOTP/DHCP
disabled and
stored config. valid
Status =
0×00000000
server then updates the DNS records on behalf of the client.
Fig. 36: TCP/IP object state diagram (acc. to CIP Spec., Vol.2, Rev. 1.1)
2018/03
65
Page 72
Commissioning
7.4.8Ethernet Link Object (0xF6)
The following description of the Ethernet Link Object is taken from the CIP specification, Vol. 2, Rev.
1.1 by ODVA & ControlNet International Ltd. and adapted to the Turck products.
Class attributes
Attr. No.Attribute nameGet/ Set TypeValue
Dec.Hex.
1 0x01REVISIONGUINT1
2 0x02MAX OBJECT INSTANCEGUINT1
3 0x03NUMBER OF INSTANCESGUINT1
6 0x06MAX CLASS IDENTIFIER GUINT7
7 0x07MAX INSTANCE ATTRIBUTEGUINT 6
Instance attributes
Attr. No.Attribute nameGet/
Dec.Hex.
1 0x01INTERFACE
SPEED
2 0x02INTERFACE
FLAGS
3 0x03PHYSICAL
ADDRESS
6 0x06INTERFACE
CONTROL
7 0x07INTERFACE TYPE
10 0x0AINTERFACE
LABEL
TypeDescription
Set
GUDINTSpeed in megabit per second.
(e. g. 10, 100, 1000, etc.)
GDWORDsee
GARRAY OF
USINT
2 WORDAllows port-wise changes of the Ethernet-
Interface flags, s. p. 66
Contains the interface’s MAC address
(Turck: 00:07:46:××:××:××)
settings
Interface flags
BitNameDefinitionDefault value
0Link StatusIndicates whether or not the Ethernet communi-
cations interface is connected to an active network.
0 = inactive link
1 = active link
Depends on application
66
1Half/full duplex0 = half duplex
1 = full duplex
If the Link Status flag is 0, the value of the Half/
Full Duplex flag is indeterminated.
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Depends on application
Page 73
BitNameDefinitionDefault value
2 to 4Negotiation StatusIndicates the status of the automatic
Autonegotiation
0 = autonegotiation in progress
1 = autonegotiation and speed detection failed
Using default values for speed and duplex
(10Mbps/half duplex).
2 = autonegotiation failed but detected speed
(default: half duplex).
3 = successfully negotiated speed and duplex.
4 = autonegotiation not attempted. Forced
speed and duplex.
5Manual Setting
Requires Reset
6Local Hardware Fault 0 = interface detects no local hardware fault
0 = interface can activate changes to link parameters (auto-negotiate, duplex mode, interface
speed) automatically
1 = device requires a Reset service to be issued
to its Identity Object in order to adapt the
changes
1 = local hardware error detected
Common services
Service
code
ClassInstanceService name
Depends on application
0
0
Dec.Hex.
01 0x01yesyesGet_Attribute_All
14 0x0E
76 0x4CnoyesEnetlink_Get_and_Clear
yesyesGet_Attribute_Single
2018/03
67
Page 74
Commissioning
7.4.9VSC-Vendor Specific Classes
In addition to supporting the above named CIP Standard Classes, the TBEN-S2-2COM-4DXP modules support the vendor specific classes described in the following.
Class CodeNameDescription
Dec. Hex.
100 0x64Gateway Class, s. p. 69Data and parameters for the field bus specific
part of the device.
139 0x8BCOM Class s.
140 0x8CRS Data/SCB Class s.
141 0x8DMB-Server Timing Timing data for connected Modbus servers.
142 0x8EDXP ClassData and parameters for the DXP channels of the
164 0xA4Ext. DXP Functions ClassParameters for the extended digital functions of
Class Instance of the VSCs
NOTE
The class instance attributes are the same for each Vendor Specific Class.
The class-specific Object Instances and the corresponding attributes are explained in the
paragraphs for the different VSC.
The general VSC - class instance attributes are defined as follows.
Attr. No.Attribute nameGet/
Dec.Hex.
p. 72Data and parameters for the COM ports of the
device.
p. 75Data of the connected serial devices, data and
parameters for the connected Modbus servers.
device.
the DXP channels.
TypeDescription
Set
68
1000x64Class revisionGUINTContains the revision number of the
class
(maj. rel. *1000 + min. rel.).
1010x65Max. instanceGUSINTContains the number of the highest
instance of an object created on this
level in the class hierarchy.
1020x66# of instancesGUSINTContains the number of Object
Instances created in this class.
1030x67Max. class attributeGUSINTContains the number of the last class
attribute to be implemented.
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 75
Gateway Class (VSC 100)
This class contains all information concerning the whole module, not the different channels.
Class instance
NOTE
Please refer to section Class Instance
instance for the VSC.
Object instance 1, boot instance
of the VSCs, page 68 for the description of the class
Attr. No.Attribute nameGet/
TypeDescription
Set
Dec.Hex.
1000x64Max object attribute GUSINTContains the number of the last object
attribute to be implemented.
1010x65Hardware revisionGSTRUCTContains the hardware revision number
of the module (USINT Maj./USINT Min.).
1020x66Firmware revisionGSTRUCTContains the revision number of the
boot firmware (Maj./Min.).
1030x67Service tool ident
number
1040x68Hardware
Info
GUDINTContains the BOOT ID number that
serves as an identification number for
the DTM-software.
GSTRUCTContains device hardware information
(UINT):
– count (number of the following
entries)
– CLOCK FREQUENCY (kHz)
– MAIN FLASH (in kB)
– MAIN FLASH SPEED (ns)
– SECOND FLASH (kB)
– RAM (kB),
– RAM SPEED (ns),
– RAM data WIDTH (bit),
– SERIAL EEPRPOM (kbit)
– RTC SUPPORT (in #)
– AUTO SERVICE BSL SUPPORT (BOOL)
– HDW SYSTEM
2018/03
69
Page 76
Commissioning
Object Instance 2, gateway Instance
Attr. No.Attribute nameGet/
Set
Dec.Hex.
1090x6DStatus word
(Status register 2)
GSTRUCTThe Status Word contains general module
TypeDescription
status information:
Module
– Bit 15: reserved
– Bit 14: Force Mode active, "Force Mode
Active Error“ (FCE)
The Force Mode is activated, no access to
the module possible because there is
already a connection to the DTM active .
– Bit 13…bit 10: reserved
Voltage errors
– Bit 09: V1 too low
(< 18 V DC).
– Bit 08: reserved
– Bit 07: V2 too low
(< 14 VDC).
– Bit 06…bit 1: reserved
Warnings
– Bit 00: Module diagnostics pending
(DIAG). At least 1 channel sends diagnostics.
115 0x73ON IO
CONNECTION
TIMEOUT
138 0x8AGW Status
Word
139 0x8BGW Control word Get/
140 0x8CDisable Protocols Get/
G/SENUM USINT Reaction to the I/O connection exceeding
Get/
set
Set
set
the time limit.
SWITCH IO FAULTED (0):
The channels are switched to substitute
value.
SWITCH IO OFF (1):
The outputs are switched to 0.
SWITCH IO HOLD (2):
No further changes to the I/O-data. The out-
puts are held.
DWORDActivates or deactivates the mapping of the
status word into the device's input data.
DWORDActivates or deactivates the mapping of the
control word into the device's output data.
UINTDeactivation of the used Ethernet protocol.
Bit assignment of protocols:
Bit 0 = EtherNet/IP™ (can not be
deactivated via the EtherNet/IP™ interface)
Bit 1 = Modbus TCP
Bit 2 = PROFINET
Bit 11…bit 14 = reserved
Bit 15 = Web server
70
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 77
Object instance 4, COS/CYCLIC instance
Attr. No.Attribute nameGet/ Set TypeDescription
Dec.Hex.
104 0x68COS data
mapping
SENUM USINT The actual data are loaded to the non-
G/
volatile memory of the device.
Changes become valid after a start-up.
0 = standard: Data of COS message
input data.
1 = process input data (only the process
data input image is transferred to scanner)
2…7: reserved
2018/03
71
Page 78
Commissioning
COM Class (VSC 139)
This class contains 2 object instances, one for COM0 and one for COM1.
NOTE
The chapters Configuring and Parameterizing and Operating contain detailed information concerning parameters or process data and diagnostics.
The chapter Operating contains further information about the transmit and receive
sequence (s. p. 141).
Attr. No.Attribute nameGet/
TypeDescription
Set
Dec.Hex.
Parameters
1 0x01Operation mode G/SUSINTOperation mode of the COM0 or COM1
4 0x04Character formatG/SUSINTDefines the parity and the number of
bits per sign.
0 = 7O
1 = 7E
2 = 8N
3 = 8O
4 = 8E
N: no parity
O: odd parity (1 bit error detection)
E: even (1 bit error detection)
5 0x05Stop bitsG/SUSINTDefines the number of stop bits.
0 = 1 bit
1 = 2 bit
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 79
Attr. No.Attribute nameGet/
TypeDescription
Set
Dec.Hex.
6 0x06EOF detectionG/SUSINT0 = character timeout
1 = 1 end delimiter
2 = 2 end delimiter
3 = framelength
7 0x07Termination activeG/SUSINT0 = yes
1 = no
8 0x08Biasing activeG/SUSINT0 = yes
1 = no
9 0x09Power supply VAUX1G/SUSINT0 = 0 V (High-Z)
1 = V1(24 VDC)
2 = +5 VDC
10 0x0ACharacter timeoutG/SINT Character timeout in ms
11 0x0Bresponse timeoutG/SINTResponse timeout in ms
12 0x0C1st end delimiterG/SUSINTdefault: 3
13 0x0D2nd end delimiterG/SUSINT
Is only interpreted if the parameter "EOF
detection" is set to 1 end delimiter or 2
end delimiter.
14 0x0EMB-Server cycle time
(* 1 ms)
Diagnostics
15 0x0FHardware errorGUSINT1 = error
16 0x10
17 0x11Overcurrent supply
18 0x12Error MB-server 0GUSINT
19 0x13Error MB-server 1GUSINT
20 0x14Error MB-server 2GUSINT
21 0x15Error MB-server 3GUSINT
22 0x16Error MB-server 4GUSINT
23 0x17Error MB-server 5GUSINT
24 0x18Error MB-server 6GUSINT
25 0x19Error MB-server 7GUSINT
Status bits
26 0x1ATransmitter readyGUSINT0 = FALSE
Parameterization errorGUSINT
VAUX1
G/SINTdefault:
0 = best update time possible
GUSINT
1 = TRUE
2018/03
27
0x1BReceive completeGUSINTThe bit is set to TRUE after a message
was sent. The bit remains TRUE until the
bit "Receive" is set to FALSE.
73
Page 80
Commissioning
Attr. No.Attribute nameGet/
TypeDescription
Set
Dec.Hex.
28 0x1CFrame errorGUSINT1 = er8 × Baror
29 0x1DParity/format errorGUSINT1 = error
30 0x1EBuffer overflowGUSINT1 = buffer overflow during receive
sequence
31 0x1FTimeoutGUSINT1 = response timeout
This bit is only used in case of a response
time set to > 0.
32 0x20Invalid TX lengthGUSINT1 = error
33 0x21Invalid RX lengthGUSINT1 = error
34 0x22Received frame lengthGUSINTThis byte contains the length of the last
message received.
35 0x23MB-Server cycle time
(* 1 ms)
36 0x24TransmitGUSINT1 = transmit sequence started
37 0x25ReceiveGUSINT1 = receive sequence started
GUINTUpdate time [ms] with which the Mod-
bus RTU-Client requests data from all
connected Modbus RTU-Servers.
38 0x26Transmitter frame length GUSINTNumber of the characters to be send in
bytes
39 0x27Receiver frame lengthGUSINTNumber of the characters to be received
within the next message.
74
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 81
RS Data/SCB Class (VSC 140)
This class contains 2 object instances, one for COM0 and one for COM1.
NOTE
The chapters Conf
tion concerning parameters or process data and diagnostics.
iguring and Parameterizing and Operating contain detailed informa-
Attr. no.Attribute
name
Dec.Hex.Value
1 0x01Server
address
2 0x02Number reg./
server read
access
3 0x03Number reg./
server write
access
4 0x04Read accessG/SUSINT0 deactivated
Get/
TypeDescription
Set
G/SUSINT0…
255
G/SUSINT0…
12
G/SUSINT0…
12
3read holding registers (FC3)
4read input registers (FC4)
23read/write multiple registers (FC23)
Address of the connected Modbus RTU Servers
or
Start address of the first connected Modbus RTU
Server
default: 0x01
Number of registers to be read
or
Number of servers from which data have to be
read
Number of registers to be written
or
Number of servers to which data have to be written
128Write extension
151 Multi server mode: read 1 holding registers (FC3)
132Multi server mode: read 1 input register (FC 4)
151Multi server mode: read/write 1 register (FC 23)
163Multi server mode: read 2 holding registers (FC3)
164Multi server mode: read 2 input register (FC 4)
183Multi server mode: read/write 2 register (FC 23)
195Multi server mode: read 3 holding registers (FC3)
40x04Read accessG/SUSINT196Multi server mode: read 3 input register (FC 4)
215Multi server mode: read/write 3 register (FC 23)
227Multi server mode: read 4 holding registers (FC3)
228Multi server mode: read 4 input register (FC 4)
247Multi server mode: read/write 4 register (FC 23)
2018/03
75
Page 82
Commissioning
Attr. no.Attribute
name
Dec.Hex.Value
5 0x05Write access G/SUSINT0 deactivated
Get/
TypeDescription
Set
6write single register (FC6)
16write multiple registers (FC16)
23read/write multiple registers (FC23)
128write extension
134Multi server mode: write single register (FC6)
144Multi server mode: write 1 registers (FC16)
151Multi server mode: read/write 1 register (FC 23)
176Multi server mode: write 2 registers (FC16)
183Multi server mode: read/write 2 register (FC 23)
208Multi server mode: write 3 registers (FC16)
215Multi server mode: read/write 3 register (FC 23)
240Multi server mode: write 4 registers (FC16)
6 0x06Start address
for Read
access
7 0x07Start address
for Write
access
G/SUINT0…
G/SUINT0…
247Multi server mode: read/write 4 register (FC 23)
Address of the 1st register from which data have
65535
65535
to be read
Address of the 1st register to which data have to
be written
76
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 83
Attr. no.Attribute
name
Dec.Hex.Value
Get/
TypeDescription
Set
8 0x08Input register
0
9 0x09Input register
1
10 0x0AInput register
2
11 0x0BInput register
3
12 0x0CInput register
4
13 0x0DInput register
5
14 0x0EInput register
6
15 0x0FInput register
7
16 0x10Input register
8
17 0x11Input register
9
GUINTInput data of the connected serial device (s. p. 131) or the
Modbus-Server, 1 or 12 register(s) per server (s. p. 135).
18 0x12Input register
10
19 0x13Input register
11
20 0x14Output regis-
ter 0
21 0x15Output regis-
ter 1
22 0x16Output regis-
ter 2
23 0x17Output regis-
ter 3
24 0x18Output regis-
ter 4
25 0x19Output regis-
ter 5
26 0x1AOutput regis-
ter 6
27 0x1BOutput regis-
ter 7
GUINTOutput data of the connected serial device (s.
p. 139) or
the Modbus-Server, 1 or 12 register(s) per server (s. p.
140
).
2018/03
77
Page 84
Commissioning
Attr. no.Attribute
name
Dec.Hex.Value
28 0x1COutput regis-
ter 8
29 0x1DOutput regis-
ter 9
30 0x1EOutput regis-
ter 10
31 0x1FOutput regis-
ter 11
MB-Server Timing Class (VSC 141)
NOTE
The chapter Operating contains more detailed information concerning the process data.
Attr. no.
dec.
(hex.)
Attribute nameGet/ Set TypeDescription
Get/
TypeDescription
Set
GUINT
1 (0x01)COM0 – MB-Server Timing,
server 0
2 (0x02)COM1 – MB-Server Timing,
server 0
3 (0x03)COM0 – MB-Server Timing,
server 1
4 (0x04)COM1 – MB-Server Timing,
server 1
……
15 (0x0F)COM0 – MB-Server Timing,
server 7
16 (0x010)COM1 – MB-Server Timing,
server 7
GUINTUpdate time [ms] of the connected
Modbus RTU-Servers at COM0 or
COM1.
GUINT
GUINT
GUINT
GUINT
GUINT
78
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 85
DXP Class (VSC 142)
NOTE
The chapters Conf
tion concerning parameters or process data and diagnostics.
Attr. no.Attribute nameGet/ Set TypeDescription
Dec.Hex.
Parameters
1 0x01DXP4 – Manual reset after overcurr. G/SUSINT0 = no
2 0x02DXP5 – Manual reset after overcurr. G/SUSINT0 = no
3 0x03DXP6 – Manual reset after overcurr. G/SUSINT0 = no
4 0x04DXP7 – Manual reset after overcurr. G/SUSINT0 = no
5 0x05DXP4 – Activate outputG/SUSINT0 = no
iguring and Parameterizing and Operating contain detailed informa-
1 = yes
1 = yes
1 = yes
1 = yes
1 = yes
6 0x06DXP5 – Activate outputG/SUSINT0 = no
1 = yes
7 0x07DXP6 – Activate output G/SUSINT0 = no
1 = yes
8 0x08DXP7 – Activate outputG/SUSINT0 = no
1 = yes
Status
9 0x09Overcurrent VAUX2 Ch4/Ch5GUSINTOvercurrent at the
10 0x0AOvercurrent VAUX2 Ch6/Ch7GUSINT
11 0x0BDXP4 – overcurrent output GUSINT
12 0x0CDXP5 – overcurrent outputGUSINT
13 0x0DDXP6 – overcurrent output GUSINT
140x0EDXP7 – overcurrent output GUSINT
150x0FDXP4 – Input value GUSINT1 = input signal at
160x10DXP5 – Input valueGUSINT
170x11DXP6 – Input valueGUSINT
supply voltage at C2
(channel 4/5) or C3
(channel 6/7)
DXP channel
2018/03
180x12DXP7 – Input valueGUSINT
190x13Output valueGBYTE0 = DXP4
1 = DXP5
2 = DXP6
3 = DXP7
79
Page 86
Commissioning
7.4.10Extended DXP Functions Class (VSC 164)
This class provides four instances, one per DXP-channel.
NOTE
The chapter Configuring and Parameterizing contains more detailed information concerning the parameters.
Attr. no.Attribute nameGet/
TypeDescription
Set
Dec.Hex.
10x01Extended
digital function
2 0x02Input filterG/SUSINT0 = 0,2 ms
3 0x03Impulse stretch
(* 10 ms)
G/SUSINT0 = deactivated
1 = input filter and pulse stretch
1 = 3 ms
G/SUSINT0…254
80
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 87
7.5Connecting the device to an EtherNet/IP™ PLC
7.5.1Used Hardware
The following hardware components are used in this example:
Rockwell PLC ControlLogix 1756-L72
Rockwell Scanner 1756-EN2TR
Block module TBEN-S2-2COM-4DXP
8 × Banner K50TGRYS1QP at COM 0 as Modbus server
7.5.2Used Software
The following software tools are used in this example:
Rockwell RS Logix
EDS file for TBEN-S2-2COM-4DXP (can be downloaded for free under ww.turck.com).
7.5.3Prerequisites
The programming software has been started.
A new project has been created with the PLC and the Scanner mentioned above.
The PLC has been added to the project.
2018/03
81
Page 88
Commissioning
7.5.4Installing the EDS-file
The EDS-file can be downloaded for free from www.turck.com .
Adding the EDS-file: Click "Tools" "EDS Hardware Installation Tool”
Fig. 37: Opening the "EDS Hardware Installation Tool”
The installation assistant guides you through the installation process.
82
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 89
7.5.5Connecting the device to the PLC
Right-click "I/O Configuration" "Ethernet".
Select "New Module"
Fig. 38: Adding a new module
Select Turck under "Module Type Vendor Files".
Select TBEN-S2-2COM-4DXP.
2018/03
83
Page 90
Commissioning
Confirm the selection with "Create".
Fig. 39: Select TBEN-S2-2COM-4DXP.
Assign a module name.
Set the IP address of the device (example: 192.168.1.10).
84
Fig. 40: Setting 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 91
Set the Integer data format for in- and output data: Click "Change".
in the following dialog box select "INT".
Fig. 41: Setting the Integer data format for in- and output data
2018/03
85
Page 92
Commissioning
Optional: Setting the connection and the port configuration.
Fig. 42: Setting the connection parameters
86
Fig. 43: 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 93
The device is added to the project tree.
Fig. 44: TBEN-S2-2COM-4DXP in the project tree
2018/03
87
Page 94
Commissioning
7.5.6Going online with the PLC
Scan the network via the "who active"-button, select the PLC and set the communication path
via "Set Project Path".
Fig. 45: Setting the communication path
The communication path is set
88
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 95
Select the PLC.
Click "Go online".
Fig. 46: Going online with the device
Click "Download" In the following dialog (Connect To Go Online).
2018/03
Fig. 47: Clicking "Download"
Confirm all following messages.
89
Page 96
Commissioning
7.5.7Reading Process Data
Open the "Controller Tags" in the project tree by double-clicking the entry.
Fig. 48: "Controller Tags" in the project tree
The access to the parameter data (TBEN_S2_2COM_4DXP:C), input data
(TBEN_S2_2COM_4DXP:I1) and output data (TBEN_S2_2COM_4DXP:O1) is possible.
Example: Process input data – input signal at Modbus-Server 1 (COM0)
90
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 97
In the following example an input signal at Modbus-Server 1 (COM0) is pending. The process data
can be interpreted by means of the mapping (s. p. 60).
Fig. 49: Process input data – example
2018/03
91
Page 98
Commissioning
7.5.8Parameterizing Devices via Class Instance Attribute
Prerequisites
the software tool "RS_NetWorks for Ethernet/IP" runs.
Scanning the Network and Setting the Communication Path
Scan the network using the "Online" button.
Fig. 50: RS NetWorks – scanning the network
92
Fig. 51: RS NetWorks – setting the communication path
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Page 99
Right-click the TBEN-S2-2COM-4DXP and click "Class Instance Editor".
Fig. 52: RS NetWorks – opening the "Class Instance Editor"
Confirm the following dialog with "yes".
The Class Instance Editor is started.
Example: Parameterizing COM0 as "MB-Client RS485"
The description of the vendor specific classes can be found in chapter 7.4.9, VSC-Vendor Specific
Classes.
Parameters for the example parameterization:
Class: COM Class 139 (0x8B)
Instance:1 (for COM0)
Attribute: 0x01 = Operation mode
Value (data): 02 = MB Client 485
Select "Set Single Attribute" under "Service Code" for parameterizing
Define the parameter under "Object Address" by means of "Class – Instance – Attribute".
2018/03
93
Page 100
Commissioning
Enter the value to be written in "Data sent to the device" and confirm the setting with "Execute".
Fig. 53: RS NetWorks – parameterization via Class Instance Editor
The COM port COM0 is now set to "MB Client 485".
NOTE
Besides the parameterization using vendor specific classes (VSC) in RS NetWorks, the DTM
or the device internal web server are alternative options for parameterizing the devices
(example s. p. 109).
94
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.