turck BL20, BL67 User Manual

Page 1
BL20/BL67-
USER MANUAL FOR PROFIBUS-DPV1
Page 2
All brand and product names are trademarks or registered trade marks of the owner concerned.
Edition 02/2010
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, emergency­stop 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.
D300956 0210 - BL67/BL20 - DPV1
I
Page 4
D300956 0210 - BL67/BL20 - DPV1II
Page 5
Table of Contents
About this Manual
Documentation Concept ...................................................................................................................1-2
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
1 PROFIBUS-DPV1
General..............................................................................................................................................1-2
Acyclic data transfer .........................................................................................................................1-3
DPV1-functions ............................................................................................................................................................................. 1-3
DPM1 versus DPM2...................................................................................................................................................................... 1-3
Addressing the data in DPV1 ............................................................................................................1-4
2 BL××-gateways for PROFIBUS-DPV1
Introduction ......................................................................................................................................2-2
Function ............................................................................................................................................2-3
Important notes concerning the DPV1-gateways .............................................................................2-4
Compatibility .................................................................................................................................................................................2-4
Diagnosis ......................................................................................................................................................................................... 2-4
Technical data ...................................................................................................................................2-5
Connection options ..........................................................................................................................2-6
Addressing ........................................................................................................................................ 2-7
Module description in the Electronic Device Data Sheets (GSD).......................................................2-8
Parameterization ..............................................................................................................................2-9
Gateway parameters ................................................................................................................................................................... 2-9
Module parameters ...................................................................................................................................................................2-13
Parameter "module parameterization" ..............................................................................................................................2-14
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
Channel-specific diagnosis .....................................................................................................................................................2-19
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
Gateway Application Instance...............................................................................................................................................2-28
Module Application Instance .................................................................................................................................................2-29
3 Connection to a Siemens PLC S7
General..............................................................................................................................................3-2
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
4Index
D300956 0210 - BL67/BL20 - DPV1ii
Page 7

About this Manual

Documentation Concept.................................................................................................................................................................................... 2
General Information ............................................................................................................................................................................................. 3
Prescribed Use .................................................................................................................................................................................................3
Notes Concerning Planning /Installation of this Product ................................................................................................................ 3
Description of Symbols Used ..........................................................................................................................................................................4
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-inde­pendent 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 elec­trical 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 main­tenance 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 soft­ware) 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 un­necessary 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
Chapter Subject/
new change
description
Chap. 2tp Channel-specific diagnosis messages of the modules, page 2-22 X
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.
D300956 0210 - BL67/BL20 - DPV1
0-5
Page 12
About this Manual
D300956 0210 - BL67/BL20 - DPV10-6
Page 13

1PROFIBUS-DPV1

General......................................................................................................................................................................................................................2
Acyclic data transfer ............................................................................................................................................................................................. 3
DPV1-functions ...............................................................................................................................................................................................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 commu­nication.
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.
D300956 0210 - BL67/BL20 - DPV11-4
Page 17
2 BL××-gateways for PROFIBUS-DPV1
Introduction ............................................................................................................................................................................................................2
Function....................................................................................................................................................................................................................3
Important notes concerning the DPV1-gateways.....................................................................................................................................4
Compatibility ...................................................................................................................................................................................................4
Diagnosis ...........................................................................................................................................................................................................4
Technical data.........................................................................................................................................................................................................5
Connection options ............................................................................................................................................................................................. 6
Addressing............................................................................................................................................................................................................... 7
Module description in the Electronic Device Data Sheets (GSD)......................................................................................................... 8
Parameterization ...................................................................................................................................................................................................9
Gateway parameters .....................................................................................................................................................................................9
– Description of the gateway parameters ............................................................................................................................................9
Module parameters .................................................................................................................................................................................... 13
Parameter "module parameterization" ............................................................................................................................................... 14
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
Channel-specific diagnosis ...................................................................................................................................................................... 19
Description of the gateway diagnosis bytes ..................................................................................................................................... 20
Channel-specific diagnosis messages of the modules .................................................................................................................. 22
– DPV1 - error codes .................................................................................................................................................................................. 22
– Meaning of the DPV1-error codes for the BL××-I/O-modules ................................................................................................ 23
Description of user data for acyclic services ............................................................................................................................................ 28
Gateway Application Instance................................................................................................................................................................ 28
Module Application Instance .................................................................................................................................................................. 29
D300956 0210 - BL67/BL20 - DPV1
2-1
Page 18
BL××-gateways for PROFIBUS-DPV1

Introduction

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 docu­mentation 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 differ­ent indent numbers and different GSD-files.

Diagnosis

Note
The new DPV1-gateways allow the DP-standard-diagnosis according to PROFIBUS-DP specifica­tion. 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:
Maximum number of modules in a station
BL67 32
BL20 48
Parameters max. 244 bytes
(3 bytes DPV1 + 2 bytes gateway + 239 module parameters)
Configuration max. 244 bytes
Diagnosis max. 244 bytes
(6 bytes standard-diagnosis + 239 bytes user-diagnosis)
Input data max. 244 bytes
2
Output data max. 244 bytes
Master Class2 interface
supported acyclic services READ
I&M (identification & maintaining) I&M0,
1 channel
WRITE
acc. PROFIBUS-DP-specification
D300956 0210 - BL67/BL20 - DPV1
2-5
Page 22
BL××-gateways for PROFIBUS-DPV1

Connection options

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).
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
Value Meaning
0 activated A Reaction depending on the parameter Bit 6: Static
1 deactivated Reaction 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 A DPV1-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
Value Meaning
00 Output 0 A The gateway switches the outputs of the modules to
01 Output substitute
value
10 Hold 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 configu­ration, 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.
11 Exchange process
–Bit 2 and 3:
Outputs module sequence error
00 Output 0 A The gateway switches the outputs of the modules to
01 Output 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
Value Meaning
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 configu­ration, 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.
11 Exchange process
data
00 output 0 A The gateway switches the outputs of the modules to
01 output 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-config­ured analog output modules set their outputs to "0”.
2
Byte 4:
–Bit 0:
Integer data format
–Bit 1:
Diagnostics from modules
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 configu­ration, 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 first Data is converted to INTEL format (standard format).
1 MSB first 16-bit data are transmitted with the high and low
bytes reversed (MOTOROLA format). This parameter influences the process data!
0 activate A Diagnostic messages from the module bus stations
are made known to the fieldbus master as extended diagnostics.
1 deactivate Diagnostic messages from the module bus stations
will not be displayed. A station diagnostic is not auto­matically 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
Value Meaning
0 activate A The 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 moni­toring of the voltage supply at the power feeding module is not realized.
1 deactivate
0 release A I/O-ASSISTANT can set the force mode.
1 block I/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 A Changes 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 deactivate If 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 acti­vated.
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 repre­sentation 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
Byte Bit Parameter Value/ Meaning
n B 0 input filter 1 0 = deactivate A
...
3 input filter 4
n + 1 0 digital input 1 0 = normal A
...
1 = activate
1 = inverted
2
Table 4: Parameters with DPV0-gateway BL67-4DI-PD
A default-set-
ting
B n = 0
module rep­resentation acc. to type
n = 1
standard module rep­resentation
3 digital input 3
n + 2 0 Operation mode
group A
1Operation mode
group B
2 parameters: BL67-4DI-PD with DPV0-gateway
Byte Bit Parameter Value/Meaning
n B 0 input filter 1 0 = deactivate A
...
3 input filter 4
n + 1 0 digital input 1 0 = normal A
...
3 digital input 3
n + 2 0 Operation 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 communica­tion 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 diag­nostic 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-DPV1­gateways
D300956 0210 - BL67/BL20 - DPV12-16
Page 33
The diagnosis telegram

Status message

Table 5: Status message
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4/5 Byte 6
to 13
block header byte
Byte 0 Block header byte:
Byte 1 Status type:
Byte 2 Slot number:
Byte 3 Specifier: "0" = no further differentiation
Byte 4 and Byte 5
status type slot-no. specifier gateway-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
Common­module­diagnosis
2
Byte 6 to 13 Common 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 sta­tus 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 diag­nosis 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 0 Byte 1 Byte 2 Byte 3 Byte 4 to 19
Table 6: Module status
block header byte
Byte 0 Block header byte:
Byte 1 Stat
Byte 2 Slot number:
Byte 3 Specifier: "0" = no further differentiation
Byte 4 to 19 Module status (2 bits per module):
status type slot-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 diag­nosis 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:
2
1 byte Header + 1 byte channel description + 1 byte error-codes
Byte 1 Header
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 2 Module:
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 3 Diagnosis message:
Bit 5 to bit 7 define, if the module is a bit-, byte- or word-oriented module:
001 = bit-oriented 010 = 2 bit-oriented 011 = 4 bit-oriented 110 = word-oriented 111 = double word-oriented
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
Bit Description
byte
Byte 1 Gateway warnings
Module diagnostics available
0 0 = 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 1 3 Station 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 constella­tion of the module bus station that is set in the configuration soft­ware (CheckConfig-Cmd) of the corresponding fieldbus master serves as a reference.
4 undervoltage 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 1 6 undervoltage field supply V
0 = field supply VI is within the permissible range 1 = field supply V
is not within the permissible range
I
7 Overcurrent/ 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
Bit Description
0...1 reserved -
2Module bus error
3 Master 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 constella­tion of the module bus station, set in the configuration software of the corresponding fieldbus master serves as a reference.
5 Station 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 2 6 I/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.)
1 short-circuit
2undervoltage
3overvoltage
4overload
5 overtemperature
6wire-break
7 upper limit value exceeded
8 lower limit value exceeded
9error
Error-Codes (16 to 31, manufacturer-specific)
16 Parameterization error
Diagnostic message
After a validity check, the parameter data are (partially) rejected by the module. Check the context of parameters.
21 Hardware failure
The module detected a hardware failure. Exchange the module.
22 Communication 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.
23 Direction error
The direction is detected to be wrong. Check the parameterization or the control inter­face versus use case.
24 User 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.
25 Cold-junction compensation error
The module detected a defect or missing cold-junction compensation.
26 Sensor supply load dump
The module detected a load dump at the sensor supply.
27 Unkown error
D300956 0210 - BL67/BL20 - DPV12-22
Page 39
The diagnosis telegram
Table 9: Channel-specific diagnosis
Table 10:
Error codes / module diagnos­tics
Value
Diagnostic message
(dec.)
28 Common error
The module detected an error.
29 Configuration 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.)
Text BL20/
BL67
I/O module Diagnostic message of the module
1 Short-circuit BL20 BL20-2AIH-I Short-circuit
BL20-4DI-NAMUR Short-circuit sensor
2 Undervoltage BL20 BL20-PF-24VDC Undervoltage field supply
BL20-BR-24VDC Undervoltage field supply
2
3Overvoltage
Module bus undervoltage warning
BL20-E-1SWIRE Voltage U
SW
, U
BL20-2RFID-x Transceiver indicates power supply
error
BL67 BL67-PF-24VDC Low 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 diagnos­tics
DPV1- error code Possible module diagnostics
No. (dec.)
Text BL20/
BL67
I/O module Diagnostic message of the module
4 Overload BL20 BL20-PF-24VDC-D Overload or short-circuit
BL20-PF-120/230VAC­D
BL20-xDO-24VDC-
0.5A-×
BL20-1CNT-24VDC ERR_DO (Short-circuit/ open circuit at
output DO1)
BL20-E-1SWIRE Overcurrent protective circuit-breaker,
PKZ
ERR
BL20-2RFID-× Ident overcurrent (ransceiver power
supply turned off )
BL20-E-8AI-U/I-4PT/NI Short-circuit (SC)
BL67 BL67-2RFID-x Ident overcurrent (ransceiver power
supply turned off )
BL67-4DI4DO-PD Overcurrent Kx
BL67-8XSG-PD
4 Overload BL67 BL67-1CNT/ENC DIA_Dox
BL67-1CVI Overcurrent VC (at the valve power
supply)
BL67-2AI-PT Short-circuit
5Over temperature
6 Wire-break BL20 BL20-×AI-I(0/4..20MA) Open circuit
BL20-2AIH-I
BL20-E-8AI-U/I-4PT/NI
BL20-2AOH-I
BL20-4DI-NAMUR
BL67 BL67-×DI-PD Open circuit
BL67-2AI-I
BL67-2AI-PT
BL67-2AI-TC
BL67-4AI-V/I
BL67-4AI4AO-V/I
BL67-1SSI
D300956 0210 - BL67/BL20 - DPV12-24
Page 41
The diagnosis telegram
Table 10:
Error codes / module diagnos­tics
DPV1- error code Possible module diagnostics
No. (dec.)
7 Upper limit value
Text BL20/
BL67
BL20 BL20-1CNT-24VDC – End of counter range wrong (counter
exceeded
I/O module Diagnostic message of the module
mode)
– Upper limit wrong (measurement
mode)
BL20-×AI-× Measurement value range error (OoR)
BL20-E-8AI-U/I-4PT/NI
BL20-2AIH-I Overflow
BL20-2AOH-I Value above upper limit
BL67 BL67-1CNT/ENC STS_OFLW (overflow)
BL67-1SSI Sensor value overflow
BL67-×AI-×/
Measurement value range error (OoR)
BL67-×AO-×
BL67-2AI2AO-V/I
8 Lower limit value
exceeded
BL20 BL20-1CNT-24VDC – Start of counter range wrong (counter
mode)
– Lower limit wrong (measurement
mode)
2
BL20-×AI-× Measurement value range error (OoR)
BL20-E-8AI-U/I-4PT/NI
BL20-2AIH-I Underflow
BL20-2AOH-I Value below lower limit
BL67 BL67-1CNT/ENC STS_UFLW (underflow)
BL67-1SSI Sensor value underflow
BL67-×AI-×/
Measurement value range error (OoR)
BL67-×AO-×
BL67-2AI-2AO-VI
9 Error BL20 BL20-2AOH-I Invalid value
BL20-E-4AO-U/I Over-/underflow OUFL
BL20-E-8AI-U/I-4PT/NI
BL67 BL67-1CVI DiagNode x/ DiagCVI:
Emergencies transmitted since module start
BL67-×AI×AO-× Over-/underflow OUFL
D300956 0210 - BL67/BL20 - DPV1
BL67-4AO-V
2-25
Page 42
BL××-gateways for PROFIBUS-DPV1
Table 10:
Error codes / module diagnos­tics
DPV1- error code Possible module diagnostics
No. (dec.)
16 Parameterization
Text BL20/
BL67
BL20 BL20-1CNT-24VDC – invert-DI+latch-retr. not perm.
error
I/O module Diagnostic message of the module
(counter mode)
– integration time wrong (measure-
ment mode)
BL20-E-1SWIRE SPS SLAVE, RDYerr
BL20-1RS××× Parameterization error
BL20-1SSI
BL20-2RFID-× Parameter set inalid
BL67 BL67-1RS××× Parameterization error
BL67-1SSI
BL67-1CNT/ENC Parameterization error, ERR_PARA
BL67-2RFID-× Parameter set inalid
21 Hardware error BL20 BL20-2RFID-× Transceiver hardware error
BL20-1RS××× Hardware error
BL20-E-8AI-U/I-4PT/NI
BL20-E-4AO-U/I
BL20-2AIH-I
BL20-2AOH-I
BL67 BL67-2RFID-× Transceiver hardware error
BL67-1RS××× Hardware error
BL67-×AI-×AO-V/I
D300956 0210 - BL67/BL20 - DPV12-26
Page 43
The diagnosis telegram
Table 10:
Error codes / module diagnos­tics
DPV1- error code Possible module diagnostics
No. (dec.)
22 Communication
Text BL20/
BL67
BL20 BL20-1CNT-24VDC Sensor pulse wrong (measurement
error
I/O module Diagnostic message of the module
mode)
BL20-E-1SWIRE – Communication SWIRE, COM
– Communication SWIRE slave, SD
BL20-1RS××× Data flow control error
BL20-2RFID-× Parameter not supported by transceiver
BL20-2AIH-I HART® comm. error
BL20-2AOH-I
BL67 BL67-1CVI – Communication error transmitted
since module start/ Guard Time
– Communication error/ Guard Time
timeout
BL67-2RFID-× Parameter not supported by transceiver
BL67-1RS××× Data flow control error
2
ERR
ERR
23 Direction error BL20 BL20-1CNT-24VDC Main count direction wrong (counter
mode)
24 User software error BL20 BL20-2AIH-I Invalid parameter
BL20-2AOH-I
BL20-2RFID-× Software error
BL67 BL67-2RFID-× Software error
25 Cold-junction
BL67 BL67-2AI-TC No Pt1000 sensor found compensation error
26 Sensor supply load
dump
BL67 BL67-×DI-PD Overcurrent/ short circuit sensor
BL67-4DI4DO-PD
BL67-8XSG-PD
27 Unknown error
28 Common error BL20 BL20-E-1SWIRE General error , GEN
ERR
BL20-1SSI SSI group diagnostics
BL20-2AIH-I HART® status error
29 Configuration
error
D300956 0210 - BL67/BL20 - DPV1
BL20-2AOH-I
BL67 BL67-1SSI SSI group diagnostics
BL20 BL20-E-1SWIRE SWIRE master, SW
ERR
2-27
Page 44
BL××-gateways for PROFIBUS-DPV1

Description of user data for acyclic services

The following instances are defined for the BLxx-DPV1-gateways:
Gateway Application Instance (Slot 0)
Module Application Instance (Slot 1 to n)

Gateway Application Instance

Table 11: Gateway Appli­cation Instance
Index Name Data type r /w Remark
1 Gateway-ID DWORD r Indent number of the gateway
2 Gateway-name STRING r Name of the gateway
3 Gateway-revision STRING r Firmware-revision of the gateway
4 to 23 reserved
24 Gateway-diagnosis WORD r Diagnosis data of the gateway
25 to 27 reserved
28 Gateway-
parameters
29 to 31 reserved
32 Module-input-list Array of BYTE r List of all input channels in the
33 Module-output-list Array of BYTE r List of all output channels in the
34 Modul-diag.-list Array of BYTE r List of all module diagnosis
35 Module-parameter-list Array of BYTE r List of all module parameters
WORD r/w Parameter data of the gateway
station
station
messages
36 to 244 reserved
255 I&M-functions r/w Identification & Maintaining-
services, I&M0 according to PROFIBUS-DP specification
D300956 0210 - BL67/BL20 - DPV12-28
Page 45
Description of user data for acyclic services

Module Application Instance

Table 12: Module Applica­tion Instance
Index Name Data type r/w Remark
1 Modul-ID DWORD r Indent number of the module
2Modul-type ENUM
UINT8
3 Modul-revision UINT8 r Firmware-Revision of the module
4 to 18 reserved
19 Input-data specific r Input data of the respective module
20 to 22 reserved
23 Output-data specific r/w Output data of the respective module
24 to 30 reserved
31 Module-parameters specific r/w Parameters of the respective modules
32 to 255 Profile-specific These indices are reserved for the data of several module
profiles (e. g. RFID). The definitions of the profile indices can be found in the respective module descriptions.
rModule type
2
D300956 0210 - BL67/BL20 - DPV1
2-29
Page 46
BL××-gateways for PROFIBUS-DPV1
D300956 0210 - BL67/BL20 - DPV12-30
Page 47

3 Connection to a Siemens PLC S7

General......................................................................................................................................................................................................................2
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
4 BL67-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 2 Description
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 name Meaning
REQ REQ = 1, starts the data transmission
ID Logical 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.
INDEX Number of the module’s index to be read (see see Chapter 2,
Description of user data for acyclic services).
MLEN Maximum length of the data to be read.
Parameter name Meaning
VALID New data set was received and valid.
BUSY BUSY= 1: The read process is not yet terminated.
ERROR ERROR = 1:Error occurred while reading.
STATUS Error code of the function block (see Siemens-online help for SFB54 "RALRAM")
LEN Length of the read data.
RECORD Target 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 Applica­tion Instance (exerpt)
Figure 2: Station struc­ture in the hard­ware configuration
Index (dec.)
...
19 Input data specific r Input data of the
...
Name Data type r/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 mod­ule 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 traf­fic, the transmitted values are permanently updated.
Figure 5: SFB53 (WRREC)
Table 5: Input data SFB52

Acyclic writing with SFB53

Parameter name Meaning
REQ REQ = 1, starts the data transmission
ID Logical 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.
INDEX Number of the module’s index to be written (see see Chapter 2, Description of user
data for acyclic services).
MLEN Maximum 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 name Meaning
VALID New data set was written and valid.
BUSY BUSY = 1: The write process is not yet terminated.
ERROR ERROR = 1: Error occurred while writing.
STATUS Error code of the function block (see Siemens-online help for SFB54 "RALRAM").
LEN Length of the written data.
RECORD Target 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 Applica­tion Instance (exerpt)
Figure 6: Station struc­ture in the hard­ware configuration
Index (dec.)
...
31 Module
...
Name Data type r/w Remark
parameters
Note
A detailed description of the Module Application Instance can be found in Chapter 2 BL××-gate-
ways for PROFIBUS-DPV1, page 2-29.
specific r/w Parameters of the
respective module
Figure 7: Access via SFB53
A logical
address of channel 1 from mod­ule 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
Byte Bit Parameter Value/Meaning
–Kanal 0
0 0 Current mode 0 = 0...20 mA A
1 = 4...20 mA
1Value
representation
2 Diagnosis 0 = release A
3 Channel 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 PROFIBUS­DPV1 even show channel related diagnosis.
Furthermore a special help text, which clearly specifies the error, is defined for each diagnostic message.
Figure 9: Diagnosis of the DPV1-gateways
A device relat-
ed diagnosis acc. to DPV0
B device relat-
ed diagnosis acc. to DPV1
C manufactur-
er specific help texts
3
D300956 0210 - BL67/BL20 - DPV1
3-11
Page 58
Connection to a Siemens PLC S7
D300956 0210 - BL67/BL20 - DPV13-12
Page 59

4Index

A
acyclic services .................................................................................... 2-29
addressing ................................................................................................ 2-7
C
connection options .............................................................................2-6
D
diagnosis telegram.......................................... 2-16
diagnosis, channel-specific ......................................................... 2-19
DPM1 ........................................................................................................... 1-3
DPM2 ........................................................................................................... 1-3
DPV1-error codes ..................................................................2-22, 2-23
E
extended diagnosis .......................................................................... 2-16
F
Force Mode ........................................................................................... 2-21
G
Gateway Application Instance ................................................... 2-29
gateway, diagnosis ........................................................................... 2-20
gateway, diagnostic messages .................................................. 2-15
gateway, function ................................................................................ 2-3
gateway, parameter ............................................................................2-9
T
technical data .........................................................................................2-5
transport, appropriate .......................................................................1-3
U
user data ................................................................................................. 2-29
4
L
LEDs .......................................................................................................... 2-15
M
Module Application Instance ..................................................... 2-30
module description .............................................................................2-8
module status ..................................................................................... 2-18
P
parameter, gateway ............................................................................2-9
parameter, modules ........................................................................ 2-13
parameterization ..................................................................................2-9
prescribed use ........................................................................................1-3
PROFIBUS-DPV1 .................................................................................... 1-1
PROFIBUS-DPV1, functions ............................................................. 1-3
S
safety measures .....................................................................................1-3
SFB52 ........................................................................................................... 3-4
SFB53 ........................................................................................................... 3-6
standard diagnosis ........................................................................... 2-16
status indicators ................................................................................. 2-15
status message ................................................................................... 2-17
symbols ......................................................................................................1-4
D300956 0210 - BL67/BL20 - DPV1
4-1
Page 60
Index
D300956 0210 - BL67/BL20 - DPV14-2
Page 61
www.turck.com
Hans Turck GmbH & Co. KG
45472 Mülheim an der Ruhr Germany Witzlebenstraße 7 Tel. +49 (0) 208 4952-0 Fax +49 (0) 208 4952-264 E-Mail more@turck.com Internet www.turck.com
D300956 0210
Loading...