turck BL20-PG-EN-V3 User manual

Your Global Automation Partner
BLxx-PG-EN-V3
Programable CODESYS 3
gateways
User manual

1
V01.00 | 2016/06
Programmable Gateways BLxx-PG-EN-V3
1Aboutthismanual 5
1.1 Documentation concept 5
1.1.1 Additional documentation 5
1.2 Explanation of symbols used 5
1.2.1 Warnings 5
1.2.2 Further notes 6
1.3 General notes 7
1.3.1 Prescribed use 7
1.3.2 Notes concerning planning/installation of this product 7
2 General function description 9
2.1 Function description 9
3 Hardware description 11
3.1 Device structure 11
3.2 Device dimensions 11
3.3 Block diagrams 12
3.4 Technical data 13
3.4.1 BL20-PG-EN-V3 13
3.4.2 BL67-PG-EN-V3 15
3.5 Connectors 17
3.5.1 Fieldbus connection 17
3.5.2 Power supply 18
3.5.3 USB Device port 18
3.5.4 USB Host port 19
3.6 Device addressing and operation mode setting 19
3.6.1 Restore IP 20
3.6.2 Address setting via rotary coding switches (Static rotary) 20
3.6.3 Address setting via the mode DHCP 21
3.6.4 Address setting via the mode PGM 21
3.6.5 Address setting via the mode PGM-DHCP (universal mode) 22
3.6.6 F_Reset (Reset to factory setting) 23
3.6.7 Address setting with Turck IP Address Tool 24
3.6.8 Address setting via DTM 26
3.7 SET button 28
3.8 Reset to factory settings 29
3.8.1 IP Address Tool 29
3.8.2 Web server 30
3.9 LED displays 31

Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
2
3.9.1 LED description BL20 31
3.9.2 LED description BL67 33
3.10 Real time clock (RTC) 35
3.11 SFTP access 36
3.12 Firmware update 37
3.12.1 Firmware update using USB storage device 37
3.12.2 Firmware update via DTM 37
4 Parameters and diagnostics 39
4.1 Parameters 39
4.2 Diagnostics 40
4.2.1 System diagnostics 40
4.2.2 I/O diagnostics 41
5CODESYS-functions 43
5.1 Supported CODESYS libraries 43
5.2 General start-up 44
5.2.1 Installing the device package in CODESYS 44
5.2.2 Standard project with BLxx-PG-EN-V3 in CODESYS V3.5.8.10 45
5.3 Modbus TCP-Master 46
5.3.1 Configuring the Modbus TCP-Master 46
5.3.2 Configuring the external Modbus TCP slave 47
5.4 Modbus TCP-Slave-Device 49
5.4.1 Configuring Modbus TCP-Slave-Device 49
5.5 PROFINET-Device 51
5.5.1 Configuring the PROFINET-device in CODESYS 51
5.5.2 Configuring the PROFINET-device in the PROFINET-master 53
5.6 EtherNet/IP™ Slave (Device) 56
5.6.1 Configuring the EtherNet/IP™-device in CODESYS 56
5.6.2 Configuring the EtherNet/IP™-slave in EtherNet/IP™ PLC 58
6USBHostportfunctions 61
6.1 Compatible storage devices 61
6.2 Functions of the USB Host port 61
6.2.1 General hints/prerequisites 62
6.2.2 Function overview 63
6.2.3 Executing the functions 65
6.2.4 Behavior of the RUN-LED in case of an error 66

3
V01.00 | 2016/06
Programmable Gateways BLxx-PG-EN-V3
7Thewebserver 67
7.1 Web server - remote access/configuration 67
7.2 Safety in the web server 67
7.3 IP address 67
7.4 Home 68
7.5 Gateway Diagnostics 69
7.6 Ethernet Statistics 70
7.7 Links 70
7.8 Login/password 71
7.9 Change Admin Password 71
7.10 Network Configuration 73
7.10.1 Change network parameters (port settings, IP address, etc.) 73
7.11 Gateway Configuration 74
7.11.1 Configuration of the field bus interface 74
7.11.2 Reboot 74
7.11.3 Reset to Factory Defaults 74
7.12 Slot Parameters 75
7.12.1 Parameterization of the in-/ outputs 75
7.13 Using mobile devices 76
7.14 Web server logout 76
7.15 Deactivating the web server 76

Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
4

5
V01.0| 2016/04
Programmable Gateways BLxx-PG-EN-V3
1 About this manual
1.1 Documentation concept
This manual describes the hardware and the functions of the CODESYS V3-programmable gateways
for the Turck product families BL20 and BL67 (BL20-PG-EN-V3 and BL67-PG-EN-V3).
The following chapters contain:
the hardware description of BLxx-PG-EN-V3,
the description of the device functionalities (master/device),
the description of the Modbus-master, page 46
examples for the connection of the BLxx-PG-EN-V3 as device (slave)
–Modbus TCP Slave Device, page 49
–PROFINET IO-Device, page 51
–EtherNet/IP™-Device, page 56
1.1.1 Additional documentation
Please read the following product family manuals for any general product line specific issues e.g.
system description, mounting, electrical installation, station configuration etc.
BL20:
D300717 „BL20 I/O modules - hardware and engineering“
BL67:
D300529 „BL67 I/O modules - hardware and engineering“
1.2 Explanation of symbols used
1.2.1 Warnings
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 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.
CAUTION!
CAUTION indicates a potentially dangerous situation with low risk, middle or low injury, if
not avoided.

About this manual
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
6
1.2.2 Further notes
CALL TO ACTION
This symbol identifies steps that the user has to perform.
RESULTS OF ACTION
This symbol identifies relevant results of steps
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.
TECHNICAL BASICS
The TECHNICAL BASICS offer technical information, basics and background information.
This information lead to a better understanding of the device functions for example. The
experienced user can skip this information.

7
V01.0| 2016/04
Programmable Gateways BLxx-PG-EN-V3
1.3 General notes
Please read this section carefully. Safety aspects cannot be left to chance when dealing with electri-
cal equipment.
This manual includes all information necessary for the prescribed use ofthe devices BL20-PG-EN-
V3 and BL67-PG-EN-V3. It has been specially conceived for personnel with the necessary
qualifications.
1.3.1 Prescribed 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 thor-
ough maintenance guarantee the trouble-free and safe operation of these devices.
1.3.2 Notes concerning planning/installation of this product
All respective safety measures and accident protection guidelines must be considered carefully and
without exception.

About this manual
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
8

9
V01.0| 2016/04
Programmable Gateways BLxx-PG-EN-V3
2 General function description
2.1 Function description
The programmable BL20/BL67 gateways can be used as autonomous PLCs or as decentral PLCs in a
network interconnection for a fast preprocessing of signals. The programmable gateways allow
autonomous control of applications without higher-level control.
The Ethernet ports serve as interface for programming, configuration and field bus communication.
Thanks to the multiprotocol Ethernet technology, the device can be used as slave with PLCs or PC
based systems with PROFINET, EtherNet/IP™ or Modbus TCP. In addition to that, the device can be
operated as Modbus TCP-master.
Gateways are the head component of a BL20 station. The electronic modules communicate over the
internal module bus with the gateway and can be configured independently of the fieldbus proto-
col.
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 programming interface
Integrated Gold CAP-buffered RTC (Real Time Clock)
USB Device Port as programming and service interface
USB Host Port for connecting USB memory sticksfor firmware-update, program backup, program
restore, data synchronization
Protocol converter - for example from Ethernet to serial communication.
LEDs for display of PLC status (LED APL, LED RUN), supply voltage (LED VI/VO, BL67 only), group
(LED ERR) and bus errors (LED BUS)
Integrated Ethernet switch allows line topology
Integrated web server
Field bus connection
–BL67-PG-EN-V3: Ethernet, 2 x M12-female connector, 4-pol. D-codes
–BL20-PG-EN-V3: Ethernet, 2 x RJ45-ports,
Power supply
–BL67-PG-EN-V3: 5-pole 7/8"-connector
–BL20-PG-EN-V3: screw terminals
Protection class:
–BL67-PG-EN-V3: IP67
–BL20-PG-EN-V3: IP20

General function description
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
10

11
V01.0| 2016/04
Programmable Gateways BLxx-PG-EN-V3
3 Hardware description
3.1 Device structure
3.2 Device dimensions
Fig. 1: Device structure BL20-PG-EN-V3 Fig. 2: Device structure BL67-PG-EN-V3
AUSB Host port
BDIP-switch for setting the operation mode
CRotary coding switch for address assignment
DEthernet ports
EPower supply
FUSB-Device port (Service)
GSET button
Fig. 3: Device dimensions BL20-PG-EN-V3 Fig. 4: Device dimensions BL67-PG-EN-V3
012
3
4
5
6
7
89
012
3
4
5
6
7
89
x10
PG-EN-V3
ETH1 UL
UL
USYS
SRV
ON OFF
USB Host
x1
GW IOs
APPL RUN
BUS LNK1
ERR LNK2
+
–
+
–
1
2
3
4
5
A
GF
B
C
D
E
Power
ETH2
ETH1
0
9
8
7
654
3
2
1
0
9
8
7
654
3
2
1
12345
PG-EN-V3
GW
IOBL67
RUN
VI/VO
APPL
ERR
BUS
LNK1
LNK2
A
B
C
D
E
FG
50.6
114.8
74.4
LED
LED
77.5
145
32
13

Hardware description
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
12
3.3 Block diagrams
Fig. 5: Block diagram BL20-PG-EN-V3
Fig. 6: Block diagram BL67-PG-EN-V3
Service
USB
USB-
Host
Eth1
Eth2
USYS
UL
UL
GND
Switch
μC
5 VDC
24 VDC
RTC
(buffered)
NV-
RAM
Memory
Module bus
interface
Communikation
bus
Power bus
BL20 system bus
Service
USB
USB-
Host
Eth1
Eth2
UL
GND
Switch
μC
5 VDC
24 VDC
V0
VIVsens
PE
GND
2
1
43
2
1
43
5
4
3
2
1
RTC
(buffered)
NV-
RAM
Memory
Module bus
interface
Communikation
bus
Power bus
BL67 system bus
Short circuit
protection

13
V01.0| 2016/04
Programmable Gateways BLxx-PG-EN-V3
3.4 Technical data
3.4.1 BL20-PG-EN-V3
Power supply
Power supply 24 VDC
System supply 24 VDC/5 VDC
Field supply 24 VDC
Permissible range 18...30 VDC
Nominal voltage from module bus 200 mA
Nominal current from module bus 8 A
Max. system supply current 1.3 A
Connection technology screw terminals
Field bus
Transmission rate 10/100 Mbps, Full/Half Duplex, Auto Negotiation,
Auto Crossing
Address assignment Rotary coding switches, PGM, DHCP
Connection technology RJ45-connector
PLC data
Programming CODESYS 3
Released for CODESYS version from V 3.5.6.30
Programming IEC 61131-3 (IL, LD, FBD, SFC, ST)
OPC yes
OPC UA no
Application tasks 5
Programming interface Ethernet, USB
Processor ARM, 32 Bit
Cycle time < 1ms for 1000 IL- commands (without I/O cycle)
Real time clock (RTC) yes
Program memory 1024 kByte
Data memory 512 kByte
Input data 4 kByte
Output data 4 kByte
Non-volatile memory 16 kByte
Web server
Default IP address 192.168.1.254
Service interface Mini USB

Hardware description
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
14
Modbus TCP
Address assignment Static IP, BOOTP, DHCP
Supported Function Codes FC1, FC2, FC3, FC4, FC5, FC6, FC15, FC16, FC23
Input data size max. 1024 registers
Input register start address 0 (0x0000 hex)
Out data size max. 1024 registers
Output register start address 0 (0x0000 hex)
EtherNet/IP™
Address assignment according to EtherNet/IP™ standard
Input data size 248 INT
Out data size 248 INT
PROFINET
Address assignment DCP
Conformance Class B (RT)
MinCycleTime 1 ms
Diagnostics according to PROFINET Alarm Handling
Topology detection supported
Automatic address assignment supported
Input data size max. 512 byte
Out data size max. 512 byte
Ambient conditions
Operating temperature -20…+ 60 °C
Storage temperature -25…+70 °C
Relative humidity 15 to 95% (internal), Level RH-2, no condensation
(at 45 °C storage)
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
Protection class IP20
General
Dimensions (w × l × h) 50,6 × 114,8 × 74,4mm
Approvals CE

15
V01.0| 2016/04
Programmable Gateways BLxx-PG-EN-V3
3.4.2 BL67-PG-EN-V3
Power supply
Power supply 24 VDC
System supply 24 VDC/5 VDC
Field supply 24 VDC
Permissible range 18...30 VDC
Nominal voltage from module bus 100 mA
max. sensor supply Isens 4 A electronic short circuit fuse
max. load current Io10 A
Nominal current from module bus 10 A
Max. system supply current 1.2 A
Connection technology 5-pole 7/8"-connector
Field bus
Transmission rate 10/100 Mbps, Full/Half Duplex, Auto Negotiation,
Auto Crossing
Address assignment Rotary coding switches, PGM, DHCP
Connection technology 2 x M12, 4-Pin, D coded
PLC data
Programming CODESYS 3
Released for CODESYS version from V 3.5.6.30
Programming IEC 61131-3 (IL, LD, FBD, SFC, ST)
OPC yes
OPC UA not supported
Application tasks 5
Programming interface Ethernet, USB
Processor ARM, 32 Bit
Cycle time < 1ms for 1000 IL- commands (without I/O cycle)
Real time clock yes
Program memory 1024 kByte
Data memory 512 kByte
Input data 4 kByte
Output data 4 kByte
Non-volatile memory 16 kByte
Web server
Default IP address 192.168.1.254
Service interface Mini USB

Hardware description
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
16
Modbus TCP
Address assignment Static IP, BOOTP, DHCP
Supported Function Codes FC1, FC2, FC3, FC4, FC5, FC6, FC15, FC16, FC23
Input data size max. 1024 registers
Input register start address 0 (0x0000 hex)
Out data size max. 1024 registers
Output register start address 0 (0x0000 hex)
EtherNet/IP™
Address assignment according to EtherNet/IP™ standard
Input data size 248 INT
Out data size 248 INT
PROFINET
Address assignment DCP
Conformance Class B (RT)
MinCycleTime 1 ms
Diagnostics according to PROFINET Alarm Handling
Topology detection supported
Automatic address assignment supported
Input data size max. 512 byte
Out data size max. 512 byte
Ambient conditions
Operating temperature -40…+70 °C
Temperature derating
> 55 °C Derating: max. field supply current = 5 A
Storage temperature -40…+85 °C
Relative humidity 15 to 95% (internal), Level RH-2, no condensation
(at 45 °C storage)
Vibration test according to EN 61131
up to 5 g (at 10 to 150 Hz) for mounting on DIN rail no drilling according to EN 60715,
with end bracket
up to 20 g (at 10 to 150 Hz) for mounting on base plate or machinery Therefore every sec-
ond module has to be mounted with two screws each.
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
Protection class IP67
DIN rail mounting yes, please observe offset
Direct mounting two mounting holes, 6 mm Ø
General
Dimensions (w × l × h) 74 × 145 × 77.5mm
Approvals CE

17
V01.0| 2016/04
Programmable Gateways BLxx-PG-EN-V3
3.5 Connectors
3.5.1 Fieldbus connection
BL20-PG-EN-V3
The field bus connection is realized via:
2 x RJ45-connector
BL67-PG-EN-V3
The field bus connection is realized via:
2 x M12 (female connector), M12-Ethernet switch, 4-pole, D-coded, according to IAONA specifica-
tion
TX+ Transmission Data +
RX+ Receive Data +
TX- Transmission Data -
RX- Receive Data -
Signal Data
TX+ Transmission Data +
RX+ Receive Data +
TX- Transmission Data -
RX- Receive Data -
12345678
1 = TX +
2 = TX –
3 = RX +
4 = n.c.
5 = n.c.
6 = RX –
7 = n.c.
8 = n.c.
4
13
2
1 = YE (TX +)
2 = WH (RX+)
3 = OG (TX )
4 = BU (RX )
v

Hardware description
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com
18
3.5.2 Power supply
BL20-PG-EN-V3
BL20-PG-EN-V3
3.5.3 USB Device port
The USB Device port is designed as mini USB socket and can be used as service interface for the
device DTMs as well as as programming interface for CODESYS.
RNDIS driver
The corresponding RNDIS driver is installed during the DTM installation in PACTware™. The USB
device port is shown in the DTM as additional Ethernet port .
Pin- no. Color 7/8“ Designation
1black GND
2blue GND
3green/yel-
low
PE Protective earth
4Brown VI (UB) Feed-in of nominal voltage for input modules (sensor supply Vsens));
also used for the generation of the system supply voltage
5white VO(UL) Feed-in of nominal voltage for output modules
(can be switched off separately).
NOTE
Use the interface BL Service Ethernet in the DTM for the connection to the BLxx-PG-EN-V3.
=
=
–
+
+
–
GND
L
U
L
GND
SYS
U
SYS
Field supply
System supply
3
4
5
2
1
1 = GND
2 = GND
3 = PE
4 = V
i
5 = V
o
12345
v
1 = 5 VDC
2 = D –
3 = D +
4 = n.c.
5 = GND

19
V01.0| 2016/04
Programmable Gateways BLxx-PG-EN-V3
3.5.4 USB Host port
The USB Host port is designed as USB2.0-A-socket and serves for connecting USB memory sticks for
the restore and backup of CODESYS programs and for the actualization of the device firmware (see
Functions of the USB Host port (page 61)).
3.6 Device addressing and operation mode setting
The device address and the operation mode are set using a combination of the 2 rotary coding
switches and the DIP switches at the device.
A„-“: Switch position is irrelevant
Fig. 7: Rotary coding and DIP switches at
BL20-PG-EN-V3
Fig. 8: Rotary coding and DIP switches at
BL67-PG-EN-V3
Rotary cod-
ing switches
DIP switches AMode Description
5(MODE)4321
00 1 0 0 - - Restore IP Reset the device to default settings
(see page 20):
IP address 192.168.1.254
Subnet mask 255.255.255.0
gateway 192.168.1.1
Auto-negotiation/
AutoMDIX
active
QuickConnect/FSU inactive
40 1 ----DHCP AddressingviaDHCP(seepage 21)
50 1 - - - - PGM Addressing via PGM (see page 21)
60 1 - - - - PGM-DHCP Addressing via PGM-DHCP (see page 22)
State of delivery
90 1 - - - - F_Reset Reset to factory settings (see page 23)
1-99 0 - - - - Static
rotary
Sets the last byte of the IP address (see page 20).
The other 3 byte are taken from the IP address, which was
stored in the device before.
00 0 0 0 - - Address Sets the last byte of the IP address to 100.
The other 3 byte are taken from the IP address, which was
stored in the device before.
1 = 5 VDC
2 = D –
3 = D +
4 = GND
1234
v
012
3
4
5
6
7
89
012
3
4
5
6
7
89
x10
x1
0
9
8
7
654
3
2
1
0
9
8
7
654
3
2
1
This manual suits for next models
1
Table of contents
Other turck Gateway manuals

turck
turck BL67-GW-EN Installation and user guide

turck
turck GDP-NI Series User manual

turck
turck BL20 User manual

turck
turck BL67-PG-EN-IP User manual

turck
turck BL20 User manual

turck
turck BL20-GW-CANOPEN User manual

turck
turck BL20 User manual

turck
turck BL20 User manual

turck
turck BL67 User manual

turck
turck BL67 User manual