Turck
Turck
TBEN-L-PLC-
Compact
CODESYS V3 PLC
Operating instructions
Table of Contents
1 About these Instructions 5
4 Product description 11
5 Mounting 19
6 Connecting 23
2017/03 1
7 Setting and Parameterizing 27
7.2 Parameterizing 38
7.2.1 Device parameters 38
7.2.2 Parameters of the local I/Os 39
8 Operation 45
8.2 Diagnostics 47
9 CODESYS functions 51
2 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
9.6.1 Configuring the Modbus TCP Master 56
9.6.2 Configuring the external Modbus TCP Slave 58
2017/03 3
10.2.1 General notes/prerequisites 95
10.2.2 Function overview 96
10.2.3 Executing the functions 98
10.2.4 Behavior of the RUN-LED in case of an error 99
4 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
1 About these Instructions
These operating instructions describe the structure, functions and the use of the product and will
help you to operate the product as intended. Read these instructions carefully before using the
product. This is to avoid possible damage to persons, property or the device. Retain the instructions
for future use during the service life of the product. If the product is passed on, pass on these instruc-
tions as well.
DANGER!
DANGER indicates an immediately dangerous situation, with high risk, the death or severe
injury, if not avoided.
WARNING!
WARNING indicates a potentially dangerous situation with medium risk, the death or
severe injury, if not avoided.
ATTENTION!
ATTENTION indicates a situation that may lead to property damage, if it is not avoided.
NOTE
In NOTES you find tips, recommendations and important information. The notes facilitate
work, provide more information on specific actions and help to avoid overtime by not fol-
lowing the correct procedure.
CALL TO ACTION
This symbol identifies steps that the user has to perform.
RESULTS OF ACTION
This symbol identifies relevant results of steps.
2017/03 5
About these Instructions
6 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
2 Notes on the Product
Turck supports you with your projects, from initial analysis to the commissioning of your applica-
tion. The Turck product database contains software tools for programming, configuration or com-
missioning, data sheets and CAD files in numerous export formats. You can access the product data-
base at the following address: www.turck.de/products
Should you have any further questions, please contact the sales and service team in Germany under
the following telephone numbers:
Sales: +49 208 4952-380
Technology: +49 208 4952-390
Internet: www.turck.de
2017/03 7
Notes on the Product
8 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
3 For Your Safety
The product is designed according to state-of-the-art technology. However, residual risks still exist.
Observe the following warnings and safety notices to prevent damage to persons and property.
Turck accepts no liability for damage caused by failure to observe these warning and safety notices.
2017/03 9
For Your Safety
10 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
4 Product description
The CODESYS V3 programmable TBEN-L-PLC- can be used as autonomous PLCs or as decentral
PLCs in a network interconnection for a fast preprocessing of signals. The devices allow autono-
mous control of applications without higher-level control.
The Ethernet ports serve as interface for programming, configuration and Ethernet/ field bus com-
munication.
Thanks to the multiprotocol Ethernet technology, the device can be used as slave/device with PLCs
or PC based systems with PROFINET, EtherNet/IP or Modbus TCP, Modbus RTU and CANopen.
In addition to that, the device offers the following Master functionalities:
Modbus TCP Master
Modbus RTU Master
PROFINET Controller
EtherNet/IP Scanner
CANopen Manager
SAE J1939 Manager
Properties:
Programmable according to IEC 61131-3 with ODESYS V3 in:
IL = Instruction List
LD = Ladder Logic
FBD = Function Block Diagram
SFC = Sequential Function Chart
ST = Structured Text
Ethernet- and USB programming interface
Integrated Gold CAP buffered Real Time Clock (RTC)
USB Device port as programming and service interface
USB Host port for connecting USB memory sticks for firmware-update, program backup, program
restore, data synchronization
Protocol converter - for example from Ethernet to serial communication
LEDs for displaying the PLC status, supply voltage, common errors and bus errors as well a freely
programmable LEDs for user-specific use
Integrated Ethernet switch, allows line topology
Integrated web server
Field bus connection: Ethernet, 2 x M12-female connector, 4-pol. D-coded
Power supply:
TBEN-L5-PLC-: 5-pole 7/8"-connector
TBEN-L4-PLC-: 4-pole 7/8"-connector
Protection class: IP65/IP67/IP69K
2017/03 11
Product description
38.8
30.2 24
P1 C3 C2 C1 C0 X1
60.4 6.3
P2 C7 C6 C5 C4 X2
218
230.5
Fig. 1: Dimensions
12 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
4.2 Block Diagram
COM
X1 X2 2A
V1 V2 V1 V2 V1 +
1 VAUX1
+ + FE + + FE
4 2 5 1 3 4 2 5 1 3 RS485 = DATA B
TTL 4 RS232 = RXD
Supply V1 + RS485 = DATA A
2 RS232 = TXD C0
V2 + 3 V1
LED0
RS485/
RS232 LED1 5 FE
C V1 + 2A
1 VAUX1
USB Host 0.3 A V1 Diag V2 Diag 4 RS485 = DATA B
TTL RS232 = RXD
RS485 = DATA A
2 RS232 = TXD C1
SRV 0.3 A LED2 3 V1
TTL RS485/
RS232 LED3 5 FE
BUS
ERR C NVRAM
CAN
RUN RTC (buffered)
1 Shield
APPL Memory V1 + 4A
2 VAUX1
3 V1 C2
Rotary switches
TTL 4 CAN H
Ethernet
Ethernet CAN 5 CAN L
2 2
ETH1 ETH2
1 3 1 3 1 Shield
LED4
4 4 2 VAUX1
P1 P2 LED5
3 V1 C3
LED6
4 CAN H
LED7
5 CAN L
In/Output
V2 + 2A
1 VAUX2
IN 2A
4 IN/OUT
2A
I/O 2 IN/OUT C4...C7
OUT
3 V2
5 FE
2017/03 13
Product description
14 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Serial interface
Signal type RS232 or RS485
Number of channels 2
Operation mode RS232
Signal low level -18 to -3 VDC
Signal high level 3 to 18 VDC
Transmission signals TxD, RxD
Transmission rate 9600 to 230400 bps
Transmission type Full duplex
Cable length 15 m at 19200 baud
(max. line capacitance < 2000 pF)
Operation mode RS485
Transmission signals TX/RX+, TX/RX-
Transmission rate 9600 to 230400 bps
Transmission type 2-wire half-duplex
Bus termination internal or external
Biasing internal or external
Line impedance > 120
Digital inputs
Number of channels 8
Connection technology inputs M12, 5-pole
Input type PNP
Type of input diagnostics Short-circuit diagnostic of sensor supply per connector
Switching threshold EN 61131-2 type 3, PNP
Signal voltage, low level <5V
High-level signal voltage > 11 V
Low-level signal current < 1.5 mA
High-level signal current > 2 mA
Sensor supply 2 A, short-circuit proof, from V2,
can be switched via process data
Potential isolation galvanic isolation to P1/P2,
voltage proof up to 500 VDC
Digital outputs
Number of channels 8
Connection technology outputs M12, 5-pole, a-coded
Output type PNP
Type of output diagnostics Short-circuit diagnostic per channel
Output voltage 24 VDC from V2
Output current per channel 2 A, short-circuit proof, 4 A per connector
Simultaneity factor 0.56
Load type ohmic, inductive, lamp load
Short-circuit protection yes
2017/03 15
Product description
16 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
EtherNet/IP Scanner
Input data max. 8 kByte
Output data max. 8 kByte
Max. number of devices at 10 ms 8
PROFINET Controller
Max. number of devices 64
Min. cycle time 1 ms
Max. number of devices at 1 ms 8
Modbus RTU Master
Max. number of devices 64
Min. cycle time 5 ms
Max. number of slaves at 5 ms 8
CANopen Manager
Max. number of devices 127
Input data max. 8 kByte
Output data max. 8 kByte
SAE J1939 Manager
Max. number of devices 254
Input data max. 8 kByte
Output data max. 8 kByte
Standard/directive conformity
Vibration test according to EN 61131
Shock test according to IEC 68-2-27
Drop and topple according to EN 68-2-31 and free fall according to IEC 68-2-32
Electro-magnetic compatibility according to IEC 61131-2
MTTF 75 years according to SN 29500 (Ed. 99) 20 C
Ambient conditions
Operating temperature -40+ 70 C
Storage temperature -40+ 85 C
Operating altitude max. 5000 m
Protection class IP65, IP67, IP69K
General
Dimensions (w l h) 60,4 230,5 38,8 mm
Housing material PA6-GF30
Housing color black
Window material Lexan
Screw material 303 stainless steel
Label material Polycarbonate
Halogen-free yes
Mounting 2 mounting holes, 6,3 mm
Approvals CE
2017/03 17
Product description
18 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
5 Mounting
The devices must be attached to a level, pre-drilled and grounded mounting surface.
Attach the module to the mounting surface with two M6 screws. The maximum tightening
torque for the screws is 1.5 Nm.
M6 (2x)
max. 1.5 Nm
218 [5.58]
2017/03 19
Mounting
X1 X2
C0 C4
4 x 15 nF
C1 C5
C2 C6
C3 C7
1 nF
2,2 M
P1 P2
1
2
3
The grounding clip (1) at the M12 connectors for the fieldbus connection (P1, P2) connects the
shield of the fieldbus lines.
The grounding ring (2) is attached below the grounding clip and connects the functional ground of
the 7/8" connector (pin 3) for the power supply with the functional ground of the M12 connector
(pin 5) for connecting the sensors and actuators.
The grounding screw (3) connects the device with the system's reference potential.
20 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
5.1.2 Grounding the device (FE)
The grounding clip and the metal ring are connected to each other. A mounting screw through the
bottom mounting hole in the module connects the shielding of the fieldbus lines to the functional
ground of the power supply and the connected devices and to the reference potential of the sys-
tem.
If a common reference potential is not required, remove the grounding clip to disconnect the field-
bus shield or attach the module with a plastic screw.
2017/03 21
Mounting
22 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
6 Connecting
w v w v
1 RD = 24 VDC V2 3 1 BK = GND V2 3
1 3 2 GN = 24 VDC V1 3 1 4 2 2 BU = GND V1 2 4
2 4 3 WH = GND V1 4 2 3 GNYE = FE
4 BK = GND V2 5 1 4 BN = 24 VDC V1 1 5
5 WH = 24 VDC V2
X1 X2 X1 X2
v
2 1 = TX +
3 2 = RX +
1 3 = TX
4 4 = RX
flange = FE
P1, P2
A switch internally connects the two Ethernet ports which allows building up a line topology.
NOTE
Use a cross-over cable for connected device with deactivated "autonegotiation" at the
ports.
2017/03 23
Connecting
v v
2 1 = Vaux1 2 1 = Vaux1
2 = TXD 2 = Data A
1 3 3 = GND (V1) 1 3 3 = GND (V1)
4 = RXD 4 = Data B
5 4 5 = FE/Shield 5 4 5 = FE/Shield
C0...C1 C0...C1
Fig. 11: COM port x in RS232 mode Fig. 12: COM port x in RS485 mode
v
2 1 = Shield 2 1 = Shield
2 = V + (V1) 2 = V + (V1)
1 3 3 = V (V1) 3 1 3 = V (V1)
4 = CAN_H 4 = CAN_H
5 4 5 = CAN_L 4 5 5 = CAN_L
C2 C3
3 BU
4 BK Sensor
5 FE or
1 BN + Actuator
2 WH Sensor
or
3 BU Actuator
v C4C7
Fig. 15: DXP channels
v
12345 1 = 5 VDC
2=D
3=D+
4 = n.c.
5 = GND
24 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
6.6.1 RNDIS driver
The corresponding RNDIS driver is installed automatically during the DTM installation in
PACTware. The USB device port is shown in the DTM as additional Ethernet port.
NOTE
Use the interface BL Service Ethernet in the DTM for the connection to the device.
1 2 3 4 1 = 5 VDC
2=D
3=D+
4 = GND
2017/03 25
Connecting
26 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7 Setting and Parameterizing
Mode
x 10
7 8
6 9
5 0
4 1 3 2 1
3 2
8
67 9 ON
5 0
4 1
3 2 x1
2017/03 27
Setting and Parameterizing
7.1.1 Restore IP
In order to activate the Restore IP-mode, the DIP-switch Mode is set to "ON", the rotary switches to
address "00".
With this setting followed by a voltage reset, the module is set to the address 192.168.1.254 for IP-
based services (see Address and operation mode setting (page 27)).
This setting allows for example the DTM to communicate with the device, the device's web server
can be accessed using the IP-address 192.168.1.254.
NOTE
This setting is no operation mode! After having reset the IP address to the default values,
the device has to be set to another mode.
NOTE
After changing the position of the rotary coding-switches, a voltage reset must be carried
out to store the new address.
NOTE
After changing of the address-mode, a voltage reset must be done.
28 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
DHCP in PROFINET
Please assure, that in PROFINET-applications, the address assigned via a BootP-server corresponds
to the address, which is assigned in the configuration tool.
NOTE
After changing of the address-mode, a voltage reset must be done.
The PGM-mode allows access of the Turck DTMs to the modules network settings (see also Address
setting via DTM (page 33)).
NOTE
In the PGM-mode, all network settings (IP address, subnet mask, etc.) are read from the
modules internal EEPROM.
NOTE
After changing of the address-mode, a voltage reset must be done.
PGM-DHCP in PROFINET
This mode assures a PROFINET-compliant operation of the modules.
NOTE
If a DHCP-server is used within the network, problems may occur during IP-assignment.
In this case, both, the DHCP-server as well as the PROFINET-controller (via DCP), try an IP-
address-assignment.
2017/03 29
Setting and Parameterizing
ATTENTION!
System modification during operation
Undefined device status due to device restart or loss of functionality!
Do not change system or network settings during operation.
Before changing the system settings, always set the machine into the safe stop condi-
tion and disconnect the TBEN-L-PLC- from the machine.
This mode sets all device-settings back to the default values and deletes all data in the device's inter-
nal flash.
NOTE
This setting is no operation mode! Please set the device to another mode after having
reset the IP address to the default values.
NOTE
A network reset via DCP bases services (Turck Service Tool "network reset" or TIA-Por-
tal/Step7 "Reset to factory settings") does not delete the CODESYS program (see also
Reset to factory settings (page 36)).
30 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.1.7 Address setting with Turck Service Tool
The Turck Service Tool enables direct access to the Ethernet-network via Ethernet.
The IP configuration, as well as the PROFINET device name of the Ethernet device can be changed
application specifically.
2017/03 31
Setting and Parameterizing
NOTE
A PROFINET device name can only be assigned, if the device has already been configured
as PROFINET device via CODEYS and if the respective CODESYS
project has been loaded to the device (see chapter 9, PROFINET-Device (page 68)).
The PROFINET device name is set via the "Change (F2) button.
32 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.1.8 Address setting via DTM
In a respective frame application e.g. PACTware, the Turck DTMs allow direct access to Ethernet.
The IP address, as well as the subnet mask of the Ethernet device, can be changed according to the
application by using the Busaddress Management function of the BL Service Ethernet interface
(TCP/IP) in the DTM.
2017/03 33
Setting and Parameterizing
NOTE
The access of the DTM to the device is only possible, if the device already has an IP-address
(see Address and operation mode setting (page 27))
The address setting via DTM is only possible if the device is operated in PGM or PGM-
DHCP-mode.
NOTE
When using Windows XP as operating system, difficulties may occur with system-inte-
grated firewall.
The firewall may inhibit the access of PACTware (FDT/DTM) to the Ethernet interface. In
this case, please adapt your firewall respectively.
34 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Fig. 25: Changing the IP address
Set
USB Host
Fig. 26: SET button
2017/03 35
Setting and Parameterizing
ATTENTION!
System modification during operation
Undefined device status due to device restart or loss of functionality!
Do not change system or network settings during operation.
Before changing the system settings, always set the machine into the safe stop condi-
tion and disconnect the TBEN-L-PLC- from the machine.
Besides the hardware rest using the rotary coding switches (see F_Reset (Reset to factory setting)
(page 30)), the Turck Service Tool as well as the web server (see Reset to Factory Defaults (page
110)) offer the possibility to reset the devices to the factory settings.
NOTE
Resetting the device to factory settings via rotary coding/DIP switches or via the Turck Ser-
vice Tool "Factory reset" deletes the CODESYS-program in the device, see also F_Reset
(Reset to factory setting) (page 30).
A network reset via DCP bases services (Turck Service Tool "network reset" or TIA-Portal/
Step7 "Reset to factory settings") does not delete the CODESYS program.
36 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Web server
The function is only available after a login.
2017/03 37
Setting and Parameterizing
7.2 Parameterizing
NOTE
Parameter changes become only valid after a device restart.
38 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.2.2 Parameters of the local I/Os
DXP channels
Default parameters are displayed in bold.
2017/03 39
Setting and Parameterizing
VAUX Control
VAUX2 Pin 1 Cx (Chy - z) 24 VDC The 24 VDC sensor/actuator supply at Pin1 of the
connector is switched on.
switchable The 24 VDC sensor/actuator supply at pin1 of the
respective connector is switchable via the process
data.
Out The 24 VDC sensor/actuator supply at Pin1 of the
connector is switched off.
40 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
7.3 Real time clock (RTC)
Properties:
The Real Time Clock can be set using by the Turck Service Tool, the device's web server or via COD-
ESYS.
2017/03 41
Setting and Parameterizing
42 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Setting the RTC via SNTP
Prerequisites:
The device has to be placed in a network with access to the SNTP server.
The SNTP server is defined and activated in the web server.
NOTE
If the RTC is set via SNTP and the device has a connection to the SNTP server, than changes
of the RTC via Turck Service Tool or the CODESYS library have no effect.
2017/03 43
Setting and Parameterizing
44 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8 Operation
2017/03 45
Operation
46 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.2 Diagnostics
Diagnostics Description
Overcurrent VAUX2 pin 1 Cx (Chy - z) Overcurrent VAUX2 at pin 1 of the channel
Overcurrent output Chx Overcurrent at the respective output
2017/03 47
Operation
48 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.4 SFTP access
The SFTP access is done via a FTP client program (e.g. FileZilla):
NOTE
The password for the SFTP access is synchronized to the password for the web server.
Changing the password for the SFTP access also changes the web server password (see
page 106).
2017/03 49
Operation
NOTE
A firmware update is only possible if no program is active on the device.
The firmware update can be done using a USB storage device at the USB Host port or via the Turck
DTM.
Stop the program which is running on the PLC.
Execute the firmware update.
After the firmware update, execute a voltage reset at the device.
Compile and download an already existing CODESYS project.
50 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
9 CODESYS functions
The CODESYS 3 programmable TBEN-L-PLC- can be used as follows:
Modbus TCP Slave PROFINET Device EtherNet/IP Modbus RTU Slave CANopen Device
Device
Modbus TCP Master
PROFINET Controller
EtherNet/IP Scanner
Modbus RTU Master A
CANopen Manager
SAE J1939 Manager
A The functions Modbus RTU Master and Modbus RTU Slave can not be used in parallel on the same COM port. Each
function has to be configured separately on one COM port, which means that both COM ports are occupied.
2017/03 51
CODESYS functions
52 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
9.5 General start-up
2017/03 53
CODESYS functions
54 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
In addition to the PLC logic, the project contains:
5 LEDs for free use in the program
Each LED uses 2 bit in the process output data of the device. They are automatically mapped to
the output bits %QX8000.0 to %QX8001.1 (see Fig. 42: CODESYS project (page 54)).
Local_IO
Configuration of the device's local I/Os and the VAUX diagnostics.
Diagnostics of the local I/Os and module status.
2 serial interfaces (COM0 and COM1)
Connection of RS232 and RS485 devices
1 CAN interface (CANbus)
Use of the device as CANopen Device, CANopen Manager or as SAE J1939 Manager
2017/03 55
CODESYS functions
56 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Add Modbus TCP Master.
2017/03 57
CODESYS functions
Add Modbus Slave channels for the communication with the slave.
58 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Observe the process data offsets of the slave. In the example (Fig. 47: Adding Modbus Slave
channels) the slave's process output data start with register 0x0800.
2017/03 59
CODESYS functions
Therefore define the number of in- and output registers (input and holding registers) which have
to be exchanged with the higher-level Modbus TCP-master.
60 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Which data will be mapped into the input and holding registers, depends on assignments in the PLC
program or in the I/O mapping of the TBEN-L-PLC-.
2017/03 61
CODESYS functions
62 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Configuring the external Modbus RTU Slave
Add an external Modbus RTU slave using the "Add Device" function and configure it.
In this example the Turck multiprotocol device TBEN-S2-2COM-4DXP is used as Modbus Slave.
Add Modbus Slave Channels for the communication with the Slave.
Observe the process data offsets of the slave. In the example the slave's process output data start
with register 0x0800.
2017/03 63
CODESYS functions
64 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Which data will be mapped into the input and holding registers, depends on assignments in the PLC
program or in the I/O mapping of the TBEN-L-PLC-.
2017/03 65
CODESYS functions
66 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Add the PN Controller.
NOTE
The Device addresses under "Default Slave IP Parameter" and the Ethernet interface of the
TBEN-L-PLC- have to be in the same subnet.
2017/03 67
CODESYS functions
NOTE
The IP addresses of the PROFINET Devices and the PN Controller have to be in the same
subnet.
68 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
9.11 PROFINET Device
Properties
max. number of I/O data 1024 byte in total
(512 IN + 512 OUT)
NOTE
When configuring the I/O-data the following has to be observed: The input data in CODE-
SYS have to be configured as output data in the PROFINET Controller configuration and
the output data in CODESYS as input data.
The data thus have to be configured in reverse order in the PROFINET Controller configu-
ration (see also Configuring the in- and output data (page 73)).
2017/03 69
CODESYS functions
Which data will be mapped into the configured input and output data, depends on assignments in
the PLC program or in the I/O mapping of the TBEN-L-PLC-.
NOTE
The PROFINET-device shows an error as long as a connection to the PROFINET Controller
is established.
70 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
9.11.2 Configure the PROFINET Device in the PROFINET Controller.
The following example shows the PROFINET-device configuration in TIA-Portal V13 from Siemens.
The PROFINET-CODESYS-device is configured as standard PROFINET Device in TIA-Portal.
2017/03 71
CODESYS functions
72 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Configuring the in- and output data
Configure the in- and output data, which have to be exchanged with the CODESYS-device.
NOTE
The configuration of the data in TIA-Portal has to be done in reverse order compared to
the configuration in CODESYS. Input data in TIA-Portal are output-data in CODESYS, and
vice versa.
The configured data lengths have to match.
2017/03 73
CODESYS functions
74 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Add the Ethernet/IP Scanner
2017/03 75
CODESYS functions
76 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
9.13 EtherNet/IP Slave (Device)
Properties
max. number of I/O data 496 byte IN
492 byte OUT
2017/03 77
CODESYS functions
Which data will be mapped into the configured input and output data, depends on assignments in
the PLC program or in the I/O mapping of the TBEN-L-PLC-.
78 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
9.13.2 Configuring the EtherNet/IP Device in EtherNet/IP Scanner
The following example describes the configuration of the EtherNet/IP Device in "RSLogix5000"
V20.1. from Rockwell Automation.
The EtherNet/IP Device is configured as standard EtherNet/IP Device (Communications Adapter)
in RSLogix.
Hardware in the example:
Controller. Logix 5572 (Allen Bradley)
EtherNet/IP-Bridge 1756EN2TR (Allen Bradley)
TBEN-L-PLC-
2017/03 79
CODESYS functions
80 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Configuring the in- and output data
The device is automatically configured with a data width of 256 byte in- and 256 byte output data.
NOTE
The EDS file limits the maximum number of in- and output data for the device to 256 Byte
each. If the device is configured as generic device, than up to 496 Byte input data and 492
Byte output data are possible.
Configuring the in- and output data which have to be exchange with the CODESYS-device is not
necessary. The Controller Tags are automatically generated.
Fig. 70: Automatically generated Controller Tags of the "CDS3 Ethernet/IP Slave"
2017/03 81
CODESYS functions
82 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
9.14.2 Configuring an external CANopen device
Add an external CANopen device to the CANopen Manager using the "Add Device" function and
configure it.
In this example the Turck BL67-CANopen gateway BL67-GW-CO is used as CANopen device.
2017/03 83
CODESYS functions
84 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Which data will be mapped into the configured input and output data, depends on assignments in
the PLC program or in the I/O mapping of the TBEN-L-PLC-.
2017/03 85
CODESYS functions
86 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
9.16 SAE J1939 Manager
Properties
Max. number of devices 254
Input data max. 8 kByte
Output data max. 8 kByte
2017/03 87
CODESYS functions
88 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
9.17 Displaying task and processor information
2017/03 89
CODESYS functions
The Average Cycle Time is shown in the register tab "Monitor" of the Task Configuration.
90 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
9.17.2 Displaying processor information
Information about the processor load can be displayed in the PLC Shell of the TBEN-L-PLC-
using the function "plcload".
Call the function "plcload" in the device's PLC Shell.
2017/03 91
CODESYS functions
92 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
10 USB Host port functions
The USB Host port serves for connecting USB storage devices for the storage, restore and transfer of
CODESYS applications as well as for updating the device firmware.
NOTE
The USB Host function can be deactivated using the web-server of the CODESYS program
(see chapter 7.2, Parameterizing, page 38).
NOTE
Only use USB memory sticks formatted to FAT or FAT32. The use of memory sticks format-
ted to NFTS is not possible.
Depending on the current consumption of the devices, compatibility problems may occur in iso-
lated cases.
In order to guarantee error-free operation, we recommend to use industrially tested storage
devices. Ident-No. 6827348 - USB 2.0 Industrial Memory Stick.
NOTE
Connecting other USB devices like for example hard disks, keyboards, computer mouses,
printers and bar code scanners etc. is not possible.
2017/03 93
USB Host port functions
ATTENTION!
System modification during operation
Undefined device status due to device restart or loss of functionality!
Do not change system or network settings during operation.
Before changing the system settings, always set the machine into the safe stop condi-
tion and disconnect the TBEN-L-PLC- from the machine.
The write access requires the user's intervention, see Executing the functions, page 98. The
CODESYS program is stopped.
RESTORE_1: Loading the CODESYS application from the storage device into the device
RESTORE_2: Loading the CODESYS application and further device data from the storage device
into the device
USB_DATA_WRITE: Loading of CODESYS recipes and/or log-files from the storage device into
the device
FW_UPDATE: Firmware update of the device
94 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
10.2.1 General notes/prerequisites
The storage device is formatted in FAT (FAT or FAT32).
The storage device does contain only one folder. If the storage device contains more than one
folder, not function is executed. The RUN-LED displays errors, see Behavior of the RUN-LED in
case of an error, page 99.
The folder name defines the function to be executed (for further information, see Function over-
view, page 96.
Folder names must not contain special characters.
RESTORE:
This function is only available for devices with identical firmware.
Boot application:
The names of the CODESYS-application and the file names of the boot application (*.app and
*.crc) have to be identical and must not be renamed.
Write access:
Press the SET-button within 30 seconds after having plugged the storage device. If not, the func-
tion is not executed an the storage device is unmounted.
ATTENTION!
Restart or reset of the device with plugged storage device
Destruction of the running application possible!
Remove the storage device from in normal operation.
NOTE
Unplug the storage device only if the RUN-LED flashes orange (read/write operation fin-
ished) or red/green (error).
2017/03 95
USB Host port functions
ATTENTION!
Using CODESYS recipes
Corrupt data due to manipulation of data in USB_Data file directory
Only use 1:1-copies with Backup_2/Restore_2 when using recipes:
96 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Function Folder name Description CODESYS autom.
program device
restart
Restore 2 RESTORE_2 Loading the CODESYS application and further device data from STOP YES
the storage device into the device.
The following files are loaded from the storage device:
All *.app and *.crc files.
PlcLogic folder
Folder USB_Data
IP address
PROFINET device name
Retain-data (retain.bin)
The folder must contain only one application file (*.app).
All other applications on the device except for the retain data are
deleted without further warnings. The retain data will only be
overwritten if the storage device contains a newer file.
The device automatically executes a restart after unplugging the
storage device.
Firmware Update FW_UPDATE Update of the device firmware. STOP YES
The PLC has to be in Stop in order to execute a firmware update.
The IP address, the PROFINET device name and the CODESYS
application will not be overwritten.
File name (example):
TBEN-L5-PLC-10_01504037_V1.0.3.0.bin
The device automatically executes a restart after unplugging the
storage device.
Write user data USB_DATA Loading the folder "USB_Data" from the storage device into the STOP YES
_WRITE device.
Existing files with the same name will be overwritten. All other
data remain unchanged.
2017/03 97
USB Host port functions
USB_DATA
Plug the storage device into the device.
The RUN-LED flashes green with 2 Hz.
The data are stored to the storage device.
The RUN-LED flashes orange with 1 Hz.
The storing is completed.
Unplug the storage device.
RESTORE_1/RESTORE_2
Plug the storage device into the device.
The RUN-LED flashes green with 0.5 Hz.
Press the SET-button within the next 30 seconds for at least 3 seconds.
The RUN-LED flashes in the following order 2x green - pause (1 Hz) - 2 x green- pause (1 Hz) - .
The loading of data into the device is executed.
The RUN-LED flashes orange with 1 Hz. The loading is completed.
Unplug the storage device.
The device is automatically restarted.
FW_UPDATE
The PLC has to be in Stop in order to execute a firmware update.
Plug the storage device into the device.
The RUN-LED flashes green with 0.5 Hz.
Press the SET-button within the next 30 seconds for at least 3 seconds.
The RUN-LED flashes in the following order 3x green - pause (1 Hz) - 3 x green- pause (1 Hz) - .
The loading of data into the device is executed.
The RUN-LED flashes orange with 1 Hz. The firmware update is completed.
Unplug the storage device.
The device is automatically restarted.
98 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
USB_DATA_WRITE
Plug the storage device into the device.
The RUN-LED flashes green with 0.5 Hz.
Press the SET-button within the next 30 seconds for at least 3 seconds.
The RUN-LED flashes green with 2 Hz. The data are stored to the device.
The RUN-LED flashes orange with 1 Hz. The storing is completed.
Unplug the storage device.
The device is automatically restarted.
2017/03 99
USB Host port functions
100 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
11 The web server
NOTE
Please change the password as described in Change Admin Password, page 106.
11.2 IP address
In the delivery status, neither an IP address nor a PROFINET name is stored into the devices.
In order to be able to access the device per web server, the web server can be opened using the IP
address 192.168.1.254.
If the PC used for the configuration is part of the same IP network, the page
http://192.168.1.254
can be opened in order to initially change some settings.
2017/03 101
The web server
102 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
11.4 Station Diagnostics
Diagnostic messages of the device are displayed on the "Station Diagnostics"-page.
2017/03 103
The web server
104 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
11.6 Ethernet Statistics
The page "Ethernet Statistics" shows information like the port-status, telegram and error counters
etc. The page can above all be useful for analyzing network problems.
NOTE
The "Ethernet summarized statistics" contain the statistics for both Ethernet ports.
11.7 Links
This page contains a link to the product page on the Turck website, on which further information
(data sheets, configuration files, CAD data, etc.) for the device can be found.
2017/03 105
The web server
NOTE
Executing the "Reset to Factory Defaults" also resets the password to "password".
NOTE
For security aspects when working with the web server, please observe the notes under
Safety in the web server, page 101.
NOTE
The password for the web server is synchronized to the password for the SFTP access.
Changing the web server password also changes the see password for the SFTP access
(page page 49).
NOTE
Executing the "Reset to Factory Defaults" (see also Reset to Factory Defaults, page 110)
also resets the password to "password".
106 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
Fig. 88: Change Admin password
Change password
Change the password in the web server.
Write the changes into the device via "Submit".
Restart the device.
The device has accepted the new settings, the settings have become active.
NOTE
"Reset" only resets the changes done in the web server mask back to the original values.
The function does not influence the device itself.
2017/03 107
The web server
NOTE
After a reset to factory settings, the device can be accessed using the IP address
192.168.1.254. This IP address is not stored permanently in the device.
If the device is set to "ROTARY" mode (Address setting via rotary coding switches
(Static rotary), page 28), than the last byte of the IP address can not be changed via the
web server.
NOTE
"Reset" only resets the changes done in the web server mask back to the original values.
The function does not influence the device itself.
108 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
11.11 Station Configuration
The "Station Configuration"-page serves for parameterizing the following device functions:
Deactivating the USB Host port or the web server
Assigning a PROFINET device name
The function is only available after a login.
11.11.2 Reboot
"Reboot" executes a restart of the device.
2017/03 109
The web server
ATTENTION!
System modification during operation
Undefined device status due to device restart or loss of functionality!
Do not change system or network settings during operation.
Before changing the system settings, always set the machine into the safe stop condi-
tion and disconnect the TBEN-L-PLC- from the machine.
Resets the device to the default settings (factory settings), see also F_Reset (Reset to factory set-
ting), page 30.
NOTE
"Reset" only resets the changes done in the web server mask back to the original values.
The function does not influence the device itself.
110 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
11.12 Slot Parameters
NOTE
Parameter changes via the web server are only valid until the CODESYS program is down-
loaded to the device again, the device is started with an active Boot application or param-
eters are changed in CODESYS by online change.
Change parameters
Change the module parameters in the web server.
Write the changes into the device via "Submit".
The device has accepted the new settings, the settings have become active.
NOTE
"Reset" only resets the changes done in the web server mask back to the original values.
The function does not influence the device itself.
2017/03 111
The web server
NOTE
If the web browser is closed without a logout, the last active access is reactivated when
opening the web server again from the same PC within 30 minutes,
which means, the access to the device with all administrator rights may be possible.
NOTE
If, for safety reasons, the web serves has to be deactivated completely, this is possible via
the device parameters in CODESYS or in the web server itself.
If the web server is deactivated using the web server itself, further access to it is only pos-
sible after a device reset to factory settings (see page 30) or via CODESYS (see page 38).
112 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
28 subsidiaries and over
60 representations worldwide!
D301431 2017/03
*D3014311703* www.turck.com