Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
1About this manual
1.1Documentation concept
This document contains all information about the Turck IO-Link master module TBEN-Lx-8IOL of the
TBEN-L product series with 4 IO-Link ports Class A at connectors C0 to C3 and 4 IO-Link ports Class B.
The following chapters contain:
A general device description and its process data image in the different Ethernet protocols,
A short description of the communication interface IO-Link,
A description of the IO-Link master functionality,
A general description of the function block (FB) IOL_Call according to the IO-Link specification and
its in- and output variables,
An example for the IO-Link-Master's integration in TIA Portal V13 including a description of the Sie-
mens function block IOL_DEVICE in PROFINET,
Helpful information for the operation of IO-Link devices and a list of possible
failure causes
V01.0 | 2016/12
5
About this manual
1.2Explanation of symbols used
1.2.1Warnings
Action-related warnings are placed next to potentially dangerous work steps and are marked by
graphic symbols. Each warning is initiated by a warning sign and a signal word that expresses the
gravity of the danger. The warnings have absolutely to be observed:
DANGER!
DANGER indicates an immediately
injury, if not avoided.
WARNING!
WARNING indicates a potentially dangerous situation with medium
severe injury, if not avoided.
ATTENTION!
ATTENTION indicates a situation that may lead to property damage, if it is not avoided.
dangerous situation, with high risk, the death or severe
risk, the death or
NOTE
In NOTES you find tips, recommendations and important information. The notes facilitate
work, provide more information on specific actions and help to avoid overtime by not following the correct procedure.
CALL TO ACTION
This symbol identifies steps that the user has to perform.
RESULTS OF ACTION
This symbol identifies relevant results of steps
6
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
1.3General notes
This manual includes all information necessary for the prescribed use of the modules of type TBENLx-8IOL. It has been specially conceived for personnel with the necessary qualifications.
1.3.1Prescribed use
The devices described in this manual must be used only in applications prescribed in this manual or
in the respective technical descriptions, and only with certified components and devices from third
party manufacturers.
Appropriate transport, storage, deployment and mounting as well as careful operating and thorough maintenance guarantee the trouble-free and safe operation of these devices.
1.3.2Notes concerning planning/installation of this product
All respective safety measures and accident protection guidelines must be considered carefully and
without exception.
V01.0 | 2016/12
7
About this manual
8
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
2Further documentation
2.1Product family TBEN-L
User manual, D301324 -
„TBEN-L/TBDP-L Compact I/O modules for Ethernet/PROFIBUS-DP“
The user manual for the TBEN-L product family contains comprehensive topics like for example:
–
General technical properties
– Mounting the TBEN-L-modules
– Connection options at module
– General information about Ethernet, the multiprotocol functionality and about the single pro-
tocols
– A description of the web server
– Information about the electrical installation
V01.0| 2016/04
D301368 - 0815 TBEN-S2-4IOL
9
Further documentation
10
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
3IO-Link – Basics
3.1IO-Link- interface – the fieldbus independent communication interface
IO-Link is a fieldbus-independent communication interface for sensors and actuators.
It is based on the IO-Link specification "IO-Link Interface and System Specification" version 1.1.2,
November 2012, and on the IEC 61131-9 (2013-09), ed. 1.0, „Programmable controllers - part 9: Single-drop digital communication interface for small sensors and actuators (SDCI)“.
IO-Link is a point-to-point connection between an IO-Link device (e.g. sensor, I/O hub, valve terminal) and the IO-Link master. Up to now, the binary connection was only designed for transferring
switching information, but IO-Link now allows 2 bytes to be transferred normally in a 2.3 ms cycle
via a combined switching status and data channel.
Other information can be exchanged in addition to the process values, such as parameters or diagnostic messages.
This enables communication with sensors and actuators down to the "last meter" to be established
for universal communication.
Further information: : www.io-link.com
3.1.1Communication
Standard I/O-connection technologies in point-to-point connection, unshielded, 20 m wire
length
Cyclic process data transfer in typ. 2.3 ms
Parallel service data exchange without any impact on the process data
Communication via 24 V-pulse modulation, standard UART protocol
Communication between master and device in 3 different transmission speeds
–
4.800 Baud (COM 1)
– 38.400 Baud (COM 2)
– 230.400 Baud (COM 3)
3.1.2Data transmission
Basically 4 different types of data exist, which are transmitted either cyclically or acyclically.
Process data cyclic data exchange
Value status cyclic data exchange
Device data acyclic data exchange
Events acyclic data exchange
V01.0| 2016/04
Process data:
The devices' process data are transmitted cyclically, whereas the process data size is defined
through the device. The device process data can contain from 0 to 32 Byte (for both in- and output).
11
D301368 - 0815 TBEN-S2-4IOL
IO-Link – Basics
Value status:
The value status displays if process data are valid or not. It is transmitted cyclically with the process
data.
Device data:
Device data are parameters, identification data and diagnostic information. The transmission is
done acyclically and only on demand of the IO-Link master.
Events:
Events are error messages or warnings/maintenance data. Error messages are transmitted from the
device to the PLC or similar via the IO-Link master. The IO-Link master itself can also transmit events
and status information. Those events can be for example an open circuit, communication loss or an
overload.
3.1.3Transmission media
IO-Link does not require any special wiring. The sensors and actuators can continue to be connected
using the proven, attractively priced and unshielded industrial cables.
The operating modes available for selection are the standard switch mode and the communication
mode.
12
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
3.1.4Fieldbus/Ethernet integration
FIELDBUSETHERNET
CONVERNTIONAL I/O
I/O-Hub
I/O-Hub
Inclination Encoder, Linear PositionInductive CouplersProximityTemperature, Pressure, FlowLED IndicatorUltrasonic and Photoelectric Sensors
Usage of the standard-transport mechanisms of established fieldbusses/sensor/actuator busses
(DPV0, DPV1, Ethernet …)
Simple integration in engineering systems by means of configuration files (GSD, GSDML, …)
Comfortable usage of even complex product features by means of tool based engineering (FDT/
DTM, …)
Fig. 1: IO-Link overview
D301368 - 0815 TBEN-S2-4IOL
V01.0| 2016/04
13
IO-Link – Basics
14
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
4TBEN-Lx-8IOL
4.1Product identification
The TBEN-Lx-8IOL is the 8-channel IO-Link-master module of the product family TBEN-L.
Like all modules of the TBEN-L-product family, the TBEN-Lx-8IOL is a device with Turck multiprotocol functionality, which means, it can be used in the three Ethernet protocols PROFINET, EtherNet/
IP™ and Modbus TCP. An integrated Ethernet-switch allows the building up of a line topology.
Besides the eight IO-Link channels (4 with IO-Link Class A and 4 with IO-Link Class B), the TBEN-Lx8IOL provides four universal digital DXP-channels (PNP).
The eight IO-Link channels can be parameterized independently and can optionally be operated in
IO-Link mode (IOL) or in standard I/O mode (DI mode).
Thanks to the "Simple IO-Link Device Integration (SIDI)“, Turck IO-Link devices can directly be
selected from the device GSDML in PROFINET.
The four universal digital channels are designed as DXP-channels and can therefore be parameterized as in- or output.
Properties:
8-channel IO-Link master according to IO-Link specification V1.1
–
four IO-Link Class A-channels (C0 to C3)
– four IO-Link Class B-channels (C4 to C7)
4 universal digital channels, PNP, channel diagnostics, 0.5 A at the connectors C0 to C3
Connector for voltage supply:
–
TBEN-L4-8IOL: 7/8“ (4-pole)
– TBEN-L5-8IOL: 7/8“ (5-pole)
V01.0| 2016/12
15
TBEN-Lx-8IOL
ERR
BUS
PWR
µC
Supply
µC
+2–3+1–
4
V1V2
+2–3+1–
4
V1V2
X1X2
IN Diag
OUT Diag
IO-Link Data
V1 DiagV2 Diag
IO-Link Diag
Ethernet
V1 +
IN Diag
IO-Link Diag
IO-Link Data
1 V
AUX1
(V1)
2 IN/OUT
(V1)
4 C/Q(V1)
OUT Diag
3 GND (V1)
In/OutputClass A
I/O
IO-Link
µC
5 n.c.
V1 +
V2 +
IO-Link
IN Diag
IO-Link Diag
IO-Link Data
1 V
AUX1
(V1)
(V2)
4 C/Q(V1)
OUT Diag
3 GND (V1)
5 GND (V2)
In/OutputClass B
I/O
IO-Link
µC
V2 +
V1 +
IO-Link
P2P1
4
1
3
2
4
1
3
2
ETH2ETH1
Ethernet
2 V
AUX2
4.2Block diagram
Fig. 2: Block diagram TBEN-Lx-8IOL
16
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
4.3Technical data
Power supply
Supply voltages24 V DC from operating voltage
Permissible range18 … 30 V DC
Operating current< 120 mA
Sensor/actuator supply V
Sensor/actuator supply V
Potential isolation 500 V (V2 to Ethernet and V1)
IO-Link
Number of ports8
IO-Link specificationV1.0, V1.1 according to IEC 61 61131-9
IO-Link port typeClass A at C0 to C3
Frame typeSupports all specified frame types
Process data for IO-Link devices
– Input datamax. 32 Byte per channel
– Output datamax. 32 Byte per channel
Transmission rate 4,8 kbps (COM 1)
Transmission cable Length: max. 20 m
AUX1
AUX2
IO-Link:
20,4 … 28,8 V DC (acc. to IO-Link standard)
Total current max. 9 A per module
Supply from V1
short-circuit proof, max. 4 A for C0 & C4,
short-circuit proof, 2 A per group C1 - C4, C5 - C8
Class B-supply from V2
short-circuit proof, 2 A per connector C0-C7
Class B at C3 to C7
38,4 kbps (COM 2)
230,4 kbps (COM 3)
standard cables,
3- or 4-wire (depending on the application),
unshielded
V01.0| 2016/12
NOTE
General data for the products of the TBEN-L-series can be found in D301324 - „TBEN-L/
TBDP-L Compact I/O modules for Ethernet/PROFIBUS-DP“.
Information about network connection and voltage supply can be found in the user manual D301324: „TBEN-L/TBDP-L Compact I/O modules for Ethernet/PROFIBUS-DP“
4.4.2IO-Link ports
Pin 1: VAUX1 switchable via process data
Pin 4: IO-Link or digital input
C0…C3: IO-Link Master Class A
Pin 2: digital in- or output (DXP)
C4…C7: IO-Link Master Class B
Pin2: switchable Class B supply (VAUX2)
Fig. 3: Pin assignment of M12 x 1-connectors, 5-pole
ATTENTION!
Wrong supply of IO-Link devices
Damage to the electronics
The IO-Link devices must only be supplied with the voltage provided at the supply ter-
minals of the TBEN.
s
ATTENTION!
Connection of Class A devices to Class B ports
Loss of the galvanic isolation
Only use Class A devices with signals on pin 1, pin 3 and pin 4 at Class B ports.
The connection of Class A devices with signals on pin 2 and pin 5 leads to the loss of the
galvanic isolation.
18
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
4.5Process data
4.5.1Process input data
ByteBit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
Basic
IO-Link portsIO-Link process input data
Port 14 - 35
Port 236 - 67
Port 368 - 99
Port 4100 - 131
Port 5132 - 163
Port 6164 - 195
Port 7196 - 227
Port8228 - 259
VAUX1/VAUX2Diagnostics (see Diagnostic data, page 31)
DXP-channels
IO-Link ports(see Diagnostic data, page 31)
Port 1264EVT1EVT2PDINVHWERDSERCFGERPPE-
Port 2266 + 267assignment similar to port 1
Port 3268 + 269assignment similar to port 1
Port 4270 + 271assignment similar to port 1
Port 5272 + 273assignment similar to port 1
Port 6274 + 275assignment similar to port 1
Port 7276 + 277assignment similar to port 1
Port 8278 + 279assignment similar to port 1
– Sensor supply is below the admissible range,
– IO-Link port is parameterized as simple digital input,
– No device connected to the masters,
– No input data received from the connected device (only valid for devices with an
input data length > 0),
– No reaction from the connected device to the sending of output data (only valid
for devices with an output data length > 0),
– The connected device sends an error "process input data invalid.
1 The IO-Link data are valid.
IO-Link process input data
Process input data of the connected device
The order of the IO-Link process input data can be changed via the parameter "Process input data mapping"
(
page 22).
Diagnostics
(see Diagnostic data, page 31)
20
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
4.5.2Process output data
Byte
Basic0DXP7-DXP5-DXP3-DXP1-
IO-Link portsIO-Link process output data
Port 1
Port 234 - 65
Port 366 - 97
Port 498 - 129
Port 5130 - 161
Port 6162 - 193
Port 7194 - 225
Port 8226 - 257
VAUX1
VAUX2
2 - 33
258
259
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
1reserved
structure depends on the channel parameterization
(0 - 32 byte per channel)
VAUX1 Pin1
C7 (Ch14)
VAUX2 Pin2
C7 (Ch15)
NameValueMeaning
DXPxDXP output
IO-Link process output data
Process output data of the connected device
The order of the IO-Link process output data can be changed via the parameter "Process output data mapping" (page 22).
VAUX1 pin 1 Cx (Chy/
Chz)
VAUX2 Pin 2 Cx (Chy) 0The Class B supply at Pin2 of the connector is switched off.
VAUX1 Pin1
C6 (Ch12)
VAUX2 Pin2
C6 (Ch13)
0Output inactive
1Output active, max. output current 2 A
0The 24 VDC sensor/actuator supply at Pin1 of the connector is
1The 24 VDC sensor/actuator supply at Pin1 of the connector is
1The Class B supply at Pin2 of the connector is switched on.
VAUX1 Pin1
C5 (Ch10)
VAUX2 Pin2
C5 (Ch11)
switched off.
switched on.
VAUX1 Pin1
C4 (Ch8)
VAUX2 Pin2
C4 (Ch9)
VAUX1 Pin1
C3 (Ch6/7)
VAUX1 Pin1
C2 (Ch4/5)
VAUX1 Pin1
C1 (Ch2/3)
VAUX1 Pin1
C0 (Ch0/1)
V01.0| 2016/12
21
TBEN-Lx-8IOL
4.6Parameters
The module provides 4 byte of module parameters and 16 byte of IO-Link port-parameters for each
IO-Link port.
ByteBit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1 Bit 0
Basic
Port 14
Port 220 - 35
Port 336 - 51
Port 452 - 67
Port 568 - 83
Port 694 - 99
Port 7100 - 115
Port 8116 - 131
VAUX1-
monitoring
VAUX2-
monitoring
0SRO7-SRO5-SRO3-SRO1-
1-
2EN DO7-EN DO5-EN DO3-EN DO1-
3-
5Cycle time
6Process output data
7 - 11reserved
12 Vendor ID (LSB)
13Vendor ID (MSB)
14Device ID (LSB)
15Device ID
16Device ID
17Device ID (MSB)
18reserved
19reserved
132VAUX1 Pin1 C0 (Ch0/1)
133VAUX1 Pin1 C1 (Ch2/3)
134VAUX1 Pin1 C2 (Ch4/5)
135VAUX1 Pin1 C3 (Ch6/7)
136VAUX1 Pin1 C4 (Ch8)
137VAUX1 Pin1 C5 (Ch10)
138VAUX1 Pin1 C6 (Ch12)
139VAUX1 Pin1 C7 (Ch14)
140 - 143reserved
144VAUX2 Pin2 C4 (Ch9)
145VAUX2 Pin2 C5 (Ch11)
146VAUX2 Pin2 C6 (Ch13)
147VAUX2 Pin2 C7 (Ch15)
GSD
Start-Up
mapping
Quick
data storage modeMode
Process input data map-
ping
Assignment similar to port 1 (byte 4 - 19 )
Diagnostics
deactivate web server
Process input
data invalid
Revision
22
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
NameMeaning
ValueA = default
SROManual output reset after overcurrent
00 = no AThe output switches on automatically after an overload.
11 = yesThe output is manually switched-off after an overload until a new
set-command is given (rise and fall).
EN DOActivate output
00 = no AThe output at pin 2 is deactivated.
11 = yesThe output at pin 2 is activated.
Mode
0000IO-Link without
validation A
Pin 4 is operated in IO-Link mode.
The master does not check if the connected device matches the
configured one.
0001IO-Link with family
compatible device
4 is operated in IO-Link mode.
The master checks if the Vendor ID and the MSB of the Device ID
(this byte defines the product family) of the connected device
match those of the configured one.
If the master detects a mismatch, the IO-Link communication is
established, but there is no process data exchange. The device
remains in the safe state (Pre-Operate). Parameters and diagnostic information can be read and respectively written.
0010IO-Link with compati-
ble device
4 is operated in IO-Link mode.
The master checks if the Vendor ID and the Device ID of the connected device match those of the configured one.
If the Vendor ID matches, but the Device ID not, then the master
tries to write the Device ID to the device.
If the writing is successful, then the device is a compatible one,
process data exchange is possible.
If writing the Device ID is not successful, then process data
exchange is not possible. The device remains in the safe state (PreOperate). Parameters and diagnostic information can be read and
respectively written.
0011IO-Link with
identical device
4 is operated in IO-Link mode.
The master checks if the device type (Vendor ID and Device ID)
and the serial number of the connected device match the data of
the configured one.
If the master detects a mismatch, the IO-Link communication is
established, but there is no process data exchange. The device
remains in the safe state (Pre-Operate). Parameters and diagnostic information can be read and respectively written.
0100DI (with parameter
access)
Pin 4 is generally operated as simple digital input.
However, an acyclic parameter access from the PLC or the DTM is
possible.
The IO-Link master starts the port in IO-link mode, parameterizes
the device and sets the port back into DI-mode. The port remains
in DI mode until a new IO-Link request is sent from the higherlevel control.
Data storage is not supported.
Connected devices have to support the SIO-mode (DI-mode).
00
10
DIPin 4 is operated as simple digital input.
Data storage is not supported.
V01.0| 2016/12
23
TBEN-Lx-8IOL
NameMeaning
ValueA = default
NOTE
Parameter Mode", "DI (with parameter access)“:
In case of a parameter access, the IO-Link communication at the port is started.
Switching signals are interrupted.
Data storage mode
Synchronization of parameter data of IO-Link devices (storing the parameter
master).
If the synchronization is not possible, a diagnostic message is displayed (DS
31
). In this case select option "11 = deactivated, clear" in order to clear the data buffer of the device.
Information about data storage, see
00activated Synchronization of parameter data activated. The actual data
01overwriteSynchronization of parameter data activated, the data in the mas-
10read inSynchronization of parameter data activated. The data in the con-
11deactivated, clear ASynchronization of parameter data deactivated. The data set in
IO-Link data storage, page 36
(master or device) serve as the reference data.
ter serve as reference data.
nected IO-Link device serve as reference data.
the master is deleted.
of the connected device in the
, see Diagnostic data, page
ER
NOTE
IO-Link devices in accordance with IO-Link specification V1.0 do not support data storage. In this
case the data storage has to be deactivated (data storage mode: 11 = deactivated, clear).
Activate Quick Start-Up
For fast applications (e.g. tool changing applications) th
The start-up time defined in the IO-Link specification (TSD = Device Detection Time) is reduced.
00no AThe start-up time is within the specified range (0.5 s). All IO-Link
devices in accordance with the specification can be operated.
01 yesThe start-up time is reduced to approx. 100 ms. It is not supported
by every IO-Link device.
It can thus be necessary to check if the used IO-Link device starts
in this mode.
e start-up time of IO-Link devices can be shortened.
24
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
NameMeaning
ValueA = default
Device parameterization via GSD
0inactive AThe port is generic or is not parameterized.
1activeIn PROFINET the port is parameterized with a specific device type
from the GSDML-file.
Cycle time
00automatic AThe Master reads the minimum cycle time from the connected
device.
0×01 -
0×BF
0.8 to 132.8 msSettable in steps of 0.8 or 1.6 ms.
(see page 27)
Revision
00automatic AThe Master defines the IO-Link-revision automatically.
01V1.0 IO-Link-Revision V 1.0 is used.
Process input data invalid
00diagnostics generated
Diagnosis A
01no diagnostics gener-
If the process data are invalid, a respective diagnostic message is
generated.
Invalid process data do not cause a diagnostic message.
ated
Diagnosis
Deactivate diagnostics
Influences the sending of IO-Link-Events from the master to the fieldbus. Depending on the parameterization, the master transmits Events based on their priority to the fieldbus or not.
00noThe master transmits all IO-Link Events to the fieldbus.
01notifications The master transmits all IO-Link Events to the fieldbus except for
IO-Link notifications.
10Notifications and warn-
ings A
The master transmits all IO-Link Events to the fieldbus except for
IO-Link notifications and warnings.
11yesThe master doesn't transmit any IO-Link Event to the fieldbus.
Process input data mapping
Optimization of the process data mapping for the used fieldbus:
The I/O-Link-data can be swapped depending on the used fieldbus in order to achieve an optimized data
mapping on the fieldbus side.
00direct AThe process data are not swapped.
(0×0123 4567 89AB CDEF)
01swap 16 bitThe bytes are swapped per word.
(0×2301 6745 AB89 EFCD)
10swap 32 bitThe bytes are swapped per double word.
(0× 6745 2301 EFCD AB89)
11swap allAll bytes are swapped.
(0×EFCD AB89 6745 2301)
Process output data mapping
see: Process input data mapping
V01.0| 2016/12
25
TBEN-Lx-8IOL
NameMeaning
ValueA = default
Vendor ID
0x0000 - 0xFFFFEnter the IDs for the port configuration check.
Device ID
0x0000 - 0xFFFF
VAUX1 Pin 1 Cx (Chy/Chz)
0024 VDC AThe 24 VDC sensor/actuator supply at Pin1 of the connector is
switched on.
01switchableThe 24 VDC sensor/actuator supply at Pin1 of the respective con-
nector is switchable via the process data, see also
put data, page 21
10OutThe 24 VDC sensor/actuator supply at Pin1 of the connector is
switched off.
VAUX2 Pin 2 Cx (Chy)
0024 VDC AThe Class B supply at Pin2 of the respective connector is switched
on.
01switchableThe Class B supply at Pin2 of the respective connector is switch-
able via the process data, see also
21
.
10OutThe Class B supply at Pin2 of the respective connector is switched
off.
.
Process output data, page
Process out-
26
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
automatic: The lowest cycle time supported by the device is taken from the table.
A
V01.0| 2016/12
27
TBEN-Lx-8IOL
4.6.1Adaptation of the process data mapping
The mapping of process data can be adapted application-specifically via the IO-Link-master's
parameterization.
Depending on the used fieldbus, it can be necessary to swap process data word-wise, double wordwise or completely in order to align them to the data structure in the PLC.
The process data mapping is determined channel by channel through the parameters "process
input data mapping" and "process output data mapping"" (see Parameters, page 22).
Example mapping for field buses with Little Endian-format:
Maping from master
fieldbus PLC
Byte (A)Byte (A)
StatusByte 0
Byte 1Control
PORT1
Byte 2temperatureLow byte2 byte process
Byte 3High byteLow byte
PORT2
Byte 4positionLow byte2 byte process
Byte 5High byteLow byte
PORT3
Byte 6 Digital signal 0... 7 2 byte process
Byte 7Digital signal8 ...15Digital signal8 ...15
PORT4
Byte 8Diagnosis4 byte process
Byte 9Counter/
Byte 10High byteLow byte
Byte 11MSByteDiagnosis
position value
Low byteHigh byte
Devices at channel Parametrization
of the channel
data
swap 16 bit)
(
data
swap 16 bit)
(
data
direct)
(
swap all)
data (
Process output data mapping
IO-Link device
temperatureHigh byte
positionHigh byte
Digital signal 0... 7
Counter/
position value
MSByte
A Low byte, the lowest byte Low-Byte
High byte High-Byte
MSByte: Most Significant Byte
28
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
4.7Device status
4.7.1LED behavior
The following table describes the protocol-independent behavior of the device LEDs.
The protocol specific LED behavior in PROFINET, EtherNet/IP™ and Modbus TCP is described in the
respective chapters.
LEDColorStatusMeaningRemedy
PWR
ETHxgreenonLink established,100 Mbps
ERRgreenonNo diagnostic message available
greenoff V1 missing or < 18 V DCCheck V1
onV1 and V2 OK-
blinkingV2 missing or < 18 V DCCheck V2
Red onV2 missing or < 18 V DCCheck V2
the behavior of the PWR-LED at undervoltage of V2 can be set via parameter "LED behavior (PWR)
at V2 undervoltage.
blinkingEthernet Traffic, 100 Mbps
yellow
-offNo Ethernet link.Check the Ethernet connection.
onLink established,10 Mbps
blinkingEthernet Traffic, 10 Mbps
redonDiagnostic message pending
BUSgreenonActive connection to a master-
blinkingDevice is ready for operation-
RedonIP address conflict or restore mode
or timeout
blinkingBlink-/wink-command activesee also description of LED "right
red/
gree
n
onAutonegotiation and/or waiting
for DHCP-/BootP-address assignment.
control IP addresses in the network
waiting for the device to be ready
for operation
to ERR"
V01.0| 2016/12
29
TBEN-Lx-8IOL
LEDColorStatusMeaningRemedy
IOLxChannel in IO-Link-mode
greenoffNo IO-Link communication, diag-
nostics deactivated
flashingIO-Link communication active,
valid process data
Red onNo IO-Link communication and/or
module error,
invalid process data
– connect an IO-Link device
– Parameterize the channel as DI if
necessary.
-
Possible causes:
– Sensor supply is below the admis-
sible range,
– IO-Link port is parameterized as
simple digital input,
– No device connected to the mas-
ters,
Red flashingIO-Link communication active and
module error, invalid process data
– No input data received from the
connected device (only valid for
devices with an
input data length > 0),
– the connected device does not
respond on sending
output data (only valid for
devices with an output data
length of > 0).
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
4.7.2Diagnostic data
For the diagnostic messages we distinguish between V1/V2 overcurrent diagnostics, DXP-diagnostics, IO-Link-master and IO-Link-device diagnostics.
The „PDINV" diagnostic (process data invalid) can be sent from both devices, IO-Link master or IOLink device.
V1/V2 overcurrent diagnostics
Overcurrent diagnostics for the sensor-/ actuator supply VAUX1 and the Class B supply VAUX2
DXP-diagnostics
Diagnostic messages of the digital channels of the module (DXP 1, 3, 5, 7).
IO-Link master diagnostics
The IO-Link-master reports problems within the IO-Link communication.
IO-Link device diagnostics
The device diagnostics map the IO-Link Event Codes (according to the IO-Link specification) sent
from the IO-Link devices to the diagnostic telegram of the master.
Event Codes can be read from the connected devices by using appropriate device tools (e.g.
IODD-Interpreter).
Further information concerning the IO-Link Event Codes and their meaning can be found in the
IO-Link specification or in the documentation of the connected devices.
1Overcurrent at the output (if the DXP channel is used as output)
IO-Link master diagnostics
PPEPort parameterization
The port parameters are inconsistent.
The device parameterization via GSD is active, but not working.
Possible causes:
The IO-Link-master did not receive GSDML-parameters for a connected device. The connected device was not parameterized by a PROFINET PLC via GSDML.
The port is in operation mode "IO-Link without validation" or "DI". These modes do not allow
parameterization via GSD.
The data storage mode is active, which means, the parameter is not set to "deactivated,
clear". A device parameterization via GSDML is not possible with activated data storage.
Vendor or Device ID are "0". The connected device can not be identified and is thus not
parameterizable.
32
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
BitMeaningRemedy
CFGERWrong or missing device
The connected device does not match the
channel configuration or there is no device
connected to the channel.
This diagnostic message depends on the
parameterization of the channel (see parame-
page 23).
ters,
Change the parameterization of the IOLink port at the master.
Correct the vendor-ID, device-ID, etc.
The parameterization can be done by
teaching the master via IOL_CALL using
the port function Subindex 67: Teach
Mode
tion.
DSERdata storage error
Possible causes:
– Data storage mismatchIO-Link device in accordance with IO-Link
V1.0 connected.
Deactivate the data storage.
To do so, set parameter
Data storage mode" to "deactivated,
"
clear", see
The data storage buffer contains data of
another device.
Clear the data storage buffer of the master.
To do so, set the parameter "Data stor-
age mode
page 24, and re-activate the data storage
if necessary.
– Overflow of the data storage bufferClear the data storage buffer of the master.
To do so, set the parameter "Data stor-
age mode
page 24, and re-activate the data storage
if necessary.
– Parameter access for data storage not possi-
ble
Master/device diagnostics
PDINVProcess input data invalid
The IO-Link master or the IO-Link device
report invalid process input data.
The connected device may be locked for
parameter changes or for data storage.
Check the status of the IO-Link index
"Device Access Locks" (index 0×C) of the
connected device and unlock the device.
The connected device is not in status
"operate", which means, it is not ready for
operation.
Possible sources:
The connected device does not match the
configured one, additional diagnostic
message
Certain IO-Link devices send a "process
input data invalid"-diagnosis if the process
value cannot be measured.
Deactivate the sending of the "process
input data invalid"-diagnosis for the
respective port. To do so, change the
parameter "
invalid
see page 25.
or via a manual port parameteriza-
page 24.
" to "deactivated, clear", see
" to "deactivated, clear", see
Wrong or missing device.
Process input data
" to "no diagnostics generated",
V01.0| 2016/12
33
TBEN-Lx-8IOL
BitMeaningRemedy
Device diagnostics
For the exact specification of the device diagnostics, please read the device documentation of the device
manufacturer.
HWERHardware error
General hardware error or device malfunction.
EVT2Out-of-specification events
An Out-of-Specification Event in accordance with the IO-Link specification occurred.
EVT1Maintenance events
A Maintenance Event in accordance with the IO-Link specification occurred, maintenance
necessary.
PRMERRParameterization error
The connected device reports a parameterization error (loss of parameters, no parameter
initialization, etc.)..
OTMPOvertemperature
Temperature diagnostic message at the connected device.
LLVULower limit value underrun
The process value lies under the parameterized measurement range or the chosen measurement range has been chosen too high.
ULVEUpper limit value exceeded
The process value exceeds the parameterized measurement range or the chosen measurement range has been chosen too low.
VLOWUndervoltage
One of the voltages at the connected device is below the defined range.
VHIGHOvervoltage
One of the voltages at the connected device is below the defined range.
OLVOverload
The connected device detected an overload.
GENERCommon error
The device sends an error (device status 4, in accordance with IO-Link specification), which
is not clearly specified.
Read out the device Event Codes in order to be able to specify the error more precisely.
34
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
4.7.4Status and control word
Status word
EtherNet/IP™
Modbus
Byte 0Byte 1
Byte 1Byte 0
NameValueDescription
COM0-
DIAG0-
FCE0-
V10-
V20-
PROFINETBit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
V2-DIAG
-FCE- - -COMV1 -
1Internal error, the device-internal communication is disturbed.
1Diagnostics available at the device.
1The Force Mode is activated, which means, the actual output values may no
match the ones defined and sent by the field bus.
1System power supply too low (< 18 V DC).
1V2 too low (< 18 V DC).
The status word is mapped into the module's process data.
EtherNet/IP™
In EtherNet/IP™, the mapping can be disabled (seeGateway Class (VSC 100), GW Status Word,
page 69 and GW Control word, page 69).
Modbus TCP
see Register 0x100C: Module status, page 50
PROFINET
see PROFINET-diagnostics - TBEN-Lx-8IOL, page 82
Control word
The control is not in use.
ATTENTION!
Activate/deactivate the Status and Control Word in EtherNet/IP™
Changes in the process data mapping
Observe that activating/deactivating the Status and Control Word causes changes in
the process data mapping.
V01.0| 2016/12
35
TBEN-Lx-8IOL
IO-Link-Master
(IOLM)
IO-Link-Device
(IOLD)
DS_UPLOAD_FLAG
4.8IO-Link data storage
4.8.1General
Data storage allows to change an IO-Link device when maintenance is required without any configuration or parameterization.
The IO-Link master, as well as the IO-link device, store the device parameters. The data storage
mechanism serves for synchronizing these different data storage buffers.
In case of a device change, the master writes the stored device parameters to the new device. The
application can be re-started without any further intervention using a configuration tool or similar.
In the IO-Link master, the data storage mode can be set using the parameter "data storage mode"
(see Parameters, page 22).
data storage mode
00 = activated (page 37)
01 = overwrite (see page 39)
10 = read in (see page 39)
11 = deactivated, clear (see page 39)
General principle of the data storage mechanism
Para. IOLD = parameter data of the IO-Link device
A change of parameters in the device is indicated by the status of the DS_UPLOAD_FLAG bit:
DS_UPLOAD_FLAG:
0 = no changes in the device's parameter set
1 = changes in the device's parameter set (e. g. via DTM, at the device, etc.)
36
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
4.8.2Parameter "data storage mode" = activated
1
IO-Link-Master
IO-Link-Device
0
IO-Link-Master
IO-Link-Device
The synchronization of the parameter sets is bidirectional.
The actual data set (master or device) is valid:
The following applies:
–
The data set in the device is actual, if DS_UPLOAD_FLAG = 1
– The data set in the master is actual, if DS_UPLOAD_FLAG = 0
Parameterizing a device in the installation:
A device, which is already used in the installation, is for example parameterized via a DTM.
Prerequisites:
The IO-Link device is already connected to the master.
DS_UPLOAD_FLAG = 1
changes in the device's parameter see
Para. IOLD
device
Maintenance - exchange device in delivery status:
A defective device is replaced by a new device in delivery status.
Prerequisites:
The new IO-Link device has not been connected to the master before.
DS_UPLOAD_FLAG = 0
no changes in the device's parameter set
Para. IOLD
device
= parameter data of the IO-Link
= parameter data of the IO-Link
V01.0| 2016/12
37
TBEN-Lx-8IOL
1
IO-Link-Master
IO-Link-Device
Maintenance - exchange device with eventually modified parameter set:
A defective device is replaced by a new device with a parameter set that was already changed before (for
example via DTM).
Prerequisites:
The new IO-Link device has not been connected to the master before.
DS_UPLOAD_FLAG = 1
changes in the device's parameter see
Para. IOLD
device
= parameter data of the IO-Link
NOTE
If a device change is necessary when data storage is activated, the following has to be
observed:
An IO-Link exchange device with unknown parameter data should be reset to factory
defaults before connecting it to the master.
This prevents unknown device parameter settings to be downloaded to the master when
establishing the connection.
Turck IO-Link devices can be reset to factory settings via a system command using a
generic IO-Link-DTM and the device-specific IODD.
For the reset of third party devices, please read the corresponding manufacturer documentation.
38
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
4.8.3Parameter "data storage mode" = read in
1
IO-Link-Master
IO-Link-Device
1
IO-Link-Master
IO-Link-Device
IO-Link-Master
IO-Link-Device
The data set in the device is always the reference data set.
The synchronization of the parameter sets is unidirectional towards to the master.
The status of the DS_UPLOAD_FLAG is ignored.
4.8.4Parameter "data storage mode" = overwrite
The data set in the master is always the reference data set.
The synchronization of the parameter sets is unidirectional towards to the device.
Entitiy_Port 1 = IO-Link device at 1st IO-Link-port
...
Entitiy_Port 8 = IO-Link device at 8th IO-Link-port
4.9.1Port functions for port 0 (IO-Link master)
IO-Link-Index (Port function invocation)
The access to the IO-Link master functionalities (port 0) is done via index:
65535
Subindex 64: Master Port Validation Configuration
Entity_
Port
064wmax. 72 byteThis object serves for writing a defined config-
IO-Link
subindex
Read
Write
LengthDescription
Subindex 66: Set Default Parameterization
Entity_
Port
066w4 byteWriting this object sets the IO-Link master
Structure of the reset command:
Byte 3Byte 2Byte 1Byte 0
0xEF0xBE0xAD0xDE
IO-Link
subindex
Read
Write
LengthDescription
uration of the IO-Link ports into the master.
back to factory settings. Any parameter setting and configuration is overwritten. The data
storage buffer is deleted as well.
40
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Subindex 67: Teach Mode
Entity_
Port
067w1 byteThe master reads all data (device-Id, ven-
IO-Link
subindex
Read
Write
LengthDescription
dor-ID, serial number, etc.) from the connected device and saves them. All all previously saved device data are overwritten.
Structure of the teach command:
Byte 0
0x00Teaching all 4 ports
0x01Teaching port 1
0x02Teaching port 2
0x03Teaching port 3
0x04Teaching port 4
0x05 - 0xFFreserved
V01.0| 2016/12
41
TBEN-Lx-8IOL
Subindex 68: Master Port Scan Configuration
Entity_
Port
068rmax. 120 byteThis object serves for reading the
IO-Link
subindex
Read
Write
LengthDescription
configuration of the IO-Link devices connected to the IO-Link master.
28 byte are returned per IO-Link port
Structure of the answer telegram:
IO-Link
Port
Port 1Vendor_ID2 byteUINT16Vendor ID of the connected device
Port 2Structure similar to port 1
Port 3
Port 4
ContentLengthFormatDescription
Device_ID4 byteUINT32Device-ID of the connected device
Function_ID2 byteUINT16reserved
Serial_Number16 byteStringSerial number of the connected device
COM_Revision1 byteUINT8IO-Link version
Proc_In_Length1 byteUINT8Process input data length of the con-
nected device
Proc_Out_Length1 byteUINT8Process output data length of the con-
nected device
Cycle timeUINT8Cycle time of the connected device
42
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Subindex 69: Extended Port Diagnostics
Entity_
Port
069rmax. 8 byteThis object serves for reading the
IO-Link
subindex
Read
Write
LengthDescription
Extended Port Diagnostics.
Structure of the Extended Port Diagnostics:
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
Byte 0
Byte 1-WDMDPDI_H-PDI_ENO_PD-
Byte 3
Byte 4
Diagnostic bitMeaning
NO_DSThe parameterized port mode (see Parameters, page 22) does not support data
NO_SIOTCYC--DS_FNO_DS--
Device status according to IO-Link specification (see Device Status, page 44)
storage.
Remedy:
– Change the parameterization of the port.
DS_FError in the data storage, synchronization not possible
Possible causes:
– Connected device does not support data storage.
– Overflow of the data storage buffer.
Remedy:
– Connect a device that supports data storage.
– Clear the data storage buffer.
– Deactivate the data storage.
TCYCThe device does not support the cycle time parameterized in the master.
Remedy:
– Increase the cycle time set in the master.
NO_SIOThe device does not support the standard DI mode (see parameter
22
).
Remedy:
Mode, page
– Select the IO-Link mode for this port.
NO_PDNo process data available The connected device is not ready for operation.
Remedy:
– Checking the configuration
PDI_EThe connected device reports invalid process data in accordance with IO-Link speci-
fication V1.0.
V01.0| 2016/12
43
TBEN-Lx-8IOL
Device Status
Diagnostic bitMeaning
PDI_HThe connected device reports invalid process data in accordance with IO-Link speci-
fication V1.1.
MDMissing device: No IO-Link device detected
Remedy:
– Check the IO-Link cable.
– Change the device.
WDWrong device detected: one or more parameters of the connected device (Vendor ID,
Device ID, serial number) does not/do not match the data which are stored in the
master for this device.
Remedy:
– Change the device.
– Adapt the master parameterization (see parameter Mode, page 22)
ValueMeaning
0Device works correctly
1Maintenance Event
2Out-of-Specification Event
3Functional check
4error
5-255reserved
44
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
4.10IO-Link and Turck device DTMs
FDT enables a fieldbus and system independent engineering environment to be set up. Generic
DTMs allow any type of sensor and actuator to be integrated easily in the system.
4.10.1Topology-Scan
The Topology Scan in PACTware also allows the read-in of an IO-Link configuration down to the IOLink device.
IO-Link devices, known in PACTware, are added to the IO-Link ports of the master.
Therefore, either the respective sensor DTMs in PACTware or the sensor IODDs via IODD DTM Configurator have to be installed.
Fig. 4: Topology Scan in PACTware
V01.0| 2016/12
45
TBEN-Lx-8IOL
4.10.2Special DTM parameters
The Turck DTMs offer, besides the normal parameters of the IO-Link master modules, special function for configuring the master module.
46
Fig. 5: Special DTM-function within Online parameterization.
Automatic IO-Link detection
The data of the connected device/ the connected devices are read-in by the master.
This function affects, depending on the parameter group in which it is activated, all ports or only one special
port. In the "Common"-group it is valid for the whole module, in the "Port configuration" group it is only valid
for the respective port.
Factory settings
The master is set back to its factory settings.
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
5TBEN-Lx-8IOL with Modbus TCP
5.1General
5.1.1Implemented Modbus functions
The modules TBEN-Lx-8IOLsupport the following Modbus TCP functions for accessing process data,
parameters, diagnostics and other services:
Function codes
No. Function
Description
1Read Coils
Reading multiple output bits
2Read Discrete Inputs
Reading multiple input bits
3
4Read Input Registers
5Write Single Coil
6
15Write Multiple Coils
16Write Multiple Registers
23
Read Holding Registers
Reading multiple output registers
Reading multiple input registers.
Writing a single output bit.
Write Single Register
Writing a single output register.
Writing multiple output bits.
Writing multiple output registers.
Read/Write Multiple Registers
Reading and writing of multiple registers
5.1.2Modbus registers
V01.0| 2016/12
NOTE
For the register mapping of the different Modbus addressing methods see page 49.
47
TBEN-Lx-8IOL with Modbus TCP
Register assignment
Address (hex.)Access
ro = read only
rw = read/write
0x0000 0x01FFroProcess data of inputs
0x0800 0x09FFrwProcess data of outputs
0x1000 0x100BroModule identifier
0x100CroModule status
0x1010
0x1016
0x1017roRegister mapping revision
0x1020roWatchdog, actual time [ms]
0x1120rwWatchdog predefined time [ms] (default: 0)
0x1130rwModbus connection mode register, page 50
0x1131rwModbus connection timeout in sec. (default: 0 = never).
0xA000 0xA400roDiagnostics, see Diagnostic data, page 31
0xB000 0xB400rwParameters
roreserved
Description
see Register 0x100C: Module status, page 50
Register mapping revision (always 2, if not, mapping is incompatible with this description)
see Error behavior (watchdog), page 53
page 50
(reset of parameters to default values)
(permanent storing of parameters)
Deactivates explicitly the selected Ethernet-protocol:
Bit 0 =Deactivate EtherNet/IP™
Bit 1 =Deactivate Modbus TCP
Bit 2 =Deactivate PROFINET
Bit 15 = Deactivate web server
Bit 0 = 1: EtherNet/IP™ active
Bit 1 = 1: Modbus TCP active
Bit 2 = 1: PROFINET active
Bit 15 = 1: web server active
Bit 0:
0 = green
1 = red
Process input data, page 19
Process output data, page 21
48
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
The following table shows the register mapping for the different Modbus addressing methods:
Modbus connection timeout in sec. 0x1131440144402404402
Modbus parameter restore,0x113C
0x113D
Modbus parameter save,0x113E
0x113F
Deactivate protocol0x1140441644417404417
Active protocol0x1141441744418404418
V1 [mV]:0x2400921649217409217
V2 [mV]:0x2401921749218409218
Process data inputs 0x8000,
0x8001
Process data outputs 0x9000,
0x9001
Diagnostics 0xA000,
00A001
Parameters0xB000,
0xB001
0
511
2048
2549
4096
4107
4412
4413
4414
4415
32768
32769
36864,
36865
40960,
40961
45056,
45057
40001
40512
42049
42560
44097
44108
44413
44414
44415
44416
-432769
-436865,
-440961,
-445057,
400001
400512
402049
402560
404097
404108
404413
404414
404415
404416
432770
436866
440962
445058
V01.0| 2016/12
49
TBEN-Lx-8IOL with Modbus TCP
Register 0x100C: Module status
This register contains the module's status word.
Byte 1 (MSB)Byte 0 (LSB)
Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9Bit 8Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
-FCE----V1-V2------DIAG
see also:
Chapter 4.7.4, Status and control word, page 35
Register 0x1130: Modbus connection mode
This register defines the behavior of the Modbus connections:
BitName
– Description
15 2 reserved
1
0MB_OnlyOneWritePermission
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 01h 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
connection establishment. The first Modbus-connection thus receives the write authorization,
all following connections don’t (only if bit 0 = 1).
– 0: all Modbus-connections receive the write authorization
– 1: Only one Modbus-connection can receive the write permission. A write permission is opened
until a Disconnect. After the Disconnect the next connection which requests a write access
receives the write authorization.
Register 0x1131: Modbus Connection Timeout
This register defines after which time of inactivity a Modbus-connection is closed through a Disconnect.
Behavior of the BUS LED
In case of a Connection Timeout the BUS LED's behavior is as follows:
Connection-Timeout BUS-LED
time-outgreen, blinking
50
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Register 0x113C and 0x113D: Restore Modbus-Connection-Parameters
Registers 0x113C and 0x113D serve for resetting the parameter-register 0x1120 and 0x1130 to
0x113B to the default settings.
For this purpose, write 0x6C6F to register 0x113C. To activate the reset of the registers, write 0x6164
("load") within 30 seconds in register 0x113D.
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.
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.
For this purpose, write 0x7361 to register 0x113E. To activate the saving 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.
V01.0| 2016/12
51
TBEN-Lx-8IOL with Modbus TCP
5.2Data width of the TBEN-Lx-8IOL in the Modbus-register area
Bit 9Bit 8Bit 7Bit 6Bit 5 Bit 4 Bit 3 Bit 2Bit 1Bit 0
10
Input data
Process input data
see Chapter 4, Process input data, page 19
Module status
see Register 0x100C: Module status, page 50
Output data
process output data
see Chapter 4, Process input data, page 19
DXP-channel diagnostics
IO-Link channel diagnostics
see Chapter 4, Diagnostic data, page 31…
Parameters
see Chapter 4, Parameters, page 22
IO-Link-Basic
EN
DO7
IO-Link port 1
Quick
Start-
Process out-
put data map-
ping
process out-
put data
-
Device ID
IO-Link port 2
8 registers of parameter data,
assignment similar to port 1
IO-Link port 3
8 registers of parameter data,
assignment similar to port 1
-
Up
EN
DO5
data storage
Process out-
input data
-
mode
put data
mapping
process
EN
DO3
Deactivate
diagnostics
deactivate
web server
-
Mode
Process
inpu
EN
DO1
t data
valid
Revi-
sion
-
52
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
RegisterBit15Bit14Bit 13Bit12Bit11Bit
10
0xB01A
… 0xB021
0xB022 …
0xB029
0xB02A
… 0xB031
0xB032 …
0xB039
0xB03A
… 0xB041
0xB042
0xB043
0xB044
0xB045
0xB046 …
0xB047
0xB048
0xB049
-
-
-
-
-
-
Bit 9Bit 8Bit 7Bit 6Bit 5 Bit 4 Bit 3 Bit 2Bit 1Bit 0
IO-Link port 4
8 registers of parameter data,
assignment similar to port 1
IO-Link port 5
8 registers of parameter data,
assignment similar to port 1
IO-Link port 6
8 registers of parameter data,
assignment similar to port 1
IO-Link port 7
8 registers of parameter data,
assignment similar to port 1
IO-Link port 8
8 registers of parameter data,
assignment similar to port 1
VAUX1
monitoring
VAUX1 Pin1 C1
(Ch2/3)
VAUX1 Pin1 C3
(Ch6/7)
VAUX1 Pin1 C5
(Ch10)
VAUX1 Pin1 C7
(Ch14)
-
-
-
-
-
VAUX1 Pin1 C0
(Ch0/1)
VAUX1 Pin1 C2
(Ch4/5)
VAUX1 Pin1 C4
(Ch8)
VAUX1 Pin1 C6
(Ch12)
VAUX2
monitoring
VAUX2 Pin2 C5
(Ch11)
VAUX2 Pin2 C7
(Ch15)
-
-
VAUX2 Pin2 C4
(Ch9)
VAUX2 Pin2 C6
(Ch13)
5.4Error behavior (watchdog)
5.4.1Behavior of outputs
In case of a failure of the Modbus communication, the outputs’ behavior is as follows, depending on
the defined time for the Watchdog (register 0x1120,
Watchdog = 0 ms (default)
outputs hold the momentary value in case of an error
Watchdog > 0 ms
outputs switch to
NOTE
Setting the outputs to predefined substitute values is not possible in Modbus TCP. Eventually parameterized substitute values will not be used.
V01.0| 2016/12
page 48):
0 after the watchdog time has expired (setting in register 0x1120).
53
TBEN-Lx-8IOL with Modbus TCP
5.4.2Behavior of the BUS LED
If the Watchdog has tripped, the BUS LED behaves as follows:
Watchdog BUS-LED
trippedconstantly red
5.5Parameters and diagnostic messages of the I/O channels
NOTE
Please find explanations regarding parameters and diagnostic messages in the section
Register mapping TBEN-Lx-8IOL, page 52.
54
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
6TBEN-Lx-8IOL with EtherNet/IP™
6.1EDS-file
The actual EDS-files for TBEN-L can be downloaded from the Turck home page www.turck.com.
EDS-fileZIP-file
TBEN-Lx-8IOL_Rx.x.edsTBEN-L45_ETHERNETIP.zip
6.2QC - QuickConnect
QuickConnect is not supported by TBEN-Lx-8IOL.
NOTE
Further information about QuickConnect and the configuration options can be found in
the user manual for the TBEN-S product family
„TBEN-L/TBDP-L Compact I/O modules for Ethernet/PROFIBUS-DP“
6.3Diagnostic messages via the process data
The diagnostic messages of the IO-Link-channels are directly mapped into the process data (see
Parameter data mapping, TBEN-Lx-8IOL, page 61.)
Additionally, the device's status word contains the module diagnostics:
D301323 -
Status word
Bit 15Bit 14Bit 13Bit 12Bit 11Bit 10Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
see also
Chapter 4.7.4, Status and control word, page 35
or
Chapter 6.5.2, Gateway Class (VSC 100), page 68,
69
Byte 1 (MSB)Byte 0 (LSB)
-FCE----V1-V2------DIAG
Object Instance 2, gateway Instance, page
V01.0| 2016/12
55
TBEN-Lx-8IOL with EtherNet/IP™
6.4EtherNet/IP™-standard classes
The modules TBEN-L support the following EtherNet/IP™ Standard Classes in accordance with the
CIP specification.
Class CodeObject name
01 (0x01)Identity Object (0x01)
04 (0x04)Assembly Object (0x04)
06 (0x06)Connection Manager Object (0x06)
245 (0xF5)TCP/IP Interface Object (0xF5)
246 (0xF6)Ethernet Link Object (0xF6)
6.4.1Identity Object (0x01)
The following description of the Ethernet Link Object is taken from the CIP specification, Vol. 2, Rev.
2.1 by ODVA & ControlNet International Ltd. and adapted to TBEN-L.
Class attributes
Attr. No.Attribute nameGet/
Set
1 (0x01)REVISIONGUINT1
2 (0x02)MAX OBJECT INSTANCEGUINT1
6 (0x06)MAX CLASS ATTRIBUTEGUINT7
7 (0x07)MAX INSTANCE ATTRIBUTEGUINT7
Instance attributes
Attr. No.Attribute nameGet
1 (0x01)VENDORGUINTContains the vendor ID.
2 (0x02)PRODUCT TYPEGUINTShows the general product type.
3 (0x03)PRODUCT CODEGUINTIdentifier for a specific product of a device
4 (0x04)REVISION
Major Minor
TypeDescription
/
Set
GSTRUCT
OF:
USINT
USINT
TURCK = 48
Communications Adapter
= 0x0C
12
dec
type.
default: 27247
Revision of the item the Identity Object is representing.
0x01
0x06
dec =
TypeValue
6A6F
56
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
5 (0x05)DEVICE STATUSGWORDSee Device Status
6 (0x06)SERIAL NUMBERGUDINTContains the ident-no. of the product (3 last
bytes of the MAC-ID).
7 (0x07)PRODUCT NAME
GSTRUCT
OF:
e. g.:
TBEN-Lx-16DXP
LENGTH
NAME
Device Status
BitNameDefinition
0 to 1reserveddefault = 0
2ConfiguredTRUE = 1
3reserveddefault = 0
4 to 7Extended Device
Status
8 to 15reserveddefault = 0
Common Services
Service codeClassInstanceService name
01 (0x01)yesyesGet_Attribute_All
05 (0x05)noyesReset
14 (0x0E)yesyesGet_Attribute_Single
16 (0x10)nonoSet_Attribute_Single
USINT
STRING
[13]
The application of the device has been configured (
default-settings).
0011 = no I/O connection established
0110 = at least one I/O connection in RUN mode
0111 = at least one I/O connection established, all in IDLE
mode
All other settings = reserved
Returns a predefined list of the object‘s attributes.
Starts the reset service for the device.
Returns the contents of a specified attribute.
Modifies a single attribute.
6.4.2Assembly Object (0x04)
Assembly Objects bind attributes of multiple objects to allow data to or from each object to be sent
or received over a single connection.
The following description of the Ethernet Link Object is taken from the CIP specification, Vol. 2, Rev.
2.1 by ODVA & ControlNet International Ltd. and adapted to TBEN-L.
Class attributes
Attr. No.Attribute nameGet/
1 (0x01)REVISIONGUINT2
2 (0x02)MAX OBJECT INSTANCEGUINT104
V01.0| 2016/12
TypeValue
Set
57
TBEN-Lx-8IOL with EtherNet/IP™
Instance attributes
Attr. No.Attribute nameGet
3 (0x03)DATASARRAY OF
4 (0x04)SIZEGUINT Number of bytes in attr. 3
Common Services
Service codeClassInstanceService name
01 (0x01)yesyesGet_Attribute_All
14 (0x0E)noyesGet_Attribute_Single
Configuration Assembly (Instance 106)
TBEN-L modules support Configuration Assembly. It enables an EDS-based configuration/parameterization of the devices in the PLC software (if supported by the PLC).
The Configuration Assembly contains:
10 bytes module configuration data (EtherNet/IP™-specific)
+ 110 bytes (parameter data)
Parameter data mapping, TBEN-Lx-8IOL
TypeDescription
/
Set
BYTE
256 or variable
ByteBit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
Module configuration data, see
0 to 9
Parameter data TBEN-Lx-8IOL, see Parameters, page 22
10
Module configuration data, page 59
LED behavior
Reserved
(PWR) at V2
Undervoltage
Eth 2
Port Setup
DXP 1 - SRO
Eth 1
Port Setup
(not supported)
Manual output reset after overcurrent
11
DXP 3 - SRO
Manual output reset after overcurrent
12
DXP 5 - SRO
Manual output reset after overcurrent
13
DXP 7 - SRO
Manual output reset after overcurrent
14
15
16
17
IO-Link port parameters, see Parameters, page 22
DXP 1 - EN DO Activate output
DXP 3 - EN DO Activate output
DXP 5 - EN DO Activate output
DXP 7 - EN DO Activate output
IO-Link port 1
18
19
20
Mode
Data storage mode
Cycle time
QC
58
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
ByteBit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
21
22
23
24
25
26
27
28 - 29
30 - 33
34 - 49 IO-Link port 2
Activate Quick Start-Up
Device parameterization via GSD
Process input data invalid
Deactivate diagnostics
Process input data mapping
Process output data mapping
Revision
Vendor ID
Device ID
(assignment acc. to bytes 18 - 33 for port 1)
50 -65 IO-Link port 3
(assignment acc. to bytes 18 - 33 for port 1)
66 - 81IO-Link port 4
(assignment acc. to bytes 18 - 33 for port 1)
82 - 97IO-Link port 5
(assignment acc. to bytes 18 - 33 for port 1)
98 - 113IO-Link port 6
(assignment acc. to bytes 18 - 33 for port 1)
114 - 129IO-Link port 7
(assignment acc. to bytes 18 - 33 for port 1)
Module configuration data
Parameter name
= default
A
LED behavior (PWR) at V2
undervoltage
(Ethx Port Setup)
ValueMeaning
0 = greenPWR-LED is blinking green at V2 undervoltage.
1 = redPWR-LED constant red at V2 undervoltage.
0 = Autonegotiation A
1 = 100BT/FDDefined setting of the communication param-
eters for the Ethernet port to:
– 100BaseT
– Full duplex
V01.0| 2016/12
59
TBEN-Lx-8IOL with EtherNet/IP™
Process data instances
Instance 101
Contains the module’s input data (static length 256 bytes).
2 Bytes status information (see page 35)
+ process data
Instance 102
Contains the module’s
output data (static length 256 bytes).
2 bytes control word (mapped, but not defined)
+ process data
Instance 103 and Instance 104
In- and output assembly instances
with variable assembly sizes. The assembly size is pre-calculated
to support the stations I/O-configuration, enabled diagnostics, etc.
The effective size of the Assembly Instance can be determined using the Assembly Object (instance
0×67, attribute 0x04):
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Parameter data mapping, TBEN-Lx-8IOL
Including the status word which can be deactivated via Gateway Class (VSC 100), GW Status
Word, page 69 and GW Control word, page 69.
ATTENTION!
Activate/deactivate the Status and Control Word in EtherNet/IP™
Changes in the process data mapping
Observe that activating/deactivating the Status and Control Word causes changes in
the process data mapping.
Connection Manager Object (0x06), page 61.
INBit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8Bit 7Bit 6 Bit 5Bit 4Bit 3 Bit 2Bit 1Bit 0
Status
V2------Diag-FCE----V1-
Input data
(see Chapter 4Process input data, page 19)
OUT
Output data
(see Chapter 4, Process output data, page 21)
see Status and control word
6.4.3Connection Manager Object (0x06)
This object is used for connection and connectionless communications, including establishing connections across multiple subnets.
The following description of the Ethernet Link Object is taken from the CIP specification, Vol. 2, Rev.
2.1 by ODVA & ControlNet International Ltd. and adapted to TBEN-L.
Common Services
Service codeClassInstanceService name
84 (0x54) noyesFWD_OPEN_CMD
78 (0x4E) noyesFWD_CLOSE_CMD
82 (0x52)noyesUNCONNECTED_SEND_CMD
(Opens a connection)
(Closes a connection)
V01.0| 2016/12
61
TBEN-Lx-8IOL with EtherNet/IP™
6.4.4TCP/IP Interface Object (0xF5)
The following description of the Ethernet Link Object is taken from the CIP specification, Vol. 2, Rev.
1.1 by ODVA & ControlNet International Ltd. and adapted to TBEN-L.
Class attributes
Attr. No.Attribute nameGet/
Set
1 (0x01)REVISIONGUINT1
2 (0x02)MAX OBJECT INSTANCEGUINT1
3 (0x03)NUMBER OF INSTANCESGUINT1
6 (0x06)MAX CLASS IDENTIFIERGUINT 7
7 (0x07)MAX INSTANCE ATTRIBUTEGUINT 6
Instance attributes
Attr. No.Attribute nameGet/
1 (0x01)STATUS GDWORDInterface status (see page 63, Interface Status)
2 (0x02)CONFIGURATION
CAPABILITY
3 (0x03)CONFIGURATION
CONTROL
4 (0x04)PHYSICAL LINK
OBJECT
Path size
Path:
5 (0x05)INTERFACE CON-
FIGURATION
IP AddressGUDINTActual IP address
NETWORK MASKGUDINTActual network mask
GATEWAY ADDR.GUDINTActual default gateway
NAME SERVERGUDINT0 = no server address configured
NAME SERVER 2UDINT0 = no secondary server address configured
DOMAIN NAMEGUDINT0 = no Domain Name configured
6 (0x06)HOST NAMEGSTRING0 = no Host Name configured (see page 64)
12 (0x0C)Quick ConnectG/SBOOL0 = deactivate
TypeDescription
Set
GDWORDInterface Capability Flag (see page 63, Configura-
tion Capability)
G/SDWORDInterface Control Flag (see page 63, Configura-
tion Control)
GSTRUCT
UINTNumber of 16 bit words: 0x02
Padded
EPATH
GStructure
of:
0x20, 0xF6, 0x24, 0x01
TCP/IP Network Interface Configuration (see page
63)
1 = activate
TypeValue
62
Common Services
Service codeClassInstanceService name
01 (0x01)yesyesGet_Attribute_All
02 (0x02)no noSet_Attribute_All
14 (0x0E)yesyesGet_Attribute_Single
16 (0x10)no yesSet_Attribute_Single
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Interface Status
The Status attribute indicates the status of the TCP/IP network interface.
Refer to the state diagram: Fig. 6: 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.
Bit(s)NameDefinition
0-3Interface Configuration
Status
4 to 31reserved
Configuration Capability
Indicates the status of the Interface Configuration attribute:
0 = The Interface Configuration attribute has not been configured
1 = The Interface Configuration attribute contains valid configuration.
2 to 15: reserved
The Configuration Capability indicates the device’s support for optional network configuration
capability.
Bit(s)NameDefinitionValue
0BOOTP ClientThe device is capable of obtaining its net-
work configuration via BOOTP.
1DNS ClientThe device is capable of resolving host
names by querying a DNS server.
2DHCP ClientThe device is capable of obtaining its net-
work configuration via DHCP.
1
0
1
Configuration Control
The Configuration Control attribute is used to control network configuration options.
Bit(s)NameDefinition
0-3Startup-
Configuration
4DNS EnableAlways 0
5-31reservedSet to 0
Interface Configuration
Determines how the device shall obtain its initial configuration.
0 = The device shall use the interface configuration values previously stored (for example, in non-volatile memory or via hardware
switches, etc).
1 to 3: reserved
This attribute contains the configuration parameters required to operate as a TCP/IP node. To modify the Interface Configuration attribute, get the Interface Configuration attribute first, change the
desired parameters, then set the attribute.
The TCP/IP Interface Object applies the new configuration upon completion of the Set service. If the
value of the Startup Configuration bits (Configuration Control attribute) is 0, the new configuration
is stored in non-volatile memory.
The device does not reply to the set service until the values are safely stored to non-volatile memory.
An attempt to set any of the components of the Interface Configuration attribute to invalid values
results in an error (status code 0x09) returned from the Set service.
If initial configuration is obtained via BOOTP or DHCP, the Interface Configuration attribute components are all 0 until the BOOTP or DHCP reply is received.
Upon receipt of the BOOTP or DHCP reply, the Interface Configuration attribute shows the configuration obtained via BOOTP/DHCP.
V01.0| 2016/12
63
TBEN-Lx-8IOL with EtherNet/IP™
Non-existent
Obtaining initial
configuration
Waiting
for
configuration
Applying
configuration
TCP/IP network
interface configured
Status = 0×00000001
Powerup/ Reset
BOOTP/DHCP
response received
BOOTP/DHCP
disabled and
stored config.
valid
Set_Attributes
request received
Change interface
configuration
Status =
0×00000000
Configuration applied
BOOTP OR
DHCP enabled
BOOTP/DHCP
disabled and
stored config. valid
Status =
0×00000000
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.
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.
Fig. 6: TCP/IP object state diagram (acc. to CIP Spec., Vol.2, Rev. 1.1)
64
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
6.4.5Ethernet Link Object (0xF6)
The following description of the Ethernet Link Object is taken from the CIP specification, Vol. 2, Rev.
1.1 by ODVA & ControlNet International Ltd. and adapted to TBEN-L.
2 WORDAllows port-wise changes of the Ethernet-set-
Contains the interface’s MAC address
(Turck: 00:07:46:××:××:××)
tings
TypeValue
Interface flags
BitsNameDefinitionDefault value
0Link StatusIndicates whether or not the Ethernet 802.3
communications interface is connected to an
active network.
0 = inactive link
1 = active link
1Half/full duplex0 = half duplex
1 = full duplex
If th e Lin k Stat us fl ag is 0, Dup lex b it can not b e
defined.
Depends on application
Depends on application
V01.0| 2016/12
65
TBEN-Lx-8IOL with EtherNet/IP™
BitsNameDefinitionDefault value
2 to 4Negotiation StatusIndicates the status of the automatic
5Manual Setting
Requires Reset
6Local Hardware
Fault
Duplex detection (autonegotiation)
0 = autonegotiation running
1 = autonegotiation and speed detection
failed
Using default values for speed and duplex
(10Mbps/half duplex).
2 = autonegotiation failed but detected speed
(default: half duplex).
3 = successfully negotiated speed and duplex.
4 = autonegotiation not attempted. Forced
speed and duplex.
0 = interface can activate changes to link
parameters (auto-negotiate, duplex mode,
interface speed) automatically
1 = device requires a Reset service to be issued
to its Identity Object in order to adapt the
changes
0 = interface detects no local hardware fault
1 = a local hardware fault detected
Depends on application
0
0
Common Services
Service codeClassInstanceService name
01 (0x01)yesyesGet_Attribute_All
14 (0x0E)yesyesGet_Attribute_Single
76 (0x4C)no yesEnetlink_Get_and_Clear
66
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
6.5VSC-Vendor Specific Classes
In addition to supporting the above named CIP Standard Classes, the TBEN-L modules support the
vendor specific classes described in the following.
Class Code
dec.
(hex.)
100 (0x64)Gateway Class, page 68Contains data and settings concerning the
126 (0x1A)Miscellaneous Parameters Class, page 71Describes the EtherNet/IP™-Port properties
135 (0x87)DXP Class, page 72Describes the DXP-channel properties
137 (0x89)IO-Link-Port Class, page 72Describes the IO-Link--channel properties
NameDescription
6.5.1Class Instance der VSCs
NOTE
The class instance attributes are the same for each Vendor Specific Class.
The class-specific Object Instances and the corresponding attributes are explained in the
paragraphs for the different VSC.
The general VSC - class instance attributes are defined as follows.
Attr. No.
dec.
(hex.)
100
(0x64)
101
(0x65)
102
(0x66)
103
(0x67)
Attribute nameGet
field bus-specific part of the TBEN-L devices.
TypeDescription
/
Set
Class revisionGUINTContains the revision number of the class
(maj. rel. *1000 + min. rel.).
Max. instanceGUSINTContains the number of the highest instance
of an object created on this level in the class
hierarchy.
# of instancesGUSINTContains the number of Object Instances cre-
ated in this class.
Max. class attributeGUSINTContains the number of the last class attribute
to be implemented.
V01.0| 2016/12
67
TBEN-Lx-8IOL with EtherNet/IP™
6.5.2Gateway Class (VSC 100)
This class contains all information which concerning the whole module not the different channels.
Class instance
NOTE
Please refer to section Class Instance der VSCs, page 67 for the description of the class
instance for the VSC.
Object instance 1, boot instance
Attr. No.
dec.
(hex.)
100
(0x64)
101
(0x65)
102
(0x66)
103
(0x67)
104
(0x68)
Attribute nameGet
Max object attribute
Hardware revisionGSTRUCTContains the hardware revision number of the
Firmware revisionGSTRUCTContains the revision number of the boot firm-
Service tool ident
number
Hardware
Info
TypeDescription
/
Set
GUSINTContains the number of the last object attri-
bute to be implemented.
module (USINT Maj./USINT Min.)
ware (Maj./Min.).
GUDINTContains the BOOT ID number that serves as
an identification number for the DTM-software.
GSTRUCTContains station hardware information (UINT):
– count (number of the following entries)
– CLOCK FREQUENCY (kHz)
– MAIN FLASH (in kB)
– MAIN FLASH SPEED (ns)
– SECOND FLASH (kB)
– RAM (kB),
– RAM SPEED (ns),
– RAM data WIDTH (bit),
– SERIAL EEPRPOM (kbit)
– RTC SUPPORT (in #)
– AUTO SERVICE BSL SUPPORT (BOOL)
– HDW SYSTEM
68
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Object Instance 2, gateway Instance
Attr. No.
dec.
(hex.)
109
(0x6D)
115
(0x73)
138
(0x8A)
139
(0x8B)
140
(0x8C)
Attribute nameGet
/
Set
Status word
(Status register 2)
ON IO
CONNECTION
TIMEOUT
GW Status
Word
GW Control wordGet
Disable ProtocolsGet
GSTRUCTThe Status Word contains general station sta-
G/SENUM
Get
/set
/set
/set
TypeDescription
tus 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 .
– Bit 13: reserved
– Bit 12: reserved
Internal bus
– Bit 11: reserved
– Bit 10: reserved
Voltage errors
– Bit 09: "V1 too low" (< 18 VDC).
– Bit 08: reserved
– Bit 07: "V2 too low" (< 14 VDC).
– Bit 06: reserved
– Bit 05: reserved
– Bit 04: reserved
Warnings
– Bit 03: reserved
– Bit 02: reserved
– Bit 01: reserved
– Bit 00: Module diagnostics pending (DIAG), at
least one channel sends active diagnostics.
Reaction to the I/O connection exceeding the
USINT
DWORDActivates or deactivates the mapping of the
DWORDActivates or deactivates the mapping of the
UINTDeactivation of the used Ethernet protocol.
time limit.
SWITCH IO FAULTED (0):
The channels are switched to substitute value.
SWITCH IO OFF (1):
The outputs are switched to 0.
SWITCH IO HOLD (2):
No further changes to the I/O-data. The outputs are held.
status word into the module's input data.
control word into the module's output data.
Bit assignment of protocols:
Bit 0 = EtherNet/IP™ (can not be disabled via
EtherNet/IP™-interface)
Bit 1 = Modbus TCP
Bit 2 = PROFINET
Bit 11 - bit14 = reserved
Bit 15 = web server
V01.0| 2016/12
69
TBEN-Lx-8IOL with EtherNet/IP™
Object instance 4, COS/CYCLIC instance
Attr. No.
dec.
(hex.)
104 (0x68)COS data
Attribute nameGet/
mapping
TypeDescription
Set
G/SENUM
USINT
The actual data are loaded to the non-volatile memory of the station.
Changes become valid after a start-up.
0 = standard: Data of COS message
input data.
1 = process input data (only the process
data input image is transferred to scanner)
2 to 7: reserved
70
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
6.5.3Miscellaneous Parameters Class (VSC 126)
Ethernet-Port ETH 1 = instance 1
Ethernet-Port ETH 2 = instance 2
Attr. No.
dec.
(hex.)
109
(0x6D)
112
(0x70)
Attribute
name
Ethernet
port
Parameters
I/O
controller
Software
revision
Get/
Set
G/SDWORD0 = autonegotiate, AutoMDIX
GDWORD The number of instances of this parameter depends on
TypeDescription
1 = 10BaseT, half duplex, linear topology (AutoMDIX dis-
abled)
2 = 10BaseT, full duplex, linear topology (AutoMDIX dis-
abled)
3 = 100BaseT, half duplex, linear topology (AutoMDIX
disabled)
4 = 100BaseT, full duplex, linear topology (AutoMDIX dis-
abled)
the number of I/O controllers.
V01.0| 2016/12
71
TBEN-Lx-8IOL with EtherNet/IP™
6.5.4IO-Link Port Class 137 (89h)
This class contains eight object instance, one for each IO-Link-port.
Attr. no.
dec.
(hex.)
1 (0x01)IOL -
2 (0x02)IOL -
3 (0x03)IOL -
Attribute nameGet/
Operation mode
data storage mode
Cycle time
TypeDescription
Set
G/SUSINT0 = IO-Link without validation
1 = IO-Link with family compatible device
2 = IO-Link with compatible device
3 = IO-Link with identical device
4 = DI (with parameter access)
5 to 7: reserved
8 = DI
G/SUSINT0 = activated
1 = overwrite
2 = read in
3 = deactivated, clear
G/SUSINT0 = automatic
16 = 1,6 ms
32 = 3,2 ms
48 = 4,8 ms
64 = 6,4 ms
68 = 8,0 ms
72 = 9,6 ms
76 = 11,2 ms
80 = 12,8 ms
84 = 14,4 ms
88 = 16,0 ms
92 = 17,6 ms
96 = 19,2 ms
100 = 20,8 ms
104 = 22,4 ms
108 = 24,0 ms
112 = 25,6 ms
116 = 27,2 ms
120 = 28,8 ms
124 = 30,4 ms
128 = 32,0 ms
129 = 33,6 ms
130 = 36,8 ms
132 = 40,0 ms
134 = 41,6 ms
135 = 43,2 ms
136 = 44,8 ms
137 = 46,4 ms
138 = 48,0 ms
139 = 49,6 ms
140 = 51,2 ms
141 = 52,8 ms
142 = 54,4 ms
143 = 56,0 ms
144 = 57,6 ms
145 = 59,2 ms
146 = 60,8 ms
147 = 62,4 ms
148 = 64,0 ms
149 = 65,6 ms
150 = 67,2 ms
151 = 68,8 ms
152 = 70,4 ms
153 = 72,0 ms
154 = 73,6 ms
155 = 75,2 ms
156 = 76,8 ms
157 = 78,4 ms
158 = 80,0 ms
159 = 81,6 ms
160 = 83,2 ms
161 = 84,8 ms
162 = 86,4 ms
163 = 88,0 ms
164 = 89,6 ms
165 = 91,2 ms
166 = 92,8 ms
167 = 94,4 ms
168 = 96,0 ms
169 = 97,6 ms
170 = 99,2 ms
171 = 100,8 ms
172 = 102,4 ms
173 = 104,0 ms
174 = 105,6 ms
175 = 107,2 ms
72
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
Attr. no.
dec.
Attribute nameGet/
Set
TypeDescription
(hex.)
3 (0x03)IOL - Cycle time
(continuation)
G/SUSINT176 = 108,8 ms
177 = 110,4 ms
178 = 112,0 ms
179 = 113,6 ms
180 = 115,2 ms
181 = 116,8 ms
182 = 118,4 ms
189 = 129,6 ms
190 = 131,2 ms
191 = 132,8 ms
4 (0x04)IOL - RevisionG/SUSINT0 = automatic
1 = V 1.0
5 (0x05)IOL - Quick Start-Up
activate
6 (0x06)IOL - Device parameteriza-
tion via GSD
G/SUSINT0 = no
1 = yes
G/SUSINT0 = no
1 = yes
7 (0x07)IOL - Process data invalidG/SUSINT0 = diagnostic generated
The TBEN-Lx-8IOL provide eight parameterizable I/O-Link-channels and four universal I/O-channels
(DXP).
In addition to that, four virtual slots are provided via GSDML in PROFINET.
Those slots are used to map the different diagnostic and status (IO-Link and VAUX-diagnostics (see
Diagnostic telegram, page 31), IO-Link-Events, module status (see Status and control word,
page 35) data into the IO-Link master's process image.
Further information can be found in Chapter 9, Hardware configuration, page 96.
Fig. 7: Example of a module configuration (in STEP7)
A Basic slot for e. g. DXP-channels and Data Valid Signal
B IO-Link ports (slots 2- 9) for the configuration with specific IO-Link devices or for generic configuration
C One slot each for diagnostics and status (slots 10 - 13)
V01.0| 2016/12
81
TBEN-Lx-8IOL with PROFINET
7.3FSU - Fast Start-Up
FSU - Fast Start-Up is not supported by TBEN-Lx-8IOL.
NOTE
Further information about FSU - Fast Start-Up and the configuration options can be found
in the user manual for the TBEN-L product family D301324
„TBEN-L/TBDP-L Compact I/O modules for Ethernet/PROFIBUS-DP“
7.4PROFINET-diagnostics - TBEN-Lx-8IOL
Module diagnostics (slot 0 A)PROFINET-diagnostics
DiagnosisConnector Error codeChannel
Undervoltage
V10x00020
V20x00021
-
I/O-diagnostics (slot 1 A)PROFINET-diagnostics
DXP-diagnosticsChannel Error codeChannel
Overcurrent output DXP 1C00x00011
DXP 3C10x00013
DXP 5C20x00015
DXP 7C30x00017
VAUX1/VAUX2-diagnosticsError codeChannel
Overcurrent VAUX1 (pin 1) at C0, channel 0/1C00x01D00
Overcurrent VAUX1 (pin 1) at C1, channel 2/3C10x01D10
Overcurrent VAUX1 (pin 1) at C2, channel 4/5C20x01D20
Overcurrent VAUX1 (pin 1) at C3, channel 6/7C30x01D30
Overcurrent VAUX1 (pin 1) at C4, channel 8C40x01E80
Overcurrent VAUX1 (pin 1) at C5, channel 10C50x01EA0
Overcurrent VAUX1 (pin 1) at C6, channel 12C60x01EC0
Overcurrent VAUX1 (pin 1) at C7, channel 14C70x01EE0
Overcurrent VAUX2 (pin 2) at C4, channel 9C40x01F90
82
Overcurrent VAUX2 (pin 2) at C5, channel 11C50x01FB0
Overcurrent VAUX2 (pin 2) at C6, channel 13C60x01FD0
Overcurrent VAUX2 (pin 2) at C7, channel 15C70x01FF0
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
IO-Link-diagnosticsPROFINET-diagnostics
Port 1 (slot 2 A)Error codeChannel
Undervoltage (VLOW)C00x00020
Overvoltage (VHIGH)0x0003
Overload (OVL)0x0004
Overtemperature (OTMP)0x0005
Wrong or missing device (CFGERR)0x0006
Upper limit value exceeded (ULVE)0x0007
Lower limit value underrun (LLVU)0x0008
Data storage error (DSER)0x0009
Process input data invalid (PDINV)
Maintenance events (EVT1)
Out of specification error (EVT2)
Port parameterization error (PPE)0x0010
Parameterization error (PRMER)
Hardware error (HWER)0x0015
Port 2 (slot 3 A)
similar to port 1C12
Port 3 (slot 4 A)
similar to port 1C24
Port 4 (slot 5 A)
similar to port 1C36
Port 5 (slot 6 A)
similar to port 1C48
Port 6 (slot 7 A)
similar to port 1C510
Port 7 (slot 8 A)
similar to port 1C612
Port 8 (slot 9 A)
similar to port 1C714
A Slot in configuration toll (e.g. TIA Portal, Siemens HW Config)
V01.0| 2016/12
83
TBEN-Lx-8IOL with PROFINET
7.5Parameters
Two types of parameters have to be distinguished for the TBEN-L devices, the PROFINET parameters
of a station and the specific parameters of the I/O-channels.
7.5.1General module parameters
Parameter name
= default
A
Output behavior at
communication loss
Deactivate all diagnostics
deactivate web server
Deactivate load voltage
diagnostics
Deactivate diagnostics
LED behavior (PWR) at V2
undervoltage
Deactivate I/O-ASSISTANT
Force Mode
deactivate web server
Deactivate EtherNet/IP™ 0 = no AThe single fieldbus protocols can be deacti-
Deactivate Modbus TCP 0 = no A
Deactivate WEB server 0 = no A
ValueMeaning
00 = set to 0 AThe station switches the outputs to "0". No
error information is transmitted.
10 = keep current value
0 = no ADiagnostic messages and alarms are gener-
1 = yesDiagnostic messages and alarms are gener-
0 = no AMonitoring of voltage V2 is activated.
1 = yesAn undervoltage at V2 is not monitored.
0 = greenPWR-LED is blinking green at V2 undervoltage.
1 = redPWR-LED is red green at V2 undervoltage.
0 = no A
1 = yes
1 = yes
1 = yes
1 = yes
The station maintains the actual output data.
ated.
ated.
vated.
7.5.2Parameters for I/O channels
see Parameters, page 22
84
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
7.6Description of 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)
7.6.1Description of the acyclic device user data
Module Application Instance
IndexNameData typer/wComment
1
(0×01)
2
(0×02)
3
(0×03)
4
(0×04)
5
(0×05)
6
(0×06)
7
(0×07)
8 (0×0)
to
23 (0×17)
24 (0×18)Module diagnosticsWORDrDiagnostic data of the module (slot 0).
25 (0×19)
to
31 (0×1F)
32
(0x20)
33
(0x21)
34
(0x22)
35
(0x23)
36 to 45039reserved
Module parametersWORDr/wParameter data of the module (slot 0)
Module designationSTRINGrDesignation assigned to the module.
Module revisionSTRINGrFirmware revision of the module
Vendor IDWORDrIdent no. for Turck
Module name STRINGrThe device name assigned to the mod-
Module typeSTRINGrModule type
Device-IDWORDrIdent no. of the module
reserved
reserved
Input listArray of
BYTE
Module output listArray of
BYTE
Diag. listArray of
BYTE
Parameter listArray of
BYTE
ule
rList of all input channels in the module
rList of all output channels in the mod-
ule
rList of all I/O-channel diagnostics
rList of all I/O-channel parameters
V01.0| 2016/12
85
TBEN-Lx-8IOL with PROFINET
IndexNameData typer/wComment
45040
(0xAFF0)
45041
(0xAFF1)
45042
(0xAFF2)
45043
(0xAFF3)
45044
(0xAFF4)
45045
(0xAFF5) to
45055
(0xAFFF)
0x7000Module parametersWORDr/wActivate active field bus protocol
7.6.2Description of the acyclic I/O-channel user data
Index
(dec.)
1Module parametersspecificr/wParameters of the module
2Module typeENUM
3Module versionUINT8rFirmware version of the I/O-channels
4 Module IDDWORDrIdent number of the I/Os
5 to 9reserved
10Slave controller versionUINT8
11 to 18 reserved
19Input dataspecificrInput data of the respective
20 to 22reserved
23Output dataspecificr/wOutput data of the respective I/O channel
...reserved
247CAP 1Recordr/wClient access point for class 1 masters
248CAP 2Recordr/w
249CAP 3Recordrw
250CAP 4Recordr/w
251CAP 5Recordr/w
252CAP 6Recordr/w
253CAP 7Recordr/w
254CAP 8Recordr/w
255CAP 9Recordr/wClient access point for class 2 masters
NameData typer/wComment
UINT8
array [8]
rContains the module type
rVersion no. of the slave
controller
I/O channel
86
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
7.6.3IM99 (IOL_M)
NameSizeData typeDefault setting
IOL_LINK_VERSION1 byteUINT817
IO_LINK_PROFILE_VERSION1 byteUINT80
IO_LINK_FEATURE_SUPPORT4 bytesUINT320
NUMBER_OF_PORTS1 byteUINT84
REF_PORT_CONFIG1 byteUINT80
REF_IO_MAPPING1 byteUINT80
REF_IOL_M1 byteUINT80
NUMBER_OF_CAP1 byteUINT85
INDEX_CAP11 byteUINT8247
INDEX_CAP21 byteUINT8248
INDEX_CAP31 byteUINT8249
INDEX_CAP41 byteUINT8250
INDEX_CAP51 byteUINT8251
INDEX_CAP61 byteUINT8252
INDEX_CAP71 byteUINT8253
INDEX_CAP81 byteUINT8254
INDEX_CAP91 byteUINT8255
V01.0| 2016/12
87
TBEN-Lx-8IOL with PROFINET
88
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
8The IO-Link function block IOL_CALL
IOL_CALL
BOOL
DWORD
INT
BOOL
INT
INT
INT
INT
ANY
REQ
ID
INDEX_CAP
RD_WR
ENTITY_PORT
FI_INDEX
IOL_INDEX
LEN
RECORD_IOL_DATA
INT
IOL_SUBINDEX
BOOL
BOOL
BOOL
DWORD
BOOL
DWORD
DONE_VALID
BUSY
ERROR
STATUS
IOL_STATUS
LEN
8.1General
The IO-Link function block IOL_CALL is specified in the IO-Link specification "IO-Link Integration
Part 1- Technical Specification for PROFIBUS and PROFINET".
NOTE
Depending on the PLC manufacturer, the IO-Link CALL function block can differ from the
specification (for example in the representation or the use of variables).
8.2IOL_CALL in accordance with IO-Link specification
The following figure shows the function block as it is defined in the specification:
V01.0| 2016/12
Fig. 8: IOL_CALL in accordance with IO-Link specification
89
The IO-Link function block IOL_CALL
8.2.1Input variables
The following description of the function block variables is partially taken from the IO-Link specification.
Name
IO-Link Spec.Data TypeMeaning
REQBOOLA rising edge triggers the send command.
IDDWORDAddress of the IO-Link master module
INDEX_CAPINTFunction block instance:
RD_WRBOOL0 = read access
ENTITY_PORTINTAddress of the IO-Link port to be accessed.
FI_INDEXINTFix value (65098): defines the access to be an IO-Link CALL
IOL_INDEXINTNumber of the IO-Link index which has to be written or read.
IOL_SUBINDEXINTDefinition of a possible sub index.
LENINTLength of the data to be read/written.
RECORD_IOL_DATASource/destination for the data to be read/written.
Step 7 Classic
– Start address of the input data of the IO-Link master mod-
ule.
TIA Portal
Depending on the used CPU:
– older Siemens CPUs (e.g. CPU 315):
Start address of the input data of the IO-Link master module.
– recent Siemens CPUs (e.g. CPU 1511):
HW identifier of the device's "Basic" slot , see also
Beispielzugriffe mit IO_LINK_DEVICE, page 101
247 bis 254, 255 (s. page 86)
1 = write access
This information is not necessary for the Siemens IOL_CALL
(Integration des IO-Link-Masters in TIA Portal, page 95).
90
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
8.2.2Output variables
The following description of the function block variables is partially taken from the IO-Link specification.
Name
IO-Link Spec.Data TypeMeaning
DONE_VALIDBOOLThe read or write access has been executed.
BUSYBOOLThe read or write access is actually in progress.
ERRORBOOLError while executing the read or write access.
STATUSDWORDCommunication error status
IOL_STATUSDWORDIO-Link error messages (in accordance with "IO-Link Integra-
LENINTLength of the data which were read.
Status of the acyclic communication. see STATUS - communication error status, page 92
tion Part 1- Technical Specification for PROFIBUS and PROFINET" and "IO-Link Interface and System"), which concern the
communication between IO-Link master and connected
devices.
see IOL_STATUS, page 93
V01.0| 2016/12
91
The IO-Link function block IOL_CALL
8.2.3STATUS - communication error status
The status of the acyclic communication contains 4 byte and is structured as follows:
Byte 3Byte 2Byte 1Byte 0
Manufacturer specific
identifier (not always
applicable)
Status CodeNameMeaning
0×FF000000TIMEOUTInternal error in the communication with the module
0×00FFFF00INVALID_HANDLE
0×00FFFE00HANDLE_OUT_OF_BUFFERS
0×00FFFD00HANDLE_DESTINA-
TION_UNAVAILABLE
0×00FFFC00HANDLE_UNKNOWN
0×00FFFB00HANDLE_METHOD_INVALID
0×xx80A0xxMASTER_READ_ERRORError reading
0×xx80A1xxMASTER_WRITE_ERRORError writing
0×xx80A2xxMASTER_MODULE_
FAILURE
0×xx80A6xxMASTER_NO_DATANo data received
0×xx80A7xxMASTER_BUSYIO-Link-Master busy
0×xx80A9xxMASTER_FEATURE_NOT_
SUPPORTED
0×xx80AAxxMASTER_RESOURCE_
UNAVAILABLE
0×xx80B0xxACCESS_INVALID_INDEXIndex invalid, wrong INDEX_CAP used
0×xx80B1xxACCESS_WRITE_
LENGTH_ERROR
0×xx80B2xxACCESS_INVALID_
DESTINATION
0×xx80B03xxACCESS_TYPE_CONFLICTIOL_CALL invalid
0×xx80B5xxACCESS_STATE_CONFLICTError in IOL_CALL sequence
0×xx80B6xxACCESS_DENIED IOL-Link master module refuses the access
0×xx80C2xxRESOURCE_BUSYThe IO-Link master module is busy or is waiting for an
0×xx80C3xxRESOURCE_
UNAVAILABLE
0×xx8901xxINPUT_LEN_TOO_SHORTThe index to be read co ntains more data than defined
Specifies the error as
an error of acyclic com-
0×80
munication.
Error code see
below
Status Code
Failure of the IO-Link-Master, bus failure possible
Function not supported by IO-Link-Master
IO-Link-Master not available
Length of data to be written can not be handled from
the module, possibly wrong module accessed
Wrong slot accessed
answer of the connected IO-Link device
in the input variable "LEN"
Vendor specific identi-
fier (not always appli-
cable)
92
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
8.2.4IOL_STATUS
The IOL_STATUS consists of 2 byte Error Code (IOL_M Error_Codes, according to "IO-Link Integration
Part 1- Technical Specification for PROFIBUS and PROFINET") and 2 byte Error Type (according to "IOLink Interface and System").