BL20 User Manual
BL20 User Manual
USER MANUAL
MULTIPROTOCOL
Gateway
for ETHERNET
BL20-E-GW-EN
2 BL20-philosophy
2.1 The basic concept ............................................................................................................................................2-2
2.1.1 Flexibility ...................................................................................................................................................................................................2-2
2.1.2 Compactness ...........................................................................................................................................................................................2-2
2.1.3 Easy to handle .........................................................................................................................................................................................2-2
2.2 BL20 components ............................................................................................................................................2-3
2.2.1 Gateways ...................................................................................................................................................................................................2-3
2.2.2 Power distribution modules...............................................................................................................................................................2-4
2.2.3 Electronics modules (standard product line) ...............................................................................................................................2-5
2.2.4 ECO electronics modules.....................................................................................................................................................................2-6
2.2.5 Base modules...........................................................................................................................................................................................2-7
2.2.6 End plate....................................................................................................................................................................................................2-8
2.2.7 End bracket...............................................................................................................................................................................................2-8
2.2.8 Jumpers......................................................................................................................................................................................................2-9
2.2.9 Marking material.....................................................................................................................................................................................2-9
2.2.10 Shield connection gateway ............................................................................................................................................................. 2-10
4 Implementation of EtherNet/IP™
4.1 The EtherNet/IP™ Communications Profile .................................................................................................. 4-2
4.1.1 Communications Profile for BL20 .................................................................................................................................................... 4-3
4.2 Device Level Ring (DLR).................................................................................................................................. 4-4
4.3 Diagnostic messages via the process data ................................................................................................... 4-5
8 Implementation of PROFINET®
8.1 Address assignment ....................................................................................................................................... 8-2
8.2 MRP (Media Redundancy Protocol)............................................................................................................... 8-3
8.3 GSDML-file....................................................................................................................................................... 8-4
8.4 Default-values ................................................................................................................................................. 8-4
8.5 Diagnosis in PROFINET® ................................................................................................................................. 8-5
8.5.1 Gateway Error codes ............................................................................................................................................................................ 8-5
8.5.2 Channel -specific error codes of the I/O-modules .................................................................................................................... 8-6
8.6 Parameterization .......................................................................................................................................... 8-11
8.6.1 Gateway parameters...........................................................................................................................................................................8-11
8.6.2 I/O-module-parameters ....................................................................................................................................................................8-14
8.6.3 Parameter "module parameterization"........................................................................................................................................8-14
8.7 Description of user data for acyclic services............................................................................................... 8-15
8.7.1 Description of the acyclic gateway user data............................................................................................................................8-15
8.7.2 Description of the acyclic module user data .............................................................................................................................8-16
13 Appendix
13.1 Data image of the technology modules ..................................................................................................... 13-2
13.1.1 1RS232/ 1RS485-module .................................................................................................................................................................. 13-2
13.1.2 SSI module ............................................................................................................................................................................................. 13-6
13.1.3 SWIRE-module....................................................................................................................................................................................13-13
13.1.4 Encoder/PWM-moduleBL20-E-2CNT-2PWM ...........................................................................................................................13-15
13.1.5 RFID-moule BL20-2RFID-S/ -A.......................................................................................................................................................13-15
14 Glossary
15 Index
In addition to a short BL20-system description and the protocol-independent properties of the gateway
and if necessary of the I/O-modules (technical properties, diagnostics, parameters, etc.), the following
chapters contain two protocol-dependent chapters respectively.
The protocol-dependent chapters contain on the one hand the protocol-specific gateway-properties
and on the other hand an application example for the respective Ethernet-protocol, describing the
device's connection to automation devices.
EtherNet/IP™
– chapter 4, Implementation of EtherNet/IP™
– chapter 5, Application example: BL20-E-GW-EN with EtherNet/IP™ (Allen Bradley)
Modbus TCP
– chapter 6, Implementation of Modbus TCP
– chapter 7, Application example: BL20-E-GW-EN for Modbus TCP (CoDeSys Win V3)
PROFINET®
– chapter 8, Implementation of PROFINET®
– chapter 9, Application example: BL20-E-GW-EN with PROFINET® (S7)
Additionally, the manual contain protocol-independent guideline for station configuration, the electri-
cal installation, etc..
The bus-independent I/O-modules of the BL20-system as well as all bus independent information
as mounting, labeling etc. are described in a separate manual.
In addition to that, the manual contains a short description of the I/O-ASSISTANT, the project plan-
ning and configuration software tool for TURCK I/O-systems-
BL20-E-2CNT-2PWM, (TURCK-documentation no.: German D301223; English D301224)
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!
WARNING indicates a potentially dangerous situation with medium risk, the death or severe
injury, if not avoided.
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 follow-
ing 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 experi-
enced user can skip this information.
CALL TO ACTION
This symbol identifies steps that the user has to perform.
RESULTS OF ACTION
This symbol identifies relevant results of steps
1.4 General
ATTENTION!
Please read this section carefully. Safety aspects cannot be left to chance when dealing with
electrical equipment.
This manual includes all information necessary for the prescribed use of the BL20-E-GW-EN. It has been
specially conceived for personnel with the necessary qualifications.
WARNING!
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.
WARNING!
All respective safety measures and accident protection guidelines must be considered care-
fully and without exception.
NOTE
The publication of this manual renders all previous editions invalid.
Note
The gateway is the only fieldbus-dependent module on a BL20 station. All other BL20
modules are not dependent on the fieldbus used.
2.1.1 Flexibility
All BL20 stations can be planned to accommodate the exact number of channels to suit your needs,
because the modules are available with different numbers of channels in block and slice design.
A BL20 station can contain modules in any combination, which means it is possible to adapt the system
to practically all applications in automated industry.
2.1.2 Compactness
The slim design of the BL20 modules (standard gateway 50.4 mm / 1.98 inch, ECO gateway 34 mm/ 1.34
inch, standard slice 12.6 mm / 0.49 inch, ECO slice 13 mm / 0.51 inch and block 100.8 mm / 3.97 inch)
and their low overall height favor the installation of this system in confined spaces.
2.2.1 Gateways
The gateway connects the fieldbus to the I/O modules. It is responsible for handling the entire process
data and generates diagnostic information for the higher-level master and the software tool I/O-
ASSISTANT.
ECO-gateways
The BL20-ECO gateways enlarge the product portfolio of BL20. They offer an excellent cost/
performance ratio.
Further advantages of the gateways in the ECO-housing:
At the moment available for PROFIBUS-DP, DeviceNet™, CANopen, Modbus TCP, EtherNet/IP™,
EtherCAT® and PROFINET®
Low required space: width 34 mm/ 1.34 inch minimal space requirements
Can be combined with all existing standard modules (with tension clamp connection technology)
and ECO modules
Simple wiring with "Push-in" tension clamp terminals, via DeviceNet™-Open Style Connector or via
Ethernet RJ45-connectors
Automatic bit rate detection for PROFIBUS-DP and DeviceNet™
Setting of fieldbus address and bus terminating resistor (PROFIBUS-DP, DeviceNet™, CANopen) via
DIP-switches
Service interface for commissioning with I/O-ASSISTANT 3 (FDT/DTM), without PLC)
Figure 2-1:
Gateway
BL20-E-GW-EN
Note
The gateways without integrated power supply unit need an additional power supply module (bus
refreshing module) which feeds the gateway an the connected I/O modules.
Figure 2-2:
Power distribu-
tion module
Figure 2-3:
Electronics
module in slice
design (left) and
in Block design
(right)
Figure 2-4:
ECO I/O-module
Figure 2-5:
Base module
with tension
clamp connec-
tion
Figure 2-6:
Base module
with screw
connection
Figure 2-7:
Base module in
block design
Figure 2-8:
End plate
Figure 2-9:
End bracket
Note
The end plate and two end brackets are delivered with the gateway.
2.2.8 Jumpers
Jumpers (QVRs) are used to bridge a connection level of a 4-wire base module. They can be used to
connect potentials in relay modules (bridging the relay roots); thus considerably reducing the amount
of wiring.
Figure 2-10:
Jumpers
Figure 2-11:
Marking mate-
rial
Figure 2-12:
Shield connec-
tion (gateway)
Note
The multiprotocol gateway replaces the Modbus TCP version and is fully compatible.
Only the LED-designation has changed. Please find detailed information under LED-displays
(page 3-12).
BL20-2DI-24VDC-P
BL20-2DI-24VDC-N
BL20-2DI-120/230VAC
BL20-4DI-24VDC-P
BL20-4DI-24VDC-N
BL20-4DI-NAMUR
BL20-E-8DI-24VDC-P
BL20-16DI-24VDC-P
BL20-E-16DI-24VDC-P
BL20-32DI-24VDC-P
BL20-1AI-I(0/4…20MA)
BL20-2AI-I(0/4…20MA)
BL20-1AI-U(-10/0…+10VDC)
BL20-2AI-U(-10/0…+10VDC)
BL20-2AI-PT/NI-2/3
BL20-2AI-THERMO-PI
BL20-2AI-H
BL20-4AI-U/I
BL20-E-4AI-TC
BL20-E-8AI-U/I-4AI-PT/NI
BL20-2DO-24VDC-0,5A-P
BL20-2DO-24VDC-0,5A-N
BL20-2DO-24VDC-2A-P
BL20-2DO-120/230VAC-0.5A
BL20-4DO-24VDC-0,5A-P
BL20-E-8DO-24VDC-0.5A-P
BL20-16DO-24VDC-0,5A-P
BL20-E-16DO-24VDC-0.5A-P
BL20-32DO-24VDC-0,5A-P
BL20-1AO-I(0/4…20MA)
BL20-2AO-I(0/4…20MA)
BL20-2AO-U(-10/0…+10VDC)
BL20-2AO-H
BL20-E-4AO-U/I
Relay modules
BL20-2DO-R-NC
BL20-2DO-R-NO
BL20-2DO-R-CO
Technology modules
BL20-1RS232
BL20-1RS485/422
BL20-1SSI
BL20-E-1SWIRE
BL20-E-2CNT-2PWM
BL20-2RFID-A
BL20-2RFID-S
BL20-BR-24VDC-D
BL20-BR-24 VDC-RED
BL20-PF-24VDC-D
BL20-PF-120/230VAC-D
Figure 3-1:
Top view
BL20-E-GW-EN
(< VN 03-00) GW
A
A LEDs for BL20 IOs
module bus B
B service interface, SERVICE
no function 0 1
C DIP-switch for
20
the fieldbus- 21
ADDRESS
address 22
23 C
D DIP-switch for 24
the operation 25
26
mode
27
E DIP-switch for MODE D
the configura- CFG E
tion acceptance off on
F LEDs for the
Modbus-com-
MS F
munication
G EtherNet-switch
with EtherNet-
LEDs
H terminals for
ETH2
field supply
Slide top cover for configuration and service
I terminals for
Unlock end-bracket before dismounting
system supply G
ETH1
UL
H
GNDL
USYS
!
I
GNDSYS
Figure 3-2:
Topview
BL20-E-GW-EN BL20-E-GW-EN
( VN 03-00) GW
A
A LEDs for BL20 IOs
module bus B
B service interface, SERVICE
no function 0 1
C DIP-switch for
20
the fieldbus- 21
ADDRESS
address 22
23 C
D DIP-switch for 24
the operation 25
26
mode
27
E DIP-switch for MODE D
the configura- CFG E
tion acceptance off on
F LEDs for the
Ethernet-com-
ERR
munication F
G EtherNet-switch BUS
with EtherNet-
LEDs
H terminals for
ETH2
field supply
Slide top cover for configuration and service
I terminals for
Unlock end-bracket before dismounting
system supply G
ETH1
UL
H
GNDL
!
USYS
I
GNDSYS
Module bus
CPU
Switch
5V
24 V
Usys UL
Eth1 Eth2
Gateway
Attention
The auxiliary power supply must comply with the stipulations of SELV (Safety Extra Low
Voltage) according to IEC 364-4-41.
UL nominal value 24 V DC
ILmax, 8A
maximum current from field supply
Physical interfaces
Isolation voltages
Ambient conditions
Vibration resistance
57 to 150 Hz yes
constant acceleration 1 g
Resistance to repetitive shock 1 000 shocks, half-sinus 25 g peak value/6 ms, in each
IEC 68-2-29 case in ± direction per space coordinate
Test runs 7
Dry heat DIN IEC 68-2-2, Temperature +85 °C / 185 °F, duration 96 h;
device not in use
Damp heat, cyclic DIN IEC 68-2-30, temperature +55 °C / 131 °F, duration 2
cycles every 12 h; device in use
Max. wire range 0.14 to 1.5 mm2 / 0.0002 to 0.0023 inch2/ 26 to 16 AWG
Crimpable wire
"e” solid core H 07V-U 0.14 to 1.5 mm2 / 0.0002 to 0.0023 inch2/ 26 to 16 AWG
"f” flexible core H 07V-K 0.5 to 1.5 mm2 / 0.0008 to 0.0023 inch2/ 25 to 16 AWG
"f” with ferrules according to 0.25 to 1.5 mm2 / 0.0004 to 0.0023 inch2/30 to 16 AWG
DIN 46 228/1 (ferrules crimped gas-
tight)
Danger
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 suppress the disturbance at his own cost.
3.3.6 LED-displays
Every BL20-E-GW-EN displays the following statuses via LEDs:
2 LEDs for the module bus communication (module bus-LEDs): GW and IOs
< VN 03-00:
1 LEDs for the field bus communication: MS
VN 03-00:
2 LEDs for the field bus communication: ERR and BUS
2 LEDs for the status of the Ethernet-connection at the Ethernet-ports ETH1/ ETH2:
GW OFF No power supply of the CPU. Check the system power supply at the
gateway.
red CPU not ready, VCC too low – Check the system power supply at the
possible causes: gateway and the cabling.
– too many modules at the – Unmount excessively mounted
gateway modules.
– short-circuit in connected – Replace the gateway, if necessary.
module
– gateway hardware error.
IOs OFF No power supply of the CPU. Check the system power supply at the
gateway.
green Station is in the Force Mode of Deactivate the Force Mode of the I/O-
flashing, the I/O-ASSISTANT. ASSISTANT.
1 Hz
BUS OFF Station is not supplied. – Check the voltage supply at the
(MS) gateway.
ON Link
OFF 10 Mbps –
Figure 3-4:
Connection
ETH2
options at the
Slide top cover for configuration and service
gateway
Unlock end-bracket before dismounting
ETH1
UL
GNDL
!
USYS
GNDSYS
Figure 3-5: 1 = TX +
2 = TX –
RJ45 female 3 = RX +
connector 4 = n.c.
5 = n.c.
6 = RX –
87654321 7 = n.c.
8 = n.c.
Note
The stations can be reset by the user to these default settings at any time. To reset the module,
set the three DIP-switches 20 to 27 on the gateway to "0" followed by apower-on reset.
Note
After every change of the address-mode, a voltage reset must be carried done.
Note
Please observe, that the numbering of the DIP-switches under the label does not correspond
to the switches‘ designation on the label.
Figure 3-6: Top view with label: Top view without label:
DIP-switches at
the gateway
BL20-E-GW-EN
GW
IOs
SERVICE
0 1
20 10
21 9
ADDRESS
22 8
23 7
24 6
25 5
26 4
27 3
MODE 2
CFG 1
off on NO
ERR
BUS
1-254 OFF OFF Address Setting the last byte of the gateway's IP-address.
Resetting the IP-address, switch position
"RESTORE" (page 3-17)
16 OFF - - reserved
32 OFF ON F_Reset
… reserved
Note
This setting is no operation mode! Please set the device to another mode after having reset
the IP address to the default values.
Note
All other network settings are stored in the module’s non-volatile EEPROM and can not be
changed.
The gateway’s field bus address results from the addition of the valences (20 to 27) of the active DIP-
switches (position = 1).
Note
Pull the label upwards out of the housing in order to reach the DIP-switches.
Example:
Bus address 50 = 0×32 = 00110010
Figure 3-7:
0 1
Address setting
20
21
ADDRESS
22
23
24
25
26
27
MODE
CFG
off on
Note
The internal module bus does not require any addressing.
Attention
The settings carried out via DIP-switches 20 to 27 are not stored in the module’s
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.
Figure 3-8:
0 1
DHCP mode
20
21
ADDRESS
22
23
24
25
26
27
MODE
CFG
off on
Note
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.
If the gateway is subsequently switched to another address-mode, the settings (IP address,
subnet mask, etc) will be read from the module’s EEPROM.
Attention
After every change of the address-mode, a voltage reset must be carried done.
Figure 3-9: 0 1
BootP
20
21
ADDRESS
22
23
24
25
26
27
MODE
CFG
off on
Note
The IP address, as well as the default subnet mask assigned to the gateway by the BootP-
server, are stored in the module’s EEPROM.
If the gateway is subsequently switched to another address--mode, the settings (IP address,
subnet mask, etc) will be read from the module’s EEPROM.
PROFINET®
Please assure, that in PROFINET® -applications, the address assigned via a BootP-server corresponds to
the address, which is assigned in the configuration tool.
Figure 3-10: 0 1
PGM 20
21
ADDRESS
22
23
24
25
26
27
MODE
CFG
off on
Note
In the PGM-mode, all network settings (IP address, subnet mask, etc.) are read from the
module’s internal EEPROM.
Attention
After every change of the address-mode, a voltage reset must be carried done.
Figure 3-11: 0 1
PGM-DHCP 20
21
ADDRESS
22
23
24
25
26
27
MODE
CFG
off on
Note
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.
Figure 3-12: 0 1
F_Reset 20
21
ADDRESS
22
23
24
25
26
27
MODE
CFG
off on
This mode sets all device-settings back to the default values and deletes all data in the device's internal
flash.
Note
This setting is no operation mode! Please set the device to another mode after having reset
the IP address to the default values.
Figure 3-13:
Busaddress
management
Figure 3-14:
Searching
network-
Nodes in the
Busaddress
management
A Search function
in the Busad-
dress manage- A
ment
Note
The access of the IO-ASSISTANT to the station is only possible, if the station already has an IP-
address (see Address assignment (page 3-15))
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-integrated
firewall.
It may inhibit the access of PACTware™ (I/O-ASSISTANT V3) to the Ethernet-network. In this
case, please adapt your firewall respectively or deactivate it.
Figure 3-15:
IP address
change
Note
The access of the IO-ASSISTANT to the station is only possible, if the station already has an IP-
address, Address assignment (page 3-15).
and if it is operated in switch position PGM or PGM-DHCP-mode.
Figure 3-16:
Web server with
Network
Configuration
Figure 3-17:
IP Address Tool
Note
Storing the Current Configuration via SET-Taster is necessary in EtherNet/IP™ as well as in
Modbus TCP, in PROFINET® the referenced configuration is defined by the master.
Figure 3-18:
DIP-switch for
storing the
GW
station configu-
ration IOs
SERVICE
0 1
20
21
ADDRESS
22
23
24
25
26
27
MODE
CFG
off on
ERR
BUS
Switching from OFF to ON starts the storage of the Current Configuration as the Required Configuration
(Reference configuration).
Procedure:
Switching the DIP-switch "CFG" from OFF to ON
Starting of storage process
LED IOs flashes green (1 Hz)
LED IOs shortly lits up orange
storage process active
set back the DIP-switch from ON to OFF
storage process terminated successfully, if the LEDs IOs and GW are constant green.
Note
If the DIP-switch is not set back, the gateway will continuously restart the storage process.
Only setting the switch back from ON to OFF will terminate this process.
3.7.1 IP address
Open the web server by entering the device's IP-address in your web browser.
IF no IP-address is assigned to the device (DHCP-, BootP-server etc.), then the web server can be opened
using the default IP-address 192.168.1.254.
Figure 3-19:
Web server of
the BL20-station
Note
A reset of the device to the default-settings using the switch position
900 "F_Reset" also causes a reset of the password to "password".
Figure 3-20:
Web server
"Home" screen
Figure 3-21:
Web server
"Network
Configuration"
Figure 3-22:
Web server
„Gateway
Configuration"
3.7.8 Links
This page contains for example a link to the product page on the TURCK-homepage.
Note
A reset of the device to the default-settings using the switch position "F_Reset" also causes
a reset of the password to "password".
Figure 3-23:
Change Admin
Password
Diag Summarized diagnosis of the device. At least one I/O-module sends active diagnosis.
Warn
A default 1 = 4…20 mA
setting
1 value representation 0 = Integer (15 bit + sign) A
1 = 12 bit (left-justified)
2 Diagnosis 0 = activate A
1 = deactivate
A default 1 = 4…20 mA
setting
1 value representation 0 = Integer (15 bit + sign) A
1 = 12 bit (left-justified)
2 Diagnosis 0 = activate A
1 = deactivate
3 Channel 0 = activate A
1 = deactivate
BL20-1AI-U(-10/0…+10VDC)
A default 1 = -10…+10 V
setting
1 value representation 0 = Integer (15 bit + sign) A
1 = 12 bit (left-justified)
2 Diagnosis 0 = activate A
1 = deactivate
BL20-2AIH-I
7 diagnostics Kx 0 release A
1 block
BL20-2AOH-I
0 0 Channel 0 = activate A
(channel 1)
1 = deactivate
1 Diagnosis 0 = block A
1 = release
3+4 Operation mode Kx 0 = 0…20 mA
(polling of HART®-status not possible)
1 = 4…20 mA
(polling of HART®-status not possible)
2 = 4…20 mA HART® active A
(cyclic polling of HART-status activate)
7 HART®-diagnostics Kx 0 = release A
1 = block
BL20-1RS485/422
BL20-1SSI
BL20-E-1SWIRE
Byte 1
A default Disable Cfg If the physical structure of the SWIRE bus does not match the configuration stored in the
setting BL20-E-1SWIRE on power up (SW LED flashing), the physical structure of the SWIRE bus
must be stored in the BL20-E-1SWIRE.
1 = inactive All slaves are mapped in 4Bit INPUT/ 4Bit OUTPUT without checking
the device ID.
Byte 1
Byte 2
Byte 2
Byte 2
Byte 3 reserved
Byte 4
reserved Was up to version VN 01-03: Lifeguarding time of the SWIRE slaves. Lifeguarding time of
(Lifeguardi the SWIRE slaves
ng time
only up to 0x02-0xFF Lifeguarding time of the SWIRE slaves
version 0x64 A Setting of lifeguarding time of SWIRE slaves, timeout time up to
VN01-03) automatic reset of the slaves in the event of communication failure. (n
* 10ms) (Default 1s)
0xFF: 0xFF: Lifeguarding off
Byte 5 - 6
Byte 7 - 8 reserved
Byte 9 to 24
Device ID, TYPE setting for the LIN slave at position x on the SWIRE bus
slave x
0x20 SWIRE-DIL-MTB (: 0xFF)
BL20-E-2CNT-2PWM (see separate manual for the module, D301224, „BL20 – I/O-MODULES BL20-E-
2CNT-2PWM“, chapter 2)
BL20-2RFID-S (see RFID-documentation www.turck.de)
1 reserved
3 reserved
BL20-PF-24VDC
n 0 reserved
1 reserved
reserved
BL20-PF-120/230VAC-D
n 0 reserved
1 reserved
reserved
BL20-2AI-I(0/4…20MA)
BL20-1AI-U(-10/0…+10VDC)
BL20-2AI-U(-10/0…+10VDC)
BL20-2AI-PT/NI-2/3
3 to 7
BL20-2AI-THERMO-PI
BL20-2AIH-I
n 0 overflow
The measurement value exceeds the value ranges and the device is
not able to capture these values.
1 Open circuit
Displays an open circuit in the signal line.
2 Short circuit
Displays a short circuit in the signal line.
3 undervoltage
The measurement value is below the value ranges and the device is
not able to capture these values.
4 HART® status-error
The connected HART®-device set a bit in the HART® status-information
("status - polling").
6 Invalid parameter
7 Hardware error
Shows common errors of the module hardware. The return analog
value in case of an error is "0".
BL20-4AI-U/I
BL20-E-8AI-U/I-4AI-PT/NI
4 to 6 reserved
7 Hardware error
BL20-2DO-24VDC-0.5A-N
BL20-2DO-24VDC-2A-P
BL20-4DO-24VDC-0.5A-P
BL20-16DO-24VDC-0.5A-P
BL20-32DO-24VDC-0.5A-P
1 Open circuit
Displays an open circuit in the signal line.
2 invalid value
The output value exceeds the values which the module is able to
interpret.
6 Invalid parameter
7 Hardware error
Shows common errors of the module hardware. The return analog
value in case of an error is "0".
BL20-E-4AO-U/I
4 to 6 reserved
7 Hardware error
7 Measurement mode
Bit = 0 Counter mode active
7 Measurement mode
Bit = 1 measurement operation is active
BL20-1RS232
n 0 parameterization error
1 Hardware failure
3 frame error
4 buffer overflow
BL20-1RS485/422
n 0 parameterization error
1 Hardware failure
3 frame error
4 buffer overflow
BL20-1SSI
1 Open circuit
4 parameterization error
BL20-E-1SWIRE
Byte n+1 free UAUXERR TYPERR free PKZERR free SDERR free
TYPERR field
Byte n+2 TYPERRS8 TYPERRS7 TYPERRS6 TYPERRS5 TYPERRS4 TYPERRS3 TYPERRS2 TYPERRS1
Byte n+3 TYPERRS16 TYPERRS15 TYPERRS14 TYPERRS13 TYPERRS12 TYPERRS11 TYPERRS10 TYPERRS9
Slave diagnosis
Byte n+4 SDERRS8 SDERRS7 SDERRS6 SDERRS5 SDERRS4 SDERRS3 SDERRS2 SDERRS1
Byte n+5 SDERRS16 SDERRS15 SDERRS14 SDERRS13 SDERRS12 SDERRS11 SDERRS10 SDERRS9
PKZ field
Byte n+6 PKZERRS8 PKZERRS7 PKZERRS6 PKZERRS5 PKZERRS4 PKZERRS3 PKZERRS2 PKZERRS1
Byte n+7 PKZERRS16 PKZERRS15 PKZERRS14 PKZERRS13 PKZERRS12 PKZERRS11 PKZERRS10 PKZERRS9
If the physical structure of the SWIRE bus does not match the configuration stored in
the BL20-E-1SWIRE, this bit indicates an error.
0 Data exchange The physical structure of the SWIRE bus was accepted and the
SWIRE bus is in operation.
1 Offline The physical structure was not accepted, the SWIRE bus does
not start operation (SW LED flashing).
This bit indicates an error if the configuration stored in the BL20-E-1SWIRE does not
match the SET configuration stored in the PLC.
0 Data exchange No error present. The SWIRE bus is ready for data exchange.
0 OK No error present.
Voltage fault in USW, voltage (17 VDC) for supplying the SWIRE slaves
0 OK No error present.
The creation of a function block shows that systems/function blocks for the general
checking of a slave for any diagnostics messages present only check the first byte.
If the parameter SDERRA is set for group diagnostics, this bit indicates an error as soon as
only one slave on the bus sets its SDERR.
If the parameter PKZERRA is set for group diagnostics, this bit indicates an error as soon
as only one PKZ of a slave has tripped.
TYPERR configuration
If the TYPERR parameter is set with group diagnostics in the parameter setting, this
bitindicates an error as soon as a PLC configuration check detects differing slave
numbers,types or position of an SWIRE slave.
If the UAUXERRA parameter is activated, AUXERR will generate an error message as soon as
the power supply goes below the level at which the function of the relays is not
guaranteed.
Info field for the individual indication of a configuration error as error message. Info
field for the individual indication of a configuration error as error message. If theTYPINFO
parameter is set with individual diagnostics, the error is indicated in this bit fieldas soon
as a PLC configuration check detects differing slave numbers, types or positionof an
SWIRE slave.
Info field for the individual indication of the release of the slave diagnostics as error
message. If the SDINFOA is set for single diagnostics, this bit field indicates the error as
soon as the slave diagnostic message of the slave Sx is triggered.
Info field for the individual indication of the tripping a motor-protective circuit-breaker
(PKZ) as error message. If the PKZINFOA is set for single diagnostics, this bit field indicates
the error as soon as the PKZ of the slave Sx has tripped.
0 OK The PKZ of the slave has not tripped or diagnostics function has
been deactivated via the parameter setting.
Note
The error messages UAUXERR, TYPERR, TYPERRSx, PKZERR, PKZERRSx, SDERR and SDERRSx can be
deactivated by a respective parameterization.
TECHNICAL BASICS
EtherNet/IP™ is based on a connection-oriented communication model. This means that it is
only possible to exchange data via specified connections assigned to the devices.
Communication between the nodes in the EtherNet/IP™ network can be carried out either via
I/O Messages or Explicit Messages.
I/O Messages
I/O Messages serve to exchange high priority process and application data over the network.
Communication between the slaves in the EtherNet/IP™ network is carried out according to
the Server/Client Model,
which means a producing application transmits data to another or a number of consuming
applications. It is quite possible that information is passed to a number of Application Objects
in a single device.
Explicit Messages
Explicit Messages are used to transmit low-priority configuration data, general management
data or diagnostic data between two specific devices. This is a point-to-point connection in a
Server/Client System that requires a request from a client always to be confirmed by a
response from the server.
– Message Router Request
Consists of a service code, path size value, a message router path and service data. An
EPATH is used in the message router path to indicate the target object.
– Message Router Response
Consists of a service field with the most significant bit set. This is an echo of the service
code in the request message with the most significant bit set. A reserved byte follows the
service code, which is followed by the General Status code.
TECHNICAL BASICS
Unicast
A point-to-point connection that exists between two nodes only.
Multicast
A packet with a special destination address, which multiple nodes on the network may be
willing to receive.
UCMM
The EtherNet/IP™ gateway offers the option of establishing explicit messaging via the UCMM
port (Unconnected Message Manager Port).
UCMM-based explicit messaging is normally used for random, non-periodic requests.
It is not recommended for frequent messaging because the UCMM input queue in a product
is typically limited to just a few messages. Once this limit is reached, subsequent requests are
ignored and must be retried.
TECHNICAL BASICS
The Device Level Ring (DLR)-redundancy protocol is used to increase the stability of
EtherNet/IP™ networks.
DLR-capable products provide an integrated switch and can thus be integrated into a ring
topology.
The DLR-protocol is used to recognize a ring fault. In case of an interruption of the data line,
data are sent through an alternative network section, so that the network can be reconfigured
as soon as possible.
DLR-capable network nodes are provided with extended diagnostic functions which enable
the devices to localize errors and thus decrease the time for error search and maintenance.
6 (0x06) SERIAL NUMBER G UDINT Contains the ident-no. of the product (3 last
bytes of the MAC-ID).
Device Status
2 Configured TRUE = 1
The application of the device has been configured
( default-settings).
3 reserved Default = 0
8 to 15 reserved Default = 0
Common Services
16 (0x10) no no Set_Attribute_Single
Modifies a single attribute.
Instance Attributes
Common Services
Note
The data mapping can be structured individually. All parts except for the in- and out-put data
of the station can be enabled/ disabled independently from each other.
2 (0x02) CONFIGURATION G DWORD Interface Capability Flag (see page 4-14, Table
CAPABILITY 4-15: Configuration Capability)
3 (0x03) CONFIGURATION G/S DWORD Interface Control Flag (see page 4-15, Table 4-
CONTROL 16: Configuration Control)
6 (0x06) HOST NAME G STRING 0 = no Host Name configured (see page 4-15)
Common Services
02 (0x02) no no Set_Attribute_All
Interface Status
The Status attribute indicates the status of the TCP/IP network interface.
Refer to the state diagram, Figure 4-1: TCP/IP object state diagram (acc. to CIP Spec., Vol.2, Rev. 1.1)
for a description of object states as they relate to the Status attribute.
4 to 31 reserved
Configuration Capability
The Configuration Capability indicates the device’s support for optional network configuration
capability.
Configuration Control
The Configuration Control attribute is used to control network configuration options.
Interface Configuration
This attribute contains the configuration parameters required to operate as a TCP/IP node.
To modify the Interface Configuration attribute, get the Interface Configuration attribute first,
change the desired parameters, then set the attribute.
The TCP/IP Interface Object applies the new configuration upon completion of the Set service. If the
value of the Startup Configuration bits (Configuration Control attribute) is 0, the new configuration
is stored in non-volatile memory.
The device does not reply to the set service until the values are safely stored to non-volatile memory.
An attempt to set any of the components of the Interface Configuration attribute to invalid values
results in an error (status code 0x09) returned from the Set service.
If initial configuration is obtained via BOOTP or DHCP, the Interface Configuration attribute
components are all 0 until the BOOTP or DHCP reply is received.
Upon receipt of the BOOTP or DHCP reply, the Interface Configuration attribute shows the
configuration obtained via BOOTP/DHCP.
Host Name
The Host Name attribute contains the device’s host name.
The host name attribute is used when the device supports the DHCP-DNS Update capability and has
been configured to use DHCP upon start up.
The mechanism allows the DHCP client to transmit its host name to the DHCP server. The DHCP
server then updates the DNS records on behalf of the client.
Figure 4-1:
TCP/IP object Non-existent
state diagram
(acc. to CIP Status = Powerup/ Reset
Spec., Vol.2, Rev. 0×00000000
1.1) Obtaining initial
configuration BOOTP/DHCP
BOOTP/DHCP disabled and
disabled and BOOTP OR stored config.
stored config. valid DHCP enabled valid
Waiting
for
configuration
Set_Attributes BOOTP/DHCP
request received response received
Applying
Status = configuration
0×00000000
Configuration applied
Change interface
TCP/IP network
configuration interface configured
Status = 0×00000001
Instance Attributes
Common Services
100 (64h) Gateway Class, page 4-20 Contains data and settings concerning the
fieldbus-specific part of the BL20-stations.
102 (66h) Process Data Class, page 4-23 Contains process data
126 (1Ah) Miscellaneous Parameters Class, page 4-25 Describes the EtherNet/IP™-Port
properties
Note
The class instance attributes are the same for each Vendor Specific Class.
The class-specific Object Instances and the corresponding attributes are explained in the
paragraphs for the different VSC.
100 Class revision G UINT States the revision number of the class
(64h) (maj. rel. *1000 + Min. Rel.).
101 Max. instance G USINT Contains the number of the highest instance
(65h) of an object created on this level in the class
hierarchy.
103 Max. class G USINT Contains the number of the last Class
(67h) attribute Attribute to be implemented.
Note
Please refer to paragraph Class Instance of the VSCs (page 4-19) for the description of the class
instance for the VSC.
Object Instance 1
100 Max object G USINT Contains the number of the last object
(64h) attribute attribute to be implemented.
101 Hardware revision G STRUCT Contains the hardware revision number of the
(65h) station (USINT Maj./USINT Min.)
102 Firmware revision G STRUCT Contains the firmware revision of the boot
(66h) firmware (maj./min.).
103 Service tool ident G UDINT Contains the BOOT ID number that serves as
(67h) number an identification number for the software I/O-
ASSISTANT
Object Instance 2
109 Status register 2 G STRUCT The Status Word contains general station
(6Dh) status information:
Station
– Bit 15: reserved
– Bit 14: "Force Mode Active Error" The Force
Mode is activated.
– Bit 13: reserved
– Bit 12: reserved
Internal bus
– Bit 11: "I/O Cfg Modified Error"
The configuration has been changed in an
incompatible way.
– Bit 10: "I/O Communication Lost Error"
Communication on the internal module bus
disturbed.
Voltage errors
– Bit 09: "Usys too low" System voltage too low
(< 18 VDC).
– Bit 08: "Usys too high" System supply voltage
too high (> 30 VDC).
– Bit 07: "UL too low" Load voltage too low (< 18
VDC).
– Bit 06: reserved
– Bit 05: reserved
– Bit 04: reserved
Warnings
– Bit 03: "I/O Cfg Modified Warning" The station
configuration has changed.
– Bit 02: reserved
– Bit 01: reserved
– Bit 00: "I/O Diags Active Warning" At least one
I/O-channel sends active diagnostics.
Note
Please refer to paragraph Class Instance of the VSCs, page 4-19 for the description of the class
instance for the VSC.
100 (64h) Max object G USINT Contains the number of the last object
attribute attribute to be implemented.
101 (65h) Attribute list G ARRAY OF List of all attributes that are supported by
USINT this instance.
102 (66h) Packed process G ARRAY OF Input process data, 16-bit aligned,
input data WORD compressed.
103 (67h) Process data byte G USINT The number of bytes that are exchanged
count with this Instance.
101 (65h) Attribute list G ARRAY OF List of all attributes that are supported by
USINT this Instance.
102 (66h) Packed process G/S ARRAY OF Output process data, 16-bit aligned,
input data WORD compressed.
103 (67h) Process data byte G USINT The number of bytes that are exchanged
count with this Instance.
Table 4-27: Attr. No. Attribute name Get/ Set Type Description
Object Instance
dec. (hex.)
3, diagnostic
instance
104 (68h) COS data G/S ENUM The actual data are loaded to the non-
mapping USINT volatile memory of the station.
Changes become valid after a start-up!
0 = standard: Data of COS message
input data.
1 = process input data (only the process
data input image is transferred to scanner)
2 to 7: reserved
5.1 General
The following example shows detailed information about the connection of a BL20-station for
EtherNet/IP™ to an Allen Bradley PLC.
RS Logix 5000 - used to configure the controller and the other network hosts
Note
In order to build up the communication between the BL20-station and a PLC/ PC or a network
interface card, both devices have to be hosts in the same network.
or
to change the IP address of the used PC or network interface card (for detailed information, please
read the , Changing the IP address of a PC/ network interface card (page 13-16).
Figure 5-1:
Configuration
of the controller
Figure 5-2:
Add generic
Ethernet mod-
ule
5 Enter the necessary device information, like "Module name" and "Communication format" and
define the station‘s IP-address and the connection parameters.
6 In the Assembly Instances 103 and 104, please enter the connection parameters of the station.
Figure 5-3:
Configuring the
BL20-
station
Note
If the variable Assembly Instances 103 and 104 (see page 4-9) are used, the Connection
Parameters have to be set according to the actual station configuration.
That means:
The in- and output sizes have to match the sizes definitely required by the station.
This required in- and output size can be determined as follows:
Create a station report for the station using the TURCK DTMs for BLxx (see also Figure 5-4:
EtherNet/IP™-report (PLC-configuration) (page 5-5))
OR
Read out the correct size of in- and output data via Assembly Class (0×04), Instance 0×67, Attr.
0x04 and Assembly Class (0x04), Instance 0x68, Attr. 0x04.
Figure 5-4:
EtherNet/IP™-
report (PLC-
configuration)
A Data to ente into
assembly
instances in RS
Logix
7 In the "Connection" tab set the "Requested Packet Interval" (RPI) to 10 ms, which normally should
be the default setting. For BL20, the RPI should be set to 5 ms or higher.
Figure 5-5:
Set connection
options for the
gateway
Figure 5-6:
Project tree with
stations
Figure 5-7:
Download of
the configura-
tion
3 If an error message is generated, warning, that the communication path can not be found, please
open the "Path" menu (see Figure 5-8:), select your controller and press "Set Project Path" (see Figure
5-9:).
Figure 5-8:
Communica-
tion path
Figure 5-9:
Communica-
tion path
5 Once the I/O configuration is downloaded and the controller is in "Run" or "Remote Run" mode, the
I/O-data mapping of the FGEN-stations is shown in the "Controller Tags":
Figure 5-10:
Controller Tags
Figure 5-11:
EtherNet/IP™-
report with data
mapping
Figure 5-12:
Mapping of the
BL20-station
Figure 5-13:
Setting outputs
at BL20-2DO-
24VDC-0.5A-P
Figure 5-14:
Example
program
3 The counter is set to „0“ by setting the variable „xReset“ (BOOL) to „1“.
„xReset“ has been defined and mapped to Bit BL20_E_GW_EN:I.Data[1].0 by building an Alias in the
Main Program.
Figure 5-15:
Definition and
mapping of
xReset
Note
The following description of the Modbus protocol is taken from the Modbus Application
Protocol Specification V1.1 of Modbus-IDA.
Modbus is an application layer messaging protocol, positioned at level 7 of the OSI model, that provides
client/server communication between devices connected on different types of buses or networks.
The industry’s serial de facto standard since 1979, Modbus continues to enable millions of automation
devices to communicate. Today, support for the simple and elegant structure of Modbus continues to
grow.
The Internet community can access Modbus at a reserved system port 502 on the TCP/IP stack.
Modbus is a request/reply protocol and offers services specified by function codes. Modbus function
codes are elements of Modbus request/reply PDUs (Protocol Data Unit).
It is currently implemented using:
TCP/IP over Ethernet. (that is used for the BLxx-gateways for Modbus TCP and described in the
following)
Asynchronous serial transmission over a variety of media (wire: RS232, RS422, RS485, optical: fiber,
radio, etc.)
Modbus PLUS, a high speed token passing network.
Schematic representation of the Modbus Communication Stack (according to Modbus Application
Protocol Specification V1.1 of Modbus-IDA):
Figure 6-1:
Schematic Modbus Application Layer
representation
of the Modbus
Communica-
tion Stack
Modbus TCP
TCP
IP
Rsxxx Ethernet
Physical layer Physical layer Physical layer Physical layer
Figure 6-2:
Modbus tele-
gram acc. to
Modbus-IDA
The Modbus application data unit is built by the client that initiates a Modbus transaction.
The function code indicates to the server what kind of action to perform.
The Modbus application protocol establishes the format of a request initiated by a client.
The field function code of a Modbus data unit is coded in one byte. Valid codes are in the range of 1...
255 decimal (128 – 255 reserved for exception responses).
When a message is sent from a Client to a Server device the function code field tells the server what kind
of action to perform. Function code "0" is not valid.
Sub-function codes are added to some function codes to define multiple actions.
The data field of messages sent from a client to server devices contains additional information that the
server uses to take the action defined by the function code. This can include items like discrete and
register addresses, the quantity of items to be handled, and the count of actual data bytes in the data
field.
The data field may be non-existent (= 0) in certain kinds of requests, in this case the server does not
require any additional information. The function code alone specifies the action.
If no error occurs related to the Modbus function requested in a properly received Modbus ADU the
data field of a response from a server to a client contains the data requested.
Figure 6-3:
Modbus data
transmission
(acc. to
Modbus-IDA)
If an error related to the Modbus function requested occurs, the field contains an exception code that
the server application can use to determine the next action to be taken.
Figure 6-4:
Modbus data
transmission
(acc. to
Modbus-IDA)
Input 16-bit, Read This type of data can be provided by an I/O system.
Registers (word)
For each of these basic data types, the protocol allows individual selection of 65536 data items, and the
operations of read or write of those items are designed to span multiple consecutive data items up to
a data size limit which is dependent on the transaction function code.
It’s obvious that all the data handled via Modbus (bits, registers) must be located in device application
memory.
Access to these data is done via defined access-addresses (see „Modbus registers“, page 6-7).
The example below shows the data structure in a device with digital and analog in- and outputs.
BL20 devices have only one data block, whose data can be accessed via different Modbus functions.
The access can be carried out either via registers (16-bit-access) or, for some of them, via single-bit-
access.
Figure 6-5:
Picture of the
data memory of
the BL20
modules
1 Read Coils
Note
The Table 6-5:, page 6-14 shows the register mapping for the different Modbus addressing
methods.
0x1017 ro Register-mapping-revision
(always 1, if not, mapping is incompatible with this
description)
The following table shows the register mapping for the different Modbus addressing methods
process image length in bit for the 0x1010 4112 44113 404113
intelligent output modules
process image length in bit for the 0x1011 4113 44114 404114
intelligent input modules
process image length in bit for the digital 0x1012 4114 44115 404115
output modules
process image length in bit for the digital 0x1013 4115 44116 404116
input modules
Disable protocol (VN 03-00 and higher) 0x1140 4416 44417 404417
Active protocol (VN 03-00 and higher) 0x1141 4417 44418 404418
… … … … …
… … … … …
… … … … …
… … … … …
Note
For the data mapping, the BL20-1SWIRE-modules are not considered as intelligent modules.
Their process data is mapped into the register area for the digital in- and output modules
Note
An example in chapter 7, page 7-16ff. describes the data mapping.
Additionally, the software I/O-ASSISTANT offers the possibility to create a mapping table for
every station.
0x0000 0x01FF
Note
Independent of the I/O-configuration, an access to all 512 registers is always possible.
Registers that are not used send "0".
Status/ diagnosis
The area "status/diagnosis" comprises a maximum of 9 registers.
The first register contains a common gateway-/station-status.
The following registers (max. 8) contain a group diagnostic bit for each I/O-module which shows
whether a diagnostic message is pending for the relevant module or not.
Status/ diagnosis
n + 0x0000 n + 0x0008
0x0800 0x09FF
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.
– digital inputs
– digital outputs
– Analog outputs
BL20-BR-× -
BL20-PF-× -
Gateway
15 reserved -
14 Force Mode Active Error The Force Mode is activated, which means, the actual
output values may no match the ones defined and sent by
the field bus.
13 reserved -
Module bus
11 I/O Cfg Modified Error The I/O-configuration has be changed and is no longer
compatible.
Voltage errors
9 Usys too low System supply voltage too low (< 18 V DC).
8 Usys too high System supply voltage too high (> 30 V DC).
6 reserved -
5 reserved -
4 reserved -
Warnings
0 I/O Diags Active Warning At least one I/O-module sends active diagnosis.
0 MB_OnlyOneWritePermission
Note
This register is only valid for BL20-E-GW-EN with multiprotocol-functionality, meaning, for
gateways with VN 03-00 and higher.
Note
This register is only valid for BL20-E-GW-EN with multiprotocol-functionality, meaning, for
gateways with VN 03-00 and higher.
The service request area allows write access, the service response area only read access.
service request area
The register service no. in the request area can contain a user defined value which is deleted after the
execution of the service.
The register service code specifies which service is requested.
The register index/addr is optional and the meaning depends on the particular service.
The register data-reg-count contains, depending on the service, the number (0 to 122) of the
transferred or of the requested data registers.
Depending on the service, the optional data area can contain additional parameters and/or other
data to be written.
Service-response-area
After the execution of a request, the registers service-no., service code and index/addr in the
response area contain a copy of the values in the request area.
Note
The service no. is thus used for a simple handshake on the application level. The application
increases the service no. with every request. The service is blocked, until the service number
in the request area matches the service number in the response area.
The register result shows whether the execution was successful or not.
The register data-reg-count contains the number of data registers (0 to 122).
The optional data area can contain, depending on the service, the requested data.
Note
The services "indirect reading of registers" and "indirect writing of registers" offer an
additional possibility to access any Modbus register.
Current Modbus-masters support only a limited number of register-areas that can be read or
written during the communication with a Modbus-server. These areas can not be changed
during operation.
In this case, the services mentioned above enables non-cyclic access to registers.
service response
service response
Note
In the packed process data, the digital I/O data are stored following the variable in- and
output data area of the intelligent modules, which means they are stored with a variable
offset, depending on the station’s I/O-configuration.
In order to set for example a single output (single coil), the following functions are available for reading
and writing single bits:
FC1 („Read Coils“)
FC2 („Read Discrete Inputs“)
FC 5 („Write Single Coil“)
FC15 („Write Multiple Coils“)
Note
Please observe that changes in the watchdog time have to be saved per save-command (see
Register 0x113E and 0x113F: „Save Modbus-Connection-Parameters“ (page 6-18)).
Note
Setting the outputs to predefined substitute values is not possible in Modbus TCP. Eventually
parameterized substitute values will not be used.
7.1.1 Hardware
BL20-E-GW-EN, VN 03-00 (IP-address 192.168.1.16)
– BL20-2DI-24VDC-P
– BL20-4DI-24VDC-P
– BL20-1AI-U(-10/0…+10VDC)
– BL20-2AI-THERMO-PI
– BL20-2DO-24VDC-0.5A-P
– BL20-E-8DO-24VDC-0.5A-P
7.1.2 Software
CoDeSys 3.4, SP3, Patch 1
PLC:
CoDeSys Control Win V3 (3.4.3.10)
Note
In order to build up the communication between the BL20-station and a PLC/ PC or a network
interface card, both devices have to be hosts in the same network.
or
to change the IP address of the used PC or network interface card (for detailed information, please
read the Changing the IP address of a PC/ network interface card, page 13-16.
Figure 7-1:
Predefined fea-
ture sets
Figure 7-2:
New project
Figure 7-3:
Standard proj-
ect
Figure 7-4:
Selection of
CoDeSys
Control Win V3
Figure 7-5:
Project tree
Note
If the window "devices" should not be displayed, it can be activated via "View Devices".
Figure 7-6:
Communica-
tion settings
Figure 7-7:
Setting the com-
munication
path
Figure 7-8:
Adding the
Ethernet
Adapter as
device
Figure 7-9:
Adding the
Modbus master
Figure 7-10:
Selecting a slave
2 Again, a double-click onto the slave in the project tree opens the respective editors.
3 In the "Modbus TCP Slave“"-tab, set the nodes IP-address (in this example: address 192.168.1.16 ).
All other settings can be kept.
Figure 7-11:
Setting the IP
address at the
slave
Note
The status of process values is only shown in the process image if a program refers to them or
if the function "Always update variables" in the "MobusTCPSlave I/O Mapping" (see „Reading
out the process data“, page 7-28) is enabled.
Figure 7-12:
Example pro-
gram
Figure 7-13:
Example for
the definition of
a global vari-
able
Figure 7-14:
Setting the
Modbus chan-
nels, examples
Figure 7-15:
Modbus report -
Mapping of in-
and output data
Figure 7-16:
Modbus report -
Mapping of
parameter and
diagnostic data
Note
Detailed information about the modbus registers of the BL20-stations can be found in the
descriptions in chapter 6.3.
Figure 7-17:
Mapping of out-
put data acc. to
Modbus-report
Figure 7-18:
Modbus chan-
nel, counter
value, FC06
Figure 7-19:
Mapping of the
counter value to
%QW0
– Confirm with "OK". The counter value is now mirrored to %QW0 of the station and given out.
2 Read:
Figure 7-20:
Mapping of
input data acc.
to Modbus-
report
Figure 7-21:
Modbus chan-
nel, read "xRe-
set", FC03
2.2 Mapping:
"xReset" (global variable) to %IX0.0 in %IW0
– "xReset" is mapped to the first bit in %IW0 of BL20-2DI-24VDC-P . This is done in the
"ModbusTCPSlave I/O Mapping".
– Double click the field "variable" in the respective line. Use the "..."-button to open the dialog box
"Input Assistant" .
– Select the variable to be mapped. "xReset" can be found in the global variables as it has been
defined there, see CoDeSys: Global variables.
– Confirm with "OK". A "1" at bit %IX0.0 will now reset the counter to zero.
Figure 7-22:
Mapping of
"xReset" to bit
%IX0.0
3 Read:
Reading the station's Status Word
– Access Type:
Read Holding Registers (function code 03)
– Read Register, Offset:
0x0004 (see below)
– The station's Status Word is read from register 0×0004 and displayed in &IW1 in the
ModbusTCPSlave I/O Mapping.
Figure 7-23:
Status Word
mapping acc. to
Modbus-report
Figure 7-24:
Setting the
Modbus chan-
nel for reading
the status word
Figure 7-25:
Status Word in
the process
image
4 Write:
Parameters of the station
Disable channel diagnosis at channel 1 at slot 3 of the station BL20-1AI-U(-10/0…+10VDC)
Writing parameters is normally done once during the program start and is thus not set as a "normal"
Modbus channel under "ModbusSlave Channel", but as an Initialization channel under "Modbus
Slave Init" (see Figure 7-27: Setting the initialization channel for the parameterization).
– Access Type:
Write Single Register (function code 06)
– Write Register, Offset:
0xB040 (see below)
The parameters of the station can be found in register 0xB040 to 0xB060.
Parameterization of the station
The example parameterization will be the disabling of the channel diagnosis at channel 1, slot 3 of the
station (Register 0×B040, Bit 2).
The parameter register is build up as follows:
Figure 7-26:
Assignment of
parameter reg-
isters
A 22 = 4 will be written to register 0×B040, which results from the station's the parameter byte
assignment.
Figure 7-27:
Setting the ini-
tialization chan-
nel for the
parameteriza-
tion
Figure 7-28:
Starting the WIN
V3-PLC
Figure 7-29:
Building the
program
3 Login:
Figure 7-30:
Login
Figure 7-31:
Starting the
program
Note
In order assure a regular updating of the process data, activate the function "Always update
variables".
Figure 7-32:
Modbus TCP
Slave I/O image
with process
data
Figure 7-33:
Status Word of
the station
Register Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
0x0004 0 UL - - - I/O Cfg - - Diag
low Warn. Warn
1 - FCE - MB I/O I/O Usys Usys
Wdg CFG COM low high
Figure 7-34:
Group diagnosis
register
According to the examples for setting the modbus channels (see Setting the Modbus-channels
(examples) and data mapping (page 7-18)), the following channel is add to read out the group
diagnosis register.
Read Holding Registers (FC3), register 0×0005, length 1
Figure 7-35:
Channel for
reading out the
group diagnosis
Figure 7-36:
group diagnosis
bit 3 = 1
slot 4 sends diagnosis information
BL20-2AI-THERMO-PI (see also Used hard-/ software (page 7-2))
Figure 7-37:
Diagnosis chan-
nel
%IW3 in the I/O image of the example station shows the diagnosis information available at slot4:
Figure 7-38:
Diagnosis data
at slot 4
Meaning:
Bit 1: Open circuit at channel 1
(see also Diagnostic messages of the modules (page 3-57))
Figure 7-39:
Mapping of
diagnosis data
according to
Modbus report
Note
In PROFINET®, the connected device is not identified by it’s IP address, but recognized and
addressed by it’s device name.
The selection of a device name for a special IO device can thus be compared to the setting of
the PROFIBUS address for a DP slave.
The device name can be freely chosen.
Note
It is not necessary to address the station’s internal module bus.
Note
Detailed information about MRP in PROFINET can be found on the homepage of the
PROFIBUS user organization under www.profibus.com.
8.3 GSDML-file
You can download the actual GSDML file for the gateway BL20-E-GW-PN “GSDML-V××-Turck-BL20-
×××.xml“ from our Homepage www.turck.com.
8.4 Default-values
Default-values:
IP-address 192.168.1.254
subnet mask: 255.255.255.0
Name: -
Note
When storing the device name or the IP address or when resetting the gateway to the default
values, the GW-LED switches to orange.
During this time, the gateway’s voltage supply must not be interrupted. In case of a power
failure, faulty data will be stored in the gateway.
Note
Resetting the gateway is only possible when the station is not connected to the fieldbus (no
AR active). (no AR active).
2 Undervoltage:
Undervoltage channel 0: Undervoltage at USYS
Channel 1: Undervoltage at UL
1 Short circuit
2 Under voltage
4 overload
5 over temperature
6 wire break
9 error
21 hardware failure
The module detected a hardware failure. Exchange the module.
23 Direction error
The direction is detected to be wrong. Check the parameterization or the control
interface versus use case.
28 Common error
The module detected an error. Refer to the I/O-module manuals for a more detailed
description of possible errors. Error types can depend on the operation mode and
the parameterization.
The following table shows, which module message will be changed to which error code.
BL20-4DI-NAMUR overcurrent
BL20-PF-120/230VAC-D
BL20-xDO-24VDC-0.5A-×
BL20-E-8AI-U/I-4AI-PT/NI
BL20-2AI-PT/NI-2/3
BL20-2AI-PT/NI-2/3
BL20-2AI-THERMO-PI
BL20-2AIH-I
BL20-4AI-U/I
BL20-E-8AI-U/I-4AI-PT/NI
BL20-E-4AI-TC
BL20-2AOH-I
BL20-4DI-NAMUR
BL20-2AI-THERMO-PI
BL20-E-4AI-TC
BL20-4AI-U/I
BL20-E-8AI-U/I-4AI-PT/NI
BL20-2AIH-I overflow
BL20-2AI-THERMO-PI
BL20-E-4AI-TC
BL20-4AI-U/I
BL20-E-8AI-U/I-4AI-PT/NI
BL20-2AIH-I undervoltage
BL20-E-4AO-U/I
BL20-1SSI
BL20-2AIH-I
BL20-E-4AI-TC
BL20-E-4AO-U/I
BL20-2AOH-I
8.6 Parameterization
10 hold current value The gateway maintains the actual output settings of
all modules (with the exception of analog output
modules). Error information is transmitted to the
analog output modules. Depending on their
configuration, these modules set their outputs either
to "0" or to a default value, or to maintain the original
values. The non-configured analog output modules
set their outputs to "0".
11 hold current value The gateway maintains the actual output settings of
all modules (with the exception of analog output
modules). Error information is transmitted to the
analog output modules. Depending on their
configuration, these modules set their outputs either
to "0" or to a default value, or to maintain the original
values. The non-configured analog output modules
set their outputs to "0".
1 Bit 0: reserved
Bit 3: reserved
0 inactive A -
Bit 5: reserved
Bit 7: reserved
0 inactive A
1 active
1 active
8.6.2 I/O-module-parameters
The decription of the signle I/O-module-parameters is protocol-independent and can thus be found in
chapter 3.9, Parameters of the I/O-modules (page 3-34).
Note
This parameter is not part of the module parameters, but is only important for the
communication between gateway and the modules.
This parameter extension is always necessary, even if the module is parameterized via a IO-
supervisor.
The module receives its parameter settings from the controller, IO-supervisor, I/O-ASSISTANT or
similar.
In this case, parameter changes which were done in the meantime for example by a configuration
tool or similar will be overwritten with the valid parameter data set.
"module parameterization" deactivated
Changes in the parameter settings are ignored for the respective module. The stored parameter
data will be used.
Note
If the "module parameterization" is activated and a module is replaced by a new one, the
gateway has to be operated with active USYS, in order to keep the module’s parameter-
settings for the new module.
UL has to be switched-off and the station has to be separated from the field bus. Now, the
gateway sends the parameters defined for the old module, into the new module.
8 (0x08) to reserved
23 (0x17)
025 reserved
(0x19) to 31
(0x1F)
36 reserved
(0x24) to
45039
(0xAFEF)
45045 I&M5-functions
(0xAFF5)
5 reserved
(0x05)
to 18 (0x12)
20 reserved
(0x14) to 22
(0x16)
24 (0x18) to reserved
31 (0x1F)
32 (0x20) to Profile-specific These indices are reserved for the data of several module
255 (0xFF) profiles (e. g. RFID). The definitions of the profile indices
can be found in the respective module descriptions.
9.1.1 General
In order to configure the connection of a BL20 multi-protocol gateway for PROFINET® to a Siemens PLC
S7, the software package "SIMATIC Manager" version 5.5 from Siemens is used.
GW BL20-E-GW-EN
1 BL20-2DI-24VDC-P 2 Bit -
2 BL20-4DI-24VDC-P 4 Bit -
3 BL20-2AI-U(-10/0…+10VDC) 4 Byte -
4 BL20-2AI-THERMO-PI 4 Byte
5 BL20-2DO-24VDC-0.5A-P 2 Bit
6 BL20-E-8DO-24VDC-0.5A-P 8 Bit
Figure 9-1:
Selecting a
Simatic station
The configuration of the PROFINET®-network is then done in the software's hardware configuration
Figure 9-2:
Command "Set
PG/PC Inter-
face..."
Figure 9-3:
GSD files
install
2 Define the directory for the TURCK GSDML-files by browsing the directories and add the BL20
PROFINET® gateway to the hardware catalog.
Figure 9-4:
Install GSD files
The new gateway can now be found under "PROFINET IO Additional Field Devices I/O TURCK".
Figure 9-5:
BL20 gateway in
the hardware
catalog
3 Chose the profile rack "RACK-300" for the Siemens CPU from the catalog and add it to the network
window.
4 After this, select the Siemens CPU from the hardware catalog. In this example a CPU 315-2 PN/DP,
version 6ES7 315-2EH14-0AB0 (V 3.2). is used.
Figure 9-6:
Selecting the
CPU
5 In the dialog "Properties Ethernet Interface", define the IP address and the subnet mask for the S7
CPU and add the subnet using the "New..." button.
Figure 9-7:
Properties
Ethernet inter-
face
Figure 9-8:
Add new
Ethernet subnet
Figure 9-9:
Add network
node
Figure 9-10:
Select BL20
gateway
Figure 9-11:
Dialog:
Properties
TURCK
Note
In PROFINET®, the connected device is not identified by it’s IP address, but recognized and
addressed by it’s device name.
The selection of a device name for a special IO device can thus be compared to the setting of
the PROFIBUS address for a DP slave.
Note
When storing the device name or the IP address or when resetting the gateway to the default
values, the GW-LED switches to orange. During this time, the gateway’s voltage supply must
not be interrupted. In case of a power failure, faulty data will be stored in the gateway.
Figure 9-12:
Add I/O-
modules to the
station
Add a station
Note
If changes in the configuration of a node are made after the download of the
configuration and the starting of the PLC, PROFINET® requires a reset fo the respective
device.
This can be done following different ways:
Hardware reset:
– F_RESET at the gateway (see also F_Reset (Reset to factory setting) (page 3-22)
Software reset:
– HW Config: "PLC Ethernet Edit Ethernet Node... Browse", select a node and
execute the reset in the dialog box "Edit Ethernet Node..." via "Reset".
– other PROFINET®-tool (PST-tool from Siemens, etc.)
Figure 9-13:
Configure
Ethernet node
2 Browse the network for active network nodes identified by means of their MAC address, by using
the button "Browse" in the field "Ethernet node".
All PROFINET® nodes found in the network answer the command sending their MAC address and
their device name.
Figure 9-14:
Adaptation of
the Ethernet
node configura-
tion
Note
Here, you can also assign an application specific device name to the devices which were
found.
Please observe, that the device name assigned here has to be similar to the device name
assigned to the node in the properties dialog box (see Figure 9-11: Dialog: Properties TURCK).
If this is not guaranteed, the PLC will not be able to clearly identify the node!
Figure 9-15:
Settings of the
PROFINET®-
controller
In case of a device exchange, a new device thus not receives the device name from the removable
medium or the PG but from the IO-controller.
The device name is assigned by means of the devices' port interconnections configured in the topology
definition.
Figure 9-16:
Partner-port
definition
(Example)
Figure 9-17:
PROFINET®
Topology Editor
A Example: copper
port
B fiber optic port
C Example: cop-
per-
connection
Figure 9-18:
PROFINET®
Topology Editor
Offline/ online
comparison
Figure 9-19:
Diagnostics
A channel-specific
module
diagnostics
B manufacturer
specific help
texts
Figure 9-20:
Diagnostic
message
A slot-no. A B
C
B subslot-no.
C error code
D plaint text diag-
nostic message
Note
A mixed usage of gateways of the BL20 ECO and the BL20 standard product line and I/O
modules of both product lines (base modules with tension clamp terminals) is possible
without any problems.
Figure 10-1:
Example of a
station structure
with ECO
gateway (here
for CANopen),
ECO and stan-
dard I/O
modules
Note
Next to the gateway, only base modules with tension clamp terminals and ECO-modules can
be used.
Base modules with screw terminals can only be used, if a power supply module (BR or PF) with
screw terminals was set before.
Attention
If there are more than two empty slots next to one another, the communication is interrupted
to all following BL20 modules.
The power to BL20 systems is supplied from a common external source. This avoids the occurrence of
potential compensating currents within the BL20 station.
Attention
Ensure that a sufficient number of Bus Refreshing and Power Feeding modules are used if the
system is extended to its maximum.
Note
If the system limits are exceeded, the software I/O-ASSISTANT 3 (FDT/DTM) generates an error
message when the user activates the command "Verify station".
For the calculation of the maximum system extension, the following table contains an overview about
the modules’ nominal current consumptions.
BL20-PF-24VDC-D 2 28 mA
BL20-PF-120/230VAC-D 2 25 mA
BL20-2DI-24VDC-P 1 28 mA
BL20-2DI-24VDC-N 1 28 mA
BL20-2DI-120/230VAC 1 28 mA
BL20-4DI-24VDC-P 1 29 mA
BL20-4DI-24VDC-N 1 28 mA
BL20-4DI-NAMUR 5 40 mA
BL20-E-8DI-24VDC-P 1 15 mA
BL20-E-16DI-24VDC-P 2 15 mA
BL20-16DI-24VDC-P 2 45 mA
BL20-32DI-24VDC-P 4 30 mA
BL20-1AI-I(0/4…20MA) 3 41 mA
BL20-2AI-I(0/4…20MA) 5 35 mA
BL20-1AI-U(-10/0…+10VDC) 3 41 mA
BL20-2AI-U(-10/0…+10VDC) 5 35 mA
BL20-2AI-PT/NI-2/3 5 45 mA
BL20-2AI-THERMO-PI 5 45 mA
BL20-4AI-U/I 9 30 mA
BL20-E-8AI-U/I-4AI-PT/NI 9 50 mA
BL20-2DO-24VDC-0.5A-P 2 32 mA
BL20-2DO-24VDC-0.5A-N 2 32 mA
BL20-2DO-24VDC-2A-P 2 33 mA
BL20-2DO-120/230VAC-0.5A 2 35 mA
BL20-4DO-24VDC-0.5A-P 2 30 mA
BL20-E-8DO-24VDC-0.5A-P 2 5 mA
BL20-E-16DO-24VDC-0.5A-P 2 25 mA
BL20-16DO-24VDC-0.5A-P 3 120 mA
BL20-32DO-24VDC-0.5A-P 5 30 mA
BL20-1AO-I(0/4…20MA) 4 39 mA
BL20-2AO-I(0/4…20MA) 7 40 mA
BL20-2AO-U(-10/0…+10VDC) 7 43 mA
BL20-E-4AO-U/I 9 50 mA
BL20-2DO-R-NC 1 28 mA
BL20-2DO-R-NO 1 28 mA
BL20-2DO-R-CO 1 28 mA
BL20-E-2CNT/2PWM 9 30 mA
BL20-1RS232 9 140 mA
BL20-1RS485/422 9 60 mA
BL20-1SSI 9 50 mA
BL20-2RFID-× 9 30 mA
BL20-E-1SWIRE 9 60 mA
Attention
The sum of the nominal current consumptions (seeTable 10-1: Communication bytes and
nominal current consumption of the BL20-modules, page 10-3) of the used BL20 modules
may not exceed 400 mA.
If a Bus Refreshing module is mounted, the sum of the current consumptions which follow the
Bus Refreshing module must not exceed 1,5 A.
Note
The Bus Refreshing modules which are used in a station with BL20-E-GW-EC have to be
combined with the base modules BL20-P3T-SBB-B or BL20-P4T-SBBC-B (tension clamp) or
with the base modules BL20-P3S-SBB-B or BL20-P4S-SBBC-B (screw terminals).
With the system supply, it must be ensured that the same ground potential and ground connections
are used. Compensating currents flow via the module bus if different ground potentials or ground
connections are used, which can lead to the destruction of the Bus Refreshing module.
All Bus Refreshing modules are connected to one another via the same ground potential.
The power to the module bus is supplied via the connections 11 and 21 on the base module.
If the power supply from the module bus is not guaranteed, the software I/O-ASSISTANT 3 (FDT/DTM)
generates an error message if the user activates the DTM "Additional functions Verify station".
Note
The system can be supplied with power independent of the potential group formation.
When using a digital input module for 120/230 V AC, it should be ensured that a potential group is
created in conjunction with the Power Feeding module BL20-PF-120/230VAC-D.
Attention
It is not permitted to use modules with 24 V DC and 120/230 V AC field supply in a joint
potential group.
Figure 10-2:
C-rail
(front view)
Figure 10-3:
C-rail
(side view)
Warning
It is permitted to load the C-rail with a maximum of 24 V. Not 230 V!
The C-rail can be used as required by the application, for example, as a protective earth (PE). In this case,
the PE connection of each power distribution module must be connected to the mounting rail via an
additional PE terminal, which is available as an accessory.
The C-rail is not interrupted by the modules of the BL20-ECO-products. It is connected through the
modules’ connection level. But, an access to the C-rail is not possible.
Note
For information about introducing a BL20 station into a ground reference system, please read
chapter 10.
Figure 10-4: 8 DI
PF 2 DO ECO 2 DO 2 DI PF 2 DO 2 DI 2 DO 2 DI
Using the C-rail
as a protective
earth GW
IOs
SERVICE
0 1
20
21
ADDRESS
22
23
PE 24
25
26
27
MODE
CFG
off on
TS
ERR
BUS
1
2
ETH2
Slide top cover for configuration and service
11 21 11 21 3 11 21 11 21 11 21 11 21 11 21 11 21 11 21
Unlock end-bracket before dismounting
4
5
ETH1
12 22 12 22 12 22 12 22 12 22 12 22 12 22 12 22 12 22
6
7
UL
8
13 23 13 23 13 23 13 23 13 23 13 23 13 23 13 23 13 23
GNDL 9
10
!
USYS
C-rails can be used for a common voltage supply (24 V DC) when relay modules are planned. To
accomplish this, the load voltage is connected to a Power Feeding module with the BL20-P4x-SBBC
base module. All the following relay modules are then supplied with power via the C-rail.
Attention
When relay modules are planned and the C-rail is used for a common voltage supply, a further
power distribution module must be used for the potential isolation to the following modules.
The C-rail can only again be used as a PE following potential isolation.
Figure 10-5: 8 DI
Using the C-rail PF 2 DO ECO 2 DO 2 DI PF NO NC NO NC
as protective
earth and for GW
IOs
supply with 0 1
20
21
relay modules
ADDRESS
22
23
PE 24
25
26
27
MODE
CFG
off on
TS
ERR
BUS
1
2
ETH2
11 21 11 21 11 21 11 21 11 21 11 21 11 21 11 21 11 21
Slide top cover for configuration and service
3
Unlock end-bracket before dismounting
4
5
ETH1
12 22 12 22 6 12 22 12 22 12 22 12 22 12 22 12 22 12 22
7
UL 8
GNDL 13 23 13 23 9 13 23 13 23 13 23 13 23 13 23 13 23 13 23
10
!
USYS
11 C-rail (PE) C-rail (24 V DC)
GNDSYS
14 24 12 14 24 14 24 14 24 14 24 14 24
13
SBBC SBC 14 SBC SBB SBBC SBCS SBCS SBCS SBCS
15
16
Cross-connecting relay module roots is achieved by the use of jumpers. The corresponding wiring
diagram including the jumpers can be found the manuals for BL20 I/O modules (German: D300716,
English: D300717).
Attention
If the field and system supplies remain connected when electronics modules are plugged or
pulled, short interruptions to the module bus communications can occur in the BL20 station.
This can lead to undefined statuses of individual inputs and outputs of different modules.
Attention
Please note that extensions to the station (mounting further modules) should be carried out
only when the station is in a voltage-free state.
Attention
- The station should be disconnected from the fieldbus when downloading.
- Firmware must be downloaded by authorized personnel only.
- The field level must be isolated.
11.1.1 General
Cables should be grouped together, for example: signal cables, data cables, heavy current cables,
power supply cables.
Heavy current cables and signal or data cables should always be routed in separate cable ducts or
bundles. Signal and data cables must always be routed as close as possible to ground potential surfaces
(for example support bars, cabinet sides etc.).
Danger
Observe all valid guidelines concerning internal and external lightning protection and
grounding specifications when routing cables outside of buildings.
Note
TURCK offers a variety of cable types for fieldbus lines as premoulded or bulk cables with
different connectors.
The ordering information on the available cable types can be taken from the BL20-catalog.
11.2.1 General
The potential relationship of a Ethernet system realized with BL20 modules is characterized by the
following:
The system supply of gateway and I/O-modules as well as the field supply are realized via one power
feed at the gateway.
All BL20 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 BL20 station with Ethernet gateway.
Figure 11-1:
Block diagram
of a BL20 station
with PROF-
INET®- gateway
Warning
The grounding must never – including cases of error – take on a dangerous touch potential.
For this reason, always protect the ground potential with a protective cable.
11.3.3 PE connection
A central connection must be established between ground and PE connection (protective earth).
Mounting B
options
C
A TS 35
B mounting rail
C mounting plate
A D
Mount the mounting rails over a large surface area and with a low impedance to the support system
using screws or rivets.
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).
Attention
When installing, please pay attention to the following...
- the shield should be connected immediately when entering the system,
- the shield connection to the shield rail should be of low impedance,
- the stripped cable-ends are to be kept as short as possible,
- the cable shield is not to be used as a bonding conductor.
The insulation of the shielded data-cable should be stripped and connected to the shield rail when the
system is used in stationary operation The connection and securing of the shield should be made using
metal shield clamps. The shield clamps must enclose the shielding braid and in so doing create a large
surface contact area. The shield rail must have a low impedance (for example, fixing points of 10 to 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 interface connection.
Note
Should it not be possible to ground the shield on both sides due to switching arrangements
or device specific reasons, then it is possible to route the second cable shield side to the local
reference potential via a capacitor (short connection distances). If necessary, a varistor or
resistor can be connected parallel to the capacitor, to prevent disruptive discharges when
interference pulses occur.
Note
A further possibility is a double-shielded cable (galvanically separated), whereby the
innermost shield is connected on one side and the outermost shield is connected on both
sides.
Warning
Never use the shield as a potential compensation.
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.
Note
The Zone 2 - approval certificates for BL20 can be found in a separate manual for approvals
D301255 under www.turck.de.
Figure 13-1:
Process input
data of
RS××× modules
STAT 0-1 1: The communication with the data terminal equipment (DTE) is not
disturbed.
0: The communication with the data terminal equipment (DTE) is disturbed. A
diagnosis message is generated if the parameter "Diagnostics" is set to "0" =
release. The diagnostic data show the cause of the communication
disturbance.
The user has to set back this bit in the process output data by using STATRES.
TX_CNT_ACK 0-3 The value TX_CNT_ACK is a copy of the value TX_CNT. The value TX_CNT was
transferred together with the last data segment of the process output data.
The value TX_CNT_ACK is a confirmation of successful acceptance of the data
segment using TX_CNT.
RX_CNT 0-3 This value is transferred together with every data segment. The RX_CNT
values are sequential: The RX_CNT values are sequential:
00->01->10->11->00…
(decimal: 0->1->2->3->0…)
Errors in this sequence show the loss of data segments.
Figure 13-2:
Process output
data of RS×××-
modules
STATRES 0-1 This bit is set to reset the STAT bit in the process input data.
With the change from 1 to 0 the STAT bit is reset (from 0 to 1).
If this bit is 0, all changes in TX_BYTE_CNT, TX_CNT and RX_CNT_ACK
are ignored. The clearing of the receive and transmit buffer by RXBUF
FLUSH/TXBUF FLUSH is possible.
The value 1 or the transition from 0 to 1 disables the clearing of the
receive and transmit buffer by the RXBUF FLUSH/TXBUF FLUSH.
RXBUF FLUSH 0-1 The RXBUF FLUSH bit is used for clearing the receive buffer.
If STATRES = 1:
A request with RXBUF FLUSH = 1 will be ignored.
If STATRES = 0:
RXBUF FLUSH = 1 will clear the receive buffer.
TXBUF FLUSH 0-1 The TXBUF FLUSH bit is used for clearing the transmit buffer.
If STATRES = 1:
A request with TXBUF FLUSH = 1 will be ignored.
If STATRES = 0:
TXBUF FLUSH = 1 will clear the receive buffer.
RX_CNT_ACK 0-3 The value RX_CNT_ACK is a copy of the value RX_CNT. The value
TX_CNT was transferred together with the last data segment of the
process output data.
RX_CNT_ACK has to be set analog to RX_CNT (in the status byte).
RX_CNT_ACK is an acknowledge for the successful transmission of the
data segment with RX_CNT. New data can now be received.
TX_CNT 0-3 This value is transferred together with every data segment. The
TX_CNT values are sequential: The TX_CNT values are sequential:
00->01->10->11->00…
(decimal: 0->1->2->3->0…)
Errors in this sequence show the loss of data segments.
Figure 13-3:
Process input
data of the SSI-
module
REG_RD_ADR 0…63 Address of the register to be read. If the read operation is successful
(REG_RD_ABORT = 0), the user data is located in REG_RD_DATA of
the process input data (bytes 0 to 3).
REG_WR_ACEPT 0 Writing the user data from the process output to the register
addressed with REG_WR_ADR in the process output could not be
done.
1 Writing the user data from the process output to the register
addressed with REG_WR_ADR in the process output was successful.
SSI_STS3 0 These four bits transfer the status bits of the SSI encoder with the
status messages of the SSI module. With some SSI encoders, the
1 status bits are transferred together with the position value.
SSI_STS2 0
SSI_STS1 0
SSI_STS0 0
STS_UP (LED UP) 0 The SSI encoder values are decremented or the values are constant.
STS_DN 0 The SSI encoder values are incremented or the values are constant.
(LED DN)
1 The SSI encoder values are decremented.
FLAG_CMP2 0 Default status, i.e. the register contents have not yet matched
(REG_SSI_POS) = (REG_CMP2) since the last reset.
FLAG_CMP1 0 Default status, i.e. the register contents have not yet matched
(REG_SSI_POS) = (REG_CMP1) since the last reset.
Figure 13-4:
Process output
data of the SSI-
module
REG_WR_DATA 0… 232-1 Value which has to be written to the register with the address
REG_WR_ADR.
REG_RD_ADR 0…63 Address of the register which has to be read. If the reading was
successful (REG_RD_ABORT = 0), the user data can be found in
REG_RD_DATA in the status interface (bytes 4-7).
REG_WR 0 Default status, i.e. there is no request to overwrite the content of the
register with the address stated at REG_WR_ADR with
REG_WR_DATA. Bit REG_WR_AKN is reset (0) if necessary.
EN_CMP2 0 Default status, i.e. the data bits REL_CMP2, STS_CMP2 and
FLAG_CMP2 always have the value 0, irrespective of the actual SSI
encoder value.
EN_CMP1 0 Default status, i.e. the data bits REL_CMP1, STS_CMP1 and
FLAG_CMP1 always have the value 0, irrespective of the actual SSI
encoder value.
13.1.3 SWIRE-module
SWIRE in Modbus
In Modbus, the process data of SWIRE-modules are mapped to the data area for digital In- and output
modules not to the data area for intelligen modules (see chapter 6.3, page 6-7 ff.)
Process input data
SIx supplies the switch status of the contactor coil of the SWIRE bus slave as a
feedback signal. SIx makes it possible to check whether the set switch status was
executed by a mechanical connection. This must take into account the time delay
between the setting of an output, a mechanical execution and the subsequent
feedback signal.
Setting the parameter SCDIAGSx sets the SCx-bit in the process input data. The
information is provided as status information in the PLC for the user.
SOx relay x
SOx is transferred as the switch status of the contactor coil from the SWIRE
bus master to the appropriate SWIRE bus slave.
1 on On Contactor switched on
13.1.4 Encoder/PWM-moduleBL20-E-2CNT-2PWM
Detailed information about the process image of the module can be found in separate manual,
D301224, „BL20 – I/O-MODULES BL20-E-2CNT-2PWM“, chapter 2)
Figure 13-5:
Changing the IP
address in
Windows 2000/
XP
Figure 13-6:
Changing the IP
address in
Windows 7
Figure 13-7:
Busaddress
Management
Figure 13-8:
Deactivating
the Firewall in
Windows 2000/
XP
Figure 13-9:
Deactivating
the Firewall in
Windows 7
Figure 13-10:
Adapting the
Firewall in Win-
dows 2000/ XP
Figure 13-11:
Adapting the
Firewall in Win-
dows 7
Figure 13-12:
BootP-Server
from Rockwell
Automation
Addresses in the range from 1 to 254 can be allocated. The addresses 0 and 255 are reserved for
broadcast messages in the subnet.
Hinweis
The rotary coding switches on the gateway must be set to "300" = BootP, "400" = DHCP or
"600" = PGM-DHCP in order to enable the BootP/DHCP-Mode.
(see also chapter 3, section Adressierung (page 3-9)).
After having been connected to the network, the BL20 sends DHCP requests to the server using its
MAC-ID.
Figure 13-13:
DHCP-request
of the device
A double click on the request-entry opens the "New Entry" dialog box in which an IP address can be
assigned to the s MAC-ID.
Figure 13-14:
Setting the IP
address via
DHCP
The BootP/DHCP-Server sends the IP Address via BootP/DHCP to the device and, after a few seconds,
the stations answers with its new IP address when having stored it.
Figure 13-15:
Set IP address
Achtung
The device looses it's IP-address in case of a power-reset, if the BootP/DHCP-server is shut
down.
BL20-2DI-24VDC-P 0x210020x×
BL20-2DI-24VDC-N 0x220020x×
BL20-2DI-120/230VAC 0x230020x×
BL20-4DI-24VDC-P 0x410030x×
BL20-4DI-24VDC-N 0x420030x×
BL20-4DI-NAMUR 0x015640x×
BL20-E-8DI-24VDC-P 0x610040x×
BL20-16DI-24VDC-P 0x810050x×
BL20-E-16DI-24VDC-P 0x820050x×
BL20-32DI-24VDC-P 0xA10070x×
BL20-1AI-I(0/4…20MA) 0x012350x×
BL20-2AI-I(0/4…20MA) 0x225570x×
BL20-1AI-U(-10/0…+10VDC) 0x011350x×
BL20-2AI-U(-10/0…+10VDC) 0x235570x×
BL20-2AI-PT/NI-2/3 0x215770x×
BL20-2AI-THERMO-PI 0x215570x×
BL20-2AIH-I 0x2179C0x×
BL20-4AI-U/I 0x417790x×
BL20-E-4AI-TC 0x427790x×
BL20-E-8AI-U/I-4AI-PT/NI 0x6199B0x×
BL20-2DO-24VDC-0,5A-P 0x212002××
BL20-2DO-24VDC-0,5A-N 0x222002××
BL20-2DO-24VDC-2A-P 0x232002××
BL20-2DO-120/230VAC-0.5A 0x250002××
BL20-4DO-24VDC-0,5A-P 0x013003××
BL20-E-8DO-24VDC-0.5A-P 0x610004××
BL20-16DO-24VDC-0,5A-P 0x413005××
BL20-E-16DO-24VDC-0.5A-P 0x820005××
BL20-32DO-24VDC-0,5A-P 0x614007××
BL20-1AO-I(0/4…20MA) 0x010605××
BL20-2AO-I(0/4…20MA) 0x220807××
BL20-2AO-U(-10/0…+10VDC) 0x210807××
BL20-2AO-H 0x217AB7××
BL20-E-4AO-U/I 0x417A09××
Relay modules
BL20-2DO-R-NC 0x230002××
BL20-2DO-R-NO 0x220002××
BL20-2DO-R-CO 0x210002××
technology modules
BL20-1RS232 0x014799××
BL20-1RS485/422 0x024799××
BL20-1SSI 0x044799××
BL20-E-1SWIRE 0x169C99××
BL20-E-2CNT-2PWM 0x017BCCxx
BL20-2RFID-A 0x017977××
BL20-2RFID-S 0x2179CC××
BL20-BR-24VDC-D 0x013000x×
BL20-BR-24VDC-RED 0x440030x×
BL20-PF-24VDC-D 0x023000x×
BL20-PF-120/230VAC-D 0x053000x×
A Acknowledge
Acknowledgment of a signal received.
Address
Identification number of, e.g. a memory position, a system or a module within a network.
Addressing
Allocation or setting of an address, e. g. for a module in a network.
ARP
Used to definitely allocate the hardware addresses (MAC-IDs) assigned worldwide to the IP addresses of the
network clients via internal tables.
Analog
Infinitely variable value, e. g. voltage. The value of an analog signal can take on any value, within certain limits.
Automation device
A device connected to a technical process with inputs and outputs for control. Programmable logic controllers
(PLC) are a special group of automation devices.
B Baud
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.
Bonding strap
Flexible conductor, normally braided, that joins inactive components, e. g. the door of a switchgear cabinet to the
cabinet main body.
Bus
Bus system for data exchange, e. g. between CPU, memory and I/O levels. A bus can consist of several parallel
cables for data transmission, addressing, control and power supply.
Bus line
Smallest unit connected to a bus, consisting of a PLC, a coupling element for modules on the bus and a module.
Bus system
All units which communicate with one another via a bus.
C Capacitive coupling
Electrical capacitive couplings occur between cables with different potentials. Typical sources of interference are,
for example, parallel-routed signal cables, contactors and electrostatic discharges.
Check-back interface
The check-back interface is the interface from the counter module to the internal module bus. The bits and bytes
are converted by the gateway from the respective type of communication applicable to the fieldbus in to the
module-specific bits and bytes.
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.
Control interface
The control interface is the interface from the internal module bus to the counter module. The commands and
signals directed to the counter module are converted by the gateway from the respective type of communication
applicable to the fieldbus in to the module-specific bits and bytes.
CPU
Central Processing Unit. Central unit for electronic data processing, the processing core of the PC.
D DHCP
Client-Server-protocol which reduces the effort of assigning IP addresses or other parameters. Serves for dynamic
and automatic configuration of devices.
Digital
A value (e. g. a voltage) which can adopt only certain statuses within a finite set, mostly defined as 0 and 1.
DIN
German acronym for German Industrial Standard.
E EIA
Electronic Industries Association – association of electrical companies in the United States.
Electrical components
All objects that produce, convert, transmit, distribute or utilize electrical power (e. g. conductors, cable, machines,
control devices).
EMC
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.
ESD
Electrostatic Discharge.
Fieldbus
Data network on sensor/actuator level. A fieldbus connects the equipment on the field level. Characteristics of a
fieldbus are a high transmission security and real-time behavior.
Force Mode
Software mode which enables the user to set his plant to a required state by forcing certain variables on the input
and output modules.
G GND
Abbreviation of ground (potential "0").
Ground
Expression used in electrical engineering to describe an area whose electrical potential is equal to zero at any
given point. In neutral grounding devices, the potential is not necessarily zero, and one speaks of the ground
reference.
Ground connection
One or more components that have a good and direct contact to earth.
Ground reference
Potential of ground in a neutral grounding device. Unlike earth whose potential is always zero, it may have a
potential other than zero.
H 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.
Hysteresis
A sensor can get caught up at a certain point, and then "waver" at this position. This condition results in the
counter content fluctuating around a given value. Should a reference value be within this fluctuating range, then
the relevant output would be turned on and off in rhythm with the fluctuating signal.
I I/O
Input/output.
Impedance
Total effective resistance that a component or circuit has for an alternating current at a specific frequency.
Inductive coupling
Magnetic inductive couplings occur between two cables through which an electrical current is flowing. The
magnetic effect caused by the electrical currents induces an interference voltage. Typical sources of interference
are for example, transformers, motors, parallel-routed network and HF signal cables.
Intelligent modules
Intelligent modules are modules with an internal memory, able to transmit certain commands (e. g. substitute
values and others).
IP
Abbreviation for Internet-Protocol, protocol for the packet-oriented and connectionless transport of data packets
from a transmitter to a receiver crossing different networks.
L Lightning protection
All measures taken to protect a system from damage due to overvoltages caused by lightning strike.
LSB
Least Significant bit
M 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.
Modbus TCP
The Modbus protocol is part of the TCP/IP protocol.
The communication is realized via function codes, which are implemented into the data telegram. Modbus TCP
uses the Transmission Control Protocol (TCP) for the transmission of the Modbus user protocol in Ethernet-TCP-
IP networks.
Module bus
The module bus is the internal bus in a station. The modules communicate with the gateway via the module bus
which is independent of the fieldbus.
MSB
Most Significant bit
P Ping
Implementation of an echo-protocol, used for testing whether a particular host is operating properly and is
reachable on the network from the testing host.
Potential compensation
The alignment of electrical levels of electrical components and external conductive components by means of an
electrical connection.
Potential free
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. Generally represented by PE (protective
earth).
R Radiation coupling
A radiation coupling appears when an electromagnetic wave hits a conductive structure. Voltages and currents
are induced by the collision. Typical sources of interference are for example, sparking gaps (spark plugs,
commutators from electric motors) and transmitters (e. g. radio), that are operated near to conducting structures.
Reaction time
The time required in a bus system between a reading operation being sent and the receipt of an answer. It is the
time required by an input module to change a signal at its input until the signal is sent to the bus system.
Reference potential
Potential from which all voltages of connected circuits are viewed and/or measured.
Repeater
Amplifier for signals transmitted via a bus.
Root-connecting
Creating a new potential group using a power distribution module. This allows sensors and loads to be supplied
individually.
RS 485
Serial interface in accordance with EIA standards, for fast data transmission via multiple transmitters.
S Serial
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.
Shielding
Description of all measures and devices used to join installation components to the shield.
Short-circuit proof
Characteristic of electrical components. A short-circuit proof part withstands thermal and dynamic loads which
can occur at its place of installation due to a short circuit.
Station
A functional unit or I/O components consisting of a number of elements.
T TCP
Abbreviation for Transmission Control Protocol, connection-oriented transport protocol within the Internet
protocol suite. Certain error detection mechanisms (i.e. acknowledgements, time-out monitoring) can guarantee
a safe and error free data transport.
Terminating resistance
Resistor on both ends of a bus cable used to prevent interfering signal reflections and which provides bus cable
matching. Terminating resistors must always be the last component at the end of a bus segment.
To ground
Connection of a conductive component with the grounding connection via a grounding installation.
Topology
Geometrical structure of a network or the circuitry arrangement.
U UDP
Abbreviation for User Datagram Protocol. UDP is an transport protocol for the connectionless data between
Ethernet hosts.
Unidirectional
Working in one direction.
S
shield ............................................................................ 11-7
Software ................................................................. 5-2, 7-2
storage ............................................................................ 1-5
supply voltage ...................................................... 3-9, 3-14
T
Terminal Slot Class ....................................................... 4-21
transmission media ...................................................... 11-3
transport ......................................................................... 1-5
transport, appropriate ........................................... 1-4, 1-5
U
use, prescribed ....................................................... 1-4, 1-5
user data ....................................................................... 8-15
W
WIN 2000 .................................................................... 13-16
WIN NT ........................................................................ 13-16
WIN XP ........................................................................ 13-16
Z
Zone 2 ........................................................................... 12-1
D301173 0713