Your Global Automation Partner
BLxx-PG-EN-V3
Programable CODESYS 3
gateways
User manual
Page 1: ...Your Global Automation Partner BLxx PG EN V3 Programable CODESYS 3 gateways User manual...
Page 2: ...3 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...
Page 3: ...t 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...
Page 4: ...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...
Page 5: ...Hans Turck GmbH Co KG T 49 208 4952 0 F 49 208 4952 264 more turck com www turck com 4...
Page 6: ...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...
Page 7: ...uation 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 action...
Page 8: ...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 dev...
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 8...
Page 10: ...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 Sequent...
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 10...
Page 12: ...ress assignment D Ethernet ports E Power supply F USB Device port Service G SET button Fig 3 Device dimensions BL20 PG EN V3 Fig 4 Device dimensions BL67 PG EN V3 01 2 3 4 5 6 7 8 9 01 2 3 4 5 6 7 8 9...
Page 13: ...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...
Page 14: ...lex 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 P...
Page 15: ...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...
Page 16: ...te 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 fo...
Page 17: ...nput 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 Rela...
Page 18: ...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...
Page 19: ...on in PACTware The USB device port is shown in the DTM as additional Ethernet port Pin no Color 7 8 Designation 1 black GND 2 blue GND 3 green yel low PE Protective earth 4 Brown VI UB Feed in of nomi...
Page 20: ...witches A Mode Description 5 MODE 4 3 2 1 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 A...
Page 21: ...ion s IP address can be set via the rotary coding switches Addresses from 1 to 99 can be set The addresses 0 is used for Broadcast messages in the subnet The following example shows the setting of add...
Page 22: ...d period of time After this time or until the client explicitly relinquishes the address the address can be re assigned In manual allocation a client s IP address is assigned by the network administra...
Page 23: ...assigned DHCP server PROFINET controller PACTware web server IP Address Tool The assigned IP address is stored to the device and the DHCP client is stopped Even after a restart of the device the devic...
Page 24: ...This setting is no operation mode Please set the device to another mode after having reset the IP address to the default values Default value Comment IP address subnet mask Reset 192 168 1 254 255 25...
Page 25: ...tion as well as the PROFINET device name of the Ethernet device can be changed application specifically Search for devices Scan the network using the Search button All found Turck devices are shown Se...
Page 26: ...vice name Use the function Change device name to change the device s IP settings Fig 11 Changing the IP configuration Fig 12 Set PROFINET device name NOTE A PROFINET device name can only be assigned i...
Page 27: ...SSISTANT 3 FDT DTM enables direct access to the Ethernet network via the Ethernet cable The IP address as well as the subnet mask of the TURCK Ethernet stations can be changed accord ingto the applica...
Page 28: ...eady 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 difficultie...
Page 29: ...essing the SET button activates the write access of the device s USB Host port functions see also chapterl 6 USB Host port functions page 61 Fig 15 Changing the IP address Fig 16 SET button at BL20 PG...
Page 30: ...ibility to reset the devices to the factory settings 3 8 1 IP Address Tool NOTE Resetting the device to factory settings via rotary coding DIP switchesdeletes the CODE SYS program in the device see al...
Page 31: ...GmbH Co KG T 49 208 4952 0 F 49 208 4952 264 more turck com www turck com 30 3 8 2 Web server Fig 19 Web server reset to factory settings NOTE For further information concerning the web server please...
Page 32: ...e of the I O ASSISTANT OFF ON CPU not ready for operation possible causes too many modules at the gate way short circuit in connected mod ule gateway hardware error Check the system power supply at th...
Page 33: ...state of the slave in CODESYS which was the first to be config ured blinking OFF Device ready for operation OFF ON Gateway error IP address conflict gateway in RESTORE mode F_Reset activated Check th...
Page 34: ...g The current and configured mod ule list do not match but the data exchange proceeds as normal Check the physical station for pulled or new but not planned modules Check the system power supply at th...
Page 35: ...eLEDshows the state of the slave in CODESYS which was the first to be configured blinking OFF Device ready for operation OFF ON Gateway error IP address conflict gateway in RESTORE mode F_Reset activa...
Page 36: ...RTC Properties The RTC is set in the device for example using the CODESYS library CAA Real time Clock Extern Buffering via Gold CAP Loading time for 95 load min 10 minutes Buffer time at 23 C 4 weeks...
Page 37: ...one via a FTP client program e g FileZilla Server SFTP protocol IP address of the device User name sftpuser Password password Port 22 NOTE The password for the SFTP access is synchronized to the passw...
Page 38: ...t 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 Functions of the USB Host port page 61 3 12 2...
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 38...
Page 40: ...ue Description Deactivate WEB server no A yes Deactivates the web server in the device Deactivate USB Host support no A yes Deactivates the USB Host port support for the device The USB Host port funct...
Page 41: ...d e g module has been pulled The current and configured module list do not match but the data exchange pro ceeds as normal Check the physical station for pulled or new but not planned modules Check th...
Page 42: ...the modules I O mapping in CODESYS Undervoltage Usys xUndervoltageUsys The load or system voltage are out of the permissible range Check the system power supply at the gateway Undervoltage at UL xUnde...
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 42...
Page 44: ...access SysFile 3 5 6 0 System SysFileAsync 3 5 5 0 System SysDir 3 5 6 0 System Time and date SysTime 3 5 5 0 System SysTimeCore 3 5 5 0 System SysTimer 3 5 5 0 System SysTimeRtc 3 5 5 0 System Misce...
Page 45: ...e device package in CODESYS Download the package BLxx PG EN V3 CODESYS Package Vx x x x from www turck com Install the package using the CODESYS Package Manager Tools Package Manager The device packag...
Page 46: ...ns Gateway LED APPL for free use in the program uses 2 bit in the device s output process image the output data therefore start with an offset of 1 byte in the default configuration Local_IO_BLxx Conf...
Page 47: ...08 4952 264 more turck com www turck com 46 5 3 Modbus TCP Master 5 3 1 Configuring the Modbus TCP Master The Modbus TCP master from 3S Smart Software Solutions GmbH is used Properties max number of T...
Page 48: ...nstead of interrupting the Modbus communication Otherwise the error has to be reset using a slave function block 5 3 2 Configuring the external Modbus TCP slave Add an external Modbus TCP slave using...
Page 49: ...urck com www turck com 48 Add Modbus Slave channels for the communication with the slave Observe the process data offsets of the slave In the example Fig 31 Adding Modbus Slave channels the slave s pr...
Page 50: ...vice to the Ethernet interface using the Add Device function and configure it Therefore definethe number of in and output registers inputand holding registers whichhave to be exchanged with the higher...
Page 51: ...F 49 208 4952 264 more turck com www turck com 50 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 PG V3 or of the...
Page 52: ...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 Fig 34 Configuring the PROFINET device in CODESYS NOTE When configu...
Page 53: ...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 35 PROFINET device data mappi...
Page 54: ...ice is configured as standard PROFINET slave in TIA Portal Hardware in the example 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 fi...
Page 55: ...e PROFINET parameters Like for all other PROFINET slave the PROFINET interface has to be configured for the CDS3 PN Device in the project Set all necessary IP settings and assign a PROFINET device nam...
Page 56: ...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...
Page 57: ...nfiguring the EtherNet IP device in CODESYS Add the Ethernet_IP_Slave to the Ethernet interface using the Add Device function and con figure the length of the in and output data which have to be excha...
Page 58: ...e Gateways BLxx PG EN V3 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 Et...
Page 59: ...P slave is configured as standard EtherNet IP slave Communications Adapter in RSLogix Hardware in the example Controller Logix 5572 Allen Bradley EtherNet IP Bridge 1756EN2TR Allen Bradley BL20 PG EN...
Page 60: ...59 V01 0 2016 04 Programmable Gateways BLxx PG EN V3 Slave configuration Enter the device name and the device s IP address Fig 42 Settings at the CDS3 Ethernet IP Slave...
Page 61: ...ticallyconfigured with a data width of 256 byte in and 256 byte output data Configuring the in and output data which have to be exchange with the CODESYS device is thus not necessary The Controller Ta...
Page 62: ...nues to run BACKUP_1 Storing the CODESYS application on the storage device BACKUP_2 Storing the CODESYS application and further device data on the storage device USB_DATA Storing of CODESYS recipes an...
Page 63: ...Function over view page 63 Folder names must not contain special characters Boot application The names of the CODESYS application and the file names of the boot application app and crc have to be ide...
Page 64: ...o the storage device All app and crc files PlcLogic folder Folder USB_Data IP address PROFINET device name Retain data retain bin Existing files with the same name will be overwritten All other data r...
Page 65: ...rther warnings The reatin data will only be overwritten if the storage device contains a newer file The device automatically executes a restart after unplugging the storage device STOP YES Firmware up...
Page 66: ...B Host port The RUN LED flashes 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 L...
Page 67: ...g the storage device The device is automatically restarted 6 2 4 Behavior of the RUN LED in case of an error Error Description LED behavior Timeout The SET button has not been pressed within the 30 se...
Page 68: ...e network security concept for the complete facility in which the modules are placed 7 3 IP address In the delivery status neither an address nor a PROFINET name is stored in the devices In order to b...
Page 69: ...start page shows general device information network settings etc The PLC Information part contains information concerning the CODESYS program status The menu items Station Diagnostics Ethernet Statist...
Page 70: ...69 V01 0 2016 04 Programmable Gateways BLxx PG EN V3 7 5 Gateway Diagnostics Diagnostic messages of the device are displayed on the Station Diagnostics page Fig 46 Diagnostics in the web server...
Page 71: ...atistics shows information like the port status telegram and error counters etc The page can above all be useful for analyzing network problems 7 7 Links This page contains for example a link to the p...
Page 72: ...page 71 7 9 Change Admin Password Please define an individual password for administrator rights Default password password NOTE Executing the Reset to Factory Defaults also resets the password to passw...
Page 73: ...e web server Write the changes into the device via Submit Restart the device voltage reset or pressing the set button The device has accepted the new settings the settings have become active Fig 49 Ch...
Page 74: ...tings have become active 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 After a reset t...
Page 75: ...eboot Reboot executes a power cycle at the device 7 11 3 Reset to Factory Defaults Resets the device to the default settings factory settings see also F_Reset Reset to factory set ting page 23 Gateway...
Page 76: ...rt the device voltage reset or pressing the set button The device has accepted the new settings the settings have become active NOTE Parameter changes by the web server are valid in the device until t...
Page 77: ...n to that a WLAN access has to be available for the mobile device 7 14 Web server logout In order to disconnect a logged in user PC with administrator rights from the web server a logout is necessary...
Page 78: ...with 28 subsidiaries and over 60 representations worldwide www turck com D301373 2016 06 D301373 1606...