protocol driver manual s5 s7 provicom www.otomasyonegitimi.com

Upload: wwwotomasyonegitimicom

Post on 05-Apr-2018

387 views

Category:

Documents


14 download

TRANSCRIPT

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    1/53

    SAE-STAHL GMBHIm Gewerbegebiet Pesch 14

    D-50767 KlnTel.: +49-221-59808-200

    Fax: +49-221-59808-60http://www.sae-stahl.de

    E-mail:[email protected]

    Protocol Driver Manual S5 / S7ProVicom, Exicom Visualisation

    MT-300 MT-310

    ET-8

    Protocol Driver Manual S5 / S7:

    ProVicom, Exicom Visualisation

    Art.-type: 200630100000

    Version: 1.12

    Edition: 26.04.01

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    2/53

    Page 2 of 53 SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

    Publisher and copyright by:

    SAE-STAHL GMBH KlnIm Gewerbegebiet Pesch 14D-50767 Kln

    Phone (exchange)+49/(0)221/ 5 98 08 - 200(Hotline) - 59

    Fax - 60

    All rights reserved.

    This document may not be reproduced in whole or in part except with the written consentof the publisher obtained.

    The right to technical changes is reserved.

    This Manual was carefully produced. Nevertheless, SAE-STAHL GMBH do not warrant thatthe information contained therein to be free from errors.

    IBM is a registered trademark of IBM-Corp.MS DOS is a registered trademark of MICROSOFT Corporation

    WINDOWS 95 is a registered trademark of MICROSOFT CorporationS5/ S7 are registered trademarks of Siemens AG

    Cologne, dated 26.04.01

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    3/53

    Protocol Driver Manual S5 / S7 Contents

    SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01 Page 3 of 53

    Table of Contents

    1. General Notes ..................................................................................... 5

    1.1. Documentation Manuals ..........................................................................................51.1.1. Device Manual ..................................................................................................51.1.2. Engineering Manual..........................................................................................51.1.3. Protocol Driver Manuals....................................................................................51.1.4. Target Groups ..................................................................................................5

    1.2. Safety Alert Symbols ...............................................................................................6

    2. Safety Notes.................................................................................. 7

    2.1. General Provisions ..................................................................................................7

    2.2. Use for Intended Purpose........................................................................................7

    2.3. Repairs ....................................................................................................................8

    3. Communication ............................................................................ 9

    3.1. SPC Mode S5/PG....................................................................................................9

    3.2. SPC Mode S5/3964R/RK512...................................................................................9

    3.3. SPC Mode S5/L1-Bus..............................................................................................9

    3.4. Cycle Times.............................................................................................................93.5. Connection options to S5.......................................................................................10

    3.6. Connection options to S7.......................................................................................11

    4. Installation on the PLC .............................................................. 12

    4.1. Overview................................................................................................................12

    4.2. Installation on the Programming Interface S5 with AS511.....................................124.2.1. ProVicom/ Exicom with TTY Passive/Passive (Default) .................................. 134.2.2. ProVicom/Exicom with TTY Active/Active (optional) .......................................144.2.3. Port Parameters..............................................................................................14

    4.3. Installation on 3964R of S5 CP 524/525 and S5 CP 544 .....................................154.3.1. Installation on CP524/525 and on CP544 via TTY .........................................174.3.2. Installation on CP524/525 and on CP544 via V.24.........................................18

    4.4. Installation on S5 CP521-SI...................................................................................19

    4.5. Installation on 3964R of SAE-STAHL SAS 525.....................................................214.5.1. Setting the DIL Switches.................................................................................214.5.2. Interface Card Configuration..........................................................................244.5.3. Cyclic Handling of Communication ................................................................24

    4.6. Installation on 3964R of S7 CP340........................................................................26

    4.6.1. ProVicom Pin Configuration via V.24 / RS-232-C...........................................284.6.2. ProVicom/ Exicom Pin Configuration via RS422............................................. 29

    4.7. Installation on 3964R of S7 CP441-1 ....................................................................30

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    4/53

    Contents Protocol Driver Manual S5 / S7

    Page 4 of 53 SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

    4.7.1. ProVicom Pin Configuration ProVicom / Exicom via V.24 / RS-232-C............324.7.2. ProVicom/Exicom Pin Configuration via TTY..................................................33

    4.8. Installation on the MPI-Bus via MPI-Box ................................................................344.8.1. MPI-Box power supply ....................................................................................354.8.2. Interfacing PG and MPI-Box ...........................................................................35

    4.8.3. Mounting instructions and installation MPI-Box RS-232 .................................354.8.4. Installation of a ProVicom on S7/MPI with MPI-Box RS-232........................... 354.8.5. Connection diagram MPI-Box RS-232 ............................................................364.8.6. Interfacing to MPI-BOX RS-422......................................................................37

    4.9. Interface Parameters S5/ S7 3964R......................................................................38

    4.10. Installation on L1 Bus ............................................................................................394.10.1. System overview L1........................................................................................394.10.2. Installation of Terminal Stations......................................................................394.10.3. L1 Connection via PG Interface......................................................................40

    5. Addressing.................................................................................. 43

    5.1. Address Specification ............................................................................................43

    5.2. Setting Station Parameters....................................................................................44

    6. Function References.................................................................. 45

    6.1. Key functions .........................................................................................................45

    6.2. LED Bit Area..........................................................................................................48

    6.2.1. LEDs (ProVicom only).....................................................................................506.3. Fault Message and Operating Message Areas......................................................51

    6.4. Other Communication Areas..................................................................................51

    6.5. Elementary Data Types and Formats ....................................................................526.5.1. Communication between PLC and Terminal...................................................526.5.2. Table Showing Types of Variables .................................................................53

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    5/53

    Protocol Driver Manual S5 / S7 General Notes

    SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01 Page 5 of 53

    1. General Notes

    1.1. Documentation Manuals

    The documentation is presented in 3 manuals:

    1.1.1. Device Manual

    The Device Manual contains

    a product overview with technical specifications and the features of the devices and thefirmware, and the designation of the accessories.

    the setting up and installation instructions,

    and the description of the start-up.

    1.1.2. Engineering Manual

    The Project Engineers Manual contains

    a description of the SPSPlus WIN project tool, and

    the design of the devices

    1.1.3. Protocol Driver Manuals

    The Protocol Driver Manuals contain descriptions of all features of the protocol drivers used,e.g., addressing the process links and specific design notes.

    1.1.4. Target Groups

    Target group Required manual Required chapters

    Overview Device manual Product overview Protocol driver manual Function overview

    Design engineer /programmer

    all all

    Operator Device manual Operation

    Installer Device manual Setting-up and installation

    instructionsService Device manual all Protocol driver manual Configuration

    In compiling the manuals we have made every attempt to provide complete and correctinformation for the design and use of the products described. If despite this you should findthat an important document is missing or if you find a mistake or other discrepancy in any ofthe Manuals, please inform us so that we can take necessary remedial action.

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    6/53

    General Notes Protocol Driver Manual S5 / S7

    Page 6 of 53 SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

    1.2. Safety Alert Symbols

    Safety alert symbols in this Manual use the words

    Caution

    to indicate a potentially dangerous situation which, if not avoided, could result in fatal injuryand damage to property.

    Notes using the symbol

    F

    indicate important information to which we want to draw your particular attention.

    Text in square brackets

    []

    indicates input strings

    F Input only the chain, not the square brackets.

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    7/53

    Protocol Driver Manual S5 / S7 Safety Notes

    SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01 Page 7 of 53

    2. Safety Notes

    2.1. General Provisions

    This Manual contains information for the proper use and application of the products

    described herein. The Manual has been written for operators with technical qualification andapplicable know-how in the area of automation equipment and data transfer technology.Operators with technical qualification are persons,

    who as designers are familiar with safety concepts in automation engineering and datatransfer technology,

    or who as operators have been trained in handling devices and the system, respectively,and who are familiar with the contents of this Manual,

    or who have been trained as installers or service technicians of appropriate systems in

    accordance with applicable safety standards.

    Detailed knowledge and the technically correct application of the installation procedures /safety notes / functions described in this Manual are a precondition for its safe operation.

    As the components and devices described in this Manual can be used in most diverseareas and systems, it is absolutely required that their functions and the appropriate safetynotes be integrated in the safety concept of the system of which they are a part.

    If you have any questions, the support staff of SAE-STAHL will be pleased to assist you.

    2.2. Use for Intended Purpose

    The components / the device may only be used for the purpose for which it is designed (asdescribed in the product information or the technical specification). The applicable safetystandards have been implemented in the development, production, testing anddocumentation of the product. Normally the product is not associated with dangeroussituations which may result in injury or damage provided the handling instructions andsafety notes are observed.

    Caution:

    When the casing is removed or the control cubicle door opened, parts that maybe live with dangerous voltage become accessible.

    The product is only safe if it is transported, stored, installed and operatedproperly.

    Only certified personnel who have read and understood this Manual may work onthe product (see below).

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    8/53

    Safety Notes Protocol Driver Manual S5 / S7

    Page 8 of 53 SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

    2.3. Repairs

    SAE-STAHL products may only be repaired by SAE-STAHL customer service staff orother certified persons / firms.

    Only original modules and parts of SAE-STAHL may be used.

    The customer is only allowed to replace modules if this is expressly allowed in thisManual. The work must be carried out by trained personnel.

    Standard parts, such as fuses, must be of the specified rating.

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    9/53

    3. Communication

    Three different firmware versions are available for communication with a Simatic S5. Allversions have access to the data block area. Addressing is as usual in data block (DB) anddata word (DW). For an overview of devices and procedures, see the table below. For the

    type of communication interface, see the chapter "Installation on the SPC.

    3.1. SPC Mode S5/PG

    The PG procedure (AS511) links the devices to the programming interface of Simatic S5.

    Warning notes:

    this link-up is not suitable for fast events (response time < 500 ms). The PG interface is critical under the EMC aspect (see chapter Interference

    Suppression Measures.

    The AS511 protocol is non-assured and nested extensively.Use only:

    in non-critical environment (no converter) with short distance (within a circuit)In many instances, the L1 procedure can replace the AS511. An overview is givenoverleaf.

    3.2. SPC Mode S5/3964R/RK512

    This quick and assured procedure is used to provide a link-up with various programmablecontrollers and communication processors. The SAE-STAHL devices act as master andtransmit data from the data blocks by means of AD and ED telegram.

    3.3. SPC Mode S5/L1-Bus

    The Sinec-L1 bus is used to advantage for the link-up of minor controls (100U) or of largercontrols to save interface modules. It permits the interconnection of as many as 16 users.Considering the low data transmission rate of 9600 baud, the number of devicessimultaneously served by the bus is limited. SAE-Stahl recommends to link four devices toone control. The cycle times are around approx. 150ms for each connected terminal device.S5 has a comfortable function module that ensures the complete communication.

    3.4. Cycle Times

    Transmission time S5-PG S5-3964R (9600 Bd) S5-L1 (9600 Bd)Cycle [approx. ms] 500 80...200ms 150 / terminal dev.Function keys [ms] 250...500 110 150 / terminal dev.

    Change of SPC cycle time 95U none 2..3ms 5ms

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    10/53

    3.5. Connection options to S5

    Device 90U 95U 95F 100U 115U 115H 115F 135U 155U 155H

    CPU-Types

    1 SS 2 SS L2 * 101 102 103 941 942 943/b 944/b 945 * * 926 928a 928b 928b 948 *

    CPUinterfaces

    1 1 2 1 1 1 1 1 1 1/2** 1/2** 1/2** 1 1/2** 1/2** 1 1

    PG/AS511Add. SAEAdd. Sie.

    yesTM-1

    *** *** *** no yes yes *** *** *** *** *** no no no ***/1 ***/1 ***/1 no no no

    PG/L1Add. SAEAdd. Sie.

    no yes/ max. 1 SSHB-L1-RK

    -

    yes **** no no yess. 95U

    -

    yes/ max. 1 interfaceHB-L1-RK

    -

    yes/2.SS

    SAE*3Module

    no no no no yesSAE*5Module

    yesSAE*5Module

    no no

    3964RAdd. SAEAdd. Sie.

    no no yes/2.SS

    SAE*1-

    no no no no no no yes/2.SS

    SAE*1Option

    yes/2.SS

    SAE*4Module

    no no no no yes/2.SS

    SAE*0Module

    yes/2.SS

    SAE*0Module

    no no

    Additionalmodules

    CP521/SI no CP521/SI

    CP524/ CP525/ CP544/ CP544B CP524/ CP525/ CP544/ CP544B

    CP524/ CP525/CP544/ CP544B

    ProtocolAdd. SAEAdd. Sie.

    3964R/RK512HB-CP521

    -

    3964Rs. 95U

    3964R/RK512-

    COM525

    3964R/RK512-

    COM525

    3964R/RK512-

    COM525

    Additionalmodules

    SAS525 SAS525 SAS525

    ProtocolAdd. SAEAdd. Sie.

    3964R/RK512HB SAS-525 for 115U

    -

    3964R/RK512HB SAS-525 for 135U

    -

    3964R/RK512HB SAS-525 (155U)

    -

    Additionalmodules

    CP530 * CP530 CP530

    ProtocolAdd. SAEAdd. Sie.

    L1HB-L1-Bus for 115U

    COM530

    L1HB-L1-Bus for 135U

    COM530

    L1HB-L1-Bus for 155U

    COM530

    ProtocolAdd. SAEAdd. Sie.

    L2-DPSAE*2

    L2-DPSAE*2

    IM308-B/ IM308-C

    L2-DPSAE*2

    IM308-B/ IM308-C

    L2-DPSAE*2

    IM308-B/ IM308-C

    * Not possible at present Sie Siemens SAE*3 HB-CPU-945-L1** Option SAE*0 Entry in DX2 SAE*4 HB-CPU945-RK512*** AS511 coupling very critical (see page before) SAE*1 HB-CPU-RK512 SAE*5 HB-L1-928b**** On request SAE*2 HB-L2-S5BL2DP incl. Type file

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    11/53

    Protocol Diver Manual S5 / S7 Communication

    SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01 Page 11 of 53

    3.6. Connection options to S7

    S7-200 CPU Additional modules

    CPU interface 210 212 214 215 216 CP 242-2 CP 242-8

    PPI yes* yes* yes* yes* yes* -- --

    MPI -- -- -- -- -- -- --

    L2-DP -- -- -- no ** -- -- no **

    -- Not possible* At present only ProVicom MT-300** CPU / interface has only one L2-DP Slave interface

    S7-300 CPU

    CPU interface 312 313 314 315 315-2 DP

    PPI -- -- -- -- --MPI yes* yes* yes* yes* yes*

    L2-DP -- -- -- -- yes**

    Additional modules

    CP 340 CP 341 CP 342-2 CP 342-5 CP 343-1 CP 343-5

    L2-DP -- -- -- yes** -- --

    3646R yes*** yes**** -- -- -- --

    -- not possible* Number of stations dependent on software status and hardware design** with HB-S7-L2-DP

    *** with HB-S7-CP340**** Operating system includes Interpreter RK 512

    S7-400 CPU

    CPU interface 412 413-2 DP 414-2 DP 416 416-2 DP

    PPI -- -- -- -- --

    MPI yes* yes* yes* yes* yes*

    L2-DP -- yes** yes** -- yes**

    Additional modules

    CP 441-1 CP 441-2 CP 443-1 CP 443-5L2-DP -- -- -- yes**

    3646R yes*** yes**** -- --

    -- not possible* Number of stations dependent on software status and hardware design** with HB-S7-L2-DP*** with HB-S7-CP-441-1**** Operating system includes Interpreter RK 512

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    12/53

    Installation on the PLC Protocol Driver Manual S5 / S7

    Page 12 of 53 SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

    4. Installation on the PLC

    4.1. Overview

    In the following chapter the connecting cables on terminals X2 and X4 will be specified in

    the procedures.

    Standard communication interface (MT-300 and ET-8): TTY

    Bus operation L1 with SK1-G-BT: RS-422

    With MT-310, connection via TTY is not possible. The connection to S5 or S7 canonly be made via RS-232-C or RS-422.

    A list of the possible interface connections on the various Simatic S5 systems can be foundin the chapter "Product Survey/ Communication".

    In order to build up communication with the PLC, the programming cable may not beattached to the programming interface.

    4.2. Installation on the Programming Interface S5 with AS511

    (Only for operating software S5-PG)

    Warning note:The AS511 is a is non-assured procedure. Hence malfunction cannot be excluded in

    the case of error. Only the L1 procedure can be used with many programmablecontrollers.

    Caution:"Packing" and "Downloading of HBs, DBs, etc. from PG" is not permitted while theprocedure is running.The addresses of the data DBs are read during device enable. They may not bechanged while the procedure is running.Remedy during the "Transfer" PU function:

    Switch off the device

    To connect the device to the S5, no further settings are required on the S5. Theparameter setting on the interface should be as follows (see Configuration): 9600baud, 8 data bits, 1 stop bit, even parity.

    F

    F

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    13/53

    Protocol Driver Manual S5 / S7 Installation on the PLC

    SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01 Page 13 of 53

    4.2.1. ProVicom/ Exicom with TTY Passive/Passive (Default)

    The connecting cable VB-10 is available as a special accessory.ET-8 MT-300 S5 - PGCOM1 X2/ COM3

    Pin 25-pole sub-D 15-pole sub-D

    Refer to Device Manual, chapter "Suppression measures/ Installation guidelines" for screening andinterference immunity.

    Cable requirements:

    twisted pairand screened

    Screen connected to the caseof the plug connector

    6

    7

    2

    3

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    14/53

    Installation on the PLC Protocol Driver Manual S5 / S7

    Page 14 of 53 SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

    4.2.2. ProVicom/Exicom with TTY Active/Active (optional)

    The connecting cable VB-80 is available as a special accessory.ET-8 MT-300 S5 - PGCOM1 X2/ COM3

    Pin 25-pole sub-D 15-pole sub-D

    Refer to Device Manual, chapter "Suppression measures/ Installation guidelines" for screening andinterference immunity.

    4.2.3. Port Parameters

    The interface parameters are set with the design software SPSPlus WIN.

    Cable requirements:twisted pairand screened

    Screen connected to the caseof the plug connector

    1

    2

    3

    4

    5

    6

    7

    8

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    15/53

    Protocol Driver Manual S5 / S7 Installation on the PLC

    SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01 Page 15 of 53

    4.3. Installation on 3964R of S5 CP 524/525 and S5 CP 544

    (Only for operating software 3964R)

    Siemens CP524/525 and Siemens CP544, respectively, must be initialized with interpreter

    RK512 and procedure 3964R. The following parameters are defaults :

    9600 baud8 data bits1 stop biteven parityhigher priority+-------------------------------------------------------------+

    | SIEMENS SIMATIC S5 Page: 1 || COM 525 - CP525/524 06/11/91 |+-------------------------------------------------------------+

    | Drive. C Program: 9600 Last editing: 06/11/91 || System: LINK-UP 9600 BD Author: BRAASCH |+-------------------------------------------------------------+===============================================================

    PROGRAM LENGTH: 9321 words===============================================================

    =========================================

    I N T E R P R E T E R / P R O C E D U R E=========================================

    Component: COMPUTER COUPLING (cc)Module Name Version Parameters

    ---------------------------------------------------------------Interpreter RK512 01 -Procedure P3964R 01 Baud rate: 9600

    Character length 8 bits No. of stop bits: 1 Priority: higher Parity: even

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    16/53

    Installation on the PLC Protocol Driver Manual S5 / S7

    Page 16 of 53 SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

    While the S5 starts, make sure of the synchronization between CP524/525 and the CPU inthe programmable controller. This is ensured by a single synchronization module enable.

    For example: AG115U of FB249:FB 100

    NETWORK 1 0000

    NAME :CP-SYNCH0005 :0006 :0007 :SPA FB 2490008 NAME :SYNCHRON0009 SSNR : KY 0,0 Port number 0000A BLGR : KY 0,1000B PAFE : MB 100

    To ensure the constant exchange of data between the CPU and the CP524/525, receive all

    and send all should be enabled cyclically.

    Example:NETWORK 1 0000

    NAME :CP-TRANS0005 : SEND ALL SS00006 :SPA FB 244 FB 244 at AG 115U0007 NAME :SEND Job 00008 SSNR : KY 0,0 Port number 00009 A-NR : KY 0,0000A ANZW : MW 102

    000B QTYP : KC DB000C DBNR : KY 0,0000D QANF : KF +0000E QLAE : KF +0000F PAFE : MB 1040010 : RECEIVE ALL port number 00011 :SPA FB 245 FB 245 at AG 115U0012 NAME :RECEIVE Job 00013 SSNR : KY 0,0 Port number 00009 A-NR : KY 0,0000A ANZW : MW 106000B ZTYP : KC DB

    000C DBNR : KY 0,0000D ZANF : KF +0000E ZLAE : KF +0000F PAFE : MB 108001B :001C :BE

    No further SEND or RECEIVE jobs need be programmed in the CP524/525 or CP544 .

    The above example assumes that the communication processor is at port number 0.Otherwise, the current port number must be entered at this location number.

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    17/53

    Protocol Driver Manual S5 / S7 Installation on the PLC

    SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01 Page 17 of 53

    4.3.1. Installation on CP524/525 and on CP544 via TTY

    The connecting cable VB61 is available as a special accessory.

    ET-8 MT-300 CP525/CP524/CP544 TTY

    COM1 X2/ COM3Pin 25-pole sub-D 25-pole sub-D

    Refer to Device Manual, chapter "Suppression measures/ Installation guidelines" for screening andinterference immunity.

    Screen connected to the caseof the plug connector

    Cable requirements:twisted pairand screened

    6

    7

    2

    3

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    18/53

    Installation on the PLC Protocol Driver Manual S5 / S7

    Page 18 of 53 SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

    4.3.2. Installation on CP524/525 and on CP544 via V.24

    This connection is good for short distances of up to 3m.ET-8 MT-300: X4/ COM1 CP525/CP524/CP544 V24COM2 MT-310: X4/ COM4 oder COM1/ COM2*

    Pin 9-pole sub-D 25-pole sub-D

    Refer to Device Manual, chapter "Suppression measures/ Installation guidelines" for screening andinterference immunity.

    * For COM1/ COM2 you require the adapter cable VB-331.

    Screen connected to the caseof the plug connector

    9

    10

    15

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    19/53

    Protocol Driver Manual S5 / S7 Installation on the PLC

    SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01 Page 19 of 53

    4.4. Installation on S5 CP521-SI

    Operation is only possible with

    AG100U CPU103

    AG95U

    and the driver module SAE-STAHL HB CP521For a detailed description, see the HB CP521 Manual.

    Connection diagram TTY Siemens CP521-SI on ProVicom/ Exicom

    ET-8 MT-300 CP521 SICOM1 X2/ COM3Pin 25-pole sub-D 25-pole sub-D

    Refer to Device Manual, chapter "Suppression measures/ Installation guidelines" for screening andinterference immunity.

    Cable requirements:twisted pairand screened

    Screen connected tothe caseof the plug

    connector

    6

    7

    2

    3

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    20/53

    Installation on the PLC Protocol Driver Manual S5 / S7

    Page 20 of 53 SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

    Connection diagram V.24 Siemens CP521-SI on ProVicom/ Exicom

    ET-8 MT-300: X4/ COM1 CP521 SICOM2 MT-310: X4/ COM4 or COM1/ COM2*Pin 9-pole sub-D 25-pole sub-D

    Refer to Device Manual, chapter "Suppression measures/ Installation guidelines" for screening andinterference immunity.

    * For COM1/ COM2 you require the adapter cable VB-331.

    Further setting-up instructions can be found in the CP521SI communication processor

    manual.

    A driver module for operating the ProVicom/ Exicom devices on CP521SI is available fromSAE-STAHL.

    Caution:The design of the driver module requires that the CP521SI must be in slot 0(address 64 PAE/PAA). To make the setting of the communication cycle time

    independent of that of the program cycle time, the driver module is enabled by OB13.

    Screen connected to the caseof the plug connector

    9

    10

    15

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    21/53

    Protocol Driver Manual S5 / S7 Installation on the PLC

    SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01 Page 21 of 53

    4.5. Installation on 3964R of SAE-STAHL SAS 525

    (Only for operating software 3964R)

    Communication between the ProVicom/ Exicom terminal device and the interface module

    SAS-525 is easy to make.

    1. The modules FB194, FB195, FB197, FB198, FB199 must be transferred from the drivermodule to the programmable controller.

    2. To configure the module, the FB194 must be called from the startup OB once for everyinterface channel. Make certain that one data block with at least 32 data words isreserved for each interface for configuration.Important: The starting address specified at identified ADR: must be the same as thatset with DIL switches S1 and S2.

    3. To ensure communication, the FB195 must be polled cyclically with the data block

    defined for each interface channel during configuration.

    For more details on SAE-STAHL SAS 525, please consult the SAE-STAHL SAS 525manual.

    Example:

    In the example below, the interface module SAE-STAHL SAS 525 has been set to addressF080 and is mounted in slot 0 in AGU 115 next to the CPU card. Data blocks DB 190, DB191, and DB 192 have been firmly assigned to it.

    4.5.1. Setting the DIL Switches

    Text im Diagramm:

    Modul fr Kanal 1 - Module for channel 1Modul fr Kanal 2 - Module for channel 2Modul fr Kanal 3 - Module for channel 3

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    22/53

    Installation on the PLC Protocol Driver Manual S5 / S7

    Page 22 of 53 SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

    4.5.1.1. Plug connectors X6 and X3

    If the module is used with a TTY module as the active part of a current loop, voltage to the20mA current sources on the TTY modules can either be internal or external.

    If the supply is internal, 24V is fed by the S5 mains power supply unit via the top or bottom

    bus plug connector. Externally, the TTY modules can be supplied with 10V to 36V (typically24V) at both flat connectors on the front panel. The external 24V supply is equipped withpole protecting diodes so that any polarity of the external source is permitted.

    The supply of the appropriate voltage is made with plug connectors X3 and X6.

    Plug panel X6 defines if the 24V to the TTY current loop is supplied externally by the twoflat plugs on the front panel or - if available - internally by the S5 bus. An internal connectionis only possible if 24V is available at the slot of this module. This is not the case in all slotsof the programmable controllers.

    Internal (top) and external (bottom) voltage supply of the TTY interface.

    If in TTY mode internal voltage is supplied, the EMC resistance of that module is reduced.The reason is that the electrical isolation is disabled. If the interface card is installed in largeelectromagnetic interference fields, an external voltage source should be chosen as amatter of principle.

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    23/53

    Protocol Driver Manual S5 / S7 Installation on the PLC

    SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01 Page 23 of 53

    The different setting of plug panel X3 allows to choose whether if the TTY current loop issupplied internally the voltage is to come from the top or bottom base plug. If the 24V issupplied to top base plug X1 (this is the case with AG 115), then the jumpers must be setas follows:

    If 24V is available on the bottom base plug (X2) (AG 135, AG 150 and AG 155), the plugconnector configuration is as follows:

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    24/53

    Installation on the PLC Protocol Driver Manual S5 / S7

    Page 24 of 53 SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

    4.5.2. Interface Card Configuration

    NETWORK 1 0000NAME: KONFIG

    0005 :0006 :SPA FB 194

    0007 NAME :KONFIG64 Parameter setting of interface 10008 DBHB : DB 190 Data block 1900009 ADR : KH F080 Base address F080000A KAN : KF +1 Channel 1000B BAUD : KF +7 9600 baud000C BCC : KC JA 3964R with BCC000D PRIO : KC HO High priority000E FEHL : MB 190 Error message in MB190000F :0010 :SPA FB 1940011 NAME :KONFIG64 Parameter setting of interface 20012 DBHB : DB 1910013 ADR : KH F0800014 KAN : KF +20015 BAUD : KF +7

    0016 BCC : KC JA0017 PRIO : KC HO0018 FEHL : MB 1910019 :001A :SPA FB 194 Parameter setting of interface 3001B NAME :KONFIG64001C DBHB : DB 192001D ADR : KH F080001E KAN : KF +3001F BAUD : KF +70020 BCC : KC JA0021 PRIO : KC HO0022 FEHL : MB 1920023 :0024 :BE

    4.5.3. Cyclic Handling of Communication

    NETWORK 1 0000NAME: KOMMUN

    0005 :SPA FB 195 Edit interface 10006 NAME :PASSIV0007 HTDB : DB 1900008 :0009 :SPA FB 195 Edit interface 2000A NAME :PASSIV000B HTDB : DB 191000C :000D :SPA FB 195 Edit interface 3000E NAME :PASSIV000F HTDB : DB 1920010 :0011 :BE

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    25/53

    Protocol Driver Manual S5 / S7 Installation on the PLC

    SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01 Page 25 of 53

    The connecting cable VB-64 is available as a special accessory.ET-8 MT-300 SAS 525COM1 X2/ COM3Pin 25-pole sub-D 25-pole sub-D

    Refer to Device Manual, chapter "Suppression measures/ Installation guidelines" for screening andinterference immunity.

    When the SAE-STAHL SAS 525 is used in programmable controller AG 135U, thecommunication may fail if an automatic restart is made after "Mains Supply On". It istherefore recommended to program automatic new start instead of automatic recovery inDX0.

    Screen connected to the caseof the plug connector

    Cable requirements:twisted pairand screened

    6

    7

    2

    3

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    26/53

    Installation on the PLC Protocol Driver Manual S5 / S7

    Page 26 of 53 SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

    4.6. Installation on 3964R of S7 CP340

    Using the CP340, it is possible to operate the SAE-STAHL terminals on a SIMATIC S7. Forthis, the SAE-STAHL terminals must be fitted with the 3964R firmware.

    Proceed as follows:1 Install the CP3402 Configure3 Set parameters4 Integrate program

    1 Installing the CP340For a detailed description, see the CP340 Point-to-Point Link-up Manual.

    2 Configuring the CP340To integrate the CP340, the following settings must be made.

    1 The design package for the CP340 must be installed on the PU.Library CP340 is created during installation.

    2 The CP340 must be integrated in the hardware configuration menu.The CP340 can be found under Simatic 300 in the Hardware Catalog under- CP-300- CP340 RS232 MODULEWhen the CP340 is integrated, the logic base address is automatically created by the

    system.

    3 Setting the CP340Object features :

    Basic parameter : alarm generation = NO

    For more information, please see the CP340 Point-to-Point Link-up Manual.

    3 Setting CP340 parametersThe parameters menu item can only be selected if the CP340 design package isinstalled.

    Parameters : Protocol 3964R with block checkUse default valuesBaud rate : 9600 baudData bits : 8Stop bit : 1Parity : evenPriority : high

    Protocol parameters :Character delay time : 220 msConfirm delay : 2000ms

    Establishment attempts : 6Transmission attempts : 6

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    27/53

    Protocol Driver Manual S5 / S7 Installation on the PLC

    SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01 Page 27 of 53

    For more information, please see the CP340 Point-to-Point Link-up Manual.4 Integrate program

    FB2 and FB3 must be copied from the CP340 library to the project.

    From Step 7-Project SAE_CP340, DB2, DB3 FB15 and DB15 must be copied in theproject.

    FB 15 must be called cyclically from OB1.

    CALL FB 15 , DB15 DB15 entity DBADR := 256 Logic base addressKOMM := M 10.0 Communication bit is set 1 with every correct

    communication

    ADR = logic base address The logic base address is assigned automatically by the

    system when the CP340 is integrated in the hardwareconfiguration.

    Data handling blocks DB2, DB3 and DB15 are entity blocks and may not be handled byany other program.

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    28/53

    Installation on the PLC Protocol Driver Manual S5 / S7

    Page 28 of 53 SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

    4.6.1. ProVicom Pin Configuration via V.24 / RS-232-C

    Connection on X2:The connecting cable VB-30 is available as a special accessory.

    MT-300 CP340

    X225-pole Sub-D 9-pole Sub-D

    Connection to X4:

    The interface cable VB31 is available as a special accessory.

    MT-300: X4/ COM1 CP340MT-310: X4/ COM4*9-pole Sub-D 9-pole Sub-D

    * For COM1/ COM2 you require the adapter cable VB-331.

    NOTE :

    For more information on interference suppression measures / set-up requirementsand line screening, please see the CP340 Point-to-Point Link-up Manual and theappropriate Device manual for the ProVicom/ Exicom.

    Screen connection to

    connector enclosure

    Screen connection toconnector enclosure

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    29/53

    Protocol Driver Manual S5 / S7 Installation on the PLC

    SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01 Page 29 of 53

    4.6.2. ProVicom/ Exicom Pin Configuration via RS422

    Pin configuration for the CP-340-RS 422/485

    ET-8 MT-300 CP340COM1 X2/ COM3Pin 25-pole sub-D 15-pole sub-D

    Refer to Device Manual, chapter "Suppression measures/ Installation guidelines" for screening andinterference immunity.

    ET-8 MT-300: X4/ COM1 CP340COM1 MT-310: X4/ COM4 X27Pin 9-pole sub-D 15-pole sub-D

    Refer to Device Manual, chapter "Suppression measures/ Installation guidelines" for screening andinterference immunity.

    Cable requirements:

    twisted pair

    and screened

    Cable requirements:twisted pair

    and screened

    Screen connected to the caseof the plug connector

    Screen connected to the caseof the plug connector

    2

    1

    4

    3

    2

    1

    4

    3

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    30/53

    Installation on the PLC Protocol Driver Manual S5 / S7

    Page 30 of 53 SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

    4.7. Installation on 3964R of S7 CP441-1

    Using the CP441-1, it is possible to operate the SAE-STAHL terminals on a SIMATIC S7400. For this, the SAE-STAHL terminals must be fitted with the 3964R firmware.

    Proceed as follows:1 Install the CP441-12 Configure3 Set parameters4 Integrate program

    1 Installing the CP441-1For a detailed description, see the CP441 Point-to-Point Link-up Manual.

    2 Configuring the CP441-1To integrate the CP441-1, the following settings must be made.1 The design package for the CP441-1 must be installed on the PU.

    Library CP441-1 is created during installation.The parameter settings of the CP441-1 cannot be made without the design package.

    2 The CP441-1 must be integrated in the hardware configuration menu.The CP441-1 can be found under Simatic 400 in the Hardware Catalog- CP-400- CP PtP 1SIWhen the CP441-1 is integrated, the logic base address is automatically created by

    the system.

    3 Setting the CP441-1Object features :Basic parameter : alarm generation = NOThe interface type used must be entered at module.

    For more information, please see the CP441-1 Point-to-Point Link-up Manual.

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    31/53

    Protocol Driver Manual S5 / S7 Installation on the PLC

    SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01 Page 31 of 53

    3 Setting CP441-1 parametersThe parameters menu item can only be selected if the 441-1 design package isinstalled.

    Parameters : Protocol 3964R with block check

    Use default valuesBaud rate: 9600 baudData bits: 8Stop bit: 1Parity: evenPriority: high

    Protocol parameters :Character delay time: 220 msConfirm delay: 2000msEstablishment attempts: 6Transmission attempts: 6

    For more information, please see the CP441-1 Point-to-Point Link-up Manual.

    4 Integrate program

    From Step 7-Project SAE_441, DB12, DB13 FB14 and DB14 must be copied in theproject.

    FB 14 must be called cyclically from OB1.

    CALL FB 14 , DB14 DB14 entity DBID := 1001 l Logic base addressKOMM := M 10.0 Communication bit is set 1 with every correct

    communication

    ID = logic base address The logic base address is assigned automatically by thesystem when the CP441-1 is integrated in the hardwareconfiguration.

    Data handling blocks DB12, DB13 and DB14 are entity blocks and may not be handled byany other program.

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    32/53

    Installation on the PLC Protocol Driver Manual S5 / S7

    Page 32 of 53 SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

    4.7.1. ProVicom Pin Configuration ProVicom / Exicom via V.24 / RS-232-C

    Connection on MT-300 X2/ COM3:The interface cable VB30 is available as a special accessory.

    MT-300 CP441-1

    X2/ COM325-pole Sub-D 9-pole Sub-D

    Connection on ProVicom/ Exicom COM1:

    The interface cable VB31 is available as a special accessory.

    ET-8 MT-300: X4/ COM1 CP441-1COM1 MT-310: X4/ COM4 or COM1/ COM2*Pin 9-pole Sub-D 9-pole Sub-D

    * For COM1/ COM2 you require the adapter cable VB-331.

    NOTE:For more information on interference suppression measures / set-up requirementsand line screening, please see the CP441 Point-to-Point Link-up Manual and themanual for the appropriate SAE-STAHL terminal.

    9

    10

    15

    Screen connection to

    connector enclosure

    Screen connection to

    connector enclosure

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    33/53

    Protocol Driver Manual S5 / S7 Installation on the PLC

    SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01 Page 33 of 53

    4.7.2. ProVicom/Exicom Pin Configuration via TTY

    ET-8 MT-300 CP441COM1 X2/ COM3Pin 25-pole sub-D 9-pole sub-D

    Refer to Device Manual, chapter "Suppression measures/ Installation guidelines" for screening and

    interference immunity.

    Cablerequirements:

    twisted pair

    and screened

    Screen connected to the case

    of the plug connector

    6

    7

    2

    3

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    34/53

    Installation on the PLC Protocol Driver Manual S5 / S7

    Page 34 of 53 SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

    4.8. Installation on the MPI-Bus via MPI-Box

    For interfacing to the MPI-Bus, SAE-STAHL offers an MPI-Box in two variants:- MPI-Box RS-232- MPI-Box RS-422

    These devices are interface converters which convert the MPI protocol into the 3964R/RK512 protocol (physically RS-323-C).This requires for the ProVicom and Exicom devices an RS-422 or a galvanically isolatedRS-232-C interface and the protocol driver 3964R which is available for all devices.Addressing is made according the 3964R/ RK 512 on S7.

    Attention:That means that the data word address engineered in the PLCPlus G is doubled in the S7,whereas the SPSPlus WIN shows the original address.Example:

    Address in PLCPlus G Address in SPSPlus WIN Address in S7030000 DB 30 DW 0 DB 30 DW 0

    030010 DB 30 DW 20 DB 30 DW 20020100 DB 20 DW 200 DB 20 DW 200

    Attention:The address area used in the terminal must exist completely in the S7, otherwise the errormessage "Communication error" is displayed in the terminal.

    The default MPI addresses are:S7 2ProVicom/ Exicom 5

    Attention:That means that only one device can be connected to the MPI interface with the MPI cableor MPI-Box!

    The interface parameters of the terminals must be fixed19200 baud8 data bits1 stop biteven parity

    The baudrate of the S7 must be set to 187.5 Kbaud.

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    35/53

    Protocol Driver Manual S5 / S7 Installation on the PLC

    SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01 Page 35 of 53

    4.8.1. MPI-Box power supply

    There are two options for power supply of the MPI-Box:

    Via the S7 MPI interface or

    Via an external 24V voltage

    4.8.2. Interfacing PG and MPI-Box

    A Siemens Profibusconnector is required.- Coupling of the MPI-Box is made via the bus cable with external power supply of the

    MPI-Box- with the MPI-Box the PG is connected directly to the S7 MPI interface via the

    Profibusconnector

    4.8.3. Mounting instructions and installation MPI-Box RS-232

    ProVicom:

    = VB-31 = MPI-Box X4 and X2 = RS-232-C

    The general safety instructions and installation guidelines of the SAE-STAHL Manuals arevalid.

    4.8.4. Installation of a ProVicom on S7/MPI with MPI-Box RS-232

    For the installation you require:

    MPI-Box

    VB-31, must be ordered additionally

    Proceed as follows:1. Connect the 9-pole plug of the MPI-Box with the S7 MPI interface2. Connect the 25-pole socket of the MPI-Box with VB-313. Connect the VB-31 cable to the X4 interface of the ProVicom device

    Caution:No interfacing should be via the X2 programming interface because in the case ofinterference coupling to the MPI cable the terminal could be interfered

    ProVicomMT-xx

    SPSS7

    3 Meters

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    36/53

    Installation on the PLC Protocol Driver Manual S5 / S7

    Page 36 of 53 SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

    4.8.5. Connection diagram MPI-Box RS-232

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    37/53

    Protocol Driver Manual S5 / S7 Installation on the PLC

    SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01 Page 37 of 53

    4.8.6. Interfacing to MPI-BOX RS-422

    In order to connect the device onto the MPI-interface, both devices must have the sameinterface parameters. These are adjustable, the default settings are:

    19200 Baud

    8 data bits1 stop biteven parity

    Own address in the MPI net : 5(Adjusted in Interfaces->COM ->"Own Station Number"

    Address of the target CPU: 2(Adjusted in Interfaces->COM ->Station parameters->"Station Number"

    The interface cable must be produced as follows :

    Exicom ET-8 MT-300: X4/ COM1 MPI-BOXCOM1 MT-310: X4/ COM4 RS422Pin 9-pole Sub-D 9-pole Sub-D

    Refer to Device Manual, chapter "Suppression measures/Installation guidelines" for screening andinterference immunity.

    Screen connection to

    connector enclosure

    2

    1

    4

    3

    Cablerequirements:

    twisted pair and

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    38/53

    Installation on the PLC Protocol Driver Manual S5 / S7

    Page 38 of 53 SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

    4.9. Interface Parameters S5/ S7 3964R

    The interface parameters are set with the engineering software SPSPlus WIN.

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    39/53

    Protocol Driver Manual S5 / S7 Installation on the PLC

    SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01 Page 39 of 53

    4.10. Installation on L1 Bus

    4.10.1. System overview L1

    The SINEC-L1 coupler allows easy link-up with the programmable controllers Simatic S595U, 100U (only CPU 103) and 115U as well as to CP 530 and SAE-STAHL SAS-530 (CP

    530 compatible module for S5 115U). The SINEC-L1 interface module can be used as"point-to-point" coupler.

    The terminal devices takes over the task of the bus master.

    Cycle time:

    Requirement 9600 Bd 19200 Bd (only with SAS)

    Cycle time 150 ms 100 ms

    4.10.2. Installation of Terminal Stations

    Single-terminal operation:Own station number = 1Maximum station number = 1

    Setting the station number:The configuration point can be found in the configuration menu.

    Example: 1 MT-300 on a programmable controller AG95U

    1. Set your own station number 1

    2. Number of terminal stations in the SINEC-L1 busMaximum station number to 1

    3. Make the connection between the terminal station and the AG95Uusing the SAE-STAHL standard cable VB10.

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    40/53

    Installation on the PLC Protocol Driver Manual S5 / S7

    Page 40 of 53 SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

    4.10.3. L1 Connection via PG Interface

    4.10.3.1. Installation of the Data Handling Blocks for L1

    The two SAE-STAHL data handling blocks FB"INIT" (FB60) and FB"WORK" (FB61),together with the auxiliary data block DB"H-DB" (DB6) ensure the communication with

    ProVicom/ Exicom. These data blocks are standard entries under the specified numbers onthe diskette. However, the user can transfer and run them in Simatic S5 by other numbers.

    Brief description of FB "INIT":

    initializes the SINEC-L1 coupler and the auxiliary data block

    link-up with 95U, 100U (only CPU 103), 115U via PU plug

    call FB "INIT" in OB20-OB22

    FB "INIT", as scratch flag, uses MB240-MB245

    FB "INIT" input parameter "H-DB" :

    designates a data block that may only be used by the SAE-STAHL data handlingblocks

    supply a number from 2-255 in one word as a parameter

    the data block must be available in the programmable controller (at least 100 DW).

    FB "INIT" output parameter "FEHL" :

    designates a sense byte to give the application program a chance to evaluate theL1 initialization

    possible as parameter MB0-MB255

    sense bit 0 : "1"= Initialization O.K.

    sense bit 1 : "1"= H-DB not available

    sense bit 2 : "1"= H-DB too short

    sense bit 3 : "1"= H-DB number invalid (0,1,>255)

    sense bit 4 : not in use

    sense bit 5 :not in use

    sense bit 6 : not in use

    sense bit 7 : "1"= wrong CPU number (e.g. 135U/155U)

    An example of initialization on recovery is given below. DB 6 is defined as auxiliary datablock, the error is transferred at MB 254.

    OB21 :

    : L KF +6

    : T MW200

    :SPA FB60 ; non-recurring initial. of L1

    NAME :INIT

    H-DB : MW 200

    FEHL : MB 254

    :BE

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    41/53

    Protocol Driver Manual S5 / S7 Installation on the PLC

    SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01 Page 41 of 53

    Brief description of FB "WORK":

    FB "WORK" is responsible for communication with the MTs

    if application program cycle times are < 250 ms, FB "WORK"should be called in OB1 at

    the beginning

    if application program cycle times are > 250 ms, FB "WORK" can also be called at thetime-controlled OB13 (100ms), it should be ensured in this case that the evaluation, e.g.,of the function keys, is also located in OB 13.

    FB "WORK" uses MB 240-MB251 as scratch flag

    average cycle time in is approx. 5 ms in operation

    FB "WORK" output parameter "FEHL" :

    designates a sense byte to give the application program a chance to evaluate theL1 link-up

    possible as parameter MB0-MB255

    sense bit 0 : "1"= Works properly

    sense bit 1 : "1"= H-DB not allowed (e.g., without INIT)

    sense bit 2 : "1"= H-DB not initialized

    sense bit 3 : not in use

    sense bit 4 : address error by MT (wrong DB address)

    sense bit 5 : not in use

    sense bit 6 : not in use

    sense bit 7 : not in use

    In the example below, the cyclic communication with ProVicom/ Exicom at the start of OB1is made.The error is transferred at MB 254. Following this, the actual application program is run.

    OB1 :

    :SPA FB61 ; Cyclic L1 handling

    NAME :WORK

    FEHL : MB 254

    :

    :SPA PB1 ; User program:BE

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    42/53

    Installation on the PLC Protocol Driver Manual S5 / S7

    Page 42 of 53 SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

    4.10.3.2. "Point-to-Point" Connection to the PG Interface

    The connecting cable VB-10 is available as a special accessory.ET-8 MT-300 S5 - L1COM1 X2/ COM3

    Pin 25-pole sub-D 15-pole sub-D

    Refer to Device Manual, chapter "Suppression measures/ Installation guidelines" for screening andinterference immunity.

    Cable requirements:

    twisted pairand screened

    Screen connection to

    connector enclosure

    6

    7

    2

    3

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    43/53

    Protocol Driver Manual S5 / S7 Addressing

    SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01 Page 43 of 53

    5. Addressing

    5.1. Address Specification

    The addresses are specified by data block (DB2...DB255) and data words (DW0...DW255).

    Value rangeDB 2...255DW 0...255

    The project connect screen is the same for all protocol drivers.In this case, the protocol driver S5-L1-RK serves as an example.

    Enter the name of the data block in DB.

    Enter the name of the data word in DW.

    Select the required file format in Format.

    For details, please consult the information to the process connections in the EngineeringManual, Chapters "Variables", "Messages" and "Keyboard Layout".

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    44/53

    Addressing Protocol Driver Manual S5 / S7

    Page 44 of 53 SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

    5.2. Setting Station Parameters

    The settings of the various address areas, e.g., for fault message area, keyboard area, LEDbit area, etc. can be made in the following screen.

    For details, please consult the Engineering Manual, chapter "Station Parameters".

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    45/53

    Protocol Driver Manual S5 / S7 Function References

    SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01 Page 45 of 53

    6. Function References

    F The address areas specified below must be observed at any rate, even if theassigned function is not covered by the device.

    6.1. Key functions

    Function keys and cursor keys are transferred form the base address set by you. (Seechapter 5.2. Setting the Station Parameters).

    SPC address keypad area

    +00 Bit15

    Bit14

    Bit13

    Bit12

    Bit11

    Bit10

    Bit9

    Bit8

    Bit7

    Bit6

    Bit5

    Bit4

    Bit3

    Bit2

    Bit1

    Bit0

    Meaning

    x x x x x x x x x x x x x x x 1 Cursor up

    x x x x x x x x x x x x x x 1 x Cursor downx x x x x x x x x x x x x 1 x x Cursor left

    x x x x x x x x x x x x 1 x x x Cursor right

    x x x x x x x x x x x 1 x x x x Clear or Escape key

    x x x x x x x x x x 1 x x x x x Enter key

    x x x 1 x x x x x x x x x x x x Info key

    x x 1 x x x x x x x x x x x x x Trigger bit

    x 1 x x x x x x x x x x x x x x Histogram full1)

    1 x x x x x x x x x x x x x x x Pass bit;Device pass control

    1)

    Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Meaning

    15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0+01 x x x x x x x x x x x x x x 1 F1

    . . . . . . . . . . . . . . . .

    x x x x 1 x x x 1 x x x x x x x F12

    +02 x x x x x x x x x x x x x x x 1 Shift-F1

    . . . . . . . . . . . . . . . .

    x x x x 1 x x x 1 x x x x x x x Shift-F12

    Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Meaning15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

    +03 x x x x x x x x x x x x x x x 1 Alt-F1

    . . . . . . . . . . . . . . . .

    x x x x 1 x x x 1 x x x x x x x Alt-F12

    +04 x x x x x x x x x x x x x x x 1 Ctrl-F1

    . . . . . . . . . . . . . . . .

    x x x x 1 x x x 1 x x x x x x x Ctrl-F12

    F= Function key

    1)Function currently not implemented.

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    46/53

    Function References Protocol Driver Manual S5 / S7

    Page 46 of 53 SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

    +05 Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Meaning15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 (only ProVicom)

    x x x x x x x x x x x x x x x 1 S1

    x x x x x x x x x x x x x x 1 x S2

    x x x x x x x x x x x x x 1 x x S3

    x x x x x x x x x x x x 1 x x x S4

    x x x x x x x x x x x 1 x x x x S5

    x x x x x x x x x x 1 x x x x x S6

    x x x x x x x x x 1 x x x x x x S7

    x x x x x x x x 1 x x x x x x x S8

    x x x x x x x 1 x x x x x x x x S9

    x x x x x x 1 x x x x x x x x x S10

    S = Soft key

    Press any of the above keys

    Sets the key bit

    Release Resets the bit

    It is not possible to press several function keys at the same time; in this case all bitssettings will be zero.

    Key transfer has priority.

    Each key press also sets the trigger bit.

    Besides, an event bit is set in case of histogram overflow. 1)

    Moreover, a PASS bit is transmitted cyclically. The pass bit is used by control to monitorthe communication. This bit can be reset by the PLC on positive-going edge. If the stateis still Zero after some time (e.g., time-out = 15 sec), control knows that thecommunication is under fault condition. 1)

    Example:The "Keyboard range" is located, for example, at DB31 DW2. This causes function keys F1to F8 "Keyboard range +1 to be placed in DB31 DW3. Now if the operator pressed the F1key, the devise sets bit 1 or bit 7 in case of F7, in DB31 DW3. At the same time the functionsaved under F1 is enabled.

    1) Function currently not implemented.

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    47/53

    Protocol Driver Manual S5 / S7 Function References

    SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01 Page 47 of 53

    For simpler handling the keypad bits can be transferred in the flag area. The following S5instructions are specified for all function keys and the use of flags 10.0 to 19.7 :

    :A DB 31

    ::L DR 0 Cursor keys:T MB 10 After flag byte 10:L DL 0 Pass bit

    1)

    :T MB 11 After flag 11.7::L DR 1 Function keys F1-F8:T MB 12 After flag byte 12::L DR 2 Shift F1-F8:T MB 13 After flag byte 13:

    :L DR 3 Alt F1-F8:T MB 14 After flag byte 14:

    The assignment in the flag area is then as follows :

    M10.0 - Cursor up...

    M10.5 - Enter keyM11.6 - Histogram full

    1)

    M11.7 - Pass bit1)

    ...M12.0 - F1

    ...M12.7 - F8

    ...M13.0 - Shift F1

    ...M13.7 - Shift F8

    ...M14.0 - Alt F1

    ...

    M14.7 - Alt F8

    1)Function currently not implemented.

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    48/53

    Function References Protocol Driver Manual S5 / S7

    Page 48 of 53 SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

    6.2. LED Bit Area

    The LED functions are transferred from the base address set by you. (See chapter 5.2.Setting the Station Parameters).

    "LED bit range"+00 Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Meaning

    15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 (only MT-300)

    x x x x x x x x x x x x x x x 1 LED F1 on green

    x x x x x x x x x x x x x x 1 x LED F2 on green

    x x x x x x x x x x x x x 1 x x LED F3 on green

    x x x x x x x x x x x x 1 x x x LED F4 on green

    x x x x x x x x x x x 1 x x x x LED F5 on green

    x x x x x x x x x x 1 x x x x x LED F6 on green

    x x x x x x x x x 1 x x x x x x LED F7 on green

    x x x x x x x x 1 x x x x x x x LED F8 on green

    x x x x x x x 1 x x x x x x x x LED F1 on yellow

    x x x x x x 1 x x x x x x x x x LED F2 on yellow

    x x x x x 1 x x x x x x x x x x LED F3 on yellow

    x x x x 1 x x x x x x x x x x x LED F4 on yellow

    x x x 1 x x x x x x x x x x x x LED F5 on yellow

    x x 1 x x x x x x x x x x x x x LED F6 on yellow

    x 1 x x x x x x x x x x x x x x LED F7 on yellow

    1 x x x x x x x x x x x x x x x LED F8 on yellow

    +01 Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Meaning

    15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 (only MT-300)

    x x x x x x x x x x x x x x x 1 LED F1 flashing green

    x x x x x x x x x x x x x x 1 x LED F2 flashing green

    x x x x x x x x x x x x x 1 x x LED F3 flashing green

    x x x x x x x x x x x x 1 x x x LED F4 flashing green

    x x x x x x x x x x x 1 x x x x LED F5 flashing greenx x x x x x x x x x 1 x x x x x LED F6 flashing green

    x x x x x x x x x 1 x x x x x x LED F7 flashing green

    x x x x x x x x 1 x x x x x x x LED F8 flashing green

    x x x x x x x 1 x x x x x x x x LED F1 flashing yellow

    x x x x x x 1 x x x x x x x x x LED F2 flashing yellow

    x x x x x 1 x x x x x x x x x x LED F3 flashing yellow

    x x x x 1 x x x x x x x x x x x LED F4 flashing yellow

    x x x 1 x x x x x x x x x x x x LED F5 flashing yellow

    x x 1 x x x x x x x x x x x x x LED F6 flashing yellow

    x 1 x x x x x x x x x x x x x x LED F7 flashing yellow

    1 x x x x x x x x x x x x x x x LED F8 flashing yellow

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    49/53

    Protocol Driver Manual S5 / S7 Function References

    SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01 Page 49 of 53

    +02 Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Meaning

    15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 (only MT-300)

    x x x x x x x x x x x x x x x 1 LED F1 flashing fastgreen

    x x x x x x x x x x x x x x1

    x LED F2 flashing fastgreen

    x x x x x x x x x x x x x 1 x x LED F3 flashing fastgreen

    x x x x x x x x x x x x 1 x x x LED F4 flashing fastgreen

    x x x x x x x x x x x 1 x x x x LED F5 flashing fastgreen

    x x x x x x x x x x 1 x x x x x LED F6 flashing fastgreen

    x x x x x x x x x 1 x x x x x x LED F7 flashing fastgreen

    x x x x x x x x 1 x x x x x x x LED F8 flashing fastgreen

    x x x x x x x 1 x x x x x x x x LED F1 flashing fastyellow

    x x x x x x 1 x x x x x x x x x LED F2 flashing fastyellow

    x x x x x 1 x x x x x x x x x x LED F3 flashing fastyellow

    x x x x 1 x x x x x x x x x x x LED F4 flashing fastyellow

    x x x 1 x x x x x x x x x x x x LED F5 flashing fastyellow

    x x 1 x x x x x x x x x x x x x LED F6 flashing fastyellow

    x 1 x x x x x x x x x x x x x x LED F7 flashing fastyellow

    1 x x x x x x x x x x x x x x x LED F8 flashing fastyellow

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    50/53

    Function References Protocol Driver Manual S5 / S7

    Page 50 of 53 SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

    6.2.1. LEDs (ProVicom only)

    Switching on and flashing of LEDs is enabled by setting the appropriate bit. The LEDremains switched on for as long as the appropriate bit remains static. If several bits are setfor one and the same LED, priorities are assigned. "Fast flashing" has highest priority,"Switching" lowest priority.

    Example : PLC address LED bit area DB31 DW10

    :L MB 20 LED 1-8 on green:T DR 10::L MB 22 LED 1-8 flashing green:T DR 11::L MB 24 LED 1-8 fast flashing green:T DR 12:

    In this example, the base address "LED-Bit range" is located at DB31 DW10. Now, to switchon the LED of function keys F1...F8, the appropriate bits in "LED-Bit range" " +0, viz., DB31DW10, are set. For flashing: DB31 DW11, for fast flashing: DB31 DW12. If in the PLC bit 0in DB31 DW10 is set, LED 1 lights.LED setting is simpler by flags and transfer of the flags in the data area. In this example,flags 20.0 to 24.7 are used. The assignment in the flag area is as follows :

    M20.0- LED 1 on green...M22.0- LED 1 flashing green...M24.0- LED 1 fast flashing green

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    51/53

    Protocol Driver Manual S5 / S7 Function References

    SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01 Page 51 of 53

    6.3. Fault Message and Operating Message Areas

    The messages are transferred form the base address set by you. (See chapter 5.2. Settingthe Station Parameters).

    Fault message report resp. Operating message range 1-32 words+00 Bit

    15Bit14

    Bit13

    Bit12

    Bit11

    Bit10

    Bit9

    Bit8

    Bit7

    Bit6

    Bit5

    Bit4

    Bit3

    Bit2

    Bit1

    Bit0

    Meaning

    x x x x x x x x x x x x x x x 1 Fault 0

    . . . . . . . . . . . . . . . . ...

    1 x x x x x x x x x x x x x x x Fault 15

    +01 x x x x x x x x x x x x x x x 1 Fault 16

    . . . . . . . . . . . . . . . . ...

    1 x x x x x x x x x x x x x x x Fault 31

    ...

    +255 x x x x x x x x x x x x x x x 1 Fault 4080

    . . . . . . . . . . . . . . . . ...

    1 x x x x x x x x x x x x x x x Fault 4095

    It is not necessary to define the message area to DW 255. If only a few faults occur, asmaller area can be chosen.

    6.4. Other Communication Areas

    Curves range Bit area for curve transmission

    Curves- acknowledgerange

    Bit area for confirming curve transmissions

    Demand bit range Bit area to require curve values

    Demand bitacknowledge range

    Bit area for confirming curve requirements

    Triggerbit range Bit area for setpoint triggering

    Ready bit Address for ready bit

    For more details, please read the Engineering Manual, Chapter "Ports/ Station Parameters".

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    52/53

    Function References Protocol Driver Manual S5 / S7

    Page 52 of 53 SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

    6.5. Elementary Data Types and Formats

    6.5.1. Communication between PLC and Terminal

    The communication between the PLC and the SAE-STAHL terminal comprises theexchange

    of variable data. Data is stored in the PLC in certain formats. If variables are transferredfrom the PLC to the terminal in a certain format, the terminal device must identify the datatype in which the data is to be presented. When variables are read from the terminal in thePLC, they must be stored in a defined format in the PLC. Hence the data must beconverted in the format in which they are presented in the PLC.

    PLC

    Format

    S5 S7

    KF INT

    KB BYTE

    KH WORD

    KM BOOL

    KD DINT

    KD DWORD

    KC STRING

    KT0 10ms

    KT1 100ms KT2 1sec

    KT3 10sec

    KZ BCD3

    KG REAL

    Terminal

    Data type

    Integer

    Unsigned Integer

    Long Integer

    Unsigned Long Integ.

    Float

    The setting of formats and data types is made by means of the SPSPlus WIN engineeringsoftware. For more details, see the SPSPlus WIN Engineering Manual.

  • 8/2/2019 Protocol Driver Manual S5 S7 ProVicom Www.otomasyonegitimi.com

    53/53

    Protocol Driver Manual S5 / S7 Function References

    6.5.2. Table Showing Types of Variables

    Type: Description: Max. digits: Value range:

    Integer 16-bit signedinteger

    5+ sign -32768 ... 32767

    Unsigned Integer 16-bit unsignedinteger

    5 0 ... 65535

    Long Integer 32-bit signedinteger

    10+ sign -2147483648 ...2147483647

    Long UnsignedInteger

    32-bit unsignedinteger

    10 0 ... 4294967295

    Float Floating pointnumber

    For details of creating variables, see Engineering Manual, Chapter "Variables".