multicon function blocks and projecting instructions
for Siemens S7
Firmware version 1.00 and up
S7 Projecting instructions with explanations on
function blocks for integration of multicon spindle
position displays in PLC Siemens S7 via Profibus
interface of Baumer gateway GK473
Baumer IVO GmbH & Co. KG
Dauchinger Strasse 58-62
DE-78056 Villingen-Schwenningen
Phone +49 (0)7720 942-0
Fax +49 (0)7720 942-900 05.11 · 174.02.044/4
info.de@baumerivo.com Subject to technical and design modifications
www.baumer.com Errors and omissions excepted.
Contents
1. Overview 4
2. Gateway Settings 5
3. Simatic Manager (Step7 Software) 5
3.1 Creating a new project 5
3.2 Import GSD file 11
3.3 Hardware-Configuration 11
3.4 Parameterization 13
3.5 Store, compile and load 15
3.6 Organization block OB1 15
3.7 Organization block OB82 17
3.8 Organization block OB86 18
3.9 Troubleshooting 20
3.10 Evaluating the diagnostic data 20
3.11 Remanent profile storing 21
3.12 Creating an AWL-(STL Statement List) source file 21
3.13 Transferring PLC commands to SPA by gateway 22
3.14 Structure of profile data block DB98 23
4. Functions 24
4.1 Overview on function 24
4.2 The global variables, data block DB99 25
4.3 Busy bit, Timeout bit and Error bit 25
4.4 FC 1 - ASCII Number (6 Byte) in real numbers 26
4.5 FC 5 – Real number in ASCII 26
4.6 FC 10 – Read current value 27
4.7 FC 11 – Read target off current SPA profile 28
4.8 FC 12 – Read target off defined SPA profile 28
4.9 FC 13 – Write target into defined SPA profile 28
4.10 FC 14 – Read target off profile data block 29
4.11 FC 15 – Automatic identifier (address) designation 29
4.12 FC 16 – Set bit parameter 29
4.13 FC 17 – Program profile 30
4.14 FC 18 – Collective information “connected SPA” 30
4.15 FC 19 – Collective information “Check Position” 31
4.16 FC 21 – Automatic SPA scanning operation ON or OFF 31
5. Annex 32
5.1 Abbreviations applied 32
Manual_GK473_S7_Profibus_EN.doc 2/32 Baumer IVO GmbH & Co. KG
04.05.11 Villingen-Schwenningen, Germany
Registered Trademark
SIEMENS, Step7 and S7 are registered trademarks of Siemens AG. These and other names applied in the
present manual that at the same time are registered trademarks are not especially highlighted. Having
omitted a specific mark does not necessarily imply that the names are unregistered trademarks or existing
patents and protected patented designs.
Disclaimer of liability
The present manual was compiled with utmost care, errors and omissions reserved. For this reason
Baumer IVO GmbH & Co. KG rejects any liability for the information compiled in the present manual.
Baumer IVO nor the author will accept any liability for direct or indirect damages resulting from the use of the
present information.
At any time we should be pleased receiving your comments and proposals for further improvement of the
present document.
Manual_GK473_S7_Profibus_EN.doc 3/32 Baumer IVO GmbH & Co. KG
04.05.11 Villingen-Schwenningen, Germany
1. Overview
Part number Z 150.XXX
CD Including the function blocks as Step 7 – Project
Including the function blocks as text blocks (AWL = STL statement list)
Including manual „Projecting instructions“
Including manual „GK473 - RS485 on Profibus“
System diagram
CD
Profibus- MPI
RS485
System description
The present manual is meant as support in creating a Profibus project under SIEMENS Step7
Software, in establishing communication with the spindle position displays (SPA) and in
troubleshooting of Profibus errors.
Gateway GK473 (interface converter) is connecting the spindle position displays (= SPAs, for
example N 140 / N 142 / N 150) of the Baumer IVO multicon system to a Profibus-DPcapable PLC. By aid of the gateway the data blocks of the SPA’s RS485 interface are
converted into Profibus DP protocol (and vice-versa).
Some individual gateway functions considerably improve and facilitate PLC programming.
The gateway enables a network of max. 32 SPAs connected to Profibus-DP. The gateway can
be applied with all spindle position displays of the multicon family. Furthermore, several
gateways can be operated at a Profibus in order to connect more SPAs.
The Step7 project and function blocks described in this paper were created using a Step7
Software Version 5.0 + ServicePack2 under Windows 98, together with a S7-315-2DP with an
input module DI16xDC24V and an output module DO32xDC24V/0,5A. However, with only
slight modifications, the project should run in most other Windows / Step7 environments as
well.
SPA
1
SPA
2
SPA
1
GK473
X
GK473
1
PC with
Projecting-
Software Step 7
(Siemens)
Siemens
PLC S7
Profibus-DP
Manual_GK473_S7_Profibus_EN.doc 4/32 Baumer IVO GmbH & Co. KG
04.05.11 Villingen-Schwenningen, Germany
2. Gateway Settings
As described in the GK473 manual, set the Node ID in the gateway to an ID of your choice between 04
and 99. In the following example it is „42“.
If the gateway is either the only DP slave or the last DP slave in the Profibus line, the Bus terminator is
activated by setting both DIP switches to ON. In any other case set both DIP switches to OFF.
3. Simatic Manager (Step7 Software)
3.1 Creating a new project
Open Simatic-Manager (Step7 Software). For creating a new project call the assistant („File“ Æ
Assistant „New Project“).
Click on „Next“.
Manual_GK473_S7_Profibus_EN.doc 5/32 Baumer IVO GmbH & Co. KG
04.05.11 Villingen-Schwenningen, Germany
Select your CPU type. Another option is entering an individual CPU name. Click on “next”.
When selecting the blocks to be implemented chose OB1, OB82 and OB86. Select “AWL” (STL,
Statement List) as language for the chosen blocks.
Manual_GK473_S7_Profibus_EN.doc 6/32 Baumer IVO GmbH & Co. KG
04.05.11 Villingen-Schwenningen, Germany
Enter a project name of your choice (for example GK473) and click to „Finish“.
Now the project window showing the already implemented blocks will open.
You have to implement further blocks for the project. Select “paste“ -S7 block- and then the
appropriate option.
Manual_GK473_S7_Profibus_EN.doc 7/32 Baumer IVO GmbH & Co. KG
04.05.11 Villingen-Schwenningen, Germany
Install all the blocks shown above in successive order. In the following you will find further screenshots
for both data blocks and a chart of variables (optional but recommended for testing purposes).
DB10
Manual_GK473_S7_Profibus_EN.doc 8/32 Baumer IVO GmbH & Co. KG
04.05.11 Villingen-Schwenningen, Germany
DB11
DB20
Manual_GK473_S7_Profibus_EN.doc 9/32 Baumer IVO GmbH & Co. KG
04.05.11 Villingen-Schwenningen, Germany
VAT1
After being defined in the SIMATIC Manager, loading of all data blocks into the S7 is imperative (select
blocks, then system of destination Æload)! Otherwise it will not work (neither there will be an error
message).
Manual_GK473_S7_Profibus_EN.doc 10/32 Baumer IVO GmbH & Co. KG
04.05.11 Villingen-Schwenningen, Germany
Loading...
+ 22 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.