Page 2
No part of this manual may be reproduced in any form (printed, photocopy, microfilm or any other process) or processed, dupli- cated or distributed by means of electronic systems without written permission of Hans Turck GmbH & Co. KG, Mülheim an der Ruhr. Subject to alterations without notice.
Page 3
Before starting the installation Disconnect the power supply of the device. Ensure that devices cannot be accidentally restarted. Verify isolation from the supply. Earth and short circuit. Cover or enclose neighboring units that are live. Follow the engineering instructions (AWA) of the device concerned.
Page 4
been installed with the housing closed. Desktop or portable units must only be operated and controlled in enclosed housings. Measures should be taken to ensure the proper restart of programs interrupted after a voltage dip or failure. This should not cause dangerous operating states even for a short time. If necessary, emergency-stop devices should be implemented.
Notes Concerning Planning /Installation of this Product ......2-3 Description of Symbols Used ............... 2-4 BL67 Philosophy The Basic Concept..................1-2 Flexibility....................1-2 Convenient Handling ................1-3 BL67 Components ..................1-4 Gateways....................1-4 Electronic Modules.................. 1-5 Base Modules..................1-6 End Plate ....................1-7 Ethernet System Description ..................
Page 6
Mapping the Modbus Registers..............4-19 Implemented Modbus Functions ..............4-20 Parameters of the Modules................. 4-21 Digital input modules................4-21 Analog input modules................4-23 Digital output modules ................4-27 Analog output modules ................. 4-28 Digital combi modules................4-30 Technology modules ................4-32 D301033 1106 BL67-PG-EN...
Page 7
Technology modules ................4-51 Configuration of the programmable gateway with CoDeSys General......................5-2 System requirements ................5-2 Installation of the BL67 target files..............5-3 Installation ....................5-4 BL67 Hardware Configuration ..............5-6 Configuration/ Programming of the PG in CoDeSys ........5-7 Creating a new project ................
Page 8
Protection against Electrostatic Discharge (ESD) ......... 7-12 Appendix Network Configuration .................. 8-2 Changing the IP address of a PC/ network interface card...... 8-3 Deactivating/ adapting the firewall in Windows XP......... 8-9 Nominal Current Consumption of Modules at Ethernet ......8-12 Glossary Index D301033 1106 BL67-PG-EN...
Page 9
About this Manual Documentation Concept ..............2 General Information................3 Prescribed Use ....................3 Notes Concerning Planning /Installation of this Product ......3 Description of Symbols Used............. 4 D301033 1106 BL67-PG-EN...
The following chapters contain a short BL67 system description, a description of the field bus system Ethernet, exact information about function and structure of the BL67 Ethernet gateways as well as all bus specific information concerning the connection to automation devices, the maximum system extension etc.
Please read this section carefully. Safety aspects cannot be left to chance when dealing with electrical equipment. This manual contains all necessary information about the prescibed use of the programmable TURCK gateway BL67-PG-EN. It has been specially conceived for personnel with the necessary qualifications.
This sign can be found next to all general notes that supply impor- tant information about one or more operating steps. These specific notes are intended to make operation easier and avoid unnecessary work due to incorrect operation. D301033 1106 BL67-PG-EN...
Analog input and output modules Technology modules (RS232 interface,...) A complete BL67 station counts as one station on the bus and therefore occupies one fieldbus address in any given fieldbus struc- ture. A BL67 station consists of a gateway, power distribution modules and I/O-modules.
The Basic Concept Convenient Handling All BL67 modules, with the exception of the gateway, consist of a base module and an electronic module. The gateway and the base modules are either snapped onto a mounting rail or are directly mounted onto the machine frame. The electronic modules are plugged onto the appropriate base modules.
C base module Gateways The gateway connects the fieldbus to the I/O-modules. It is respon- sible for handling the entire process data and generates diagnostic information for the higher-level master and the software tool I/O-ASSISTANT. Figure 2: BL67 gateway D301033 1106 BL67-PG-EN...
Note For detailed information about the individual BL67 I/O components, please refer to the chapters 2 to 8 of the manual "BL67- I/O-mod- ules" (TURCK Documentation-No.: German D300572; English: D300529). The "Appendix" to the manual mentioned above contains (amongst others) a list of all BL67 components and the assignment of elec- tronic modules to base modules.
1 x M12, 2 x M12, 2 x M12-P, 4 x M12, 4 x M12-P 4 x M8, 8 x M8 1 x M12-8 1 × M23, 1 x M23-19 1 x 7/8" (for Power Feeding Module) Figure 4: example of a base module D301033 1106 BL67-PG-EN...
BL67 Components End Plate An end plate on the right-hand side physically completes the BL67 station. It protects the module bus connections of the last base module in a station and guarantees the protection class IP67. Figure 5: end plate...
The IP address is a 4-byte-value which contains the address of the network to which the node is connected as well as the host address in the network. The IP address of the gateway BL67-PG-EN is predefined as follows: IP address: 192.168.1.254...
1.×××.×××.×××- 126/ 2 126.×××.×××.××× 128.0.×××.××× - 191.255.×××.××× 192.0.0.××× - / 256 223.255.255.××× According to their predefined address 192.168.1.××× the BL67 gateways are thus nodes of a Class C network. D301033 1106 BL67-PG-EN...
In order to assure a safe transmission of data, frame-protocols like TCP/IP are used. Figure 7: LAYER 7 Telegram Modbus etc. structure TCP- TCP-DATA Header TCP- Segment IP-DATA Header Package Ethernet- EtherNet-DATA Header EtherNet- Package D301033 1106 BL67-PG-EN...
The function codes contain, amongst others, commands for reading input data or writing output data. Please read Chapter 4, „Imple- mented Modbus Functions”, page 4-17 for further information about the function codes implemented in the BL67 gateway. D301033 1106 BL67-PG-EN...
Using ARP in the DOS-prompt, every node in a network can be clearly identified via its MAC-ID. Write a ping command for the respective station/ IP address: (example: "x:\\ping 192.168.1.100"). D301033 1106 BL67-PG-EN...
IP address is determined. This MAC-ID clearly identifies the network node. Figure 10: Determination of the MAC-ID of a BL67 module via Transmission Media For a communication via Ethernet, different transmission media can be used (see Chapter 7, page 7-4). D301033 1106 BL67-PG-EN...
Address setting via BootP-mode ..............18 Address setting via DHCP-mode ..............19 Address setting via PGM-mode ..............21 Addressing via PGM-DHCP ..............22 Address setting via the software "I/O-ASSISTANT" .........23 SET Button..................25 Status Indicators/Diagnostic Messages Gateway......26 Diagnostic Messages via LEDs ..............26 D301033 1106 BL67-PG-EN...
Technical Features General This chapter contains the general technical description of the programmable BL67 gateway for Modbus TCP. D301033 1106 BL67-PG-EN...
Function Function The programmable BL67 gateways can be used as an autonomous PLC or as a de-central PLC in a network interconnection for fast signal processing Hinweis The programmable BL67 gateway BL67-PG-EN is designed as a Single Task System. The gateway handles the entire process data traffic between the I/O-level and the PLC runtime system.
BL67-PG-EN A power supply B Ethernet C n.c. D SET-button E service- interface F rotary coding switches G module bus LED H designation status LED J RUN/STOP LED K LEDs for supply voltage monitoring L Ethernet LEDs D301033 1106 BL67-PG-EN...
Technical Data Structure of PLC runtime system The BL67-PG-EN has the following structure: Figure 12: BL67- Structure of PLC Systembus runtime system service memory interface PS/2 communi- cation Ethernet interface module bus interface Ethernet 5 VDC 24 VDC Power short circuit...
Page 34
(IL, LD, FDB, SFC, ST) – Application tasks – No. of POUs (Program 1024 Organization Unit) – Programming interfaces RS232-interface, Ethernet Processor RISC, 32 bit – Cycle time < 1 ms for 1000 IL-commands (without I/O-cycle) D301033 1106 BL67-PG-EN...
Page 35
Resistance to vibration according to EN 61131 – 10 to 57 Hz,constant amplitude 0.075 mm, 1 g – 57 to 150 Hz, constant acceleration 1 g – Vibration mode frequency cycles with a change rate of 1 octave/min D301033 1106 BL67-PG-EN...
Page 36
Air discharge (direct) 8 kV Relay discharge (indi- 4 kV rect) Electromagnetic HF fields according to IEC 61131-2 Fast transients (Burst) according to IEC 61131-2 Conducted interferences according to IEC 61000-4-6 induced by HF fields 10 V Criteria A D301033 1106 BL67-PG-EN...
Page 37
This device can cause radio disturbances in residential areas and in small industrial areas (residential, business and trading). In this case, the operator can be required to take appropriate measures to sup- press the disturbance at his own cost. D301033 1106 BL67-PG-EN...
Technical Features Connection possibilities Field bus connection The connection of the BL67 Ethernet gateways to the Ethernet network is realized via the 4-pole M12 female connector “Ethernet“. According to PNO- and ODVA-standards, the M12 female connector is designed as a 4-pole and D-coded connector.
Feed-in of nominal voltage for input modules (sensor supply); also used for the generation of the system supply voltage white ) Feed-in of nominal voltage for output modules (can be switched off sepa- rately) D301033 1106 BL67-PG-EN 3-11...
The interface is conceived as a 6-pole mini DIN connector. In order to connect the gateway to the PC, two types of cables can be used: special I/O-ASSISTANT-connection cable from TURCK (IOASSISTANT-ADAPTERKABEL-BL20/BL67; Ident-no.: 6827133) Commercially available PS/2 cable with adapter cable...
PC (top view) Connection Using Commercially Available Cables A further possibility to connect PC and BL67 gateway is to use a commercially available connection and adapter cable. The connection shown in the following figure (PS2-male/ PS2-male) is a 6-wire 1:1 connection.
Page 42
BL67 gateway: Pin- Male connector male connector PS/2 female A not supported connector by all adapter cables. +5 V 4, 6 DTR, DSR (from gateway) DATA not connected – – n.c. (DATA2) +5 V /CtrlMode n.c. (CLK2) 3-14 D301033 1106 BL67-PG-EN...
Address Setting Address Setting The addressing of BL67-PG-EN can be realized via different modes: rotary mode (manual addressing via rotary coding-switches) PGM mode (manual addressing via software) BootP mode, DHCP mode (automatic addressing via BootP/ DHCP-server at the boot-up of the gateway).
10 000: 192.168.1.254 1 - 254: static rotary 300: BootP 400: DHCP 500: PGM 600: PGM-DHCP Attention After every change of the address-mode, a voltage reset must be carried out. 3-16 D301033 1106 BL67-PG-EN...
EEPROM. Thus, they will get lost in case of a subsequent address-assignment via a BootP/ DHCP or PGM. Attention After changing the position of the rotary coding-switches, a voltage reset must be carried out to store the new address. D301033 1106 BL67-PG-EN 3-17...
BootP-server are stored in the gateway’s non-vola- tile memory. If the gateway is subsequently switched to rotary- or PGM-mode, the settings carried out via BootP (IP address, subnet mask, etc) will be taken from the module’s EEPROM. 3-18 D301033 1106 BL67-PG-EN...
In "manual allocation", a client's IP address is assigned by the network administrator, and DHCP is used simply to convey the assigned address to the client. D301033 1106 BL67-PG-EN 3-19...
× 10 × 1 Note In the PGM-mode, all network settings (IP address, subnet mask, etc.) are read from the module’s internal EEPROM. The settings carried out in the rotary-mode are stored in the module’s non-volatile EEPROM. 3-20 D301033 1106 BL67-PG-EN...
Address Setting Addressing via PGM-DHCP The addressing of the BL67 Modbus TCP gateway via PGM-DHCP is at the moment comparable to the addressing via DHCP (see page 3-19). D301033 1106 BL67-PG-EN 3-21...
Figure 26: Interface Ethernet The IP address as well as the subnet mask of the TURCK Ethernet gateways can be changed according to the application by using the integrated Address Tool. Changes in the network-configuration are only accepted in the...
Page 51
Attention Please observe that, if the system integrated Windows-firewall is ac- tivated, difficulties may occur during the communication between the gateway and the Address-tool. The firewall may possibly inhibit the access of the tool on Ethernet. D301033 1106 BL67-PG-EN 3-23...
Note Please press the SET button for 10 seconds after every change in the station’s hardware configuration in order to save the Current Configuration as the Reference Configuration in the Gateway. 3-24 D301033 1106 BL67-PG-EN...
LEDs via the respective configuration software Diagnostic Messages via LEDs Every BL67 gateway displays the following statuses via LEDs: 2 LEDs for module bus communication (module bus LEDs): GW and IO 1 LED for displaying if the gateway/ the program in the gateway...
Page 54
→ – Dismount modules possible reasons: – Replace the gateway. – too many modules connected to the gateway – short circuit in connected module – hardware error in gateway 3-26 D301033 1106 BL67-PG-EN...
Page 55
→ – Dismount modules possible reasons: – Replace the gateway. – too many modules connected to the gateway – short circuit in connected module – hardware error in – gateway D301033 1106 BL67-PG-EN 3-27...
Page 56
LED Status Meaning Remedy LED-displays Non-adaptable modi- – Compare the planned flashing, fication of the physi- BL67 station with the 1 Hz cally connected physical station. station. – Check the physical station for defective or incorrectly fitted elec- tronics modules.
Page 57
– Check the wiring of the flashing, system running voltage supply at the gateway Green, Overvoltage V flashing, system running 4 Hz Short circuit or over- – Automatic restart when load at sensor supply debugging. → sensor supply is switched off D301033 1106 BL67-PG-EN 3-29...
Page 58
Ethernet Traffic, flashing 10 Mbit – Green Displays the logical connection to a Master (1. Modbus TCP- connection) – Green, Gateway is ready for flashing operation – Gateway indicates error – Red, DHCP/BootP search flashing of settings 3-30 D301033 1106 BL67-PG-EN...
Digital output modules ................27 Analog output modules ................28 Digital combi modules................30 Technology modules .................32 Diagnostic Messages of the Modules ..........42 Power supply modules ................42 Digital input modules.................42 Analog input modules................43 Digital output modules ................46 Digital combi modules................49 D301033 1106 BL67-PG-EN...
Page 61
Modbus Registers Modbus Registers As soon as an application is downloaded to the BL67-PG-EN, the programmable gateway simply allows read-only-access to the stan- dard Modbus registers (0×0000h to 0×01FFh, 0×0800h to 0×09FFh). A write-access is only possible using the Modbus output registers (register 0×4400 to 0×47FF, see following table).
Page 62
0×1012 process image length in bit for the digital output modules 0×1013 process image length in bit for the digital input modules 0×1017 register-mapping revision (always 1, if not, mapping is incompatible with this description) D301033 1106 BL67-PG-EN...
Page 63
[mV] 0×2405 load current I 0×27FE no. of entries in actual module list 0×27FF no. of entries in reference module list 0×2800 to reference module list (32 × 4 bytes per 0×2840 module-ID) 0×2900 to reserved 0×29A0 D301033 1106 BL67-PG-EN...
0000h to 01FFh 0000h 01FFh intelligent modules, digital input status/ free input data modules diagnosis Note Independent of the I/O-configuration, an access to all 512 registers is always possible. Registers that are not used send "0". D301033 1106 BL67-PG-EN...
Note Independent of the I/O-configuration, an access to all 512 registers is always possible. Registers that are not used send "0" answering a read access, write accesses are ignored. D301033 1106 BL67-PG-EN...
Data Width of the I/O-Modules in the Modbus-Register Area Data Width of the I/O-Modules in the Modbus-Register Area The following table shows the data width of the BL67 I/O-modules within the modbus register area and the type of data alignment.
Modbus Wdog Error A time-out in the Modbus commu- nication occurred. Module bus I/O Cfg Modified Error The I/O-configuration has been changed and is now incompatible. I/O Communication No communication on the I/O- Lost Error module bus. 4-10 D301033 1106 BL67-PG-EN...
Page 69
Load voltage too low (< 18 VDC). too high Load voltage too high (> 30 V). too high Overload of the system voltage supply. reserved Warnings I/O Cfg Modified Warning I/O Diags Active At least one I/O-module sends Warning active diagnostics. D301033 1106 BL67-PG-EN 4-11...
This register defines after which time of inactivity a Modbus- connection is closed through a Disconnect. Register 0×113C and 0×113D: "Restore Modbus-connection parameter" Registers 0×113C and 0×113D serve for resetting the parameter- register 0×1120 and 0×1130 to 0×113B to the default settings. 4-12 D301033 1106 BL67-PG-EN...
For this purpose, write "0×7361" in register 0×113E. To activate the saving of the registers, write "0×7665" ("save") within 30 seconds in register 0×113F. Both registers can also be written with one single request using the function codes FC16 and FC23. D301033 1106 BL67-PG-EN 4-13...
Depending on the service, the optional data area can contain addi- tional parameters and/or other data to be written. Service response area 2080h 2081h 2082h 2083h 2084h 2085h 20FFh service result service index/ data- optional data code addr reg- (0 to 122 regis- count ters) 4-14 D301033 1106 BL67-PG-EN...
Page 73
A service request may have the following results: Service code Meaning Table 11: results of the 0×0000 error free execution of service service request 0×FFFE service parameters incorrect/ inconsistent 0×FFFF service code unknown D301033 1106 BL67-PG-EN 4-15...
In addition to that, digital in- and outputs can also be accessed via the packed process data, page 4-7 within the Modbus registers of the gateway. In the Modbus registers, the digital I/O data are stored with a vari- able offset, depending on the station’s I/O-configuration. 4-18 D301033 1106 BL67-PG-EN...
Implementation of MODBUS-TCP Implemented Modbus Functions The BL67 gateway for Ethernet supports the following functions for accessing process data, parameters, diagnostics and other services. Table 12: Function Codes Implemented Function functions Description Read Coils Serves for reading multiple output bits.
0, 1 operation mode 0 = normal group 1/ 2 1 = open circuit monitoring Group A (channel 0 and 2) Group B (channel 2 and 3). D301033 1106 BL67-PG-EN 4-21...
Page 80
0 = normal 2, 3 group 1 to 4 1 = open-circuit monitoring: Group A (channel 0 and 4) Group B (channel 1 and 5) Group C (channel 3 and 6) Group D (channel 4 and 7). 4-22 D301033 1106 BL67-PG-EN...
Parameters of the Modules Analog input modules BL67-2AI-I (1 byte parameter per channel) Table 15: Byte Bit Parameter Value Module name – Meaning parameters current mode 0 = 0...20 mA A Default- 1 = 4...20 mA settings value 0 = Integer (15 bit + sign)
Page 82
Implementation of MODBUS-TCP BL67-2AI-PT (2 byte parameter per channel) Byte Bit Parameter Value Table 17: Module name – Meaning parameters mains 0 = 50 Hz suppression A Default- 0 = 60 Hz settings value 0 = Integer (15 bit + sign)
Page 83
Parameters of the Modules BL67-2AI-TC (2 byte parameter per channel) Byte Bit Parameter Value Table 18: Module name – Meaning parameters mains 0 = 50 Hz suppression A Default- 0 = 60 Hz settings value 0 = Integer (15 bit + sign)
Page 84
Implementation of MODBUS-TCP BL67-4AI-V/I (1 byte parameter per channel) Byte Bit Parameter Value Table 19: Module name – Meaning parameters 0 to 3 0 range 0 = 0...10 V/ 0...20 mA A Default- 1 = -10...+10 V/ 4...20 mA settings...
(Channel 8 to circuit diagnosis is generated: "Value" × 10 mA. DiaOverCur 0 = short-circuit diagnosis off 1 = short-circuit diagnosis on DiaOpeLoa 0 = open circuit diagnosis off 1 = open circuit diagnosis on 2 to reserved D301033 1106 BL67-PG-EN 4-27...
Page 86
0 = activate 1 = deactivate 4 to reserved substitute value The substitute value will be trans- low byte mitted if the respective parameters of the gateway have been set to substitute value "output substitute value". high byte 4-28 D301033 1106 BL67-PG-EN...
Page 87
0 = activate 1 = deactivate 4 to reserved substitute value The substitute value will be trans- low byte mitted if the respective parameters of the gateway have been set to substitute value "output substitute value". high byte D301033 1106 BL67-PG-EN 4-29...
0 to output at 0 = automatic recovery overcurrent – the output switches-on auto- channel 4 to 7 matically after a short-circuit 1 = controlled recovery: – the output is manually switched-off and on again. 4-30 D301033 1106 BL67-PG-EN...
Page 89
0 to 7 matically after a short-circuit 1 = controlled recovery: – the output is manually switched-off and on again. 0 to output 0 = deactivate 1 = activate: – selective activation of outputs of the module D301033 1106 BL67-PG-EN 4-31...
– Byte 7 contains the status- or the control-byte. – Bytes 0 to 5 contain the user data. diagnosis 0 = release 1 = block 4-32 D301033 1106 BL67-PG-EN...
Page 91
(DTE) when the software- handshake is activated XOFF-character This character is used to stop the data transfer of the data terminal device (DTE) when the software- handshake is activated D301033 1106 BL67-PG-EN 4-33...
Page 92
Byte 6 of the process output data contains two bits which may set to flush the transmit- or the receive-buffer. – Byte 7 contains the status- or the control-byte. – Bytes 0 to 5 contain the user data. 4-34 D301033 1106 BL67-PG-EN...
Page 93
– The number of the bits set (data bits and parity bit) is even. data bits 0 = 7 – The number of data bits is 7. 1 = 8 – The number of data bits is 8. D301033 1106 BL67-PG-EN 4-35...
Page 94
INVALID_ BITS_LSB. The invalid bits on the LSB side are removed by shifting the position value to the right, starting with the LSB.(Default 0 bit = 0x 0). INVALID_BITS_MSB +INVALID_BITS_LSB must always be less than SSI_FRAME_LEN. 4-36 D301033 1106 BL67-PG-EN...
Page 96
SSI_FRAME_LEN must always be greater than INVALID_BITS. Default: 25 = 19hex reserved data format binary coded – SSI encoder sends data in binary code GRAY coded – SSI encoder sends data in Gray code 4-38 D301033 1106 BL67-PG-EN...
Page 97
CfgNode 8 Configuration of the eighth connected node (see Table 29:) GuardTime Setting the guard time in steps of 100ms (default 3 = 300 ms) Life Time Factor default 3 Config Different configuration settings (see Table 30:) D301033 1106 BL67-PG-EN 4-39...
Page 98
111 = reserved 5 to 7 OutLen 000 = 0 bit 001 = 4 bit 010 = 8 bit 011 = 12 bit 100 = 16 bit 101 = 24 bit 110 = 32 bit 111 = reserved 4-40 D301033 1106 BL67-PG-EN...
Page 99
100 = 125 k 101 = 50 k 110 = 20 k 111 = 10 k Termination 0 = no terminating resistor 1 = terminating resistor active – Activation of the terminating resistor. 4 to 7 reserved D301033 1106 BL67-PG-EN 4-41...
Diagnostic Diagnostic message BL67-2AI-I byte A only detected measurement range error when the current (channel 0) open circuit range is set from 4 to 20 mA. n + 1 measurement range error (channel 1) open circuit D301033 1106 BL67-PG-EN 4-43...
Page 102
(Underflow diagnostic only in the tempera- surement range end ture measurement range.) value. Ω B Threshold: 5 open circuit (loop resistance) short-circuit (Only with temperature measurements) n + 1 0 to 7 similar to channel 0 (channel 1) 4-44 D301033 1106 BL67-PG-EN...
Page 103
4 to 7 reserved n + 1 0 to 7 similar to channel 0 (channel 1) BL67-4AI-V/I Table 38: Diagnostic Diagnostic message BL67-4AI-V/I byte measurement range error (channel 0) n + x measurement range error (channel 1 to 3) D301033 1106 BL67-PG-EN 4-45...
Page 105
Short-circuit or/ and open circuit channel 7 n + 1 Short-circuit or/ and open circuit channel 8 Short-circuit or/ and open circuit channel 9 Short-circuit or/ and open circuit channel 14 Short-circuit or/ and open circuit channel 15 D301033 1106 BL67-PG-EN 4-47...
Diagnostic Diagnostic message BL67-1RS485/ byte parameterization error hardware failure frame error data flow control error BL67-1SSI Table 48: Diagnostic Diagnostic message BL67-1SSI byte SSI group diagnostics open circuit sensor value overflow sensor value underflow parameterization error D301033 1106 BL67-PG-EN 4-51...
Page 110
Guard Time Communication error/Guard Time timeout Table 51: Meaning Global diagnosis Emergencies transmitted since module start CVI-module (DiagCVI) Node address not within permissible range (1-8) Overcurrent VC (valve power supply) Overcurrent VE (valve electronic power supply) 4-52 D301033 1106 BL67-PG-EN...
Page 111
Configuration of the programmable gateway with CoDeSys General ....................2 System requirements ..................2 Installation of the BL67 target files ........... 3 Installation ....................4 BL67 Hardware Configuration ............6 Configuration/ Programming of the PG in CoDeSys ......7 Creating a new project ................7 –...
Configuration of the programmable gateway with CoDeSys General This chapter describes the configuration of a BL67 station with the programmable BL67 gateway for MODBUS-TCP in CoDeSys (Controller Development System) from "3S - Smart Software Solu- tions GmbH" on the basis of an example.
Target files contain all information necessary for integrating a system into the programming tool. The Target Support Package (TSP) for the BL67-PG-EN can be downloaded from the TURCK homepage as a zipped archive (TSP_Turck_BL67_PG_EN ×××.zip).
The target installation in CoDeSys is done using the "Start → Programs→ 3S Software → CoDeSys → V2.3 → Install Target"- command. Figure 32: Install Target Search the target information file "BL67-×××.tnf" using the „Open“ button and add the TURCK gateways to „Possible Targets“. Figure 33: Select the target file The BL67 target is installed using the "Install"...
Page 115
Installation of the BL67 target files The BL67-PG-EN can now be found under "Installed Targets" and can be chosen in CoDeSys as a target now. Figure 34: Installation of the TURCK target D301033 1106 BL67-PG-EN...
Configuration of the programmable gateway with CoDeSys BL67 Hardware Configuration 1 At first, configure your BL67 station (BL67-PG-EN and I/O modules) and switch on the power supply. 2 The gateway saves the actual station configuration, if the SET button under the cover on the gateway is pressed for approx. 10 seconds.
Normally, a further configuration of the gateway in the dialog box „target settings“ is not necessary. Note The BL67-PG-EN uses the word addressing mode (see the following table). Please observe therefore, that the parameter "Byte addressing mode" in the "General" tab is always deactivated.
Page 118
PLC_PRG is always the main program in a Single-Task program. If PLC_PRG is deleted or renamed, the project must be controlled using a task configuration. Figure 36: CoDeSys-project Now, the communication parameters for the target have to be adapted. D301033 1106 BL67-PG-EN...
In the dialog box „Communication Parameters: New Channel“ the name for the new channel is edited and the communication interface is selected in the „Device“ field. The BL67 gateway offers 2 possible communication interfaces: 1 PS/2 female connector for a serial RS232-communication D301033 1106 BL67-PG-EN...
Page 120
Configuration of the programmable gateway with CoDeSys 2 Ethernet connector (M12, 4-pole, D-coded) for a „TCP/IP (Level 2)"-communication. Figure 38: Defining a new channel 5-10 D301033 1106 BL67-PG-EN...
Page 121
The Parameter "Motorola byteorder" must be set to "YES". Other- wise, no error-free communication with the gateway is possible. Please observe that the communication with the PG is only possible with a baudrate of 115200 Baud, when using the serial RS32-inter- face. D301033 1106 BL67-PG-EN 5-11...
Page 122
When setting the IP address of the gateway, please observe that it has to match the settings of you PC network interface card. Other- wise, no communication can be built up between PC and PG (please read Chapter "Network Configuration"). 5-12 D301033 1106 BL67-PG-EN...
Configuration of the BL67 Station Configuration of the BL67 Station Open the „PLC Configuration“ in the „Resources“ tab. Figure 41: PLC Configuration Mark the BL67-IO[SLOT] and add the I/O modules to the gateway in the „Input/Output“ tab. Figure 42: Selecting the I/O modules...
Configuration of the programmable gateway with CoDeSys Attention When configuring the BL67 station in the software, please observe that the order of the modules added to the gateway has to match the physical module order of the hardware configuration. Parameterization of the I/O modules For the parameterization of an I/O module mark the respective module in the „Selected Modules“...
Page 125
Configuration of the BL67 Station a node number shows the gateway’s position in the configuration structure. Note The assignment of the in- and output addresses is done automati- cally and cannot be changed by the user. In case of configuration changes, this assignment is also adapted automatically which may cause byte adjustments.
Page 126
Configuration of the programmable gateway with CoDeSys A double click directly to the left of the entry of automatic addressing „AT%...“ opens the input field for the symbolic addressing. Abbildung 45: Symbolic addressing 5-16 D301033 1106 BL67-PG-EN...
Modbus registers (see also Note on page 5-15). Please observe, that Ethernet an the BL67 gateways are Big- Endian-systems (Motorola format). As shown in the following figure, the high byte of the register is listed first (%IX26 →...
Page 128
Up to the time of the release of this manual, the automatic allocation of the comments by the software was faulty and did not show the correct bit order. Figure 47: Symbolic address allocation for Modbus registers 5-18 D301033 1106 BL67-PG-EN...
PLC-Programming PLC-Programming Programming is done in the "POUs" tab. Figure 48: Programming in r "POUs" tab After the completion of the program, it is compiled using the „Project → Rebuild all..." command. D301033 1106 BL67-PG-EN 5-19...
Configuration of the programmable gateway with CoDeSys Online The connection to the gateway is established with "Online → Login". Figure 49: Download of the program 5-20 D301033 1106 BL67-PG-EN...
Page 131
PLC-Programming Download the program to the gateway and start it with "Online → Run". Figure 50: Starting the program D301033 1106 BL67-PG-EN 5-21...
Configuration of the programmable gateway with CoDeSys Creating a boot project With "Online → create boot project" your program is saved as a boot project which is stored to the BL67-PG-EN and is automatically loaded at every re-start of the gateway. Figure 51:...
Guidelines for Station Planning Module Arrangement Random Module Arrangement The arrangement of the I/O-modules within a BL67 station can basi- cally be chosen at will. Attention Please observe, that RFID modules used within a station always have to be mounted directly following the gateway (slot 1 to 34).
Complete Planning Complete Planning The planning of a BL67 station should be thorough to avoid faults and increase operating reliability. Attention If there are more than two empty slots next to one another, the com- munication is interrupted to all following BL67 modules.
Guidelines for Station Planning Maximum System Extension A BL67 station can consist of a gateway and a maximum of 32 modules (equivalent to 1 m station length). The following overview shows the maximum number of channels possible under these conditions: The entire station is made up of the respective channel type only.
‹Station → Verify›. Creating Potential Groups Power Feeding modules can be used to create potential groups. The potential isolation of potential groups to the left of the respective power distribution modules is provided by the base modules. D301033 1106 BL67-PG-EN...
If the field and system supplies remain connected when electronic modules are plugged or pulled, short interruptions to the module bus communications can occur in the BL67 station. This can lead to undefined statuses of individual inputs and outputs of different modules.
Extending an Existing Station Extending an Existing Station Attention Please note that extensions to the station (mounting further mod- ules) should be carried out only when the station is in a voltage-free state. D301033 1106 BL67-PG-EN...
Page 140
Guidelines for Station Planning D301033 1106 BL67-PG-EN...
Group 2: unshielded cables for DC voltage > 60 V and ≤ 400 V unshielded cables for AC voltage > 25 V and ≤ 400 V Group 3: unshielded cables for DC and AC voltages > 400 V D301033 1106 BL67-PG-EN...
The cables must be routed in double-grounded metal piping or in reinforced concrete cable ducts. Signal cables must be protected against overvoltage by varistors or inert-gas filled overvoltage arrestors. Varistors and overvoltage arrestors must be installed at the point where the cables enter the building. D301033 1106 BL67-PG-EN...
(10BaseT) with shielding (STP) or without shielding (UTP). Note TURCK offers a variety of cable types for fieldbus lines as premoul- ded or bulk cables with different connectors. The ordering information for the available cable types can be found in the BL67 catalog.
All BL67 modules (gateway, Power Feeding and I/O-modules), are connected capacitively via base modules to the mounting rails. The block diagram shows the arrangement of a typical BL67 station. Figure 52: gateway I/O-module...
Ensuring Electromagnetic Compatibility The EMC of BL67 modules is guaranteed when the following basic rules are adhered to: Correct and large surface grounding of inactive metal compo- nents.
All mounting rails must be mounted onto the mounting plate with a low impedance, over a large surface area, and must be correctly earthed. Figure 53: Mounting options A TS 35 B Mounting rail C Mounting plate D301033 1106 BL67-PG-EN...
Page 148
Remove the isolating layer from all painted, anodized or isolated metal components at the connection point. Protect the connection point against corrosion (for example with grease; caution: use only suitable grease). D301033 1106 BL67-PG-EN...
20 cm apart) and be connected to a reference potential area. The cable shield should not be severed, but routed further within the system (for example, to the switchgear cabinet), right up to the inter- face connection. D301033 1106 BL67-PG-EN...
Page 150
A further possibility is a double-shielded cable (galvanically separat- ed), whereby the innermost shield is connected on one side and the outermost shield is connected on both sides. 7-10 D301033 1106 BL67-PG-EN...
Compensation cables and data cables should be routed as close together as possible, meaning the enclosed area should be kept as small as possible. Switching Inductive Loads In the case of inductive loads, a protective circuit on the load is recommended. D301033 1106 BL67-PG-EN 7-11...
Guidelines for Electrical Installation Protection against Electrostatic Discharge (ESD) Attention Electronic modules and base modules are at risk from electrostatic discharge when disassembled. Avoid touching the bus connections with bare fingers as this can lead to ESD damage. 7-12 D301033 1106 BL67-PG-EN...
– Changing the IP address in Windows 2000/ Windows XP ......3 – Changing the IP address in Windows NT ..........5 – Changing the IP address via I/O-ASSISTANT .........7 Deactivating/ adapting the firewall in Windows XP........9 Nominal Current Consumption of Modules at Ethernet ....12 D301033 1106 BL67-PG-EN...
PLC/ PC or a network interface card, both devices have to be hosts in the same network. The network is already defined by the default-settings in the BL67- gateways. The default IP address for the BL67-gateways is 192.168.1.254 (see...
"Local Area Connection Properties" via the button "Properties" in the dialog "Local Area Connection Status". 2 Mark "Internet Protocol (TCP/IP)" and press the "Properties"- button to open the dialog "Internet Protocol (TCP/IP) Proper- ties". Figure 54: Local Area Connection Properties D301033 1106 BL67-PG-EN...
Page 156
Appendix 3 Activate "Use the following IP address" and assign an IP address of the network mentioned above to the PC/ Network interface card (see the following figure). Figure 55: Changing the PC’s IP address D301033 1106 BL67-PG-EN...
Network Configuration Changing the IP address in Windows NT 1 Open the folder "Network" in the Control Panel. 2 Activate TCP/IP connection in the tab "Protocols" and click the "Properties" button. Figure 56: Network configura- tion WIN NT D301033 1106 BL67-PG-EN...
Page 158
Appendix 3 Activate "Specify IP address " and set the address as follows. Figure 57: Specify IP address D301033 1106 BL67-PG-EN...
IP address as well as the subnet mask according to the application. Figure 58: Address Tool in the I/O-ASSISTANT The network is browsed by using the search function in the Address Tool. Figure 59: Search function in the Address Tool D301033 1106 BL67-PG-EN...
Page 160
The address changing is done via "Tools → Changing IP settings...". It is now possible to change the address settings for all nodes in the list or only for the selected one. Figure 60: Address changing for selected nodes D301033 1106 BL67-PG-EN...
In this case, you can deactivate the system integrated Windows XP firewall completely or adapt it to your application. Deactivating the firewall Open the "Windows Firewall" dialog in the control panel of your PC and deactivate it as follows: Figure 61: Deactivating the Windows firewall D301033 1106 BL67-PG-EN...
Page 162
Appendix Adapting the firewall The firewall remains active, the option "Don’t allow exceptions" it deactivated: Figure 62: Activating the Windows firewall 8-10 D301033 1106 BL67-PG-EN...
Page 163
Figure 63: "Exceptions"-tab Note Despite an active firewall, the I/O-ASSISTANT for example is now able to browse the network for hosts and the address changing via the software is possible for the connected nodes. D301033 1106 BL67-PG-EN 8-11...
BL67-2AI-V ≤ 13 mA BL67-2AI-PT ≤ 10 mA BL67-2AI-TC Digital output modules ≤ 9 mA BL67-4DO-0.5A-P ≤ 9 mA BL67-4DO-2A-P ≤ 9 mA BL67-8DO-0.5A-P ≤ 24 mA BL67-4DO-2A-N ≤ 24 mA BL67-8DO-0.5A-N ≤ 9 mA BL67-16DO-0.1A-P 8-12 D301033 1106 BL67-PG-EN...
Page 165
BL67-1RS232 ≤ 20 mA BL67-1RS485/422 ≤ 32 mA BL67-1SSI ≤ 24 mA BL67-1CVI Note Please find any information about the bus-independent, module specific current consumptions in the manual "BL67- I/O-modules" (TURCK-Documentation No.: German D300572/ English D300527). D301033 1106 BL67-PG-EN 8-13...
Page 167
Baud is a measure for the transmission speed of data. 1 Baud corresponds to the transmission of one bit per second (bit/s). Baud rate Unit of measurement for measuring data transmission speeds in bit/s. Bidirectional Working in both directions. D301033 1106 BL67-PG-EN...
Page 168
Coding elements Two-piece element for the unambiguous assignment of electronic and base modules. Configuration Systematic arrangement of the I/O-modules of a station. D301033 1106 BL67-PG-EN...
Page 169
All objects that produce, convert, transmit, distribute or utilize electrical power (e. g. conductors, cable, machines, control devices). Electromagnetic compatibility – the ability of an electrical part to operate in a specific environment without fault and without exerting a negative influence on its environment. D301033 1106 BL67-PG-EN...
Page 170
Potential of ground in a neutral grounding device. Unlike earth whose potential is always zero, it may have a potential other than zero. Hexadecimal System of representing numbers in base 16 with the digits 0... 9, and further with the letters A, B, C, D, E and F. D301033 1106 BL67-PG-EN...
Page 171
Lightning protection All measures taken to protect a system from damage due to overvoltages caused by lightning strike. Low impedance connection Connection with a low AC impedance. D301033 1106 BL67-PG-EN...
Page 172
Least Significant bit Mass All interconnected inactive components that do not take on a dangerous touch potential in the case of a fault. Master Station in a bus system that controls the communication between the other stations. D301033 1106 BL67-PG-EN...
Page 173
Galvanic isolation of the reference potentials in I/O-modules of the control and load circuits. Potential linked Electrical connection of the reference potentials in I/O-modules of the control and load circuits. Protective earth Electrical conductor for protection against dangerous shock currents. Gener- ally represented by PE (protective earth). D301033 1106 BL67-PG-EN...
Page 174
Type of information transmission, by which data is transmitted bit by bit via a cable. Setting parameters Setting parameters of individual stations on the bus and their modules in the configuration software of the master. Shield Conductive screen of cables, enclosures and cabinets. D301033 1106 BL67-PG-EN...
Page 175
Connection of a conductive component with the grounding connection via a grounding installation. Topology Geometrical structure of a network or the circuitry arrangement. Abbreviation for User Datagram Protocol. UDP is an transport protocol for the connectionless data between Ethernet hosts. Unidirectional Working in one direction. D301033 1106 BL67-PG-EN...
Page 178
......... 2-4 system extension ......6-7 system extension, maximum ..6-4 TCP (Transmission Control Protocol) .. TCP/IP host ........2-2 transport, appropriate ....2-3 WIN 2000 ........8-3 WIN NT .......... 8-5 WIN XP .......... 8-3 10-2 D301033 1106 BL67-PG-EN...
Page 179
TURCK WORLD-WIDE HEADQUARTERS GERMANY Hans Turck GmbH & Co. KG Witzlebenstraße 7 D-45472 Mülheim an der Ruhr P. O. Box 45466 Mülheim an der Ruhr Phone (+49) (208) 4952-0 (+49) (208) 4952-2 64 E-Mail more@turck.com D301033 1106 *D300782ßß0704* Subject to change without notice...
Need help?
Do you have a question about the BL67 and is the answer not in the manual?
Questions and answers