TBEN-S2-2COM-4DXP: Compact I/O Module For Serial Data Transmission
TBEN-S2-2COM-4DXP: Compact I/O Module For Serial Data Transmission
TBEN-S2-2COM-4DXP
Compact I/O Module for
Serial Data Transmission
Instructions for Use
2 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Table of Contents
1 About these Instructions 1
4 Product Description 7
5 Mounting 11
2018/03 1
5.4 Grounding the Device 13
5.4.1 Grounding and Shielding Concept 13
5.4.2 Ground the Device (FE) 14
6 Connecting 15
7 Commissioning 21
2 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.5 Connecting the device to an EtherNet/IP™ PLC 81
7.5.1 Used Hardware 81
7.5.2 Used Software 81
7.5.3 Prerequisites 81
7.5.4 Installing the EDS-file 82
7.5.5 Connecting the device to the PLC 83
7.5.6 Going online with the PLC 88
7.5.7 Reading Process Data 90
7.5.8 Parameterizing Devices via Class Instance Attribute 92
9 Operating 129
2018/03 3
9.5.1 Evaluating Diagnostic Data – COM channel diagnostics 144
9.5.2 Evaluating Diagnostic Data – DXP Diagnostics 145
10 Troubleshooting 147
11 Maintenance 149
12 Repair 153
13 Disposal 155
15 Appendix 161
4 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
1 About these Instructions
These operating instructions describe the structure, functions and the use of the product and will
help you to operate the product as intended. Read these instructions carefully before using the
product. This is to avoid possible damage to persons, property or the device. Retain the instructions
for future use during the service life of the product. If the product is passed on, pass on these instruc-
tions as well.
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 fol-
lowing 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
2018/03 1
About these Instructions
2 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
2 Notes on the Product
Turck supports you with your projects, from initial analysis to the commissioning of your applica-
tion. The Turck product database contains software tools for programming, configuration or com-
missioning, data sheets and CAD files in numerous export formats. You can access the product data-
base at the following address:www.turck.en/products
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: www.turck.de
2018/03 3
Notes on the Product
4 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
3 For Your Safety
The product is designed according to state-of-the-art technology. However, residual risks still exist.
Observe the following warnings and safety notices to prevent damage to persons and property.
Turck accepts no liability for damage caused by failure to observe these warning and safety notices.
2018/03 5
For Your Safety
6 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
4 Product Description
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 sock-
ets are provided for the Ethernet connection. The supply voltage is also connected using two 4 pole
M8 connectors.
28 24 32
P1 C3 C2 C1 C0 X1
ø 4.6
32
17.9
P2 X2
132
144.3
Fig. 1: Dimensions
2018/03 7
Product Description
8 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
4.5 Functions and Operating Modes
2018/03 9
Product Description
10 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
5 Mounting
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.
1 1
2 2
3 3
4 4
Fig. 2: Build module groups four mounting the Fig. 3: Build module groups four mounting the
devices onto a mounting plate devices onto a DIN rail (TS35)
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 11
Mounting
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.
12 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
NOTE
To increase stability on the mounting rail, end brackets can be mounted on the left and
right side of the modules/module composites.
X1 X2
C0
C1
C2
C3
P1 P2
1
2
4
3
Fig. 7: Grounding clamp (1) Fig. 8: Grounding contact Fig. 9: Grounding of spacers
Grounding ring (2) and TBNN-S0-DRS
Metal screw (3)
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 connec-
tion 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 con-
nected 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.
2018/03 13
Mounting
14 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
6 Connecting
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).
v v
1 = TX + 1 = RX +
4 2 2 = RX + 4 2 2 = TX +
3 1 3 = RX – 3 1 3 = TX –
4 = TX – 4 = RX –
P1 P2
NOTE
Please observe the following for QuickConnect (QC)- and Fast Start-Up (FSU)-applications:
– do not use a crossover-cable
– ETH1 = connector for incoming Ethernet-line
– ETH2 = connector for outgoing Ethernet-line
2018/03 15
Connecting
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).
Connect the device to the voltage supply according to the pin assignment below.
Pin assignment
X1 Power feed
w v
1 BN = V1 (+) X2 Continuation of the power to the next node
2 4 2 WH = V2 (+) 4 2
1 3 3 BU = GND V1 3 1
V1 Power supply 1 (incl. supply of electronics)
4 BK = GND V2
X1 X2
V2 Power supply 2
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 | [email protected] | www.turck.com
6.2.1 Supply Concept
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
V1
V2
Fig. 17: M12 connector for connecting serial RS232 and RS485 devices
Connect the device to the voltage supply according to the pin assignment below.
Pin assignment
v v
2 1 = Vaux1 2 1 = Vaux1
2 = TXD 2 = TX/RX+
1 3 3 = GND V1 1 3 3 = GND V1
4 = RXD 4 = TX/RX–
5 4 5 = FE 5 4 5 = FE
C0...C1 C0...C1
2018/03 17
Connecting
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 ter-
mination 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 | [email protected] | www.turck.com
6.4 Connecting 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 = Vaux2
2 = DXP
1 3 3 = GND V2
4 = DXP
5 4 5 = FE
C2...C3
DXP4 (Ch4) C2 4
DXP5 (Ch5) C2 2
DXP6 (Ch6) C3 4
DXP7 (Ch7) C3 2
2018/03 19
Connecting
20 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7 Commissioning
The module automatically starts after the electrical wiring and connecting the supply voltage.
2018/03 21
Commissioning
NOTE
Clicking the IP address of the TBEN-S2-2COM-4DXP opens the device's web server.
22 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.2 Commissioning the Device in PROFINET
GSDML-file Zip-file
GSDML-V2.3-Turck-TBEN_S2_2COM_4DXP-YYYYMMDD-xxxxxx.xml TBEN-S_PROFINET.zip
2018/03 23
Commissioning
10 COM channel 1 Slot 10 defines the function of – RS232 simple (s. p. 27)
the second COM port (COM1). – 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)
11 -18 Buffer/server channel 1 Slots 11 to 18 are used to config- – RS Data 24Byte IN/24Byte OUT
ure the data buffer for the in- and (s. p. 31)
output data or to configure – MB-Server 1 Reg. IN/1 Reg. OUT
server connected via Modbus – (s. p. 32)
RTU. The settings relate to COM1. – MB-Server 12 Reg. IN/12 Reg. OUT
(s. p. 33)
19 COM diagnostics Slot 19 is used to map the cyclic COM diagnostics (s. p. 34)
diagnostic data.
24 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Slot-no. Name Description Pluggable devices
20 MB-Server Status Slot 20 is used to cyclically map MB-Server Status (s. p. 35)
the status data of connected
Modbus RTU server.
21 MB-Server Timing Slot 21 can be used to cyclically MB-Server Timing (s. p. 37)
map timing data of connected
Modbus RTU server.
23 DXP diagnostics Slot 22 is used to map the cyclic DXP diagnostics (s. p. 38)
diagnostic data for the DXP
channels.
24…27 Ext. DXP functions 4…7 Slots 24…27 are used to config- DIF pulses (s. p. 38)
ured the input filter times and
the pulse stretching for the digi-
tal input channels 4…7.
28 Module status Slot 28 is used to cyclically map Module status (s. p. 39)
module status data.
2018/03 25
Commissioning
PROFINET IO
Features Description
Conformance Class B
Parameters
Deactivate load volt- 0 no Deactivates the under voltage diagnostics for V2.
age diagnostics
1 yes
1 yes
Process data
This sub module has no process data.
26 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
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 detection Character time- The character timeout defines the duration of time within
out which another character must be received after receiving a
character. Exceeding this time is interpreted as the end of the
data packet.
Character timeout 100 Character timeout in ms.
Response timeout 0 No timeout
2018/03 27
Commissioning
28 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
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
2018/03 29
Commissioning
30 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Process output data (s. p. 138)
… … … …
… … … …
2018/03 31
Commissioning
Reserved - not used for the Modbus RTU Client function %IB0…%IB3 USINT
Reserved - not used for the Modbus RTU Client function %IB0…%IB3 USINT
32 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
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)
Input register 0 %IW0 UINT First input register of the Modbus server
… … … …
Input register 11 %IW011 UINT Last input register of the Modbus server
Output register 0 %QW0 UINT First output register of the Modbus server
… … … …
Output register 11 %QW11 UINT Last output register of the Modbus server
2018/03 33
Commissioning
… … …
… … …
34 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Sub module "MB-Server Status"
The sub module Sub module "MB-Server Status" can be plugged into slot 20. This sub module cycli-
cally provides status data for the connected Modbus RTU servers.
Parameters
This sub module requires no configuration and has thus no parameters.
Process input data (s. p. 134)
… … …
2018/03 35
Commissioning
… … …
NOTE
Description of the Modbus Exceptions Codes
http://www.modbus.org/docs/Modbus_Application_Protocol_V1_1b.pdf.
36 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Sub module "MB-Server Timing"
The sub module Sub module "MB-Server Timing" can be plugged into slot 21. This sub module cycli-
cally 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)
… … …
… … …
2018/03 37
Commissioning
38 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
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)
2018/03 39
Commissioning
Undervoltage
40 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.2.6 Description of the User Data for Acyclic Services
The acyclic data exchange is done via Record Data CRs (CR Communication Relation)
Via these Record Data CRs the reading and writing of the following services is realized:
Writing of AR data
Writing of configuration data
Reading and writing of device data
Reading of diagnostic data
Reading of I/O data
Reading of Identification Data Objects (I&M functions)
Dec. Hex.
1 0x01 Module parameters WORD r/w Parameter data of the module (slot 0)
5 0x05 Module name STRING r The device name assigned to the mod-
ule
32 0x20 Input list Array of byte r List of all input channels in the module
33 0x21 Output list Array of BYTE r List of all output channels in the module
45041 0xAFF1 I&M1-functions STRING r/w I&M tag Function and location
[54]
2018/03 41
Commissioning
Dec. Hex.
45042 0xAFF2 I&M2-functions STRING r/w I&M tag Function and location
[16]
28672 0x7000 Module parameters WORD r/w Activate active field bus protocol
Dec. Hex.
… … reserved
42 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.3 Connecting 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.3 Prerequisites
The programming software has been started.
A new project has been created.
The PLC has been added to the project.
2018/03 43
Commissioning
Installing the GSDML-file: Define the source path for the GSDML-file.
Select the GSDML-file to be installed and click "Install".
44 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.3.5 Configuring 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 module functions as well as the possible configura-
tion options are described under PROFINET IO Device Model, page 24 and Structure of
the TBEN-S2-2COM-4DXP, page 24.
2018/03 45
Commissioning
46 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.3.7 Assigning PROFINET device name
Select "Online access" … "Online & diagnostics".
Select "Functions" „Assign name”.
Enter the desired PROFINET device name for the device.
2018/03 47
Commissioning
48 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.3.9 Going online with the PLC
Start the online mode (Go online).
2018/03 49
Commissioning
50 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.4 Commissioning the Device in EtherNet/IP™
Features Description
7.4.1 EDS-file
The actual EDS-files for TBEN-S can be downloaded from the TURCK home page www.turck.com.
EDS-file ZIP-file
TBEN-S2-2COM-4DXP_Rx.x.eds TBEN-S_ETHERNETIP.zip
NOTE
Activating QuickConnect also activated the automatic setting of all necessary port-properties:
Autonegotiation = deactivated
Transmission speed = 100BaseT
Duplex = Full duplex
Topology = linear
AutoMDIX = deactivated
2018/03 51
Commissioning
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 in TBEN-S
Turck TBEN-S devices support QuickConnect.
QuickConnect can be activated via the EDS-file of the device, the Assembly Class, Class Instance Attri-
bute or the web server.
EDS-fileAssembly Class 0x04, Configuration Assembly 106, Bit 9 = 1 (see s. p. 57)
Web server
QuickConnect can also be activated or deactivated using the device's web server.
52 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.4.3 Diagnostic 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).
Control word
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
Commissioning
Dec. Hex.
Dec. Hex.
Instance attributes
3 0x06 PRODUCT CODE G UINT Identifier for a specific product of a device type.
default: 27247dec = 6A6F
4 0x04 REVISION G STRUCT Revision of the item the Identity Object is repre-
OF: USINT senting.
Major Minor USINT 0x01
0x06
6 0x06 SERIAL NUMBER G UDINT Contains the ident-no. of the product (3 last
bytes of the MAC-ID).
54 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Attr. No. Attribute name Get/ Type Description
Set
Dec. Hex.
LENGTH USINT
NAME STRING
[13]
Device Status
2 Configured TRUE = 1
The application of the device has been configured ( default-
settings).
3 reserved default = 0
Common services
Dec. Hex.
16 0x10 no no Set_Attribute_Single
Modifies a single attribute.
2018/03 55
Commissioning
Dec. Hex.
Instance attributes
Common services
Dec. Hex.
56 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Configuration Assembly (Instance 106)
The modules support Configuration Assembly. It enables an EDS-based configuration/parameter-
ization of the devices in the PLC software (if supported by the PLC).
The Configuration Assembly contains:
10 bytes device configuration data (EtherNet/IP™-specific)
+ 218 bytes (parameter data)
Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Dec. Hex.
Device configuration data, see Device configuration data, page 59
0…9 0x00… Eth 2 Eth 1 QuickCon-
-
0x09 Port Setup Port Setup nect
Parameter data
COM0
Setting Parameters, page 117
10 0x0A - Operation mode
11 0x0B Swap A/B
-
line
12 0x0C - Data rate
13 0x0D - Character format
14 0x0E - Stop bits
15 0x0F - EOF detection
16 0x10 Termination
-
active
17 0x11 Biasing
-
active
18 0x12 - Power supply VAUX1
19 0x13 -
20 0x14
Character timeout
21 0x15
22 0x16
Response timeout
23 0x17
24 0x18 1st end delimiter
25 0x19 2nd end delimiter
26 0x20
MB-Server cycle time (*1ms)
27 0x1B
COM 0 – SCB 0.0
Setting Parameters – COM0/COM1, page 117
28 0x1C Server address
29 0x1D - Number reg./server write access
30 0x1E - Number reg./ server read access
31 0x1F Read access
32 0x20 Write access
33 0x21 -
34 0x22
Start address for read access
35 0x23
36 0x24
Start address for write access
37 0x25
38 to 47 0x26 to COM 0 – SCB 0.1
0x2F Assignment (similar to byte 29 to 37)
…
98 to 107 0x62 to COM 0 – SCB 0.7
0x6B Assignment (similar to byte 29 to 37)
2018/03 57
Commissioning
58 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Device configuration data
Default values are marked in bold.
QuickConnect 0 = deactivated
2018/03 59
Commissioning
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.
IN Word 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
Offset
Status 0 Module status
word (s. p. 136)
Input 1 Process input data
data (s. p. 129)
OUT 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
Control 0
(without function)
word
Output 1 Process output data
data (s. p. 137)
60 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.4.6 Connection Manager Object (0x06)
This object is used for connection and connectionless communications, including establishing con-
nections 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
Dec. Hex.
2018/03 61
Commissioning
Dec. Hex.
Instance attributes
62 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Common services
Dec. Hex.
02 0x02 no no Set_Attribute_All
Interface Status
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.
0-3 Interface Configuration Sta- Indicates the status of the Interface Configuration attribute:
tus 0 = The Interface Configuration attribute has not been configured
1 = The Interface Configuration attribute contains valid configura-
tion.
2…15 = reserved
4…31 reserved
Configuration Capability
The Configuration Capability indicates the device’s support for optional network configuration
capability.
2018/03 63
Commissioning
Configuration Control
The Configuration Control attribute is used to control network configuration options.
0-3 Startup- Determines how the device shall obtain its initial configuration.
Configuration 0 = The device shall use the interface configuration values previ-
ously stored (for example, in non-volatile memory or via hardware-
switches, etc).
1…3 = reserved
Interface Configuration
This attribute contains the configuration parameters required to operate as a TCP/IP node. To mod-
ify 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 compo-
nents 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 configu-
ration 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 | [email protected] | www.turck.com
The mechanism allows the DHCP client to transmit its host name to the DHCP server. The DHCP
server then updates the DNS records on behalf of the client.
Non-existent
Waiting
for
configuration
Set_Attributes BOOTP/DHCP
request received response received
Applying
Status = configuration
0×00000000
Configuration applied
Change interface
TCP/IP network
configuration interface configured
Status = 0×00000001
Fig. 36: TCP/IP object state diagram (acc. to CIP Spec., Vol.2, Rev. 1.1)
2018/03 65
Commissioning
Dec. Hex.
Instance attributes
10 0x0A INTERFACE
LABEL
Interface flags
0 Link Status Indicates whether or not the Ethernet communi- Depends on applica-
cations interface is connected to an active net- tion
work.
0 = inactive link
1 = active link
66 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Bit Name Definition Default value
Common services
Dec. Hex.
2018/03 67
Commissioning
Dec. Hex.
100 0x64 Gateway Class, s. p. 69 Data and parameters for the field bus specific
part of the device.
139 0x8B COM Class s. p. 72 Data and parameters for the COM ports of the
device.
140 0x8C RS Data/SCB Class s. p. 75 Data of the connected serial devices, data and
parameters for the connected Modbus servers.
141 0x8D MB-Server Timing Timing data for connected Modbus servers.
142 0x8E DXP Class Data and parameters for the DXP channels of the
device.
164 0xA4 Ext. DXP Functions Class Parameters for the extended digital functions of
the DXP channels.
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.
100 0x64 Class revision G UINT Contains the revision number of the
class
(maj. rel. *1000 + min. rel.).
101 0x65 Max. instance G USINT Contains the number of the highest
instance of an object created on this
level in the class hierarchy.
103 0x67 Max. class attribute G USINT Contains the number of the last class
attribute to be implemented.
68 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
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 of the VSCs, page 68 for the description of the class
instance for the VSC.
100 0x64 Max object attribute G USINT Contains the number of the last object
attribute to be implemented.
101 0x65 Hardware revision G STRUCT Contains the hardware revision number
of the module (USINT Maj./USINT Min.).
102 0x66 Firmware revision G STRUCT Contains the revision number of the
boot firmware (Maj./Min.).
103 0x67 Service tool ident G UDINT Contains the BOOT ID number that
number serves as an identification number for
the DTM-software.
2018/03 69
Commissioning
109 0x6D Status word G STRUCT The Status Word contains general module
(Status register 2) 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 diagnos-
tics.
115 0x73 ON IO G/S ENUM USINT Reaction to the I/O connection exceeding
CONNECTION the time limit.
TIMEOUT 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.
138 0x8A GW Status Get/ DWORD Activates or deactivates the mapping of the
Word set status word into the device's input data.
139 0x8B GW Control word Get/ DWORD Activates or deactivates the mapping of the
Set control word into the device's output data.
140 0x8C Disable Protocols Get/ UINT Deactivation of the used Ethernet protocol.
set 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 | [email protected] | www.turck.com
Object instance 4, COS/CYCLIC instance
Dec. Hex.
104 0x68 COS data G/S ENUM USINT The actual data are loaded to the non-
mapping 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 scan-
ner)
2…7: reserved
2018/03 71
Commissioning
NOTE
The chapters Configuring and Parameterizing and Operating contain detailed informa-
tion concerning parameters or process data and diagnostics.
The chapter Operating contains further information about the transmit and receive
sequence (s. p. 141).
Parameters
1 0x01 Operation mode G/S USINT Operation mode of the COM0 or COM1
channel:
0 = RS485
1 = RS232
2 = MB-Client RS485
3 = MB-Client RS232
2 0x02 Swap A/B line G/S USINT Changes the outputs polarity of the A/B
tauschen lines and switches the bias-level.
0 = no (A = pin 2, B = pin 4)
1 = yes (A = pin 4, B = pin 2)
3 0x03 Data rate G/S USINT Data rate of the serial interface
0…3 = reserved
4 = 2400 bps
5 = 4800 bps
6 = 9600 bps
7 = 14400 bps
8 = 19200 bps
9 = 28800 bps
10 = 38400 bps
11 = 57600 bps
12 = 115200 bps
13 = 230400 bps
4 0x04 Character format G/S USINT Defines 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 0x05 Stop bits G/S USINT Defines the number of stop bits.
0 = 1 bit
1 = 2 bit
72 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Attr. No. Attribute name Get/ Type Description
Set
Dec. Hex.
Diagnostics
Status bits
27 0x1B Receive complete G USINT The bit is set to TRUE after a message
was sent. The bit remains TRUE until the
bit "Receive" is set to FALSE.
2018/03 73
Commissioning
34 0x22 Received frame length G USINT This byte contains the length of the last
message received.
35 0x23 MB-Server cycle time G UINT Update time [ms] with which the Mod-
(* 1 ms) bus RTU-Client requests data from all
connected Modbus RTU-Servers.
74 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
RS Data/SCB Class (VSC 140)
This class contains 2 object instances, one for COM0 and one for COM1.
NOTE
The chapters Configuring and Parameterizing and Operating contain detailed informa-
tion concerning parameters or process data and diagnostics.
1 0x01 Server G/S USINT 0… Address of the connected Modbus RTU Servers
address 255 or
Start address of the first connected Modbus RTU
Server
default: 0x01
4 0x04 Read access G/S USINT 196 Multi server mode: read 3 input register (FC 4)
2018/03 75
Commissioning
6 0x06 Start address G/S UINT 0… Address of the 1st register from which data have
for Read 65535 to be read
access
7 0x07 Start address G/S UINT 0… Address of the 1st register to which data have to
for Write 65535 be written
access
76 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Attr. no. Attribute Get/ Type Description
name Set
Dec. Hex. Value
8 0x08 Input register G UINT Input data of the connected serial device (s. p. 131) or the
0 Modbus-Server, 1 or 12 register(s) per server (s. p. 135).
20 0x14 Output regis- G UINT Output data of the connected serial device (s. p. 139) or
ter 0 the Modbus-Server, 1 or 12 register(s) per server (s. p.
140).
21 0x15 Output regis-
ter 1
2018/03 77
Commissioning
NOTE
The chapter Operating contains more detailed information concerning the process data.
1 (0x01) COM0 – MB-Server Timing, G UINT Update time [ms] of the connected
server 0 Modbus RTU-Servers at COM0 or
COM1.
2 (0x02) COM1 – MB-Server Timing, G UINT
server 0
… …
78 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
DXP Class (VSC 142)
NOTE
The chapters Configuring and Parameterizing and Operating contain detailed informa-
tion concerning parameters or process data and diagnostics.
Dec. Hex.
Parame-
ters
Status
2018/03 79
Commissioning
NOTE
The chapter Configuring and Parameterizing contains more detailed information con-
cerning the parameters.
80 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.5 Connecting the device to an EtherNet/IP™ PLC
7.5.3 Prerequisites
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
Commissioning
82 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.5.5 Connecting the device to the PLC
Right-click "I/O Configuration" "Ethernet".
Select "New Module"
2018/03 83
Commissioning
84 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
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
Commissioning
86 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
The device is added to the project tree.
2018/03 87
Commissioning
88 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Select the PLC.
Click "Go online".
2018/03 89
Commissioning
90 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
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).
2018/03 91
Commissioning
Prerequisites
the software tool "RS_NetWorks for Ethernet/IP" runs.
92 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Right-click the TBEN-S2-2COM-4DXP and click "Class Instance Editor".
2018/03 93
Commissioning
Enter the value to be written in "Data sent to the device" and confirm the setting with "Execute".
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 | [email protected] | www.turck.com
7.6 Commissioning the Device in Modbus TCP
Function codes
Hex.
0x0000…0x01FF ro Process data of the inputs incl. diagnostics and module status
(identical to registers 0x8000…0x8FFF)
2018/03 95
Commissioning
Hex.
0x8000…0x8FFF ro Process data of the inputs incl. diagnostics and module status
(identical to registers 0x0000…0x01FF)
0xA000…0xAFFF ro Diagnostics
0xB000…0xBFFF rw Parameters
96 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
The following table shows the register mapping for the different Modbus addressing methods:
Adressierungen:
2018/03 97
Commissioning
Bit Name
Description
0 MB_OnlyOneWritePermission
1 MB_ImmediateWritePermission
– 0: With the first write access, a write authorization for the respective Modbus-connection is
requested. If this request fails, an exception response with exception-code 0x01 is generated. If the
request is accepted, the write access is executed and the write authorization remains active until
the connection is closed.
– 1: The write authorization for the respective Modbus-connection is already opened during the con-
nection establishment. The first Modbus-connection thus receives the write authorization, all fol-
lowing connections don’t (only if bit 0 = 1).
2… reserved
15
98 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Register 0x113E and 0x113F: Save Modbus-Connection-Parameters
Registers 0x113E and 0x113F are used for the non-volatile saving of parameters in registers 0x1120
and 0x1130 to 0x113B.
Follow the following steps in order to store the parameters:
Write 0x7361 to register 0×113E.
To activate the reset of the registers, write 0x7665 ("save") within 30 seconds in register 0x113F.
Both registers can also be written with one single request using the function codes FC16 and FC23.
NOTE
Setting the outputs to predefined substitute values is not possible in Modbus TCP. Even-
tually parameterized substitute values will not be used.
2018/03 99
Commissioning
100 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.7 Connecting the Device to a Modbus TCP Master
7.7.3 Prerequisites
The programming software has been started.
A new project has been created.
The PLC has been added to the project.
2018/03 101
Commissioning
102 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Click "Add Device".
2018/03 103
Commissioning
104 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Adding a Modbus Slave
Right-click the "Modbus TCP Master" in the project tree.
Select "Add Device".
Double-click the Modbus TCP Slave.
2018/03 105
Commissioning
If necessary adapt the slave name in the project tree to the application
(here: TBEN_S2_2COM_4DXP).
106 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Configuring the Network Interfaces
Double-click the "Device (TX507-P3CV01)".
Click "Scan Network".
Select „Device TCP-Master (here: TX507-P3CV01) and confirm with OK.
2018/03 107
Commissioning
Double-click "Ethernet".
Open the dialog box "Network Adapters" by clicking the "…" button in the register tab "General".
Select the IP address of the Modbus TCP Master (here: 192.168.1.15).
108 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.7.5 Parameterizing the Device
The parameterization of the device can be done via Modbus by means of a Modbus Slave Init chan-
nel, via the Turck DTM or via the device's web server.
We recommend the parameterization via the DTM or the web server.
2018/03 109
Commissioning
110 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Set the following parameters for the connection to the Modbus RTU-Servers under "RS Data/
SCB0.x".
NOTE
The number of the registers to be read/written ("Number reg. read/write access") as well
as the start addresses for the read/write access ("Start address for read/write access")
depend on the application and the register mapping of the connected Modbus-Servers
(here: Banner K50TGRYS1QP).
2018/03 111
Commissioning
The process data of the connected Modbus-Servers can be read or set in the respective entry
under "RS Data/SCB0.x".
Fig. 65: Modbus-Server – input signal at the first RTU-Server (RS Data/SCB0.0)
112 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.7.7 Reading Process Data in CODESYS
NOTE
The table under Register mapping TBEN-S2-2COM-4DXP, page 100 shows the Modbus
register mapping for the device.
The chapter Operating contains more detailed information concerning the parameters
Transmit and Receive Data, page 141.
2018/03 113
Commissioning
114 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.7.8 Going online with the PLC
Select the device.
Click Online Login.
2018/03 115
Commissioning
116 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8 Configuring and Parameterizing
2018/03 117
Configuring and Parameterizing
Dec. Hex.
Swap A/B line Changes the outputs polarity of the A/B lines and switches the bias-level.
Data rate 0…3 0x0 … reserved Data rate of the serial interface
0x3
4 0x4 2400
Character for- 0 0x00 7O Defines the parity and the number of bits
mat per sign.
1 0x01 7E – N: no parity
– O: odd parity (1 bit error detection)
2 0x02 8N
– E: even (1 bit error detection)
3 0x03 8O
4 0x04 8E
1 0x01 2 bit
118 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Parameters Value Description
Dec. Hex.
EOF detection 0 0x00 Character timeout – Character timeout: The character timeout
defines the duration of time within which
1 0x01 1 end delimiter another character must be received after
receiving a character. Exceeding this time
2 0x02 2 end delimiter
is interpreted as the end of the data
3 0x03 frame length packet.
– 1 end delimiter:
The end of the frame is detected, as soon
as the end delimiter was received.
– 2 end delimiter:
The end of the frame is detected, as soon
as the 2 end delimiters were received.
– Framelength: The end of the frame is
detected, as soon as the defined frame-
length was received.
Power supply 00 0x00 0 V (High-Z) Defines the voltage level at pin 1 referred
VAUX1 to GND at pin 3.
01 0x01 V1 (24 VDC)
10 0x02 +5 VDC
1st end 0…255 0x00 default: 0x03 Defines the 1st end delimiter for the end-
delimiter …0xFF of-frame detection. Is only interpreted if
the parameter "EOF detection" is set to 1
end delimiter or 2 end delimiter.
2nd end 0…255 0x00 default: 0 Defines the 2nd end delimiter for the end-
delimiter … of-frame detection. Is only evaluated if the
0xFF parameter "EOF detection" is set to 2 end
delimiters.
2018/03 119
Configuring and Parameterizing
Dec. Hex.
120 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.1.2 Setting Parameters – Server Configuration Block (SCB)
Byte Bit
7 6 5 4 3 2 1 0
n Server address
n+1 Number reg. read access Number reg. write access
n+2 Read access
n+3 Write access
n+4
Start address for read access
n+5
n+6
Start address for write access
n+7
Dec. Hex.
2018/03 121
Configuring and Parameterizing
Dec. Hex.
Read access 131 0x83 Multi server mode: read 1 hold- 1, 2, 3 or 4 registers are read or
ing registers (FC3) read and written per connected
Modbus RTU Server.
132 0x84 Multi server mode: read 1 input
register (FC 4)
122 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Parameters Value Description
Dec. Hex.
134 0x86 Multi server mode: write single 1, 2, 3 or 4 registers are written
register (FC6) or read and written per con-
nected Modbus RTU Server.
144 0x90 Multi server mode: write 1 regis-
ters (FC16)
Start address for 0… 0x0000 default: 0x000 Address of the 1st register to
write access 65535 … which data have to be written
0xFFF
2018/03 123
Configuring and Parameterizing
Standard mode
Use case:
1 Modbus RTU Server per Server Configuration Block (SCB)
max. 8 Modbus RTU Servers per COM port
124 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Multi Server Mode
Recommended for applications with more than 8 identical Modbus RTU Servers per port.
Use case:
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
Depending on the technical characteristics of the Modbus RTU Servers, the connection of up to
64 Modbus RTU Servers per port (128 per device) is possible.
The parameters “Read access” and “Write access” have both to be set to the Multi Server Mode or
unused functions have to be deactivated. Mixing of standard and multi-server mode is not per-
mitted.
2018/02 125
Configuring and Parameterizing
1. SCB
write extension
126 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.1.3 Setting Parameters – DXP Channels
Byte Bit
7 6 5 4 3 2 1 0
152 SRO7 SRO6 SRO5 SRO4 reserved
153 EN_DO7 EN_DO6 EN_DO5 EN_DO4 reserved
154 Input filter
reserved DIF pulses (DXP4)
(DXP4)
155 Pulse stretching (DXP4)
156 Input filter
reserved DIF pulses (DXP5)
(DXP5)
157 Pulse stretching (DXP4)
158 Input filter
reserved DIF pulses (DXP6)
(DXP6)
159 Pulse stretching (DXP4)
160 Eingangs-
reserved filter DIF pulses (DXP7)
(DXP7)
161 Pulse stretching (DXP7)
Dec. Hex.
Input filter (DXPx) 0 0x00 0.2 ms Configuration ot he filter time for digi-
tal inputs.
1 0x01 3 ms
Pulse stretch (DXPx) 0…254 0x00…0 default: 0 Defines the duration of the pulse
(* 10 ms) xFF stretching for digital input edges in
multiples of 10 ms. This function in
used to detect short signals in longer
PLC cycle times.
2018/03 127
Configuring and Parameterizing
128 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
9 Operating
2018/03 129
Operating
1 The bit is set to TRUE after a message was sent. It indicates that the
transmission was completed and that he next send sequence can be
started. The bit remains TRUE until the bit "send" has been reset to
FALSE (acknowledgment).
1 The bit is set to TRUE after a message was sent. The bit remains TRUE
until the bit "Receive" is set to FALSE.
A new receive sequence (Bit "Receive" FALSE ® TRUE) resets the bit.
1 Frame error
Possible causes:
– 1st or 2nd end delimiter not valid.
– The effective frame length does not match the parameterized frame
length.
A new receive sequence (Bit "Receive" FALSE ® TRUE) resets the bit.
1 Parity/format error
A new receive sequence (Bit "Receive" FALSE ® TRUE) resets the bit.
130 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Process value Value Description
Timeout 0 No error
1 Response timeout
This bit is only used in case of a response time set to > 0.
A new receive sequence (Bit "Receive" FALSE ® TRUE) resets the bit.
Received 0…192 This byte contains the length of the last message received.
frame length
2018/03 131
Operating
132 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Meaning of the Status Bits – Modbus Client mode
MB-Server cycle time (*1 ms) Update time [ms] with which the Modbus RTU-Client requests data
from all connected Modbus RTU-Servers.
Modbus-Server-Status
NOTE
Description of the Modbus Exceptions Codes:
http://www.modbus.org/docs/Modbus_Application_Protocol_V1_1b.pdf.
2018/03 133
Operating
MB-Server Timing
MB-Server Timing (*1 ms) Update time [ms] of the connected Modbus RTU-Servers at COM0 or COM1.
134 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
9.1.4 Evaluating Process Input Data –Module Status
Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Dec. Hex.
468 0x01D4 ARGEE Module
Under-
reserved program diagnostics
voltage V2
active pending
469 0x01D5 Force Under-
Internal
reserved Mode res. voltage reserved
error
active V1
Undervoltage V2 0 No error
Undervoltage V1 0 No error
2018/03 135
Operating
136 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
9.2.1 Writing Process Output Data – RS232/RS48 Mode
Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
COM0
0 reserved Receive Transmit
1 reserved
2 Transmitter frame length
3 reserved
4 Receiver frame length
5 reserved
6 Transmit data COM0
… maximum Length 8 x 24 bytes
197 (s. p. 138)
COM1
198 reserved Receive Transmit
199 reserved
200 Transmitter frame length
201 reserved
202 Receiver frame length
203 reserved
204 Transmit data COM1
… maximum Length 8 x 24 bytes
395 (s. p. 138)
Receiver frame length 1… Defines the number of characters to be received for the next message.
192 Is only evaluated if the parameter "EOF detection" is set to the value
"framelength".
2018/03 137
Operating
… …
138 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Transmit Data – Modbus Servers COM0/COM1
Depending on the parameterization, 1 or 12 registers are transmitted per Modbus-Server.
Regis- Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
ter
n Output register 0 of the 1st Modbus Server
… …
n + 11 Output register 11 of the 1st Modbus Server
n + 12 Output register 0 of the 2nd Modbus Server
… …
n + 23 Output register 11 of the 2nd Modbus Server
… …
2018/03 139
Operating
1. Init
2. Prepare transmission
Write to RS_Data (tx buffer)
transmitter frame length := [frame length]
3. Start transmission
Transmit := TRUE
Transmit sequence
Initial state "Transmitter ready" is FALSE (1.).
Write transmit data (RS_Data) to the transmit buffer (TX buffer) (2.).
Write the transmit data length in bytes to the process output value "Transmitter frame length”
(2.).
Set the process output value "Transmit" to TRUE (3.).
Wait until the process input value "Transmitter ready" = TRUE (4.).
Set the process output value "Transmit" to FALSE (5.).
Go back to 1 for the next transmit sequence.
NOTE
The chapters Configuring and Parameterizing and Operating contain detailed informa-
tion concerning parameters or process data and diagnostics.
140 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
9.3.2 Receive Data
The following flow diagram describes the receive sequence.
1. Init
2. Start receiving
Receiver frame length := [expected frame length]1
Receive := TRUE
Receive sequence
Initial state "Receive complete" is FALSE (1).
Set the process output value "Receive" to TRUE (starts the receiver) (2.).
Wait until the process input value "Receive complete" = TRUE or until an error is signaled (3.).
Perform an error handling. If no error is signaled continue with (5.).
Read and process the data received from the receive buffer (5.).
Set the process output value "Receive" to FALSE (stops the receiver) (6.).
Wait until the process input value "Receive complete" = FALSE.
Go back to 1 for the next receive sequence.
2018/03 141
Operating
LED PWR
LED BUS
off flashing (1 Hz) Wink command active The wink command is used to identify
nodes in an Ethernet network. If an Ethernet node receives a
wink command, it responds visually (e.g. flashing LED).
LED ERR
142 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
LEDs ETH1 and ETH2
2018/03 143
Operating
1 Parameterization error
Possible causes:
– Parameter "Termination active" activated in operation mode
"RS232"
– Parameter "Biasing active" activated in operation mode "RS232"
– Invalid parameterization
144 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
9.5.2 Evaluating Diagnostic Data – DXP Diagnostics
Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
0 Overcur- Overcur-
rent rent
reserved reserved
VAUX2 VAUX2
Ch6/Ch7 Ch4/Ch5
1 Overcur- Overcur- Overcur- Overcur-
rent rent rent rent reserved
output Ch7 output Ch6 output Ch5 output Ch4
Meaning of Diagnostic Bits
2018/03 145
Operating
146 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
10 Troubleshooting
If the device does not function as expected, first check whether ambient interference is present.
If there is no ambient interference present, check the connections of the device for faults.
If there are no faults, there is a device malfunction. In this case, decommission the device and
replace it with a new device of the same type.
2018/03 147
Troubleshooting
148 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
11 Maintenance
Ensure that the plug connections and cables are always in good condition.
The devices are maintenance-free. Clean the devices if required with a dry cloth.
ATTENTION!
Interruption of the power supply during the firmware update
Risk of device damage due to faulty firmware update
Do not interrupt the power supply during the firmware update.
During the firmware update do not reset the power supply.
11.1.1 Example: Update the firmware with the PACTware™ FDT frame application
Launch PACTware™.
Right-click Host PC Add device.
2018/03 149
Maintenance
150 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Click “Firmware Download” to start the firmware update.
2018/03 151
Maintenance
152 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
12 Repair
The device must not be repaired by the user. The device must be decommissioned if it is faulty.
Observe our return acceptance conditions when returning the device to Turck.
http://www.turck.de/static/media/downloads/01_Dekontaminationserklaerung_DE.pdf
and must be completely filled in, and affixed securely and weather-proof to the outside of the
packaging.
2018/03 153
Repair
154 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
13 Disposal
The devices must be disposed of correctly and must not be included in normal house-
hold garbage.
2018/03 155
Disposal
156 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
14 Technical Data
Technical Data
Power supply
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
Sensor/actuator supply VAUX1 Connectors C0…C1 from V1, short-circuit proof,
55 °C:
– 24 V: 1,2 A per port
– 5 V: 0,5 A per port
> 55 °C:
– 24 V: 0,5 A per port
– 5 V: 0,5 A per port
Sensor/actuator supply VAUX2 Connectors C2…C3 from V2, short-circuit proof,
55 °C: 0,14 A per port
> 55 °C: 0,05 A per port
Potential isolation Galvanic isolation of V1 and V2 voltage groups
voltage proof up to 500 VDC
System data
Transmission Ethernet 10 Mbps
100 Mbps
Connection to Ethernet 2 x M8, 4-pin, D coded
Protocol detection automatic
Web server default: 192.168.1.254
Service interface Ethernet via P1 oder P2
Modbus TCP
Address assignment Static IP, BOOTP, DHCP
Supported Function Codes FC1, FC2, FC3, FC4, FC5, FC6, FC15, FC16, FC23
Number of TCP connections 8
Input register start address 0 (0x0000)
Output register start address 2048 (0x8000)
EtherNet/IP™
Address assignment according to EtherNet/IP™ standard
QuickConnect (QC) < 500 ms
Device Level Ring (DLR) supported
Number of TCP connections 3
Number of CIP connections 10
Input Assembly Instance 103
Output Assembly Instance 104
Configuration Assembly Instance 106
PROFINET
2018/03 157
Technical Data
158 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Digital outputs
Number of channels 4
Connection technology outputs M12, 5-pole
Output type PNP
Type of input diagnostics channel diagnostics
Output voltage 24 VDC from potential group V2
Output current per channel 0.5 A, short-circuit-proof
Simultaneity factor 1 (0.03 > 55 °C)
Load type ohmic, inductive, lamp load
Dimensions (w × l × h) 32 × 144 × 31 mm
Halogen-free yes
2018/03 159
Technical Data
160 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
15.1
2018/03
15 Appendix
SPS/HMI
Service/Engineering
Power
Uplink Port
10/100 Act/Link 10/100 Act/Link 10/100 Act/Link 10/100 Act/Link 10/100 Act/Link
24 VDC
Ethernet
161
162
Appendix
SPS/HMI
Power
Uplink Port
10/100 Act/Link 10/100 Act/Link 10/100 Act/Link 10/100 Act/Link 10/100 Act/Link
SPS/HMI/Service/Engineering
24 VDC
Ethernet
24 VDC
Ethernet
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
15.1.1 Daisy Chain - Maximum Number of Connected Modules
Prerequisites:
optimized network
only TBEN-S-modules in the daisy chain, no additional switches, no third-party devices
exchange of pure process data, no acyclic data
cable length between the TBEN-S-modules max. 50 m
1 ms 21
2 ms 42
NOTE
Deviations from the specification above may lead to a reduction of possible TBEN-S-mod-
ules connected to one daisy chain.
Ethernet
15.2 ARGEE/FLC
The ARGEE/FLC programming software can be downloaded from the download area at the Turck
homepage.
The Zip archive "SW_ARGEE_Environment_Vx.x.zip" contains the software and the respective soft-
ware documentation.
2018/03 163
Appendix
164 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
30 subsidiaries and over
60 representations worldwide!
D301439 | 2018/03
*D301439* www.turck.com