turck BL20-PG-EN-V3 User Manual
turck BL20-PG-EN-V3 User Manual

turck BL20-PG-EN-V3 User Manual

Blxx-pg-en-v3 series programable codesys 3 gateways
Table of Contents

Advertisement

Quick Links

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the BL20-PG-EN-V3 and is the answer not in the manual?

Questions and answers

Summary of Contents for turck BL20-PG-EN-V3

  • Page 1 Your Global Automation Partner BLxx-PG-EN-V3 Programable CODESYS 3 gateways User manual...
  • Page 2: Table Of Contents

    3.6.4 Address setting via the mode PGM 3.6.5 Address setting via the mode PGM-DHCP (universal mode) 3.6.6 F_Reset (Reset to factory setting) 3.6.7 Address setting with Turck IP Address Tool 3.6.8 Address setting via DTM SET button Reset to factory settings 3.8.1 IP Address Tool...
  • Page 3 6.2.1 General hints/prerequisites 6.2.2 Function overview 6.2.3 Executing the functions 6.2.4 Behavior of the RUN-LED in case of an error Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 4 The web server Web server - remote access/configuration Safety in the web server IP address Home Gateway Diagnostics Ethernet Statistics Links Login/password Change Admin Password 7.10 Network Configuration 7.10.1 Change network parameters (port settings, IP address, etc.) 7.11 Gateway Configuration 7.11.1 Configuration of the field bus interface 7.11.2 Reboot 7.11.3 Reset to Factory Defaults...
  • Page 5 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 6: About This Manual

    About this manual 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, ...
  • Page 7: Further Notes

    This symbol identifies steps that the user has to perform.  RESULTS OF ACTION This symbol identifies relevant results of steps Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 8: General Notes

    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 of the devices BL20-PG-EN- V3 and BL67-PG-EN-V3. It has been specially conceived for personnel with the necessary qualifications.
  • Page 9 About this manual Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 10: General Function Description

    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 ...
  • Page 11 General function description Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 12: Hardware Description

    ETH2 LNK2 ETH1 – – Power Fig. 1: Device structure BL20-PG-EN-V3 Fig. 2: Device structure BL67-PG-EN-V3 A USB Host port B DIP-switch for setting the operation mode C Rotary coding switch for address assignment D Ethernet ports E Power supply...
  • Page 13: Block Diagrams

    Switch Module bus Eth2 interface 5 VDC 24 VDC Power bus Short circuit sens protection Fig. 6: Block diagram BL67-PG-EN-V3 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 14: Technical Data

    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 200 mA Nominal voltage from module bus Nominal current from module bus Max. system supply current 1.3 A...
  • Page 15 IEC 61131-2 Protection class IP20 General Dimensions (w × l × h) 50,6 × 114,8 × 74,4mm Approvals Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 16: Bl67-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 100 mA Nominal voltage from module bus max. sensor supply I 4 A electronic short circuit fuse sens max. load current I 10 A Nominal current from module bus 10 A...
  • Page 17 Direct mounting two mounting holes, 6 mm Ø General Dimensions (w × l × h) 74 × 145 × 77.5mm Approvals Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 18: Connectors

    Connectors 3.5.1 Fieldbus connection BL20-PG-EN-V3 The field bus connection is realized via: 2 x RJ45-connector 1 = TX + 2 = TX – 12345678 3 = RX + 4 = n.c. 5 = n.c. 6 = RX – 7 = n.c.
  • Page 19: Power Supply

    DTM as additional Ethernet port . NOTE Use the interface BL Service Ethernet in the DTM for the connection to the BLxx-PG-EN-V3. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 20: Usb Host Port

    DIP switches at the device. 6 5 4 6 5 4 Fig. 7: Rotary coding and DIP switches at  Fig. 8: Rotary coding and DIP switches at  BL20-PG-EN-V3 BL67-PG-EN-V3 Rotary cod- DIP switches A Mode...
  • Page 21: Restore Ip

    After changing the position of the rotary coding-switches, a voltage reset must be carried out to store the new address. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 22: Address Setting Via The Mode Dhcp

    3.6.3 Address setting via the mode DHCP In order to activate the DHCP-mode, the DIP-switch MODE is set to "ON", the rotary switches to address "40" (see Device addressing and operation mode setting (page 19)). Address setting is carried out by a DHCP-server in the network after the start-up of the gateway. The IP address, as well as the default subnet mask assigned to the gateway by the DHCP-server, are stored in the module’s EEPROM.
  • Page 23: Address Setting Via The Mode Pgm-Dhcp (Universal Mode)

    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. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 24: F_Reset (Reset To Factory Setting)

    Parame- ters (page 39) Parameters of I/O- modules NOTE Resetting the device to factory settings via DCP-based services (via Turck IP Address Tool or TIA-Portal/Step7) does not delete the CODESYS-program (see also Reset to factory set- tings (page 29). V01.0| 2016/04...
  • Page 25: Address Setting With Turck Ip Address Tool

    The device responds to this Wink command with a device specific blink code (see LED dis- plays (page 31)). Fig. 10: Send WINK command Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 26 Changing the IP address Use the function "Change  IP configuration" to change the device's IP settings. Fig. 11: Changing the IP configuration Changing the PROFINET device name Use the function "Change  device name" to change the device's IP settings. Fig.
  • Page 27: Address Setting Via Dtm

    Busaddress Management function of the BL Service Ethernet interface (TCP/IP) in the software I/O-ASSISTANT 3 (FDT/DTM). Fig. 13: Busaddress management Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 28 Fig. 14: Searching for network nodes in the Busaddress Management NOTE The access of the DTM to the station is only possible, if the station already has an IP- address (see Device addressing and operation mode setting (page 19)) and if it is operated in switch position PGM or PGM-DHCP-mode. NOTE When using Windows XP as operating system, difficulties may occur with system-inte- grated firewall.
  • Page 29: Set Button

    6, USB Host port functions (page 61). 6 5 4 6 5 4 Fig. 16: SET button at BL20-PG-EN-V3 Fig. 17: SET button at BL20-PG-EN-V3 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 30: Reset To Factory Settings

    SYS-program in the device, see also F_Reset (Reset to factory setting) (page 23). Resetting the device to factory settings via DCP-based services (via Turck IP Address Tool or TIA-Portal/Step7) does not delete the CODESYS-program (see also F_Reset (Reset to factory setting) (page 23).
  • Page 31: Web Server

    Fig. 19: Web server, reset to factory settings NOTE For further information concerning the web server please read chapterl 7 The web server. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 32: Led Displays

    LED displays Every BLxx-PF V3 displays the following statuses via LEDs:  PLC status (LED RUN),  application specific LED APPL (freely programmable via CODESYS)  supply voltage (LED VI/VO, BL67 only),  common errors (LED ERR) and  Bus errors (LED BUS) ...
  • Page 33 Remedy Station running, no diagnostics – A diagnostic message from gate- Check the diagnostic messages. way or I/O-modules is pending. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 34: Led Description Bl67

    3.9.2 LED description BL67 GREEN Meaning Remedy – No power supply of the CPU. Check the system power supply at the gateway. Communication running. The modules configured corre- spond to the modules in the sta- tion. blinking,  – Station is in the Force Mode of the Deactivate the Force Mode of the I/O-ASSISTANT.
  • Page 35 Check the Ethernet connection. Link established,10 Mbps blinking Ethernet traffic, 10 Mbps Link established,100 Mbps blinking Ethernet traffic, 100 Mbps Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 36: Real Time Clock (Rtc)

    3.10 Real time clock (RTC) Properties: Buffering via Gold CAP Loading time for 95 % load min. 10 minutes Buffer time at 23 °C 4 weeks – 60 °C 168 hours – 70 °C 36 hours The RTC is set in the device for example using the CODESYS library „CAA Real time Clock Extern“. Fig.
  • Page 37: Sftp Access

    Changing the password for the SFTP access also changes the web server password (see page 71). Fig. 21: SFTP access via FileZilla Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 38: Firmware Update

    3.12 Firmware update The firmware update can be done using a USB storage device at the USB Host port or via the Turck DTM in PACTware™. 3.12.1 Firmware update using USB storage device For the firmware update via USB storage device, please read section...
  • Page 39 Hardware description Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 40: Parameters And Diagnostics

    Parameters and diagnostics Parameters The BLxx-PG-EN-V3 provides the following parameters. NOTE Parameter changes are only applied after a device restart. Parameter name Value Description Deactivate WEB server no A Deactivates the web server in the device. Deactivate USB Host no A support Deactivates the USB Host port support for the device.
  • Page 41: Diagnostics

    Check the physical station for defective module bus nodes is not possible- or incorrectly plugged electronic mod- ules. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 42: I/O Diagnostics

    Diagnostics Meaning Undervoltage U The load or system voltage are out Check the system power supply at the „xUndervoltageUsys“ of the permissible range. gateway. Undervoltage at U „xUndervoltageFieldSupply_Ul“ Overload Overload at the system supply. „xOverloadIsys“ 4.2.2 I/O diagnostics The diagnostics of the local I/O modules are available as process data in the modules' I/O mapping in CODESYS.
  • Page 43 Parameters and diagnostics Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 44: Codesys-Functions

    CODESYS-functions The CODESYS 3 programmable multiprotocol gateways BL20-PG-EN-V3 and  BL67-PG-EN-V3 can be used as follows: Protocol Master Slave ✔ ✔ Modbus TCP page 46 page 49 ✔ PROFINET page 51 ✔ EtherNet/IP™ page 56 Supported CODESYS libraries 3S libraries –...
  • Page 45: General Start-Up

    The device package for CODESYS contains all necessary files  CODESYS Device Description,  CODESYS libraries,  GSDML file,  EDS file,  etc. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 46: Standard Project With Blxx-Pg-En-V3 In Codesys V3.5.8.10

    5.2.2 Standard project with BLxx-PG-EN-V3 in CODESYS V3.5.8.10  Create a standard project with the BLxx-PG-EN-V3 as CODESYS device. Fig. 26: Selecting the PG-V3 as CODESYS device  The CODESYS project is created. Fig. 27: CODESYS project In addition to the PLC logic, the project contains: ...
  • Page 47: Modbus Tcp-Master

    Configuring the Modbus TCP-Master The Modbus TCP master from 3S - Smart Software Solutions GmbH is used. Fig. 28: Add Modbus TCP-Master Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 48: Configuring The External Modbus Tcp Slave

    Configuring the external Modbus TCP slave  Add an external Modbus TCP slave using the "Add Device" function and configure the slave. In this example the Turck multiprotocol device TBEN-S1-4DIP-4DOP is used as Modbus slave. Fig. 30: Configuring the external Modbus TCP slave...
  • Page 49 (Fig. 31: Adding Modbus Slave channels) the slave's process output data start with register 0x0800. Fig. 31: Adding Modbus Slave channels Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 50: Modbus Tcp-Slave-Device

    Modbus TCP-Slave-Device Properties Max. number of input registers 1024 Max. number of holding registers 1024 5.4.1 Configuring Modbus TCP-Slave-Device  Add the Modbus_TCP_Slave_Device to the Ethernet interface using the "Add Device"-function and configure it.  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.
  • Page 51 I/O mapping of the PG-V3 or of the local I/Os. Fig. 33: Modbus TCP-Slave-Device data mapping Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 52: Profinet-Device

    PROFINET-Device Properties max. number of I/O data 1024 byte in total (512 IN + 512 OUT) NOTE It can be necessary to increase the PROFINET cycle time for larger BLxx-stations. 5.5.1 Configuring the PROFINET-device in CODESYS  Add the PROFINET_Device to the Ethernet interface using the "Add Device"-function and config- ure the length ofthe in- and output data, which have to be exchanged with the higher-level PROF- INET-master.
  • Page 53 Fig. 35: PROFINET-device data mapping NOTE The PROFINET-device shows an error as long as a connection to the PROFINET-master is established. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 54: Configuring The Profinet-Device In The Profinet-Master

    PLC: S7 CPU315-2 PN/DP, 315-2EH13-0AB0  BL20-PG-EN-V3, FW 1.0.5.0 Installing the GSDML-file  Install the device's GSDML-file (GSDML-V2.3-TURCK-CDS3_PN_Device--.xml) in the PROF- INET configuration software. It can be downloaded fromwww.turck.com  The device is added to the hardware catalog „CDS 3 PN Device“.
  • Page 55  Set all necessary IP-settings and assign a PROFINET-device name or use the device name which has already been assigned to the device. Fig. 37: Settings PROFINET-interface (CDS3 PN Device) Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 56 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.
  • Page 57: Ethernet/Ip™ Slave (Device)

    EtherNet/IP™-PLC. Fig. 39: Configuring the Ethernet/IP™-slave Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 58 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 PG-V3 or of the local I/Os. Fig. 40: EtherNet/IP™-slave data mapping V01.0| 2016/04...
  • Page 59: Configuring The Ethernet/Ip™-Slave In Ethernet/Ip™ Plc

     The device is added to the device catalog in RSLogix as „CDS 3 Ethernet/IP Slave“. Fig. 41: "CDS 3 Ethernet/IP Slave" in the device catalog in RSLogix5000 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 60 Slave configuration  Enter the device name and the device's IP address. Fig. 42: Settings at the "CDS3 Ethernet/IP Slave" V01.0| 2016/04...
  • Page 61 Configuring the in- and output data which have to be exchange with the CODESYS-device is thus not necessary. The Controller Tags are automatically generated. Fig. 44: Automatically generated Controller Tags of the "CDS3 Ethernet/IP Slave" Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 62: Usb Host Port Functions

    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 (bit 14 of the device parameter object).
  • Page 63: General Hints/Prerequisites

    NOTE Unplug the storage device only if the RUN-LED flashes orange (read/write operation fin- ished) or red/green (error). Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 64: Function Overview

    6.2.2 Function overview 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: Function Folder name Description CODESYS- autom. program device restart Read access Backup 1 BACKUP_1 Storing the CODESYS application on the storage device.
  • Page 65 Loading the folder "USB_Data"from the storage device into the STOP _WRITE device. Existing files with the same name will be overwritten. All other data remain unchanged. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 66: Executing The Functions

    6.2.3 Executing the functions BACKUP_1/BACKUP_2  Plug the storage device into the USB Host port.  The RUN-LED flashes with 4 Hz.  The backup is executed.  The RUN-LED flashes orange with 1 Hz.  The backup is completed. ...
  • Page 67: Behavior Of The Run-Led In Case Of An Error

    USB deacti- The USB Host function has been deactivated using vie web- Red/green flashing (0.5 Hz) vated server or CODESYS program. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 68: The Web Server

    Web server - remote access/configuration Safety in the web server In the web server, a default-password is assigned to the Turck devices for the administrator access. We strongly recommend to use an individual password, in order to avoid possible misuse by a...
  • Page 69: Home

    The menu items "Station Diagnostics", "Ethernet Statistics" and "Links" can also be accessed read- only without an administrator access. Fig. 45: Start page of the web server of BL20-PG-EN-V3 Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 70: Gateway Diagnostics

    Gateway Diagnostics Diagnostic messages of the device are displayed on the "Station Diagnostics"-page. Fig. 46: Diagnostics in the web server V01.0| 2016/04...
  • Page 71: Ethernet Statistics

    The "Ethernet summarized statistics" contain the statistics for both Ethernet ports. Links This page contains for example a link to the product page on the TURCK-homepage. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 72: Login/Password

    Login/password In order to obtain administrator rights and thus full access to the extended functions of the web server (Network Configuration, Station Configuration, etc.), you have to log-on to the web server as administrator. For the first login use the default password "password". The default-password should be be changed by the administrator.
  • Page 73 "Reset" only resets the changes done in the web server mask back to the original values. The function does not influence the device itself. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 74: Network Configuration

    7.10 Network Configuration On the "Network Configuration"-page, network-relevant settings can be changed. 7.10.1 Change network parameters (port settings, IP address, etc.) The device's network settings can be changed under "Network Configuration" only by users having administrator rights. NOTE The access of the web server to the station is only possible, if the station already has an IP address, Device addressing and operation mode setting (page 19).
  • Page 75: Gateway Configuration

    "Reset" only resets the changes done in the web server mask back to the original values. The function does not influence the device itself. Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 76: Slot Parameters

    7.12 Slot Parameters 7.12.1 Parameterization of the in-/ outputs The "Parameters"-page is used to parameterize the module's I/O-channels. NOTE Parameter changes by the web server are valid in the device until the CODESYS program is downloaded to the device again, the device is restarted or parameters are changed in CODESYS by online change.
  • Page 77: Using Mobile Devices

    If the web server is deactivated using the web server itself, further access to it is only pos- sible following a device reset to the factory settings (see page 74). Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | more@turck.com | www.turck.com...
  • Page 78 ...with 28 subsidiaries and over 60 representations worldwide! D301373 | 2016/06 *D301373ßß1606* www.turck.com...

This manual is also suitable for:

Bl67-pg-en-v3

Table of Contents