Beruflich Dokumente
Kultur Dokumente
4
Convert DVA_S7 projects
Function Description
Edition 06/06
Safety Instructions
This Manual contains information which you should carefully observe to ensure your own
personal safety and the prevention of damage to the system. This information is
highlighted by a warning triangle and presented in one of the following ways depending
on the degree of risk involved:
DANGER
indicates that death, severe personal injury or substantial property damage will result if
proper precautions are not taken.
WARNING
indicates that death, severe personal injury or substantial property damage can result if
proper precautions are not taken.
CAUTION
indicates that minor personal injury or property damage can result if proper precautions
are not taken.
NOTE
contains important information about the product, its operation or a part of the document
to which special attention is drawn.
Qualified person
The unit may only be started up and operated by a qualified person or persons.
Qualified persons as referred to in the safety guidelines in this manual are those who are
authorized to start up, earth and label units, systems and circuits in accordance with
relevant safety standards.
Rules for proper use
Please note the following:
WARNING
The unit may be used only for the applications described in the catalog or the technical
description, and only in combination with the equipment, components and devices of
other manufacturers as far as this is recommended or permitted by Siemens.
The successful and safe operation of this equipment is dependent on proper
transportation, storage, erection and installation and on careful operation and
maintenance.
Trademarks
SIMATIC, SIMATIC HMI, SIMATIC NET, SIROTEC, SINUMERIK and USS are
registered trademarks of Siemens AG. Other names in this publication might be
trademarks whose use by a third party for his own purposes may violate the rights of the
registered holder.
Exclusion of liability
Siemens AG
Bereich Automatisierungs- und Antriebstechnik (A&D)
Geschftsgebiet Motion Control Systems (MC)
Postfach 3180, D-91050 Erlangen
Siemens Aktiengesellschaft
Edition 06/06
Introduction
Contents
1
Introduction .................................................................................................................... 4
1.1
General .......................................................................................................................... 4
1.2
Requirements................................................................................................................. 4
1.3
Installation ...................................................................................................................... 4
4.1
General .......................................................................................................................... 7
4.2
4.3
5.1
Type/Number ............................................................................................................... 14
5.2
5.3
Function description..................................................................................................... 14
5.4
5.5
Calling a block.............................................................................................................. 15
5.6
Notes............................................................................................................................ 15
Abbreviations ............................................................................................................... 16
Introduction
Edition 06/06
Introduction
1.1
General
STEP7 projects whose drives were configured with the DVA_S7 object manager
will not run under Version 5 and higher of STEP7 as the DVA_S7 object manager
can no longer be used with these versions of STEP7. In the new versions of
STEP7, the Drive ES object manager is used instead.
To enable users to continue to work with old projects, the existing DVA_S7
objects have to be converted into Drive ES objects.
The "DVA_S7-Konverter" conversion tool is available for this purpose. In addition,
a function block is now available that enables parameter assignment jobs (PKW
jobs) to be launched from the DVA_S7 user interface (User data DB) using the
appropriate Drive ES SIMATIC function block.
1.2
Requirements
Hardware
Software
1.3
Installation
To start the installation, place the Drive ES SIMATIC CD in the CD ROM drive of
your PC/PG and start the install.bat program. All further information will be
provided during the installation process. Please note the information in the readme
file.
Edition 06/06
DVA_S7 converter
Edition 06/06
DVA_S7 converter
The tool is launched by pressing the Start button and selecting
SIMATIC\STEP7\Drive ES - DVA_S7 converter.
The user selects the project to be converted in the Open dialog. The DVA_S7
objects in the selected project are shown in the application window of the converter
tool.
The conversion process for these objects is started by clicking on the Convert
button. On completion of this process, the user saves the converted Drive ES
objects in the STEP 7 database. Once converted, a project cannot be converted
back again.
The use of the tool is self-explanatory. An online help function provides more
information if required.
Edition 06/06
4.1
General
The paragraphs below describe how the user interface in the User data DB can
be retained when replacing the FC21, FC22 and FC23 blocks of the DVA_S7
product by the FB31, FB32 FB33 blocks from the Drive ES SIMATIC-DRVDPS7
library.
4.2
Edition 06/06
// x: Slave-No.; y: Slot-No.
// x: Slave-No.; y: Slot-No.
Edition 06/06
// x: Slave-No.; y: Slot-No.
// x: Slave-No.; y: Slot-No.
Edition 06/06
10
// x: Slave-No.; y: Slot-No.
// x: Slave-No.; y: Slot-No.
Edition 06/06
// x: Slave-No.; y: Slot-No.
// x: Slave-No.; y: Slot-No.
11
Edition 06/06
12
// x: Slave-No.; y: Slot-No.
// x: Slave-No.; y: Slot-No.
Edition 06/06
4.3
PKW data
To transmit the PKW data from the User data DB, the ADAPT_DVA block must
be called; this copies the data from the User data DB to the instance of the
PDAT_CY. The ADAPT_DVA also copies the reply back to the User data DB,
controls the start command and enters the replies from PDAT_CY into the
communication display word.
CALL PDAT_CY, DB_PDAT_CY(
CFG_DATA
:= DRIVDB1.SLAVE_1.SLOT_4,
START
:= ,
R_ID_IN
:= ,
P_NO_IN
:= ,
P_IND_IN
:= ,
P_VAL_IN
:= ,
R_ID
:= ,
These inputs/outputs are
P_NO
:= ,
transferred directly to/from the
P_IND
:= ,
appropriate instance using
P_VAL
:= ,
ADAPT_DVA
BUSY
:= ,
READY
:= ,
REQ_ERR
:= ,
WDOG_ERR
:= ,
SFC_ERR
:= ,
CFG_ERR
:= M0.1);
13
ADAPT_DVA function
Edition 06/06
ADAPT_DVA function
5.1
Type/Number
FC 24
The block number can be changed.
5.2
Calling OBs
Alternatively, the block can be incorporated into the following OBs:
Cyclic task:
OB1
Wake alarm OB:
e.g. OB32
5.3
Function description
As long as Bit0 in the communication control word is set, the block copies the data
from the PKW area of the send box in the User data DB to the inputs of
PDAT_CY and sets the START input in the instance to "true". If PDAT_CY signals
BUSY, Bit0 is reset. This also applies to the START input.
If PDAT_CY signals "READY", "REQ_ERR" or "WDOG_ERR", these messages
are copied into the communication display word (READY = Bit1; REQ_ERR = Bit2;
WDOG_ERR = Bit4). The reply data is copied to the receive box of the PKW area
in the User data DB providing "READY", "REQ_ERR" or "WDOG_ERR" are
pending and "START" is not set.
If a PPO type not equal to 1, 2 or 5 is on the PPO_TYP input, the PPO_ERR output
is set to TRUE and the send data or receive data is not copied.
5.4
I/O bar
Parameter
Data type
Type
Description
PPO_TYP
INT
IN
PPO type
DBND
INT
IN
KSTW
INT
IN
DI_PDAT_CY
INT
IN
DI_OFFSET
INT
IN
PPO_ERR
BOOL
OUT
14
Edition 06/06
5.5
ADAPT_DVA function
Calling a block
Calling from CFC
5.6
:= MW 0,
:= MW 2,
:= MW 4,
:= MW 6,
:= MW 8,
:= M
10.0);
Notes
The block does not check whether the specified DBs are present in the CPU. If
an invalid DB number is specified, a system error message is issued and the
CPU goes into STOP if the corresponding error OB is not loaded.
If the data structure of PDAT_CY or the User data DB is changed, a new
version of the ADAPT_DVA must also be used.
No check is made as to whether the valid PPO types (1, 2, 5) correspond to the
structure of the specified User data DB (input: DBND).
15
Abbreviations
Edition 06/06
Abbreviations
AWL
Instruction list
CFC
DB
DBB
DBW
DP
Drive ES
Data block
Data byte
Data word
Decentralized peripheral
Drive Engineering System
FB
FC
Function block
S7 function (block in SIMATIC S7)
HIW
HSW
Main setpoint
IND
Index in PPO
KSTW
MB
Flag byte
MW
Flag word
OB
OM
Organisation block
Object manager
PKE
PKW
PPO
PWE
PZD
16
Siemens AG
Bereich Automatisierungs- und Antriebstechnik (A&D)
Geschftsgebiet Motion Control Systems (MC)
Postfach 3180, D-91050 Erlangen
Siemens Aktiengesellschaft