This manual describes the hardware and functions of the CODESYS V3 programmable gateways for the Turck BL20 and BL67 product families (BL20-PG-EN-V3 and BL67-PG-EN-V3). Each warning is introduced by a warning sign and a signal word that expresses the severity of the danger. CAUTION indicates a potentially hazardous situation with low risk, moderate or low injury if not avoided.
This manual contains all the information necessary for the intended use of the devices BL20-PG-EN-V3 and BL67-PG-EN-V3. The devices described in this manual may only be used in applications prescribed in this manual or in the respective technical descriptions, and only with certified components and devices from third-party manufacturers. The programmable BL20/BL67 gateways can be used as stand-alone PLCs or as decentralized PLCs in a network connection for fast signal pre-processing.
Thanks to the multi-protocol Ethernet technology, the device can be used as a slave with PLCs or PC-based systems with PROFINET, EtherNet/IP or Modbus TCP. The electronic modules communicate with the gateway via the internal module bus and can be configured independently of the fieldbus protocol.
Device structure
Device dimensions
Block diagrams
Technical data
Connectors
- Fieldbus connection BL20-PG-EN-V3
- Power supply BL20-PG-EN-V3
- USB Device port
- USB Host port
The USB device port is designed as a mini USB plug and can be used as a service interface for the device's DTMs as well as a programming interface for CODESYS. Use the BL Service Ethernet interface on the DTM for connection to the BLxx-PG-EN-V3. The USB Host port is designed as a USB2.0-A socket and serves for connecting USB memory for restoring and backing up CODESYS programs and for updating the device's firmware (see Functions of the USB Host port (page 61).
Device addressing and operation mode setting
- Restore IP
- Address setting via rotary coding switches (Static rotary)
- Address setting via the mode DHCP
- Address setting via the mode PGM
- Address setting via the mode PGM-DHCP (universal mode)
- F_Reset (Reset to factory setting)
- Address setting with Turck IP Address Tool
- Address setting via DTM
When using rotary mode, the last byte of the station's IP address can be set via rotary encoder switches. Please set the device to another mode after resetting the IP address to the default values. The device sends DHCP requests until an IP address is assigned (DHCP server, PROFINET controller, PACTware, web server, IP Address Tool).
The assigned IP address is stored on the device and the DHCP client is stopped. In this case, both the DHCP server and the PROFINET controller (via DCP) attempt an IP address assignment. The device can be accessed by the web server/DTM using this IP address, but the address is not permanently stored on the device.
The Turck IP Address Tool provides direct access to the Ethernet network via the Ethernet cable. Access by DTM to the station is only possible if the station already has an IP address (see Setting device addressing and operating mode (page 19)).
SET button
Reset to factory settings
IP Address Tool
Web server
LED displays
LED description BL20
If more than one slave is configured on the PG, the LED shows the status of the slave in CODESYS that was configured first.
LED description BL67
ON OFF Shows the logical connection to a master If more than one slave is configured in the PG, then the LED shows the state of the slave in CODESYS which was the first to be configured.
Real time clock (RTC)
SFTP access
Firmware update
Firmware update using USB storage device
Firmware update via DTM
Parameters
Diagnostics
System diagnostics
I/O diagnostics
The CODESYS 3 programmable multiprotocol gateways BL20-PG-EN-V3 and BL67-PG-EN-V3 can be used as follows:.
Supported CODESYS libraries
General start-up
Installing the device package in CODESYS
Standard project with BLxx-PG-EN-V3 in CODESYS V3.5.8.10
Modbus TCP-Master
Configuring the Modbus TCP-Master
Configuring the external Modbus TCP slave
In the example (Fig. 31: Adding Modbus Slave channels), the slave's process output data starts with register 0x0800.
Modbus TCP-Slave-Device
Configuring Modbus TCP-Slave-Device
Which data will be placed in the input and hold registers depends on the assignments in the PLC program or in the I/O mapping of the PG-V3 or the local I/Os..
PROFINET-Device
Configuring the PROFINET-device in CODESYS
Which data will be mapped to the configured input and output data depends on the assignments in the PLC program or in the I/O mapping of the PG-V3 or local I/Os.. The PROFINET device displays an error as long as the connection to the PROFINET master is established.
Configuring the PROFINET-device in the PROFINET-master
As for all other PROFINET slaves, the PROFINET interface for the CDS3 PN device“ must be configured in the project. Set all necessary IP settings and assign a PROFINET device name or use the device name already assigned to the device. Configure the input and output data, to be exchanged with the CODESYS device.
The configuration of the data in TIA-Portal must be carried out in the reverse order compared to the configuration in CODESYS.
EtherNet/IP Slave (Device)
Configuring the EtherNet/IP-device in CODESYS
The EtherNet/IP-slave is configured as a standard EtherNet/IP-slave (communication adapter) in RSLogix. The device is added to the device catalog in RSLogix as 'CDS 3 Ethernet/IP Slave'. The configuration of the input and output data to be exchanged with the CODESYS device is thus unnecessary.
The USB Host port serves for connecting USB storage devices for saving, restoring and transferring CODESYS applications, as well as for updating the device's firmware.
Compatible storage devices
Functions of the USB Host port
- General hints/prerequisites
- Function overview
- Executing the functions
- Behavior of the RUN-LED in case of an error
The RUN LED shows an error, see the behavior of the RUN LED in the event of an error (page 66). The names of the CODESYS application and the file names of the boot application (*.app and . *.crc) must be identical and must not be renamed. Rebooting or resetting the device with the storage device connected may destroy the running application.
Disconnect the storage device only if the RUN-LED is flashing orange (read/write operation completed) or red/green (error). Read user data USB_DATA Save the folder "USB_Data" from the BLxx-PG-EN-V3 to the storage device. All other applications on the device except the retained data are deleted without further warnings.
The IP address, the PROFINET device name and the CODESYS application will not be overwritten. Timeout – The SET button has not been pressed within 30 seconds of connecting the storage device. Red/Green Blinking (1 Hz) Invalid Folder – The storage device contains one folder with an invalid folder.
Web server - remote access/configuration 7.2 Safety in the web server
IP address
Home
Gateway Diagnostics
Ethernet Statistics
Links
Login/password
Change Admin Password
34;Reset" only resets the changes made in the web server mask to the original values.
Network Configuration
Change network parameters (port settings, IP address, etc.)
Gateway Configuration
Configuration of the field bus interface
Reboot
Reset to Factory Defaults
Slot Parameters
Parameterization of the in-/ outputs
Using mobile devices
Web server logout
Deactivating the web server