Table of Contents About these Instructions Target Groups Explanation of symbols used Additional Documents Feedback about these instructions Notes on the Product Product Identification Scope of Delivery Legal Requirements Manufacturer and Service For Your Safety Intended Use General Safety Instructions Product Description Device Overview Display Elements...
Page 4
7.4.7 TCP/IP Interface Object (0xF5) 7.4.8 Ethernet Link Object (0xF6) 7.4.9 VSC-Vendor Specific Classes 7.4.10 Extended DXP Functions Class (VSC 164) Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 5
7.5.8 Parameterizing Devices via Class Instance Attribute Commissioning the Device in Modbus TCP 7.6.1 Implemented Modbus functions 7.6.2 Modbus Registers 7.6.3 Register mapping TBEN-S2-2COM-4DXP Connecting the Device to a Modbus TCP Master 7.7.1 Used Hardware 7.7.2 Used Software 7.7.3 Prerequisites 7.7.4 Connecting the device to the PLC...
Page 6
Disposal Technical Data Appendix 15.1 Possible Network Structures (Examples) 15.1.1 Daisy Chain - Maximum Number of Connected Modules 15.2 ARGEE/FLC Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
CALL TO ACTION This symbol identifies steps that the user has to perform. RESULTS OF ACTION This symbol identifies relevant results of steps Additional Documents The following additional documents are available online at www.turck.com: Data sheet TBEN-Accessories list (D301367)
45472 Muelheim an der Ruhr Germany 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...
Page 10
Notes on the Product Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
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. Intended Use The devices are only intended for use in industrial applications.
Page 12
For Your Safety Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
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 RS232/RS485 interfaces are used for connecting devices with RS232 and/or RS485 interface (e.g. barcode readers, printers, drives, light curtains, etc.) Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Functions and Operating Modes 4.5.1 Multi 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.
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. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
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. Mounting Module Composites The TBNN-S0… adapters can be used to build module composites for group assembly. Fig.
Close the rotating pin in the spacers by means of a screw driver (2) Ground the device. 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...
NOTE To increase stability on the mounting rail, end brackets can be mounted on the left and right side of the modules/module composites. Grounding the Device 5.4.1 Grounding and Shielding Concept Field bus and I/O part of the TBEN-S modules can be grounded separately. Fig.
The shielding of the fieldbus lines is now connected to the grounding clamp. Fig. 11: Mounting the grounding clamp Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Connecting Connecting the Modules to the Ethernet The TBEN-S2 module is provided with an integrated autocrossing switch with two 4-pin M8 Ether- net plug connectors for connecting to the fieldbus. ATTENTION! Interchanging of Ethernet- and power cables Destruction of module electronic ...
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. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
V1 = supply of module electronics and the respective connectors V2 = supply of the respective connectors Fig. 16: Power supply of TBEN-S2-2COM-4DXP Connecting Serial Devices The TBEN-S2 module is provided with two 5-pin M12 connectors for connecting serial RS232 or RS485 device.
We recommend to activate the biasing function, if the TBEN-S2-2COM-4DXP is mounted at the beginning or the end of the RS485. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
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.
Page 26
Connecting Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
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.
Page 28
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 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
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. 2018/03...
MB-Server 12 Reg. IN/12 Reg. OUT p. 33 p. 34 COM diagnostics Slot 19 is used to map the cyclic COM diagnostics diagnostic data. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 31
Slot-no. Name Description Pluggable devices p. 35 MB-Server Status Slot 20 is used to cyclically map MB-Server Status the status data of connected Modbus RTU server. p. 37 MB-Server Timing Slot 21 can be used to cyclically MB-Server Timing map timing data of connected Modbus RTU server.
Page 32
Deactivates the PROFINET protocol PROFINET Deactivate Deactivates the web server Web server Process data 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.
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.
Page 36
%IX0.5 BOOL Invalid TX length %IX0.6 BOOL Invalid RX length %IX0.7 BOOL Reserved %IB1 USINT Received frame length %IB2 USINT 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 value Offset Data type COM – Control bits of the COM port %QB0 USINT Transmit %QX0.0 BOOL Receive %QX0.1 BOOL Reserved %QB1 USINT Transmitter frame length %QB2 USINT Reserved %QB3 USINT Receiver frame length %QB4 USINT Sub module "RS Data 24Byte IN/24Byte OUT"...
Page 38
(s. p. 140) Process value Offset Data type Description Output register 0 %QW0 UINT Output register of the Modbus server Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
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.
Page 40
BOOL Modbus diagnostics for COM 1 %IB1 Error MB-server 0 %X1.0 BOOL … … … Error MB-server 7 %X1.7 BOOL 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 cycli- cally provides status data for the connected Modbus RTU servers. Parameters This sub module requires no configuration and has thus no parameters. ...
Page 42
Valid read config. K7 %IX31.4 BOOL Valid write config. K7 %IX31.5 BOOL NOTE Description of the Modbus Exceptions Codes http://www.modbus.org/docs/Modbus_Application_Protocol_V1_1b.pdf. 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 cycli- cally provides timing data for the connected Modbus RTU servers. Parameters This sub module requires no configuration and has thus no parameters. ...
Page 44
This sub module has no process data. The configured parameters affect the input process values of the sub module "DXP" (slot 22). 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.
Designation assigned to the module (Slot 0) 0x03 Module revision STRING Firmware revision of the module 0x04 Vendor ID WORD Ident no. Turck 0x05 Module name STRING The device name assigned to the mod- 0x06 Module type STRING Module type...
Page 48
I/O channel 20…22 0x14 … reserved 0x16 0x17 Output data specific Output data of the respective I/O channel … … reserved Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
7.3.2 Used 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.3 Prerequisites The programming software has been started. ...
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. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | 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.
Connect the device to the PLC in the "Devices & networks" editor. Fig. 30: Connecting the device to the PLC Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Select "Ethernet addresses" in the register tab "Properties". Assign the desired IP address. Fig. 32: Assigning the IP address Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
7.3.9 Going online with the PLC Start the online mode (Go online). Fig. 33: Starting the online mode The device has been successfully connected to the PLC. 2018/03...
Select "Device view" "Device overview". Select the slot to be parameterized. Click "Properties" "general" "Module parameters". Set the parameters. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Number of TCP connections Number of CIP connections Input Assembly Instance Output Assembly Instance Configuration Assembly Instance 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 7.4.2 QuickConnect (QC) QuickConnect enables a PLC to build up connections to EtherNet/IP™...
Page 58
0 = activated (default) 1: activated Web server 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...
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.
0x05 DEVICE STATUS WORD 0x06 SERIAL NUMBER UDINT Contains the ident-no. of the product (3 last bytes of the MAC-ID). Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 61
Attr. No. Attribute name Type Description Dec. Hex. 0x07 PRODUCT NAME STRUCT e. g.: TBEN-S2-2COM-4DXP LENGTH USINT NAME STRING [13] Device Status Name Definition 0…1 reserved default = 0 Configured TRUE = 1 The application of the device has been configured ( default- settings).
Number of bytes in attr. 3 256 or variable Common services Service code Class Instance Service name Dec. Hex. 0x01 Get_Attribute_All 0x0E Get_Attribute_Single 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/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...
Page 65
Device configuration data Default values are marked in bold. Parameter name Value Meaning QuickConnect 0 = deactivated 1 = activated QuickConnect is activated. ETH x Port Setup 0 = Autonegotiation The port is set to autonegotiation. 1 = 100BT/FD Defined setting of communication parameters for the Ethernet port to: –...
Page 66
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 (without function) word Output Process output data data 137) Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
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 Service code...
0x06 HOST NAME STRING 0 = no Host Name configured 0x0C Quick Connect BOOL 0 = deactivate 1 = activate Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 69
Common services Service Class Instance Service name code Dec. Hex. 0x01 Get_Attribute_All 0x02 Set_Attribute_All 0x0E Get_Attribute_Single 0x10 Set_Attribute_Single 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.
Page 70
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. 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 server then updates the DNS records on behalf of the client. Non-existent Powerup Reset Status = 0×00000000 Obtaining initial configuration BOOTP/DHCP disabled and BOOTP/DHCP stored config.
1 = full duplex tion 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...
Page 73
Name Definition Default value 2 to 4 Negotiation Status Indicates the status of the automatic Depends on applica- Autonegotiation tion 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).
Instances created in this class. 0x67 Max. class attribute USINT Contains 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 of the VSCs, page 68 for the description of the class instance for the VSC. ...
Page 76
EtherNet/IP™ interface) Bit 1 = Modbus TCP Bit 2 = PROFINET Bit 11…bit 14 = reserved Bit 15 = Web server 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 name Get/ Set Type Description Dec. Hex. 0x68 COS data 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 ...
Page 78
E: even (1 bit error detection) 0x05 Stop bits USINT Defines 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 name Type Description Dec. Hex. 0x06 EOF detection USINT 0 = character timeout 1 = 1 end delimiter 2 = 2 end delimiter 3 = framelength 0x07 Termination active USINT 0 = yes 1 = no 0x08 Biasing active USINT 0 = yes...
Page 80
Number of the characters to be send in bytes 0x27 Receiver frame length USINT Number of the characters to be received within the next message. 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 Configuring and Parameterizing Operating contain detailed informa- tion concerning parameters or process data and diagnostics. Attr. no. Attribute Type Description name Dec.
Page 82
Start address UINT 0… Address of the 1st register to which data have to for Write 65535 be written access 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 Type Description name Dec. Hex. Value p. 131 0x08 Input register UINT Input data of the connected serial device ) or the p. 135 Modbus-Server, 1 or 12 register(s) per server 0x09 Input register 0x0A Input register 0x0B Input register 0x0C...
Page 84
… … 15 (0x0F) COM0 – MB-Server Timing, UINT server 7 16 (0x010) COM1 – MB-Server Timing, UINT server 7 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 Configuring and Parameterizing Operating contain detailed informa- tion concerning parameters or process data and diagnostics. Attr. no. Attribute name et Type Description Dec. Hex. Parame- ters 0x01 DXP4 – Manual reset after overcurr. USINT 0 = no 1 = yes...
7.5.2 Used 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.3 Prerequisites The programming software has been started. A new project has been created with the PLC and the Scanner mentioned above.
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. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
7.5.5 Connecting 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...
Page 90
Assign a module name. Set the IP address of the device (example: 192.168.1.10). 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...
Page 92
Optional: Setting the connection and the port configuration. Fig. 42: Setting the connection parameters 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...
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 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). Fig. 47: Clicking "Download" Confirm all following messages. 2018/03...
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) 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. 60). Fig. 49: Process input data – example 2018/03...
Scan the network using the "Online" button. Fig. 50: RS NetWorks – scanning the network 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,...
Page 100
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. 109). Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Commissioning the Device in Modbus TCP 7.6.1 Implemented Modbus functions The TBEN-S modules with Modbus TCP support the following functions for accessing process data, parameters, diagnostics and other services: Function codes Read Coils – reading multiple output bits Read Discrete Inputs – reading multiple input bits Read Holding Registers –reading multiple output registers Read Input Registers –reading multiple input registers Write Single Coil –...
Page 102
(identical to registers 0x0000…0x01FF) 0x9000…0x9FFF Process data of the outputs incl. Control Word (identical to registers 0x0800…0x09FF) 0xA000…0xAFFF Diagnostics 0xB000…0xBFFF Parameters Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 103
The following table shows the register mapping for the different Modbus addressing methods: Adressierungen: Description Decimal 5-digit Modicon Inputs 0x0000 40001 400001 … … … … 0x01FF 40512 400512 Outputs 0x0800 2048 42049 402049 … … … … 0x09FF 2549 42560 402560 Module identifier...
Page 104
Both registers can also be written with one single request using the function codes FC16 and FC23. The service resets the parameters without saving them. This can be achieved by using a following "save" service. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 105
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. ...
Block module TBEN-S2-2COM-4DXP (IP address: 192.168.1.10) 7.7.2 Used Software The following software tools are used in this example: CODESYS 3.5.8.1 (can be downloaded for free under www.turck.com) 7.7.3 Prerequisites The programming software has been started. A new project has been created.
Page 108
Adding the Ethernet Adapter Right-click the "Device (TX507-P3CV01)". Fig. 54: Project tree Select "Add Device". Select the Ethernet Adapter Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 109
Click "Add Device". Fig. 55: Adding the Ethernet Adapter The Ethernet Adapter is added to the project tree as "Ethernet (Ethernet)". 2018/03...
Page 110
Double-click the Modbus TCP Master. Fig. 56: Adding the Modbus Master The Modbus Master is added to the project tree as "Modbus_TCP_Master". Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 111
Adding a Modbus Slave Right-click the "Modbus TCP Master" in the project tree. Select "Add Device". Double-click the Modbus TCP Slave. Fig. 57: Adding the Modbus TCP-Slave The Modbus Slave is added to the project tree as "Modbus_TCP_Slave". 2018/03...
Page 112
If necessary adapt the slave name in the project tree to the application (here: TBEN_S2_2COM_4DXP). Fig. 58: Adapting the slave name in the project tree Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 113
Configuring the Network Interfaces Double-click the "Device (TX507-P3CV01)". Click "Scan Network". Select „Device TCP-Master (here: TX507-P3CV01) and confirm with OK. Fig. 59: Configuring the Network Interface to the Modbus Master 2018/03...
Page 114
Enter the slave's IP address in the "General" register tab (here: 192.168.1.10). Fig. 61: Modbus TCP-Slave – entering the IP address Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Parameterizing the Device via Web Server The device's web server is accessed via the device IP address in the web browser. If the IP address is not known, then the device can also be searched using the Turck Service Tool, see also Setting the IP address, page The device can only be parameterized via the web server after a login.
Page 116
Click "submit" and send the parameters to the device. COM0 is set up as "MB-Client RS485" with the behavior mentioned above. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 117
Set the following parameters for the connection to the Modbus RTU-Servers under "RS Data/ SCB0.x". Fig. 64: Parameterizing the Modbus-Server (Example at RS Data/SCB0.0) 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).
Page 118
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) Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | 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. Defining a Channel (Input Data – COM0, Modbus-Server 1) ...
Page 120
Length: 2 registers (4 bytes, max.: 12 registers) Confirm with OK. Fig. 67: Defining the channel for input data COM0 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
7.7.8 Going online with the PLC Select the device. Click Online Login. Reading Process Data The process data can be interpreted by means of the mapping (s. p. 100) if the device is connected to the PLC. ...
Page 122
Commissioning Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Configuring and Parameterizing Setting Parameters 8.1.1 Setting Parameters – COM0/COM1 Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Dec. Hex. COM0 (s. p. 121) 0x0000 Swap A/B Data rate Operation mode line 0x0001 Biasing...
Page 124
E: even (1 bit error detection) 0x03 0x04 Stop bits 0x00 1 bit Defines the number of stop bits. 0x01 2 bit Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 125
Parameters Value Description Dec. Hex. – EOF detection 0x00 Character timeout Character timeout: The character timeout defines the duration of time within which 0x01 1 end delimiter another character must be received after receiving a character. Exceeding this time 0x02 2 end delimiter is interpreted as the end of the data packet.
Page 126
This leads to communication errors. In this case, the time hast be be increased. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
8.1.2 Setting Parameters – Server Configuration Block (SCB) Byte 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...
Page 128
Defines the write access to the configured Modbus-Server. 0x06 write single register (FC6) 0x10 write multiple registers (FC16) 0x17 read/write multiple registers (FC23) Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 129
Parameters Value Description Dec. Hex. 0x80 write extension Read/ Write Extension: Write access Extension of the write com- mand for the connection of Modbus RTU Servers with more than 12 registers. The write extension provides up to 12 further regis- ters for process output data and can only be selected as an extension of a...
Page 130
Start address Not defined as the write access is deactivated in the example for read access Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 131
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.
Page 132
Defines this SCB as extension for the preceding SCB. Start address for read Not defined, automatically set access Start address for read access Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Operating Evaluating Process Input data Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Dec. hex. COM0 0x0001 Status Data … … RS232/RS485 Mode (s. 130) Modbus Client Mode (s. 132) 0x0005 0x0006 Process input data …...
A new receive sequence (Bit "Receive" FALSE ® TRUE) resets the bit. Parity/format error No error Parity/format error A new receive sequence (Bit "Receive" FALSE ® TRUE) resets the bit. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 137
Process value Value Description Buffer overflow No error Buffer overflow during receive sequence A new receive sequence (Bit "Receive" FALSE ® TRUE) resets the bit. Timeout No error Response timeout This bit is only used in case of a response time set to > 0. A new receive sequence (Bit "Receive"...
… … 0x01BE Server 7, COM1 0x01BF 0x01C0 Server 0, COM1 0x01C1 … … … 0x01CE Server 7, COM1 0x01CF Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 139
Meaning of the Status Bits – Modbus Client mode Process value Value Description 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 Error code Modbus Exception Code No error Read error Chx Modbus read error No error...
Meaning of the Status Bits – DXP Channels Process value Value Description Input value Chx no input signal input signal at DXP channel Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | 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. 0x01D4 ARGEE Module Under- reserved program diagnostics voltage V2 active pending 0x01D5 Force Under- Internal reserved Mode...
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 reserved Receive Transmit reserved Transmitter frame length reserved Receiver frame length reserved Transmit data COM0 maximum Length 8 x 24 bytes …...
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 Output register 0 of the 1st Modbus Server …...
Go back to 1 for the next transmit sequence. NOTE The chapters Configuring and Parameterizing Operating contain detailed informa- tion concerning parameters or process data and diagnostics. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
LED green LED red Meaning No voltage connected No diagnostic message, device is operating in normal condi- tion. Diagnostic message pending Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 149
LEDs ETH1 and ETH2 LED green LED yellow Meaning No Ethernet connection Ethernet connection established, 100 Mbps flashing Ethernet traffic, 100 Mbps Ethernet connection established, 10 Mbps flashing Ethernet traffic, 10 Mbps COM Channel LEDs TX0/Rx0 and TX1/RX1 LED TX green LED TX red Meaning No serial communication...
Overcurrent at COM port supply (pin 1) Error MB-Server x No error Error at Modbus-Server x at respective COM port or Modbus-Server not accessible Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | 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 Overcur- Overcur- rent rent reserved reserved VAUX2 VAUX2 Ch6/Ch7 Ch4/Ch5 Overcur- Overcur- Overcur- Overcur- rent rent rent rent reserved...
Page 152
Operating Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | 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.
Page 154
Troubleshooting Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
11.1 Executing the firmware update The firmware of the device can be updated via FDT/DTM. The PACTware™ FDT frame application, the DTM for TBEN-S2-2COM-4DXP and the current firmware are available as downloads free of charge from www.turck.com. ATTENTION! Interruption of the power supply during the firmware update Risk of device damage due to faulty firmware update ...
Page 156
Search for connected Ethernet devices: Click the “Search” icon. Select the required device. Fig. 77: Selecting the device Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 157
Click “Firmware Download” to start the firmware update. Fig. 78: Starting the firmware update 2018/03...
Page 158
PACTware™ show the progress of the firmware update with a green bar at the bottom of the screen. Fig. 79: Firmware update in progress Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | 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. 12.1 Returning devices If a device has to be returned, bear in mind that only devices with a decontamination declaration will be accepted.
Page 160
Repair Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | 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 V Connectors C0…C1 from V1, short-circuit proof, AUX1 ...
Page 164
High-level signal current > 2 mA Input delay 0.05 ms Electrical isolation galvanic isolation to P1/P2, voltage proof up to 500 VDC Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 165
Digital outputs Number of channels Connection technology outputs M12, 5-pole Output type 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 Short circuit protection...
Page 166
Technical Data Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
192.168.1.129 192.168.1.233 24 VDC Ethernet Fig. 83: Daisy Chain 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...
Page 170
Appendix Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
Page 171
30 subsidiaries and over 60 representations worldwide! D301439 | 2018/03 *D301439* www.turck.com...
Need help?
Do you have a question about the TBEN-S2-2COM-4DXP and is the answer not in the manual?
Questions and answers