All rights reserved, including those of the translation.
No part of this manual may be reproduced in any form (printed, photocopy, microfilm or any
other process) or processed, duplicated or distributed by means of electronic systems
without written permission of Hans Turck GmbH & Co. KG, Muelheim an der Ruhr.
Subject to alterations without notice
Page 3
Safety Notes!
Before starting the installation
Disconnect the power supply of the device.
Ensure that devices cannot be accidentally restarted.
Verify isolation from the supply.
Earth and short circuit.
Cover or enclose neighboring units that are live.
Follow the engineering instructions of the device concerned.
Only suitably qualified personnel in accordance with EN 50 110-1/-2 (VDE 0 105 Part 100) may work on
this device/system.
Before installation and before touching the device ensure that you are free of electrostatic charge.
The functional earth (FE) must be connected to the protective earth (PE) or to the potential equalization.
The system installer is responsible for implementing this connection.
Connecting cables and signal lines should be installed so that inductive or capacitive interference do not
impair the automation functions.
Install automation devices and related operating elements in such a way that they are well protected
against unintentional operation.
Suitable safety hardware and software measures should be implemented for the I/O interface so that a
line or wire breakage on the signal side does not result in undefined states in the automation devices.
Ensure a reliable electrical isolation of the low voltage for the 24 volt supply. Only use power supply units
complying with IEC 60 364-4-41 (VDE 0 100 Part 410) or HD 384.4.41 S2.
Deviations of the mains voltage from the rated value must not exceed the tolerance limits given in the
specifications, otherwise this may cause malfunction and dangerous operation.
Emergency stop devices complying with IEC/EN 60 204-1 must be effective in all operating modes of the
automation devices. Unlatching the emergency-stop devices must not cause restart.
Devices that are designed for mounting in housings or control cabinets must only be operated and
controlled after they have been installed with the housing closed. Desktop or portable units must only
be operated and controlled in enclosed housings.
Measures should be taken to ensure the proper restart of programs interrupted after a voltage dip or
failure. This should not cause dangerous operating states even for a short time. If necessary, emergencystop devices should be implemented.
Wherever faults in the automation system may cause damage to persons or property, external measures
must be implemented to ensure a safe operating state in the event of a fault or malfunction (for example,
by means of separate limit switches, mechanical interlocks etc.).
The electrical installation must be carried out in accordance with the relevant regulations (e. g. with
regard to cable cross sections, fuses, PE).
All work relating to transport, installation, commissioning and maintenance must only be carried out by
qualified personnel. (IEC 60 364 and HD 384 and national work safety regulations).
All shrouds and doors must be kept closed during operation.
General Information .........................................................................................................................1-3
Prescribed Use ...............................................................................................................................................................................1-3
Notes Concerning Planning /Installation of this Product ..............................................................................................1-3
Description of Symbols Used ...........................................................................................................1-4
List of revisions .................................................................................................................................1-5
DPM1 versus DPM2...................................................................................................................................................................... 1-3
Addressing the data in DPV1 ............................................................................................................1-4
Function ............................................................................................................................................2-3
Important notes concerning the DPV1-gateways .............................................................................2-4
Status indicators/ diagnostic messages gateway ...........................................................................2-15
Diagnostic messages via LEDs ..............................................................................................................................................2-15
Diagnostic messages via the software................................................................................................................................2-15
The diagnosis telegram ..................................................................................................................2-16
Status message............................................................................................................................................................................2-17
D300956 0210 - BL67/BL20 - DPV1
i
Page 6
Module status .............................................................................................................................................................................2-18
Description of the gateway diagnosis bytes ....................................................................................................................2-20
Channel-specific diagnosis messages of the modules .................................................................................................2-22
Description of user data for acyclic services ..................................................................................2-28
Example configuration .....................................................................................................................3-3
Acyclic data transfer with system function bocks (SFBs) by Siemens ...............................................3-4
Acyclic reading with SFB52 ....................................................................................................................................................... 3-4
Acyclic writing with SFB53 ........................................................................................................................................................3-6
Example of DPV1-diagnosis ............................................................................................................3-11
General Information ............................................................................................................................................................................................. 3
Prescribed Use .................................................................................................................................................................................................3
Notes Concerning Planning /Installation of this Product ................................................................................................................ 3
Description of Symbols Used ..........................................................................................................................................................................4
List of revisions.......................................................................................................................................................................................................5
D300956 0210 - BL67/BL20 - DPV1
0-1
Page 8
About this Manual
Documentation Concept
This manual contains all information about the BL67/BL20-gateways for PROFIBUS-DPV1.
It is a supplementary manual to the existing PROFIBUS-DP manuals for the TURCK I/O systems BL20 (TURCK
documentation number: German: D300822/ English: D300458) and BL67 (TURCK documentation number:
German: D300570/ English D300527).
The following chapters contain a short description of the field bus system PROFIBUS-DPV1, a system-independent description of the DPV1 gateways for BL67 and BL20 as well as an application example for the
connection of the TURCK-DPV1 gateways to a Siemens PLC S7
Note
For all system product properties, which are not specific for the DPV1-gateways, as for example
connection possibilities, technical data or similar, please read the PROFIBUS-DP manuals for the
BL20 and BL67 mentioned above.
The bus-independent I/O-modules for BL67 as well as all further fieldbus-independent chapters like
mounting, labelling etc. are described in a separate manual.
BL20 I/O modules
(TURCK documentation number: German D300716/ English D300717)
BL67 I/O modules
(TURCK documentation number: German D300572/ English D300529)
D300956 0210 - BL67/BL20 - DPV10-2
Page 9
General Information
General Information
This manual contains all necessary information for the prescribed use of the BL20/BL67 gateways for
PROFIBUS-DPV1. It has been specially conceived for qualified personal with specialized knowledge.
Prescribed Use
Attention
Please read this section carefully. Safety aspects cannot be left to chance when dealing with electrical equipment.
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.
Appropriate transport, storage, deployment and mounting as well as careful operating and thorough maintenance guarantee the trouble-free and safe operation of these devices.
Notes Concerning Planning /Installation of this Product
Warning
All respective safety measures and accident protection guidelines must be considered carefully
and without exception.
D300956 0210 - BL67/BL20 - DPV1
0-3
Page 10
About this Manual
Description of Symbols Used
Warning
This sign can be found next to all notes that indicate a source of hazards. This can refer to danger
to personnel or damage to the system (hardware and software) and to the facility.
This sign means for the operator: work with extreme caution.
Attention
This sign can be found next to all notes that indicate a potential hazard.
This can refer to possible danger to personnel and damages to the system (hardware and software) and to the facility.
Note
This sign can be found next to all general notes that supply important information about one or
more operating steps. These specific notes are intended to make operation easier and avoid unnecessary work due to incorrect operation.
D300956 0210 - BL67/BL20 - DPV10-4
Page 11
List of revisions
List of revisions
In comparison to the previous manual edition, the following changes/ revisions have been made:
Table 1:
List of revisions
ChapterSubject/
newchange
description
Chap. 2tpChannel-specific diagnosis messages of the modules, page 2-22X
Meaning of the DPV1-error codes for the BL××-I/O-modules,
X
page 2-23
Note
The publication of this manual renders all previous editions invalid.
Acyclic data transfer ............................................................................................................................................................................................. 3
DPM1 versus DPM2........................................................................................................................................................................................3
Addressing the data in DPV1 ............................................................................................................................................................................4
D300956 0210 - BL67/BL20 - DPV1
1-1
Page 14
PROFIBUS-DPV1
General
PROFIBUS-DPV1 is an enhancement of PROFIBUS-DP which provides the possibility of acyclic data communication.
A cyclic and centrally directed data transfer between master and slaves is characteristic for the standard
functions of PROFIBUS-DP. A Class1 mater (PLC) controls the cyclic exchange of process data with the slaves.
The data exchange is carried out in rotation and in a defined order. The data which have to be transmitted
are projected beforehand.
Via acyclic communication functions, PROFIBUS-DPV1 now offers the possibility to transmit data to the slave
in addition to the cyclic process data.
D300956 0210 - BL67/BL20 - DPV11-2
Page 15
Acyclic data transfer
Acyclic data transfer
The need for acylcic data transfer exists wherever slave devices which provide several parameterization
options have to be parameterized during operation.
Typical examples are the parameters of a drive, like limit values, rotational speed or torque, operation mode
and the generation of an error list.
Acyclic services are handled with low priority, paralelly and additionally to the cylcic process data transfer.
The negative influence on the speed of the high-priority process data transfer, shall thus be minimized.
DPV1-functions
The DPV1-functions consist basically of the services "Read" and "Write". The master uses these services for
read- or write access to data blocks in PROFIBUS.
In addition to that, an "intiate" and "abord"-service for the connection management, a "data-transport"service for the exchange of large data packages and the "alarm"-and "status"-services for the transmission
of alarm messages have been defined.
1
Note
At present, the BLxx-gateways for DPV1 only support the services "Read" and "Write".
DPM1 versus DPM2
PROFIBUS-DPV1 differentiates between two master classes.
An automation system (PLC), which generally controls the basic cyclic process data transfer with standard
DP-functions, is defined as Class1-master. A Class1-master can use DPV1-functions optionally.
The new Class2-master is generally an engineering tool which is used for the acyclic data transfer.
The protocol cycle of the DPV1-functions on the field bus depends on the use of a Class1- or a Class2-master.
D300956 0210 - BL67/BL20 - DPV1
1-3
Page 16
PROFIBUS-DPV1
Addressing the data in DPV1
The data-addressing is done per module by means of the following details:
slot
index
length
The slot-number addresses the module and the index addresses the module’s parameters. Each data block
can have a maximum size of 240 bytes.
In case of a successful data access, the slave sends a positive answer. If the data access failed, a negative
answer which classifies the problem precisely is sent.
Important notes concerning the DPV1-gateways.....................................................................................................................................4
Module description in the Electronic Device Data Sheets (GSD)......................................................................................................... 8
– Description of the gateway parameters ............................................................................................................................................9
Status indicators/ diagnostic messages gateway................................................................................................................................... 15
Diagnostic messages via LEDs ............................................................................................................................................................... 15
Diagnostic messages via the software................................................................................................................................................. 15
The diagnosis telegram ................................................................................................................................................................................... 16
Status message............................................................................................................................................................................................. 17
Module status .............................................................................................................................................................................................. 18
Description of the gateway diagnosis bytes ..................................................................................................................................... 20
Channel-specific diagnosis messages of the modules .................................................................................................................. 22
– Meaning of the DPV1-error codes for the BL××-I/O-modules ................................................................................................ 23
Description of user data for acyclic services ............................................................................................................................................ 28
This chapter contains a description of the characteristics of the BL××-gateways for PROFIBUS-DPV1.
As the DPV1-gateways for BL20 and BL67 do not differ from the DPV0-gateways in their technical data, their
connection options (field bus, power supply), their mechanical mounting etc., only the special features of
the DPV1-gateways are described in the following.
For topics which are DPV0/DPV1-common you will therefore find cross references to the respective documentation for the DPV0-gateways:
BL20:
German: D300822/ English: D300458
BL67:
German: D300570/ English: D300527
D300956 0210 - BL67/BL20 - DPV12-2
Page 19
Function
Function
The BL××-DPV1-gateways allow the operation of BL××-modules on PROFIBUS-DPV1. The gateway is the
connection between the I/O-modules and the PROFIBUS-masters (see Chapter 1, PROFIBUS-DPV1).
The gateways regulate the process data between the I/O level and the fieldbus, and generate diagnostic
data for the higher-level master.
Information is made available to the software tool I/O-ASSISTANT via the service interface.
Note
BL×× gateways can only be used as slaves.
2
D300956 0210 - BL67/BL20 - DPV1
2-3
Page 20
BL××-gateways for PROFIBUS-DPV1
Important notes concerning the DPV1-gateways
Compatibility
Attention
BL××-DPV0-gateways can not be replaced by the new DPV1-gateways. The devices have different indent numbers and different GSD-files.
Diagnosis
Note
The new DPV1-gateways allow the DP-standard-diagnosis according to PROFIBUS-DP specification.
The diagnosis is not compatible with the diagnosis of the DPV0-gateways.
D300956 0210 - BL67/BL20 - DPV12-4
Page 21
Technical data
Technical data
Table 1:
Properties of the
DPV1-gateways
Note
This section corresponds to the respective chapter in the manuals for the DPV0-gateways (BL20:
German D300822/ English D300458; BL67: German D300570/ English D300527).
The BL××-gateways for DPV1 show the following special properties:
This section corresponds to the respective chapter in the manuals for the DPV0-gateways (BL20:
German D300822/ English D300458; BL67: German D300570/ English D300527).
D300956 0210 - BL67/BL20 - DPV12-6
Page 23
Addressing
Addressing
Note
This section corresponds to the respective chapter in the manuals for the DPV0-gateways (BL20:
German D300822/ English D300458; BL67: German D300570/ English D300527).
2
D300956 0210 - BL67/BL20 - DPV1
2-7
Page 24
BL××-gateways for PROFIBUS-DPV1
Module description in the Electronic Device Data Sheets (GSD)
The BL××-gateways are integrated into PROFIBUS structures using electronic device data sheets (GSD).
Note
The GSD-files for the BL××-DPV1-gateways do not allow the module representation according to
type. Only the standard module representation is possible. For further information, please read
the manuals for the DPV0-gateways (BL20: German D300822/ English D300458; BL67: German
D300570/ English D300527).
The modules are identified in the BL××-DPV1-gateways by means of their indent-number.
D300956 0210 - BL67/BL20 - DPV12-8
Page 25
Parameterization
Parameterization
Gateway parameters
The BL××-gateways for PROFIBUS-DPV1 use 5 bytes of parameter data which exclusively describe the
behavior of the gateway.
Description of the gateway parameters
The texts in the columns "parameter name" and "value" correspond to those defined in the electronic device
data sheets (GSD-files).
2
Table 2:
Gateway
parameters
A default-
settings
Byte/
parameter name
general parameters
Byte 0: reserved
Byte 1:
–Bit 0:
startup when expected/actual config. differ
– Bit 1 to 7: reserved
Byte 2:
– Bit 0 to 5: reserved
ValueMeaning
0 activated AReaction depending on the parameter Bit 6: Static
1 deactivatedReaction depending on the parameter Bit 6: Static
configuration, byte 4, bit 6 → If the static configuration
is deactivated, the process data exchange is not
disturbed in case of module sequence error.
configuration, byte 4, bit 6 → If the static configuration
is activated, the process data exchange is not
disturbed in case of module sequence error.
– Bit 6: reserved (depending on the configuration tool)
–Bit 7:
DP-Alarm-Mode
D300956 0210 - BL67/BL20 - DPV1
0DPV0-
1DPV1 ADPV1-specific parameters are activated.
2-9
Page 26
BL××-gateways for PROFIBUS-DPV1
Table 2:
Gateway
parameters
A default-
settings
Byte/
parameter name
device specific parameters
Byte 3:
–Bit 0 and 1:
Outputs module sequence deviation
ValueMeaning
00Output 0 AThe gateway switches the outputs of the modules to
01Output substitute
value
10Hold current value The gateway maintains the actual output settings of
"0". No error information is transmitted.
The gateway switches the outputs of all modules
(with the exception of analog output modules) to "0".
Error information is transmitted to the analog output
modules. Depending on their configuration, these
modules decide to 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".
all modules, (with the exception of analog output
modules). Error information is transmitted to the
analog output modules. Depending on their configuration, these modules decide to set their outputs
either to "0" or to a default value, or to maintain the
original values. The non-configured analog output
modules maintain their current output settings.
11Exchange process
–Bit 2 and 3:
Outputs module sequence error
00Output 0 AThe gateway switches the outputs of the modules to
01Output substitute
data
value
The gateway carries on exchanging process data with
the other module bus stations. No error information is
transmitted.
"0". No error information is transmitted.
The gateway switches the outputs of all modules
(with the exception of analog output modules) to "0".
Error information is transmitted to the analog output
modules. Depending on their configuration, these
modules decide to 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".
D300956 0210 - BL67/BL20 - DPV12-10
Page 27
Parameterization
Table 2:
Gateway
parameters
A default-
settings
Byte/
parameter name
–Bit 4 and 5:
Outputs fieldbus error
ValueMeaning
10Hold 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 decide to set their outputs
either to "0" or to a default value, or to maintain the
original values. The non-configured analog output
modules maintain their current output settings.
11Exchange process
data
00output 0 AThe gateway switches the outputs of the modules to
01output substitute
value
The gateway carries on exchanging process data with
the other module bus stations. No error information is
transmitted.
"0”. No error information is transmitted.
The gateway switches the outputs of all modules
(with the exception of analog output modules) to "0”.
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 maintain the original values. The non-configured analog output modules set their outputs to "0”.
2
Byte 4:
–Bit 0:
Integer data format
–Bit 1:
Diagnostics from
modules
11Hold 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 maintain the original values. The
non-configured analog output modules maintain
their current output settings.
0 LSB firstData is converted to INTEL format (standard format).
1 MSB first16-bit data are transmitted with the high and low
bytes reversed (MOTOROLA format). This parameter
influences the process data!
0 activate ADiagnostic messages from the module bus stations
are made known to the fieldbus master as extended
diagnostics.
1 deactivateDiagnostic messages from the module bus stations
will not be displayed. A station diagnostic is not automatically generated along with module diagnostics.
D300956 0210 - BL67/BL20 - DPV1
2-11
Page 28
BL××-gateways for PROFIBUS-DPV1
Table 2:
Gateway
parameters
A default-
settings
Byte/
parameter name
–Bit 2:
diagnostics
V
O
–Bit 3:
reserved
–Bit 4:
I/O-ASSISTANT ForceMode
ValueMeaning
0 activate AThe monitoring function for the field supply V
gateway and power feeding modules) is activated.
If this parameter is set but the parameter "Diagnostics
from modules" (see bit 1) deactivated, then only the
voltage supply at the gateway is monitored. A monitoring of the voltage supply at the power feeding
module is not realized.
1 deactivate
0 release AI/O-ASSISTANT can set the force mode.
1 blockI/O-ASSISTANT cannot set the force mode, if the
station was parameterized by the DP master.
(from
O
–Bit 6:
Static configuration
–Bit 7:
reserved
0 activate AChanges in the station configuration are stored in the
gateway following a power-on reset.
In case of a module sequence error, a process data
exchange is still possible.
1 deactivateIf the static configuration is deactivated, a dynamic
configuration take-over is realized directly following
station configuration changes (important for acyclic
parameterization).
The station stops the process data exchange and the
bus communication as soon as a module sequence
error appears, ignoring the parameterization for error
handling. But, the communication is not interrupted,
if the gateway-parameter byte 1, bit 0 "startup when
expected/actual config. differ" (see page 2-9) is activated.
D300956 0210 - BL67/BL20 - DPV12-12
Page 29
Parameterization
Module parameters
Table 3:
Parameters with
DPV1-gateway
for
BL67-4DI-PD
A default-
setting
B n = 0
When using the BL××-DPV0-gateways, whether the standard module representation or the module representation according to type can be chosen for the I/O-modules. This setting influences the number of
parameter bytes for the single modules.
The DPV1-gateway does not support these different types of module representation.
Note
The number of parameter bytes for the modules in DPV1 always
corresponds to the number of parameter bytes in the module representation according to type.
Example:
1 parameters: BL67-4DI-PD with DPV1-gateway
ByteBitParameter Value/ Meaning
n B0input filter 10 = deactivate A
...
3input filter 4
n + 1 0digital input 10 = normal A
...
1 = activate
1 = inverted
2
Table 4:
Parameters with
DPV0-gateway
BL67-4DI-PD
A default-set-
ting
→
B n = 0
module representation
acc. to type
→
n = 1
standard
module representation
3digital input 3
n + 2 0Operation mode
group A
1Operation mode
group B
2 parameters: BL67-4DI-PD with DPV0-gateway
ByteBitParameter Value/Meaning
n B0input filter 10 = deactivate A
...
3input filter 4
n + 1 0digital input 10 = normal A
...
3digital input 3
n + 2 0Operation mode
group A
0 = normal A
1 = open circuit monitoring
1 = activate
1 = inverted
0 = normal A
1 = open circuit monitoring
1Operation mode
D300956 0210 - BL67/BL20 - DPV1
group B
2-13
Page 30
BL××-gateways for PROFIBUS-DPV1
Parameter "module parameterization"
Each parameterizable module within the BL20/BL67-product range, gets the additional parameter "module
parameterization" via the GSD-file of the respective DPV1-gateway.
Note
This parameter is not part of the module parameters, but is only important for the communication between gateway and the modules.
"module parameterization" activated
The module receives its parameter settings from the DPV0-master with every change of the station to
"Data_Exchange".
Changes in the parameter settings, which were done in the meantime for example by a Class2-master, a
configuration tool or similar, are overwritten by the valid parameter telegram of the master.
"module parameterization" deactivated
Changes in the parameter settings, which were done for example by a Class2-master, a configuration
tool or similar, are stored in the module.
Parameter telegrams from a DPV0-master are ignored for the respective module. The module is now
blocked and a DPV0-parameter access is no longer possible.
Attention
If the parameter "module parameterization" is deactivated, the module parameterization is only
possible via acyclic services or configuration tools (e.g. I/O-ASSISTANT)!
If a module is replaced by a new one, the gateway has to be operated with active U
, in order to
sys
keep the module’s parameter-settings for the new module.
has to be switched-off and the station has to be separated from the field bus.
U
L
Now, the gateway sends the parameters defined for the old module, into the new module.
D300956 0210 - BL67/BL20 - DPV12-14
Page 31
Status indicators/ diagnostic messages gateway
Status indicators/ diagnostic messages gateway
The gateway transmits the following diagnostics:
undervoltage detection for system and field supply,
the status of the BL67 station,
the communication via the internal module bus,
the communication to PROFIBUS-DP
the status of the gateway.
Diagnostic messages are displayed in two ways:
via individual LEDs
via the software of the respective fieldbus master (for example, PLC)
Diagnostic messages via LEDs
Note
This section corresponds to the respective chapter in the manuals for the DPV0-gateways (BL20:
German D300822/ English D300458; BL67: German D300570/ English D300527).
Diagnostic messages via the software
2
The diagnostic messages are displayed in the corresponding software of the PROFIBUS-DP master as diagnostic bytes.
For the meaning of the individual diagnostic bits for the BL××-DPV1-gateways, please refer to the following
section.
D300956 0210 - BL67/BL20 - DPV1
2-15
Page 32
BL××-gateways for PROFIBUS-DPV1
PROFIBUS-DP
diagnosis
PROFIBUS-DP
diagnosis
...
Byte 0
Byte 0
Byte 0
Byte 19
...
Byte 0
Byte 13
Byte 5
Status message
(Including manufacturer specific
gateway and module diagnosis)
Status message
(Including manufacturer specific
gateway and module diagnosis)
...
Module status
(2 bits per module show the
module status)
Module status
(2 bits per module show the
module status)
Byte 2
...
...
Byte 2
Byte 2
...
Channel specific diagnosis
module 0
Channel specific diagnosis
module 0
Channel specific diagnosis
module n
Channel specific diagnosis
module n
Standard
diagnosis
Standard
diagnosis
Extended Diagnosis
...
...
...
...
The diagnosis telegram
The diagnosis telegram of the BLxx-DPV1-gateways is structured as follows:
Figure 1:
The diagnosis
telegram of the
BLxx-DPV1gateways
D300956 0210 - BL67/BL20 - DPV12-16
Page 33
The diagnosis telegram
Status message
Table 5:
Status message
Byte 0Byte 1Byte 2Byte 3Byte 4/5Byte 6
to 13
block header
byte
Byte 0Block header byte:
Byte 1Status type:
Byte 2 Slot number:
Byte 3Specifier: "0" = no further differentiation
Byte 4 and
Byte 5
status type slot-no. specifiergateway-diag-
This header byte defines status- and alarm-PDUs (bit 6 and bit 7 = "00"). In addition to that,
it contains information about the length of the diagnosis telegram (length = 14 bytes).
The header byte included.
bit 7 = 1 (defines, that the message is a status-PDU).
bit 0 to 6: define the type of the status-PDU:
bit 0 = 1 →
Always "0", because the gateway is the first module of the station.
Gateway diagnosis (see also section Description of the gateway diagnosis bytes, page
2-20)
Byte 4, bit 0 shows, if a module within the station sends a diagnosis (bit 0 = 1) or not (bit 0
= 0).
status message
nosis
Commonmodulediagnosis
2
Byte 6 to 13Common module diagnosis (1 bit per module)
Shows, which module sends a diagnosis, if a wrong module is plugged or if a module is
missing).
Note
In the 8 byte-common module diagnosis (bytes 6 to 13), 1 bit is reserved for every module. A status message can thus display diagnosis messages of at most 64 modules.
These 8 bytes are always sent. So, it is not relevant, if the modules within the station send diagnosis messages or not. Additionally, the status message is independent of the actual number of
modules in the station.
Pending diagnosis messages are indicated by "1". "0" indicates no active diagnosis message.
D300956 0210 - BL67/BL20 - DPV1
2-17
Page 34
BL××-gateways for PROFIBUS-DPV1
Module status
Byte 0Byte 1Byte 2Byte 3Byte 4 to 19
Table 6:
Module status
block header
byte
Byte 0Block header byte:
Byte 1Stat
Byte 2 Slot number:
Byte 3Specifier: "0" = no further differentiation
Byte 4 to 19Module status (2 bits per module):
status typeslot-no.specifier module diagnosis
This header byte defines status- and alarm-PDUs (bit 6 and bit 7 = "00"). In addition to
that, it contains information about the length of the diagnosis telegram (length
20 bytes)
bit 7 = 1 (defines, that the message is a status-PDU).
bit 0 to 6: define the type of the status-PDU:
bit 1 = 1 →
Always "0", because the gateway is the first module of the station.
00 = data valid, ok.
01 = module sends a diagnosis; data not valid, for example "short-circuit".
10 = wrong module at slot (the plugged module does not correspond to the module
11 = module missing (no module is plugged, although it is planned in the reference
. The header byte is included.
us type:
module status
planned in the reference module list of the gateway); data not valid
module list of the gateway); data not valid.
(2 bits per module)
=
Note
In the 16 byte-module status (bytes 4 to 19), 2 bits are reserved for every module. A module status
can thus display diagnosis messages of at most 64 modules.
These 16 bytes are always sent. So, it is not relevant, if the modules within the station send diagnosis messages or not. Additionally, the module status is independent of the actual number of
modules in the station.
Please refer to Table 6: Module status for the meaning of the diagnosis message. "0" indicates no
active diagnosis message.
D300956 0210 - BL67/BL20 - DPV12-18
Page 35
The diagnosis telegram
Channel-specific diagnosis
Table 7:
channel specific
diagnosis
The channel-specific diagnosis consists of 3 bytes per module:
Defines the channel specific diagnosis via
bit 6 and bit 7 = "10". In addition to that, it contains the number of the module which
sends the diagnosis message (bit to bit 5).
Byte 2Module:
Bit 0 to bit 5 contain the channel number.
Bit 6 and bit 7 define, if the channel is an input or an output channel:
01 = input
10 = output
11 = in- and output
Byte 3Diagnosis message:
Bit 5 to bit 7 define, if the module is a bit-, byte- or word-oriented module:
Bit 0 to bit 4 contain an error code (decimal), which specifies the diagnosis message (see
section Channel-specific diagnosis messages of the modules, page 2-22)
Note
The channel-specific diagnosis is generated for every channel of a module within a station, which
is actually present and which sends active diagnosis.
D300956 0210 - BL67/BL20 - DPV1
2-19
Page 36
BL××-gateways for PROFIBUS-DPV1
Description of the gateway diagnosis bytes
Table 8:
Gateway
diagnosis byte
Diagnosis
BitDescription
byte
Byte 1Gateway warnings
Module diagnostics available
00 = No module bus station is signaling a diagnostic.
1 = At least one module bus station with diagnostic function is
signaling a diagnostic.
1reserved
2reserved
Byte 13Station configuration changed
0 = The actual list of modules matches the configuration set in the
configuration software of the corresponding fieldbus master.
1 = The actual list of modules has been altered in such a manner, that
process data can still be exchanged with the module bus stations
which are at present connected to the module bus. The constellation of the module bus station that is set in the configuration software (CheckConfig-Cmd) of the corresponding fieldbus master
serves as a reference.
4undervoltage field supply V
0 = field supply VO is within the permissible range
1 = field supply V
is not within the permissible range
O
5reserved-
Byte 16undervoltage field supply V
0 = field supply VI is within the permissible range
1 = field supply V
is not within the permissible range
I
7Overcurrent/ Short circuit I
0 = current II is within the permissible range
1 = current I
is not within the permissible range
I
O
I
I
D300956 0210 - BL67/BL20 - DPV12-20
Page 37
The diagnosis telegram
Table 8:
Gateway
diagnosis byte
Diagnosis
byte
Byte 2 Gateway errors
BitDescription
0...1reserved-
2Module bus error
3Master configuration error
4reserved
2
0 = Communication with the module bus station on the module bus is
possible.
1 = Communication with the module bus station on the module bus is
not possible.
0 = The actual list of modules matches the configuration set in the
configuration software of the corresponding fieldbus master.
1 = The actual list of modules has been altered in such a manner, that
no process data can be exchanged with the module bus stations
which are at present connected to the module bus. The constellation of the module bus station, set in the configuration software of
the corresponding fieldbus master serves as a reference.
5Station configuration error
0 = The gateway has prepared the station’s configuration to be read
out.
1 = The gateway could not prepare the station’s configuration to be
read out.
Byte 26I/O-ASSISTANT Force Mode active
0 = The fieldbus master can access the parameter, diagnostics and
process data of the module bus stations.
1 = The force mode has been activated via the service interface (by
I/O-ASSISTANT). This separates the fieldbus master from the
outputs of the module bus stations. No process data exchange is
taking place from the fieldbus master to the output modules.
7reserved
D300956 0210 - BL67/BL20 - DPV1
2-21
Page 38
BL××-gateways for PROFIBUS-DPV1
Channel-specific diagnosis messages of the modules
DPV1 - error codes
On PROFIBUS-DP, the channel-specific diagnosis messages are display as DPV1-error codes and defined as
follows.
The corresponding module diagnostics are shown in Table 10:Error codes / module diagnostics.
Table 9:
Channel-specific
diagnosis
Value
(dec.)
Error-Codes (1 to 9 according to DP-spec.)
1short-circuit
2undervoltage
3overvoltage
4overload
5overtemperature
6wire-break
7upper limit value exceeded
8lower limit value exceeded
9error
Error-Codes (16 to 31, manufacturer-specific)
16Parameterization error
Diagnostic message
After a validity check, the parameter data are (partially) rejected by the module. Check
the context of parameters.
21Hardware failure
The module detected a hardware failure. Exchange the module.
22Communication failure
The module detected a communication problem at its ports, e. g. RS232/485/422, SSI or
other interface. Check the connection or the function of the attached devices.
23Direction error
The direction is detected to be wrong. Check the parameterization or the control interface versus use case.
24User software error
The module detected an user application software error. Check the interoperability of
the user application software revisions. Reinitialize user the application software of the
module.
25Cold-junction compensation error
The module detected a defect or missing cold-junction compensation.
26Sensor supply load dump
The module detected a load dump at the sensor supply.
27Unkown error
D300956 0210 - BL67/BL20 - DPV12-22
Page 39
The diagnosis telegram
Table 9:
Channel-specific
diagnosis
Table 10:
Error codes /
module diagnostics
Value
Diagnostic message
(dec.)
28Common error
The module detected an error.
29Configuration error
The module detected an error in the configuration.
Meaning of the DPV1-error codes for the BL××-I/O-modules
The gateway translates the diagnostic messages sent from the BLxx-I/O-modules into DPV1-error codes.
The following table defines which module diagnostic is displayed as which DPV1-error code.
DPV1- error code Possible module diagnostics
No.
(dec.)
TextBL20/
BL67
I/O moduleDiagnostic message of the module
1Short-circuitBL20BL20-2AIH-IShort-circuit
BL20-4DI-NAMURShort-circuit sensor
2UndervoltageBL20BL20-PF-24VDCUndervoltage field supply
BL20-BR-24VDCUndervoltage field supply
2
3Overvoltage
Module bus undervoltage warning
BL20-E-1SWIREVoltage U
SW
, U
BL20-2RFID-xTransceiver indicates power supply
error
BL67BL67-PF-24VDCLow voltage V
BL67-2RFID-×Transceiver indicates power supply
error
SWERR
/ Low voltage V
I
O
D300956 0210 - BL67/BL20 - DPV1
2-23
Page 40
BL××-gateways for PROFIBUS-DPV1
Table 10:
Error codes /
module diagnostics
DPV1- error code Possible module diagnostics
No.
(dec.)
TextBL20/
BL67
I/O moduleDiagnostic message of the module
4OverloadBL20BL20-PF-24VDC-DOverload or short-circuit
BL20-PF-120/230VACD
BL20-xDO-24VDC-
0.5A-×
BL20-1CNT-24VDCERR_DO (Short-circuit/ open circuit at
Example configuration ........................................................................................................................................................................................3
Acyclic data transfer with system function bocks (SFBs) by Siemens ................................................................................................4
Acyclic reading with SFB52 ......................................................................................................................................................................... 4
– Example .........................................................................................................................................................................................................5
Acyclic writing with SFB53 ..........................................................................................................................................................................6
– Example .........................................................................................................................................................................................................8
Example of DPV1-diagnosis............................................................................................................................................................................ 11
D300956 0210 - BL67/BL20 - DPV1
3-1
Page 48
Connection to a Siemens PLC S7
General
This chapter contains detailed information about the particularities when connecting a BLxx-DPV1-gateway
to a Siemens PLC S7.
Note
For general information about the connection of the BL20- and BL67-gateway for PROFIBUS-DP
to a Siemens PLC, please read the respective chapters/ paragraphs in the documentation for the
DPV0-gateways (BL20: German D300822/ English D300458; BL67: German D300570/ English
D300527).
D300956 0210 - BL67/BL20 - DPV13-2
Page 49
Example configuration
Example configuration
The application examples described in the following are always based on the following configuration:
Used hardware:
PLC S7, CPU-315F-2 DP from Siemens
BL67-example station (see the following table) with BL67-GW-DPV1 for the connection to
PROFIBUS-DPV1
3
Table 1:
Example
station
Module no. Module name
BL67-GW-DPV1
1BL67-2AI-I
2BL67-4DI-P
3BL67-8DI-PD
4BL67-1RS232
5BL67-8XSG-PD
6BL67-4DI-PD
7BL67-2AI-I
8BL67-2AI-TC
Used software:
Simatic Manager V 5.2 from Siemens
D300956 0210 - BL67/BL20 - DPV1
3-3
Page 50
Connection to a Siemens PLC S7
Acyclic data transfer with system function bocks (SFBs) by Siemens
The need for acyclic data transfer exists wherever slave devices which provide several parameterization
options have to be parameterized during operation.
In the Siemens PLC, the acyclic services are executed via the system function blocks SFB52 "RDREC" and
SFB53 "WRREC".
The access to the process data of the gateway and the connected I/O-modules in a station is realized via the
indices of the Gateway Application Instance and the Module Application Instance, see Chapter 2Description
of user data for acyclic services.
Acyclic reading with SFB52
Figure 1:
SFB52 (RDREC)
Table 2:
Input data
SFB52
Table 3:
Output data
SFB52
Parameter nameMeaning
REQREQ = 1, starts the data transmission
IDLogical address of the respective BL××-I/O-module, taken from the
hardware configuration.
When establishing a connection to the gateway, the logical address
is the "Diagnostic Address" assigned in the hardware configuration.
Note:
If the module to be addressed is an output module, bit 15 has to be
set (e.g. for address 5: ID:=DW#16#8005). If the module concerned
is a combination module, the lowest address has to be chosen.
INDEXNumber of the module’s index to be read (see see Chapter 2,
Description of user data for acyclic services).
MLENMaximum length of the data to be read.
Parameter nameMeaning
VALIDNew data set was received and valid.
BUSYBUSY= 1: The read process is not yet terminated.
ERRORERROR = 1:Error occurred while reading.
STATUSError code of the function block (see Siemens-online help for SFB54 "RALRAM")
LENLength of the read data.
RECORDTarget area for the read data record. (here in this example DB10).
D300956 0210 - BL67/BL20 - DPV13-4
Page 51
Acyclic data transfer with system function bocks (SFBs) by Siemens
B
A
Example
Acyclic reading of input data at module no.6, BL67-4DI-PD of the example station:
The access to the module input data is done via module index no. 19 from the module application instance:
Table 4:
Module Application Instance
(exerpt)
Figure 2:
Station structure in the hardware
configuration
Index
(dec.)
...
19Input dataspecificrInput data of the
...
NameData typer/w Remark
respective module.
Note
A detailed description of the Module Application Instance can be found in Chapter 2 Module Ap-
plication Instance, page 2-29.
3
Figure 3:
Access via
SFB52
A logical ad-
dress of
channel 1
from module no.6
B Index no.
D300956 0210 - BL67/BL20 - DPV1
3-5
Page 52
Connection to a Siemens PLC S7
A
The module’s input data are shown in DB10:
Figure 4:
DB10 in VAT1
A channel 3 is
active
Note
As the PLC always accesses the bus and the connected stations even during the acyclic data traffic, the transmitted values are permanently updated.
Figure 5:
SFB53 (WRREC)
Table 5:
Input data SFB52
Acyclic writing with SFB53
Parameter nameMeaning
REQREQ = 1, starts the data transmission
IDLogical address of the respective BL××-I/O-module, taken from the hardware config-
uration.
When establishing a connection to the gateway, the logical address is the "Diagnostic
Address" assigned in the hardware configuration.
Note:
If the module to be addressed is an output module, bit 15 has to be set (e.g. for
address 5: ID:=DW#16#8005). If the module concerned is a combination module, the
lowest address has to be chosen.
INDEXNumber of the module’s index to be written (see see Chapter 2, Description of user
data for acyclic services).
MLENMaximum length of the data to be written.
D300956 0210 - BL67/BL20 - DPV13-6
Page 53
Acyclic data transfer with system function bocks (SFBs) by Siemens
Table 6:
Output data
SFB52
Parameter nameMeaning
VALIDNew data set was written and valid.
BUSYBUSY = 1: The write process is not yet terminated.
ERRORERROR = 1: Error occurred while writing.
STATUSError code of the function block (see Siemens-online help for SFB54 "RALRAM").
LENLength of the written data.
RECORDTarget area for the written data record. (here in this example DB11).
3
D300956 0210 - BL67/BL20 - DPV1
3-7
Page 54
Connection to a Siemens PLC S7
A
B
Example
Acyclic writing of parameters to module no. 7, BL67-2AI-I of the example station:
The access to the module input data is done via module index no. 31 from the module application instance:
Table 7:
Module Application Instance
(exerpt)
Figure 6:
Station structure in the hardware
configuration
Index
(dec.)
...
31Module
...
NameData typer/w Remark
parameters
Note
A detailed description of the Module Application Instance can be found in Chapter 2BL××-gate-
ways for PROFIBUS-DPV1, page 2-29.
specificr/w Parameters of the
respective module
Figure 7:
Access via
SFB53
A logical
address of
channel 1
from module no. 7
B Index no.
D300956 0210 - BL67/BL20 - DPV13-8
Page 55
Acyclic data transfer with system function bocks (SFBs) by Siemens
A
Changing the parameters
Table 8:
Parameters
BL67-2AI-I
A default
setting
ByteBitParameter Value/Meaning
–Kanal 0
0 0Current mode0 = 0...20 mA A
1 = 4...20 mA
1Value
representation
2Diagnosis0 = release A
3Channel 0 = activate A
– Channel 1
1 Assignment similar to byte n, channel 0
The following parameters have to be changed:
"Current mode" → "4 to 20 mA"
"Value representation" → "12 bit left-justified".
To achieve this, bit 0 and bit 1 of byte 0 have to be set to "1" in DB11.
0 = Integer
(15 bit + sign) A
1 = 12 bit (left-justified)
1 = block
1 = deactivate
3
Figure 8:
DB11 in VAT1
A Channel 0,
Bit 0 = 1 and
Bit 1 = 1
The module’s parameter data are written to byte 1 via DB11:
D300956 0210 - BL67/BL20 - DPV1
3-9
Page 56
Connection to a Siemens PLC S7
Table 9:
Parameter
settings in the
I/O-ASSISTANT
D300956 0210 - BL67/BL20 - DPV13-10
Page 57
Example of DPV1-diagnosis
B
C
A
Example of DPV1-diagnosis
In addition to the device related diagnosis according to DPV0 and DPV1, the BL××-gateways for PROFIBUSDPV1 even show channel related diagnosis.
Furthermore a special help text, which clearly specifies the error, is defined for each diagnostic message.