06 Engineering Based On S7 e
06 Engineering Based On S7 e
S7 Project
1
BRAUMAT/SISTAR Classic 5.3
SIMATIC Module 2
Configuration
3
Automation system Individual control
4
BRAUMAT/SISTARClassic V5.3
Analog functions
Engineering with Braumat 5
based on S7 Excel import/export for external
parameterization 6
Manual User interfaces
7
Edition 11/2007
A5E00239377-04
Safety Guidelines
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring to property damage only have no safety alert symbol. The notices shown below are
graded according to the degree of danger.
! Danger
indicates that death or severe personal injury will result if proper precautions are not taken.
! Warning
indicates that death or severe personal injury may result if proper precautions are not taken.
! Caution
with a safety alert symbol indicates that minor personal injury can result if proper precautions are not
taken.
Caution
without a safety alert symbol indicates that property damage can result if proper precautions are not
taken.
Attention
indicates that an unintended result or situation can occur if the corresponding notice is not taken into
account.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
Qualified Personnel
The device/system may only be set up and used in conjunction with this documentation. Commissioning and
operation of a device/system may only be performed by qualified personnel. Within the context of the safety
notices in this documentation qualified persons are defined as persons who are authorized to commission,
ground and label devices, systems and circuits in accordance with established safety practices and standards.
Prescribed Usage
Note the following:
! Warning
This device and its components may only be used for the applications described in the catalog or the
technical description, and only in connection with devices or components from other manufacturers
which have been approved or recommended by Siemens.
Correct, reliable operation of the product requires proper transport, storage, positioning and assembly
as well as careful operation and maintenance.
Trademarks
All names identified by ® are registered trademarks of the Siemens AG.
The remaining trademarks in this publication may be trademarks whose use by third parties for their own
purposes could violate the rights of the owner.
Siemens AG
Automation and Drives
Postfach 4848, D- 90327 Nuernberg, Germany ©Siemens AG 2007
Technical data subject to change.
Siemens Aktiengesellschaft A5E00239377-04
Preface
Purpose of the Manual
In this instruction manual the Engineering with BRAUMAT/SISTAR Classic 5.3 based on S7
is described and it gives you an overview of the following topics:
¾ Establish S7-Projects
¾ BRAUMAT/SISTAR Classic 5.3 Module
¾ Configuration
¾ Individual control
¾ Analog processing
¾ User Interfaces
This manual is intended for those responsible for configuring, commissioning and servicing
automation systems.
Required Basic Knowledge
This manual forms part of the BRAUMAT/SISTAR Classic V5.3 documentation package.
The following schematic of the document architecture show the individual manuals as well
as their thematic grouping within the entire program package
Description of the
System Installation and
Configuration
Administration
Communication
EPE-creation
Batch-
processing
Application for
Batch curves 'based on S7'
Logging Message
Building block
description S5 Engineering of the
Route Control
You can reach the Technical Support for all A&D products
• Via the Web formula for the Support Request
http://www.siemens.com/automation/support-request
• Phone: + 49 180 5050 222
• Fax: + 49 180 5050 223
Additional information about our Technical Support can be found on the Internet pages
http://www.siemens.com/automation/service
Service & Support on the Internet
In addition to our documentation, we offer our Know-how online on the internet at:
http://www.siemens.com/automation/service&support
where you will find the following:
• The newsletter, which constantly provides you with up-to-date information on your
products.
• The right documents via our Search function in Service & Support.
• A forum, where users and experts from all over the world exchange their experiences.
• Your local representative for Automation & Drives.
• Information on field service, repairs, spare parts and more under "Services".
1 S7 Project
2.1 Structure
A BRAUMAT/SISTAR Classic 5.3 module consists of:
¾ A data record in the SIMATIC
All instances of a module are filed in a data block.
You could enter data via the application ‚Parameterization‘. One instance is
specified explicitly by PCU number and instance number. The instance number
starts with 1 and goes to the maximum value.
¾ One FB, which process data.
¾ One name for each instance
All names are stored in a text data file on OS. Text could be entered via the
application ‚Text parameterization‘. There is one line in a text file for each instance
name. The line number corresponds to the instance number.
¾ One description of each instance
All descriptions are stored in a text data file on OS: You could enter text via the
application ‚Text parameterization‘.
¾ One Input- / Output allocation of each instance
¾ Location description of each instance
¾ One assigned process image to each instance
¾ One note to each instance
3 Configuration
The class ‘amount’ indicates, how many parameter records are in the list. The length of the
data record is 64 byte, i.e. that one parameter record is 64 byte long. The Offset to the 1.DS
indicates the starting point of the first data record. The maximum DS amount indicates the
maximum amount of the possible objects of the class. The Offset to the running time copy
indicates the address in the data block where the corresponding data record is copied that is
processed at the running time.
The first parameter record extends from line 1 until 21, the second connects itself directly
behind.
Example: PID – controller with measured value recording, analog output transferable to
controller or fixed value.
This is clarified in the graphic by the connection line between the 2 blocks.
4 Individual control
Interlocking programs guarantee that the necessary operation interlockings are considered.
These are effective for each type of triggering, i.e. in the automatic- and in the manual
operation.
Basic logics like the interlocking of product- and cleaning valve, the dry safety of pumps,
agitator, etc, need to be filed only one time. Equipment operations, connection programs
and any other concerning the individual final controlling are shorter and have much more
overview by that.
However, the basic interlocking isn't a substitute for safety interlockings, which are to be
realized outside of the control.
With a non-fulfilled operation interlocking commands are sent to all final controlling elements
for a "OUT"- position:
¾ Motor, Pump: "OUT"
¾ Valve, flap, solid: "Closed"
Triggering commands aren't considered.
On each position command the actuator must react within a individually presetting time by a
corresponding acknowledgement. (1..255 Seconds). Either this reaction is executed
¾ Not at all
¾ delayed, or
¾ the reaction signal disappears without the corresponding command again
an actuator fault is recognized. This one is filed in the actuator state for the display and a
disturbance message is sent for the released operating systems. (OSs).
4.3 Interrelations
The operation of the ICMs is executed by the OS.
Controlling the ICM – blocks is executed in the AS:
¾ In the automatic program of the Units by the equipment operations
¾ Per operation via the screen
¾ By any other connection programs
In the ASes control-independent connection programs guarantee, that the necessary
interlocks are considered.
The conditions of the final controlling element are transferred to the operation System (OS)
by the coupling for visualization.
The operation System (OS) itself transmits operation commands for the final controlling
elements via coupling to the underlaid Systems (AS).
OS Operation
level
Work station
ICM
Coupling
AS Automatic Partial
level recipe EOP
procedure
Interlock
level Interlock
program
Individual
control
level ICM
Process
5 Analog functions
5.1.1 General
For processing analog sizes in the frame of process automation the System makes a
sequence of standard blocks available. By the corresponding configuration of the blocks and
interconnection of blocks among each other the most different functions are realizable.
The blocks FBs are called by the System program. The FCs for the DFMs must be called by
the Project Manager!
The following blocks are included in the System.(in alphabetical order):
5.1.13 Example
Solution by connection of a block MESS with a block MEKO. The both comparison results
(Limit 1 is violated or limit 2 is violated) and are available as flag for the step enabling
processing.
Result
Measured flag
value
Solution by connection of a block MULT with the function LI+ with two blocks MESS for
actual value and limiting value. The comparison result is available as flag.
Measured
value
Result
flag
Limit value
Solution by connection of a block MESS with a block DFM and evaluation of the comparison
in a equipment operation.
Recipe
Measured
value Result EOP
Result
flag
Solution by the useage of a block MESS for the actual value, of a block AFIX for the setpoint
, of a PID-block and a block ANAU for the manipulated variable output.
manipu-
lated
variable
Actual
value
Manipula-
ted
Actual variable
value
Actual
TAUF
value
TZU FB-Unit
Setpoint
Position
Solution by the useage of two blocks MESS for the actual value and compensating value, of
a PID-block, of a ANAU-block for the allocation of the manipulated variable and one
TELEPERM-D controller.
Actual
value
Program
UYR RB CB YN
Actual TELEPERM-D controller Manipulated
value value
Ratio Control
It is requested, that two controllers should accept one adjustable proportion of a setpoint
each
Solution with two blocks AFIX (one for the number 100, and one for the setpoint of the
controller 1), five blocks MULT (two DIV, two MUL, one SUB)..
Setpoint
Controller 1
Setpoint
Controller 2
Anteil 1
100
Solution with four blocks MESS, three blocks MULT in the function ASL and one part of the
program.
A B C
Bit 0
Program
Bit 1
Value 1
Value 2
biggest
Value 3 value
Solution by the useage of a block MESS for the actual value, one block ANA for the setpoint,
of a THREP-block and of a user program.
Actual
value
Open
Program
Closed
Time
In the user program one of the outputs OPEN or CLOSED are controlled by queries of the
Timers Control-bits (ANST) .
Example:
Timer runs and ANST = 1 OPEN = 1, CLOSED = 0
File Function
Global_10.xls Excel template file for ‘entity’ configuration
Macro.xls Excel file that includes the Excel macros listed in the following. With
that, the user can trigger different import/export functions.
Param_PCU001_0.xls Excel template file for PCU001 with 26 work sheets including a
cover sheet. Here the basic Braumat plant configuration
(technological objects of the equipment) is covered:
(FIXV, AOUT, SEQS, DFM0-3, THREESTEP, ICM1-4, MVC,
ALARM, AIN, MULT, PID, SEQU, SPEVAL, TIMER01-02, XC-JOB,
EPE.INI, EPAR.INI, SEQUENCE.INI)
Caution:
The supplied Excel Templates supports Simatic S7-PCUs only
because the class/attribute names are based on the
„ParamS7.0xx“ Definition file.
Later on, the template is copied by the user for each PCU and
parameterized in the correction sheet at the accompanying PCU
no. Æ refer to Chapter “Application”.
Param_PCU001_1.xls English language version
The Excel file “Macro.xls” includes the macros described in the following table:
Macro Function
ExportAll() One after the other all the object classes are exported to the
SISTAR data layer (see below for details)
ExportAll_D() Same function, but German sheet names
Import All() One after the other all the object classes are exported out of the
SISTAR data layer (see below for details)
ImportAll_D() Same function, but German sheet names
CompareAll() One after the other all the sheets are compared with SISTAR. The
results of the comparison are written in a log file. All the errors and
warnings are entered in this
CompareAll_D() Same function, but German sheet names
ExportOneTable() The current table (= object class) is exported to SISTAR. At the end,
all the errors and warnings are entered in a log file (file “Export.txt”
in the current directory)
CompareOneTable() The current table is compared with SISTAR. The results of the
comparison are written in a log file. All the errors and warnings are
entered in this
ImportOneTable() The current table is imported from SISTAR. In the end a log file is
opened. All the errors and warnings are entered in this. Then the
current table is completed with the imported data
The system “Export.dll” is required to execute this macros, which was installed in the
directory ..\windcs\sys upon installation of BRAUMAT/SISTAR Classic V5.3. This realizes
the actual import/export functions of the configuration data from or in the (binary) offline
block files or INI files of the Braumat system. All the above-mentioned macros access this
DLL.
6.2 Application
The following configuration course – separate for each PCU – can be executed using the
above-mentioned macros:
¾ Import the Braumat offline configuration to Excel; an Excel sheet is completed for
each object class
¾ Configure/change the object properties using all Excel means and possibilities
¾ Compare the configured data with the (offline) configuration in the Braumat project
path
¾ Export (also selectively) the configured tables in the offline DBs and INI files
In a further step, the user must ensure the download in the respective PCU
The following procedure is recommended for application:
¾ Launch MS-Excel
¾ First of all, open the macro file “Macro.xls” and activate Macros. In doing so, the
Excel security setting should be “medium” or “low” (menu ExtrasÆMacroÆSecurity)
¾ Now open a PCU-specific project file, e.g. “xyz_Anlage_PCU010_de.xls”. Upon first
call, the template file (e.g. “Param_PCU001_0.xls”) should open. As this is write-
protected, it must be immediately saved under a new name.
¾ The call of the macros takes place as standard via the menu Extras->Macro-
>Macros. However, the user can also define call buttons for the most frequently
used functions (refer to MS-Excel documentation)
Caution:
The bold entries are keywords for the export function. They must be entered at the positions
shown here in the sheet.
Description of the header keywords:
Keyword Function
Class Class and/or technolog. Blockname for that this worksheet is processed; must
correspond exactly to the class name in the ‘param.pcu‘ file
Amount Import: Shows the number of the imported instances; only the area in fact
configured in the block is imported up to the max. line count in the table; for too
many data records are in the table, warnings into the logging file window are
issued.
Export: Debit-number of the instances/lines to be exported; this number is
taken over into the block-parameterization, that is where appropriate this
increases/decreases data records in the block parameterization; if Amount is
larger than the filled number of lines, data records in the block parameterization
are filled with default values
Therefore be carefully at modification of the former imported value!
Max Additional and more prior possibility for limitation of function import/export (next
to Amount); should correspond normally to the max. value from the ‘param.pcu
file’
Export E (*)) shows which lines should be exported. Only the lines that have the
character stipulated in the cell B5 in column A are exported.
The character sequence DB,N,A (*)) indicates which attribute groups are to be
exported. If these are not stated, all (as with DB,N,A) are exported. Otherwise,
those groups that are stipulated separately with “ , “ are exported.
A: export the new attributes: address/location/description/image
DB: export the DB-related attributes
N: export the name
Def Definition of the class attributes; see below for futher information
MasterTagList -- 3 -- -- 3
Entity_Template -- 3 3 -- 3
Template_Parameter -- 3 -- -- 3
For the plant sections/sequences class the header attributes are expanded as follows:
A B C
1 PCU 1
2 Class_RecV3 Plant sections
2 Class_RecV5 Sequences
3 Amount
4 Max 64
5 Export E*) DB,N,A**)
6
7 Def_RecV3 No NAME
8 Def_RecV5 No NAME
This enables both access to RecipeV3 plant sections data records, as well as RecipeV5
sequence data records. The following lines move accordingly.
Definition line
A definition line must follow the head of the table. It must be possible to assign each cell an
attribute of this class in accordance with the global “param.pcu” file. The entries are case
sensitive.
If this is not the case, a fault message occurs. (Def_RecV3/V5 work dynamically depending
on the recipe version). If a cell and with that the entire column is not taken into account, an
“_” underline must explicitly be entered.
The keyword “Def” must be entered in the cell A7. The keyword “No” must be entered in the
cell B7. With two-stage addressing, B7/C7 is used with an extended token (e.g. for
EntityClass NoTemplate/NoEntity). Continue as you wish for the further sequence of
attributes.
You do not have to position the definition line as the 7th line; the definition line must however
exist before the data records.
User-supporting entries can be entered in line 9 (also this line number is not compelling).
The keyword “Name” is entered as the name of the data record.
Line 9 is comment.
Notice:
The chosen columns in the provided Excel standard templates correspond to those
attributes of the respective Braumat classes/text files that are relevant to the plant
configuration. They will not be covered any further at this point, as they represent “general
Braumat engineering know-how” and this is already described in the standard manuals.
However, for a better orientation and overview, comment fields are entered in the definition
cells, and these include information regarding the respective associated data element of the
Braumat configuration.
Additional columns
After the B columns, columns that cannot be exported can also be added to the table. The
condition for this is that the attribute does not exist in the ‘param.pcu’-file and doesn’t
represent any other keyword.
6.4 Keywords
Other keywords are recognized alongside the attributes of the param.pcu.
Module Keyword Export to
All Name Name of the data record; is
exported in the text file of the
module (see param.pcu);
All No. Number of the data record;
must be stipulated in the first
exportable column;
DFMGr.DF.MNo. must be
stated with SW-INI/EPAR.INI,
All apart from EXT_CLASS Addr Text for address, stored in
PCU.x\Address.L
displayed in Faceblade
All apart from EXT_CLASS Desc Text for description, stored in
PCU.x\Desc.L
displayed in Faceblade
All apart from EXT_CLASS Image Path for process image, stored
in PCU.x\Image.L
displayed in Faceblade
All apart from EXT_CLASS Loc Text for location, stored in
PCU.x\Location.L
displayed in Faceblade
ENTITY BaseAdrByte Byte of the basic address for
relative addressing
ENTITY BaseAdrDB DB of the basic address for
relative addressing
ENTITY BaseAdrPCU PCU of the basic address for
relative addressing
ENTITY ID ID of the entity (globally
understandable!)
ENTITY NoEntity Entity number (relative to type)
ENTITY NoEntityGroup Number of entity type
ENTITY NoTemplate Number of template to be
assigned
Entity_Group EntityAmount Number of entities of this type
Entity_Group Name See above
Entity_Group NoEntityGroup Number of entity type
Entity_Template Name Name of template
Entity_Template NoTemplate Template number
Entity_Template ParameterAmount Amount of parameters of a
template
ICM1 ... ICM4 Entity Assignment of ESG to entity;
several values can be entered,
separated by a comma
MasterTagList EntityID Globally understandable entity
ID
MasterTagList Tag Understandable instance name
for TAG to be assigned
MSG Incoming Meldkom.txt
MSG Outgoing Meldgeh.txt
Sp.Value Comment Comment
7 User interfaces
(* Text *)
comment.vsd
The comment need to be framed by keys‚ ‘(*‘ and ‘*)’. The comment may be a maximum of
44 signs long.
Class description
class.vsd
object: Key word
Name: Name of the block / Class (maximum of 10 signs)
DB: Key word
Number: Number of the data block
Example
General data
The general data should begin directly after the class description in the following line. Each
line has to be finished with a semicolon. (" ; ") .
The following general attributes need to be allocated:
¾ CID=
Indication of an explicit class ID (1000 – 2000)
¾ max=
Maximum data record amount
¾ offset=
Byte address of the first data record
¾ length=
data record length in Byte
¾ number=
Indication of a fixed amount of data records or address indication
¾ filename=
Optional indication of a file name for the names of the instances. If the input is
missing, the names are expected in a file which has the name of the block.
¾ classtype=
Indication of the class type
¾ version=
Indication of the version
Type of classes
For the display in the configuration the block can be assigned to a class type. The following
types are delivered by the System:
¾ 0: Display of all types
¾ 1: Technology
¾ 2: Periphery
¾ 3: System
¾ 4: Route Control
¾ 5: Weighers
¾ 6: Cross coupling
The type of classes can be extended by the user types.
File: \windcs\texte.x\classtype.txt
The file has to be edited via the text configuration.
dataset.vsd
The data block description is started via a clippy bracket. After the bracket there are the
global attribute descriptions line per line. The description of a data record is started with the
key word ‚struct‘. After that the attribute descriptions of the data record follow. The data
block description is closed with a clippy bracket.
Address indication
DBB
Byte
DBW
address
DBD
Byte Bit
DBX .
address address
address.vsd
Attribute description
WinCC
Attribute
Name ( , Addresse ,
ID
Type of
Data type , ) Comment
access
Upper
Low limit ,
limit
attribut.vsd
¾ Upper limit
Upper limit for the input in the configuration.
¾ Data type
B1: Bit value
I8: 8 Bit value afflicted without signs
I16: 16 Bit value afflicted without signs
I32: 32 Bit value afflicted without signs
STEP: STEP 7 command
QUEL: Source indication
HEXA8: 8 Bit value
HEXA: 16 Bit value
HEXA32: 32 Bit value
¾ Type of access
RD The value can only be read via the configuration.
HI The value is in the section‚ hidden attributes‘
HR The value is only readable and in the section ‚hidden Attributes‘
Example
object Karlheinz=DB10;(*testKH*)
CID=1920;
max=128;
offset=100;
length=100;
number=DBW8;
filename=KHtest;
version=1;
{
Offset (3 ,DBW2 ,I16)=100; (*Offset zum 1.Datensatz*)
Satz_Lae (2,DBW4,I16)=100; (*Satzlaenge*)
SILO_Anz (1,DBW8,I16,RD); (*Silo-Anzahl*)
struct
Bit1 (1,DBX1.0,B1)=0; (*Bitwert*)
Int8 (2,DBB2,I8); (*8 Bit*)
Int1 (3,DBW3,I16); (*16 Bit*)
Int32 (4,DBD5,I32); (*32 Bit*)
STEP7 (5,DBW10,STEP); (*S7 Befehl*)
QUELLE (6,DBD20,QUEL); (*Quellenangabe*)
HEXA_8 (7,DBB12,HEXA8); (*HEXA 8*)
HEXA_16 (8,DBW13,HEXA); (*HEXA 16*)
HEXA_32 (9,DBD15,HEXA32); (*HEXA 32*)
}
Note
It can be created a help file to each PLC-block, that can be displayed with activating the F1
key in the configuration.
The file has to be filed in the folder \Help.x . The name of the file must be identical with the
block name. An underscore character ‚_‘ must be prefixed to the file name.
¾ Listbox Delete
With this button all inputs in the list are deleted.
¾ Read in again
With the button all descriptions are read in again.
¾ Open Browser
With this button a further dialog is opened in which all classes (= Blocks) and their
attributes can be displayed.
¾ Configure OM
With this button a further dialog is opened in which adjustments for the diagnosis
could be made.
¾ Close OM
With this button the diagnosis window is closed.
¾ Help/Info
With this button a dialog with important information to the Object Manager is
opened.
¾ Switch on Tracing
With this connector the trace function can be switched on and off.
¾ All actions of the OM are displayed in the list. Via the dialog ‚Configure OM‘ the
display can be restricted to errors and warnings.
The Object Manager is only started one time per IOS and holds the necessary block
descriptions for all BRAUMAT/SISTAR Classic 5.3. One fixed memory location is used for
this central function. This memory location can't be enlarged. Therefore it is started from a
presetting quantity of this memory location. If the consumption of the memory should be
increased due to additional description files over this limit, the presetting will be changed
consequently.
Class description
object: keyword
Name: Fixed name DB_CFC
Example
CSV syntax
Example