Anda di halaman 1dari 53

SAE-STAHL GMBH Im Gewerbegebiet Pesch 14 D-50767 Kln Tel.: +49-221-59808-200 Fax: +49-221-59808-60 http://www.sae-stahl.de E-mail:office@sae-stahl.

de

Protocol Driver Manual S5 / S7 ProVicom, Exicom Visualisation

MT-300

MT-310

ET-8

Protocol Driver Manual S5 / S7: ProVicom, Exicom Visualisation Art.-type: 200630100000 Version: Edition: 1.12 26.04.01

Publisher and copyright by: SAE-STAHL GMBH Kln Im Gewerbegebiet Pesch 14 D-50767 Kln Phone Fax (exchange) +49/(0)221/ 5 98 08 (Hotline) - 200 - 59 - 60

All rights reserved. This document may not be reproduced in whole or in part except with the written consent of the publisher obtained. The right to technical changes is reserved. This Manual was carefully produced. Nevertheless, SAE-STAHL GMBH do not warrant that the information contained therein to be free from errors. IBM MS DOS WINDOWS 95 S5/ S7 is a registered trademark of IBM-Corp. is a registered trademark of MICROSOFT Corporation is a registered trademark of MICROSOFT Corporation are registered trademarks of Siemens AG

Cologne, dated 26.04.01

Page 2 of 53

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Protocol Driver Manual S5 / S7

Contents

Table of Contents
1. General Notes ..................................................................................... 5
1.1. 1.1.1. 1.1.2. 1.1.3. 1.1.4. 1.2. Documentation Manuals ..........................................................................................5 Device Manual ..................................................................................................5 Engineering Manual..........................................................................................5 Protocol Driver Manuals....................................................................................5 Target Groups ..................................................................................................5 Safety Alert Symbols ...............................................................................................6

2.
2.1. 2.2. 2.3.

Safety Notes.................................................................................. 7
General Provisions ..................................................................................................7 Use for Intended Purpose........................................................................................7 Repairs ....................................................................................................................8

3.
3.1. 3.2. 3.3. 3.4. 3.5. 3.6.

Communication ............................................................................ 9
SPC Mode S5/PG....................................................................................................9 SPC Mode S5/3964R/RK512...................................................................................9 SPC Mode S5/L1-Bus..............................................................................................9 Cycle Times .............................................................................................................9 Connection options to S5.......................................................................................10 Connection options to S7.......................................................................................11

4.
4.1. 4.2. 4.2.1. 4.2.2. 4.2.3. 4.3. 4.3.1. 4.3.2. 4.4. 4.5. 4.5.1. 4.5.2. 4.5.3. 4.6. 4.6.1. 4.6.2. 4.7.

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


Overview................................................................................................................12 Installation on the Programming Interface S5 with AS511.....................................12 ProVicom/ Exicom with TTY Passive/Passive (Default) ..................................13 ProVicom/Exicom with TTY Active/Active (optional) .......................................14 Port Parameters..............................................................................................14 Installation on 3964R of S5 CP 524/525 and S5 CP 544 .....................................15 Installation on CP524/525 and on CP544 via TTY .........................................17 Installation on CP524/525 and on CP544 via V.24.........................................18 Installation on S5 CP521-SI...................................................................................19 Installation on 3964R of SAE-STAHL SAS 525 .....................................................21 Setting the DIL Switches.................................................................................21 Interface Card Configuration..........................................................................24 Cyclic Handling of Communication ................................................................24 Installation on 3964R of S7 CP340........................................................................26 ProVicom Pin Configuration via V.24 / RS-232-C ...........................................28 ProVicom/ Exicom Pin Configuration via RS422.............................................29 Installation on 3964R of S7 CP441-1 ....................................................................30
Page 3 of 53

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Contents

Protocol Driver Manual S5 / S7

4.7.1. ProVicom Pin Configuration ProVicom / Exicom via V.24 / RS-232-C ............32 4.7.2. ProVicom/Exicom Pin Configuration via TTY..................................................33 4.8. Installation on the MPI-Bus via MPI-Box ................................................................34 4.8.1. MPI-Box power supply ....................................................................................35 4.8.2. Interfacing PG and MPI-Box ...........................................................................35 4.8.3. Mounting instructions and installation MPI-Box RS-232 .................................35 4.8.4. Installation of a ProVicom on S7/MPI with MPI-Box RS-232...........................35 4.8.5. Connection diagram MPI-Box RS-232 ............................................................36 4.8.6. Interfacing to MPI-BOX RS-422......................................................................37 4.9. Interface Parameters S5/ S7 3964R ......................................................................38 4.10. Installation on L1 Bus ............................................................................................39 4.10.1. System overview L1........................................................................................39 4.10.2. Installation of Terminal Stations......................................................................39 4.10.3. L1 Connection via PG Interface......................................................................40

5.
5.1. 5.2.

Addressing.................................................................................. 43
Address Specification ............................................................................................43 Setting Station Parameters....................................................................................44

6.
6.1. 6.2. 6.2.1. 6.3. 6.4. 6.5. 6.5.1. 6.5.2.

Function References.................................................................. 45
Key functions .........................................................................................................45 LED Bit Area ..........................................................................................................48 LEDs (ProVicom only).....................................................................................50 Fault Message and Operating Message Areas......................................................51 Other Communication Areas..................................................................................51 Elementary Data Types and Formats ....................................................................52 Communication between PLC and Terminal...................................................52 Table Showing Types of Variables .................................................................53

Page 4 of 53

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Protocol Driver Manual S5 / S7

General Notes

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 the firmware, 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 Required manual Device manual Protocol driver manual all Device manual Device manual Device manual Protocol driver manual Required chapters Product overview Function overview all Operation Setting-up and installation instructions all Configuration

Target group Overview Design engineer / programmer Operator Installer Service

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

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Page 5 of 53

General Notes

Protocol Driver Manual S5 / S7

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 injury and 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.

Page 6 of 53

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Protocol Driver Manual S5 / S7

Safety Notes

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 and applicable 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 data transfer 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 diverse areas and systems, it is absolutely required that their functions and the appropriate safety notes 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 (as described in the product information or the technical specification). The applicable safety standards have been implemented in the development, production, testing and documentation of the product. Normally the product is not associated with dangerous situations which may result in injury or damage provided the handling instructions and safety notes are observed.

Caution: When the casing is removed or the control cubicle door opened, parts that may be live with dangerous voltage become accessible. The product is only safe if it is transported, stored, installed and operated properly. Only certified personnel who have read and understood this Manual may work on the product (see below).

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Page 7 of 53

Safety Notes

Protocol Driver Manual S5 / S7

2.3. Repairs
SAE-STAHL products may only be repaired by SAE-STAHL customer service staff or other 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 this Manual. The work must be carried out by trained personnel. Standard parts, such as fuses, must be of the specified rating.

Page 8 of 53

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

3. Communication
Three different firmware versions are available for communication with a Simatic S5. All versions have access to the data block area. Addressing is as usual in data block (DB) and data 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 given overleaf.

3.2. SPC Mode S5/3964R/RK512


This quick and assured procedure is used to provide a link-up with various programmable controllers and communication processors. The SAE-STAHL devices act as master and transmit 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 larger controls 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 devices simultaneously served by the bus is limited. SAE-Stahl recommends to link four devices to one 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 Cycle [approx. ms] Function keys [ms] Change of SPC cycle time 95U S5-PG 500 250...500 none S5-3964R (9600 Bd) 80...200ms 110 2..3ms S5-L1 (9600 Bd) 150 / terminal dev. 150 / terminal dev. 5ms

3.5. Connection options to S5


Device CPUTypes CPU interfaces PG/AS511 Add. SAE Add. Sie. PG/L1 Add. SAE Add. Sie. 3964R Add. SAE Add. Sie. 90U 1 SS 1 yes TM-1 no 1 *** 95U 2 SS 2 *** 95F * 100U 102 1 yes 115U 943/b 1/2** *** 115H * 115F * 135U 928a 1 no no ***/1 ***/1 155U 928b 948 1/2** no 1 no 155H * 1 no

L2 1 ***

101 1

103 1 ***

941 1 ***

942 1 ***

944/b 1/2** ***

945 1/2** no

926

928b 1/2** ***/1

no

yes

yes/ max. 1 SS HB-L1-RK no yes/2.S S SAE*1 CP521/SI

yes

****

no

no

yes s. 95U no

yes/ max. 1 interface HB-L1-RK -

no

no

no

no

no

Additional no modules Protocol 3964R/RK512 Add. SAE HB-CP521 Add. Sie. Additional modules Protocol Add. SAE Add. Sie. Additional modules Protocol Add. SAE Add. Sie. Protocol L2-DP Add. SAE SAE*2 Add. Sie. * Not possible at present ** Option *** AS511 coupling very critical (see page before) **** On request

CP521 /SI 3964R s. 95U

yes/ 2.SS SAE*3 Module no yes/2.S yes/2.S S S SAE*1 SAE*4 Option Module CP524/ CP525/ CP544/ CP544B 3964R/RK512 COM525 SAS525 3964R/RK512 HB SAS-525 for 115U CP530

no

no

no

no

yes SAE*5 Module

yes SAE*5 Module

no

no

no

no

yes/2.S S SAE*0 Module CP524/ CP525/ CP544/ CP544B 3964R/RK512 COM525 SAS525 3964R/RK512 HB SAS-525 for 135U CP530 L1 HB-L1-Bus for 135U COM530 L2-DP SAE*2 IM308-B/ IM308-C

no

no

yes/ no no 2.SS SAE*0 Module CP524/ CP525/ CP544/ CP544B 3964R/RK512 COM525 SAS525 3964R/RK512 HB SAS-525 (155U) CP530 L1 HB-L1-Bus for 155U COM530 L2-DP SAE*2 IM308-B/ IM308-C

L1 HB-L1-Bus for 115U COM530 L2-DP SAE*2 IM308-B/ IM308-C Sie SAE*0 SAE*1 SAE*2 Siemens Entry in DX2 HB-CPU-RK512 HB-L2-S5BL2DP incl. Type file SAE*3 SAE*4 SAE*5

HB-CPU-945-L1 HB-CPU945-RK512 HB-L1-928b

Protocol Diver Manual S5 / S7

Communication

3.6. Connection options to S7


S7-200
CPU interface PPI MPI L2-DP -* ** 210 yes* --212 yes* --CPU 214 yes* --215 yes* -no ** 216 yes* --Additional modules CP 242-2 ---CP 242-8 --no **

Not possible At present only ProVicom MT-300 CPU / interface has only one L2-DP Slave interface CPU 313 314 315 315-2 DP ----yes* yes* yes* yes* ---yes** Additional modules CP 341 CP 342-2 CP 342-5 CP 343-1 CP 343-5 --yes** --yes**** -----

S7-300
CPU interface PPI MPI L2-DP 312 -yes* -CP 340 -yes***

L2-DP 3646R -* ** *** ****

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 interface PPI MPI L2-DP 412 -yes* -CP 441-1 -yes***

L2-DP 3646R -* ** *** ****

CPU 413-2 DP 414-2 DP 416 ---yes* yes* yes* yes** yes** -Additional modules CP 441-2 CP 443-1 --yes**** --

416-2 DP -yes* yes** CP 443-5 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

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Page 11 of 53

Installation on the PLC

Protocol Driver Manual S5 / S7

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): Bus operation L1 with SK1-G-BT: TTY RS-422

MT-310, connection TTY is F Withbe made via RS-232-Cvia RS-422.not possible. The connection to S5 or S7 can only or

A list of the possible interface connections on the various Simatic S5 systems can be found in the chapter "Product Survey/ Communication". up communication with F In order to buildprogramming interface. the PLC, the programming cable may not be attached to the

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 programmable controllers. Caution: "Packing" and "Downloading of HBs, DBs, etc. from PG" is not permitted while the procedure is running. The addresses of the data DBs are read during device enable. They may not be changed 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. The parameter setting on the interface should be as follows (see Configuration): 9600 baud, 8 data bits, 1 stop bit, even parity.

Page 12 of 53

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Protocol Driver Manual S5 / S7 4.2.1.

Installation on the PLC

ProVicom/ Exicom with TTY Passive/Passive (Default)

The connecting cable VB-10 is available as a special accessory.


ET-8 COM1 Pin MT-300 X2/ COM3 25-pole sub-D S5 - PG 15-pole sub-D

6 7
Cable requirements: twisted pair and screened

2 3

Screen connected to the case of the plug connector

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

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Page 13 of 53

Installation on the PLC 4.2.2.

Protocol Driver Manual S5 / S7

ProVicom/Exicom with TTY Active/Active (optional)

The connecting cable VB-80 is available as a special accessory.


ET-8 COM1 Pin MT-300 X2/ COM3 25-pole sub-D S5 - PG 15-pole sub-D

1 2 3 4 5 6 7 8
Cable requirements: twisted pair and screened

Screen connected to the case of the plug connector

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

4.2.3.

Port Parameters

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

Page 14 of 53

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Protocol Driver Manual S5 / S7

Installation on the PLC

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 baud 8 data bits 1 stop bit even parity higher 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: Character length No. of stop bits: Priority: Parity: 9600 8 bits 1 higher even

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Page 15 of 53

Installation on the PLC

Protocol Driver Manual S5 / S7

While the S5 starts, make sure of the synchronization between CP524/525 and the CPU in the programmable controller. This is ensured by a single synchronization module enable. For example: AG115U of FB249: FB 100 NETWORK 1 0000 NAME :CP-SYNCH 0005 : 0006 : 0007 :SPA FB 249 0008 NAME :SYNCHRON 0009 SSNR : KY 0,0 000A BLGR : KY 0,1 000B PAFE : MB 100

Port number 0

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-TRANS 0005 : 0006 :SPA FB 244 0007 NAME :SEND 0008 SSNR : KY 0,0 0009 A-NR : KY 0,0 000A ANZW : MW 102 000B QTYP : KC DB 000C DBNR : KY 0,0 000D QANF : KF +0 000E QLAE : KF +0 000F PAFE : MB 104 0010 : 0011 :SPA FB 245 0012 NAME :RECEIVE 0013 SSNR : KY 0,0 0009 A-NR : KY 0,0 000A ANZW : MW 106 000B ZTYP : KC DB 000C DBNR : KY 0,0 000D ZANF : KF +0 000E ZLAE : KF +0 000F PAFE : MB 108 001B : 001C :BE

SEND ALL SS0 FB 244 at AG 115U Job 0 Port number 0

RECEIVE ALL port number 0 FB 245 at AG 115U Job 0 Port number 0

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.

Page 16 of 53

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Protocol Driver Manual S5 / S7 4.3.1. Installation on CP524/525 and on CP544 via TTY

Installation on the PLC

The connecting cable VB61 is available as a special accessory.

ET-8 COM1 Pin

MT-300 X2/ COM3 25-pole sub-D

CP525/CP524/CP544 TTY 25-pole sub-D

6 7
Cable requirements: twisted pair and screened

2 3

Screen connected to the case of the plug connector

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

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Page 17 of 53

Installation on the PLC 4.3.2.

Protocol Driver Manual S5 / S7

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

This connection is good for short distances of up to 3m.


ET-8 COM2 Pin MT-300: X4/ COM1 MT-310: X4/ COM4 oder COM1/ COM2* 9-pole sub-D CP525/CP524/CP544 V24 25-pole sub-D

9 10 15

Screen connected to the case of the plug connector

Refer to Device Manual, chapter "Suppression measures/ Installation guidelines" for screening and interference immunity. * For COM1/ COM2 you require the adapter cable VB-331.

Page 18 of 53

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Protocol Driver Manual S5 / S7

Installation on the PLC

4.4. Installation on S5 CP521-SI


Operation is only possible with AG100U CPU103 AG95U and the driver module SAE-STAHL HB CP521 For a detailed description, see the HB CP521 Manual. Connection diagram TTY Siemens CP521-SI on ProVicom/ Exicom
ET-8 COM1 Pin MT-300 X2/ COM3 25-pole sub-D CP521 SI 25-pole sub-D

6 7
Cable requirements: twisted pair and screened

2 3

Screen connected to the caseof the plug connector

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

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Page 19 of 53

Installation on the PLC

Protocol Driver Manual S5 / S7

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


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

9 10 15

Screen connected to the case of the plug connector

Refer to Device Manual, chapter "Suppression measures/ Installation guidelines" for screening and interference 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 from SAE-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.

Page 20 of 53

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Protocol Driver Manual S5 / S7

Installation on the PLC

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 driver module to the programmable controller. 2. To configure the module, the FB194 must be called from the startup OB once for every interface channel. Make certain that one data block with at least 32 data words is reserved for each interface for configuration. Important: The starting address specified at identified ADR: must be the same as that set 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 525 manual.

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

4.5.1.

Setting the DIL Switches

Text im Diagramm: Modul fr Kanal 1 Modul fr Kanal 2 Modul fr Kanal 3

Module for channel 1 Module for channel 2 Module for channel 3


Page 21 of 53

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Installation on the PLC 4.5.1.1. Plug connectors X6 and X3

Protocol Driver Manual S5 / S7

If the module is used with a TTY module as the active part of a current loop, voltage to the 20mA 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 (typically 24V) at both flat connectors on the front panel. The external 24V supply is equipped with pole 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 two flat plugs on the front panel or - if available - internally by the S5 bus. An internal connection is only possible if 24V is available at the slot of this module. This is not the case in all slots of 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 large electromagnetic interference fields, an external voltage source should be chosen as a matter of principle.

Page 22 of 53

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Protocol Driver Manual S5 / S7

Installation on the PLC

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

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

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Page 23 of 53

Installation on the PLC 4.5.2. NETWORK 1 NAME: KONFIG 0005 0006 0007 0008 0009 000A 000B 000C 000D 000E 000F 0010 0011 0012 0013 0014 0015 0016 0017 0018 0019 001A 001B 001C 001D 001E 001F 0020 0021 0022 0023 0024 Interface Card Configuration 0000

Protocol Driver Manual S5 / S7

NAME DBHB ADR KAN BAUD BCC PRIO FEHL NAME DBHB ADR KAN BAUD BCC PRIO FEHL NAME DBHB ADR KAN BAUD BCC PRIO FEHL

: :SPA FB 194 :KONFIG64 : DB 190 : KH F080 : KF +1 : KF +7 : KC JA : KC HO : MB 190 : :SPA FB 194 :KONFIG64 : DB 191 : KH F080 : KF +2 : KF +7 : KC JA : KC HO : MB 191 : :SPA FB 194 :KONFIG64 : DB 192 : KH F080 : KF +3 : KF +7 : KC JA : KC HO : MB 192 : :BE

Parameter setting of interface 1 Data block 190 Base address F080 Channel 1 9600 baud 3964R with BCC High priority Error message in MB190 Parameter setting of interface 2

Parameter setting of interface 3

4.5.3. NETWORK 1 NAME: KOMMUN 0005 0006 0007 0008 0009 000A 000B 000C 000D 000E 000F 0010 0011

Cyclic Handling of Communication 0000 Edit interface 1

:SPA FB 195 NAME :PASSIV HTDB : DB 190 : :SPA FB 195 NAME :PASSIV HTDB : DB 191 : :SPA FB 195 NAME :PASSIV HTDB : DB 192 : :BE

Edit interface 2

Edit interface 3

Page 24 of 53

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Protocol Driver Manual S5 / S7 The connecting cable VB-64 is available as a special accessory.
ET-8 COM1 Pin MT-300 X2/ COM3 25-pole sub-D

Installation on the PLC

SAS 525 25-pole sub-D

6 7
Cable requirements: twisted pair and screened

2 3

Screen connected to the case of the plug connector

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

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

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Page 25 of 53

Installation on the PLC

Protocol Driver Manual S5 / S7

4.6. Installation on 3964R of S7 CP340


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

Proceed as follows: 1 Install the CP340 2 Configure 3 Set parameters 4 Integrate program

Installing the CP340 For a detailed description, see the CP340 Point-to-Point Link-up Manual. Configuring the CP340 To integrate the CP340, the following settings must be made. The design package for the CP340 must be installed on the PU. Library CP340 is created during installation. 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 MODULE When the CP340 is integrated, the logic base address is automatically created by the system. Setting the CP340 Object features : Basic parameter : alarm generation = NO

For more information, please see the CP340 Point-to-Point Link-up Manual. 3 Setting CP340 parameters The parameters menu item can only be selected if the CP340 design package is installed. Parameters : Protocol 3964R with block check Use default values Baud rate : 9600 baud Data bits : 8 Stop bit :1 Parity : even Priority : high

Protocol parameters : Character delay time Confirm delay Establishment attempts Transmission attempts
Page 26 of 53

: 220 ms : 2000ms :6 :6
SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Protocol Driver Manual S5 / S7

Installation on the PLC

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 the project.

FB 15 must be called cyclically from OB1. CALL FB 15 , DB15 ADR := 256 KOMM := M 10.0 DB15 entity DB Logic base address Communication bit is set 1 with every correct communication The logic base address is assigned automatically by the system when the CP340 is integrated in the hardware configuration.

ADR = logic base address

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

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Page 27 of 53

Installation on the PLC 4.6.1.

Protocol Driver Manual S5 / S7

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 X2 25-pole Sub-D CP340 9-pole Sub-D

Screen connection to connector enclosure

Connection to X4: The interface cable VB31 is available as a special accessory.


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

Screen connection to connector enclosure

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

NOTE : For more information on interference suppression measures / set-up requirements and line screening, please see the CP340 Point-to-Point Link-up Manual and the appropriate Device manual for the ProVicom/ Exicom.
Page 28 of 53 SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Protocol Driver Manual S5 / S7

Installation on the PLC

4.6.2.

ProVicom/ Exicom Pin Configuration via RS422

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


ET-8 COM1 Pin MT-300 X2/ COM3 25-pole sub-D CP340 15-pole sub-D
Cable requirements: twisted pair and screened

2 1 4 3

Screen connected to the case of the plug connector

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

ET-8 COM1 Pin

MT-300: X4/ COM1 MT-310: X4/ COM4 9-pole sub-D


Cable requirements: twisted pair and screened

CP340 X27 15-pole sub-D

2 1 4 3

Screen connected to the case of the plug connector

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

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Page 29 of 53

Installation on the PLC

Protocol Driver Manual S5 / S7

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 S7 400. For this, the SAE-STAHL terminals must be fitted with the 3964R firmware. Proceed as follows: 1 Install the CP441-1 2 Configure 3 Set parameters 4 Integrate program

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

2 Configuring the CP441-1 To 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 1SI When the CP441-1 is integrated, the logic base address is automatically created by the system.

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

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

Page 30 of 53

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Protocol Driver Manual S5 / S7 3

Installation on the PLC

Setting CP441-1 parameters The parameters menu item can only be selected if the 441-1 design package is installed. Parameters : Protocol 3964R with block check Use default values Baud rate: 9600 baud Data bits: 8 Stop bit: 1 Parity: even Priority: high

Protocol parameters : Character delay time: Confirm delay: Establishment attempts: Transmission attempts:

220 ms 2000ms 6 6

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

Integrate program

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

FB 14 must be called cyclically from OB1. CALL FB 14 , DB14 ID := 1001 l KOMM := M 10.0 DB14 entity DB Logic base address Communication bit is set 1 with every correct communication

ID = logic base address

The logic base address is assigned automatically by the system when the CP441-1 is integrated in the hardware configuration.

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

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Page 31 of 53

Installation on the PLC 4.7.1.

Protocol Driver Manual S5 / S7

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 X2/ COM3 25-pole Sub-D CP441-1 9-pole Sub-D

Screen connection to connector enclosure

Connection on ProVicom/ Exicom COM1: The interface cable VB31 is available as a special accessory.
ET-8 COM1 Pin MT-300: X4/ COM1 MT-310: X4/ COM4 or COM1/ COM2* 9-pole Sub-D CP441-1 9-pole Sub-D

9 10 15

Screen connection to connector enclosure

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

NOTE: For more information on interference suppression measures / set-up requirements and line screening, please see the CP441 Point-to-Point Link-up Manual and the manual for the appropriate SAE-STAHL terminal.
Page 32 of 53 SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Protocol Driver Manual S5 / S7 4.7.2.


ET-8 COM1 Pin

Installation on the PLC

ProVicom/Exicom Pin Configuration via TTY


MT-300 X2/ COM3 25-pole sub-D CP441 9-pole sub-D

6 7
Cable requirements: twisted pair and screened

2 3

Screen connected to the case of the plug connector

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

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Page 33 of 53

Installation on the PLC

Protocol Driver Manual S5 / S7

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 isolated RS-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 S7 030000 DB 30 DW 0 DB 30 DW 0 030010 DB 30 DW 20 DB 30 DW 20 020100 DB 20 DW 200 DB 20 DW 200 Attention: The address area used in the terminal must exist completely in the S7, otherwise the error message "Communication error" is displayed in the terminal. The default MPI addresses are: S7 2 ProVicom/ Exicom 5 Attention: That means that only one device can be connected to the MPI interface with the MPI cable or MPI-Box! The interface parameters of the terminals must be fixed 19200 baud 8 data bits 1 stop bit even parity The baudrate of the S7 must be set to 187.5 Kbaud.

Page 34 of 53

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Protocol Driver Manual S5 / S7 4.8.1. MPI-Box power supply

Installation on the PLC

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:

ProVicom MT-xx

X
3 Meters

SPS S7

= VB-31

= MPI-Box

X4 and X2 = RS-232-C

The general safety instructions and installation guidelines of the SAE-STAHL Manuals are valid. 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 interface 2. Connect the 25-pole socket of the MPI-Box with VB-31 3. 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 of interference coupling to the MPI cable the terminal could be interfered

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Page 35 of 53

Installation on the PLC 4.8.5. Connection diagram MPI-Box RS-232

Protocol Driver Manual S5 / S7

Page 36 of 53

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Protocol Driver Manual S5 / S7 4.8.6. Interfacing to MPI-BOX RS-422

Installation on the PLC

In order to connect the device onto the MPI-interface, both devices must have the same interface parameters. These are adjustable, the default settings are: 19200 Baud 8 data bits 1 stop bit even 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 COM1 Pin MT-300: X4/ COM1 MT-310: X4/ COM4 9-pole Sub-D MPI-BOX RS422 9-pole Sub-D

2 1 4 3
Cable requirements: twisted pair and

Screen connection to connector enclosure

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

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Page 37 of 53

Installation on the PLC

Protocol Driver Manual S5 / S7

4.9. Interface Parameters S5/ S7 3964R


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

Page 38 of 53

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Protocol Driver Manual S5 / S7

Installation on the PLC

4.10.
4.10.1.

Installation on L1 Bus
System overview L1

The SINEC-L1 coupler allows easy link-up with the programmable controllers Simatic S5 95U, 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 Cycle time

9600 Bd 150 ms

19200 Bd (only with SAS) 100 ms

4.10.2.

Installation of Terminal Stations

Single-terminal operation: Own station number = 1 Maximum 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 bus Maximum station number to 1 3. Make the connection between the terminal station and the AG95U using the SAE-STAHL standard cable VB10.

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Page 39 of 53

Installation on the PLC 4.10.3. 4.10.3.1. L1 Connection via PG Interface

Protocol Driver Manual S5 / S7

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 on the 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 handling blocks 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 the L1 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 data block, the error is transferred at MB 254. OB21 : : L KF +6 : T MW200 :SPA FB60 NAME :INIT H-DB : MW 200 FEHL : MB 254 :BE

; non-recurring initial. of L1

Page 40 of 53

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Protocol Driver Manual S5 / S7 Brief description of FB "WORK": FB "WORK" is responsible for communication with the MTs

Installation on the PLC

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 the time-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 the L1 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 OB1 is made. The error is transferred at MB 254. Following this, the actual application program is run. OB1 : :SPA FB61 NAME :WORK FEHL : MB 254 : :SPA PB1 :BE ; Cyclic L1 handling

; User program

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Page 41 of 53

Installation on the PLC 4.10.3.2.

Protocol Driver Manual S5 / S7

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

The connecting cable VB-10 is available as a special accessory.


ET-8 COM1 Pin MT-300 X2/ COM3 25-pole sub-D S5 - L1 15-pole sub-D

6 7
Cable requirements: twisted pair and screened

2 3

Screen connection to connector enclosure

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

Page 42 of 53

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Protocol Driver Manual S5 / S7

Addressing

5. Addressing
5.1. Address Specification
The addresses are specified by data block (DB2...DB255) and data words (DW0...DW255). Value range 2...255 0...255

DB DW

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 Engineering Manual, Chapters "Variables", "Messages" and "Keyboard Layout".

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Page 43 of 53

Addressing

Protocol Driver Manual S5 / S7

5.2. Setting Station Parameters


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

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

Page 44 of 53

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Protocol Driver Manual S5 / S7

Function References

6. Function References

F The address areas specified below must be observed at any rate, even if the
assigned 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. (See chapter 5.2. Setting the Station Parameters).
SPC address keypad area +00 Bit Bit Bit Bit Bit 15 14 13 12 11 x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x 1 x x x 1 x x x 1 x x x 1 x x x x

Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit 10 9 8 7 6 5 4 3 2 1 0 x x x x x x x x x x 1 x x x x x x x x x 1 x x x x x x x x x 1 x x x x x x x x x 1 x x x x x x x x x 1 x x x x x x x x x 1 x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x

Meaning Cursor up Cursor down Cursor left Cursor right Clear or Escape key Enter key Info key Trigger bit Histogram full 1) Pass bit; Device pass control1) Meaning F1 F12 Shift-F1 Shift-F12 Meaning Alt-F1 Alt-F12 Ctrl-F1 Ctrl-F12

Bit Bit Bit 15 14 13 +01 x x . . . x x x +02 x x x . . . x x x Bit Bit Bit 15 14 13 +03 x x x . . . x x x +04 x x x . . . x x x F= Function key
1)

Bit 12 x . x x . x Bit 12 x . x x . x

Bit 11 x . 1 x . 1 Bit 11 x . 1 x . 1

Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit 10 9 8 7 6 5 4 3 2 1 0 x x x x x x x x x x 1 . . . . . . . . . . . x x x 1 x x x x x x x x x x x x x x x x x 1 . . . . . . . . . . . x x x 1 x x x x x x x Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit 10 9 8 7 6 5 4 3 2 1 0 x x x x x x x x x x 1 . . . . . . . . . . . x x x 1 x x x x x x x x x x x x x x x x x 1 . . . . . . . . . . . x x x 1 x x x x x x x

Function currently not implemented.

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Page 45 of 53

Function References

Protocol Driver Manual S5 / S7

Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 x x x x x x x x x x x x x x x 1 x x x x x x x x x x x x x x 1 x x x x x x x x x x x x x x 1 x x x x x x x x x x x x x x 1 x x x x x x x x x x x x x x 1 x x x x x x x x x x x x x x 1 x x x x x x x x x x x x x x 1 x x x x x x x x x x x x x x 1 x x x x x x x x x x x x x x 1 x x x x x x x x x x x x x x 1 x x x x x x x x x S = Soft key

+05

Meaning (only ProVicom) S1 S2 S3 S4 S5 S6 S7 S8 S9 S10

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 bits settings 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 monitor the communication. This bit can be reset by the PLC on positive-going edge. If the state is still Zero after some time (e.g., time-out = 15 sec), control knows that the communication is under fault condition. 1) Example: The "Keyboard range" is located, for example, at DB31 DW2. This causes function keys F1 to F8 "Keyboard range +1 to be placed in DB31 DW3. Now if the operator pressed the F1 key, the devise sets bit 1 or bit 7 in case of F7, in DB31 DW3. At the same time the function saved under F1 is enabled.
1)

Function currently not implemented.

Page 46 of 53

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Protocol Driver Manual S5 / S7

Function References

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

:A : :L :T :L :T : :L :T : :L :T : :L :T :

DB DR MB DL MB DR MB DR MB DR MB

31 0 10 0 11 1 12 2 13 3 14 Cursor keys After flag byte 10 Pass bit 1) After flag 11.7 Function keys F1-F8 After flag byte 12 Shift F1-F8 After flag byte 13 Alt F1-F8 After flag byte 14

The assignment in the flag area is then as follows : M10.0 - Cursor up ... M10.5 - Enter key M11.6 - Histogram full 1) M11.7 - Pass bit 1) ... 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.

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Page 47 of 53

Function References

Protocol Driver Manual S5 / S7

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 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
x x x x x x x x x x x x x x x 1 +01 x x x x x x x x x x x x x x 1 x x x x x x x x x x x x x x 1 x x x x x x x x x x x x x x 1 x x x x x x x x x x x x x x 1 x x x x x x x x x x x x x x 1 x x x x x x x x x x x x x x 1 x x x x x x x x x x x x x x 1 x x x x x x x x x x x x x x 1 x x x x x x x x x x x x x x 1 x x x x x x x x x x x x x x 1 x x x x x x x x x x x x x x 1 x x x x x x x x x x x x x x 1 x x x x x x x x x x x x x x 1 x x x x x x x x x x x x x x 1 x x x x x x x x x x x x x x 1 x x x x x x x x x x x x x x x

Meaning
(only MT-300) LED F1 on green LED F2 on green LED F3 on green LED F4 on green LED F5 on green LED F6 on green LED F7 on green LED F8 on green LED F1 on yellow LED F2 on yellow LED F3 on yellow LED F4 on yellow LED F5 on yellow LED F6 on yellow LED F7 on yellow LED F8 on yellow Meaning (only MT-300) LED F1 flashing green LED F2 flashing green LED F3 flashing green LED F4 flashing green LED F5 flashing green LED F6 flashing green LED F7 flashing green LED F8 flashing green LED F1 flashing yellow LED F2 flashing yellow LED F3 flashing yellow LED F4 flashing yellow LED F5 flashing yellow LED F6 flashing yellow LED F7 flashing yellow LED F8 flashing yellow

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

Page 48 of 53

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Protocol Driver Manual S5 / S7

Function References

+02

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

Meaning (only MT-300) LED F1 flashing fast green LED F2 flashing fast green LED F3 flashing fast green LED F4 flashing fast green LED F5 flashing fast green LED F6 flashing fast green LED F7 flashing fast green LED F8 flashing fast green LED F1 flashing fast yellow LED F2 flashing fast yellow LED F3 flashing fast yellow LED F4 flashing fast yellow LED F5 flashing fast yellow LED F6 flashing fast yellow LED F7 flashing fast yellow LED F8 flashing fast yellow

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Page 49 of 53

Function References 6.2.1. LEDs (ProVicom only)

Protocol Driver Manual S5 / S7

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

Example :
:L :T : :L :T : :L :T : MB DR MB DR MB DR 20 10 22 11 24 12

PLC address LED bit area DB31 DW10


LED 1-8 on green LED 1-8 flashing green LED 1-8 fast flashing green

In this example, the base address "LED-Bit range" is located at DB31 DW10. Now, to switch on the LED of function keys F1...F8, the appropriate bits in "LED-Bit range" " +0, viz., DB31 DW10, are set. For flashing: DB31 DW11, for fast flashing: DB31 DW12. If in the PLC bit 0 in 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... M22.0... M24.0LED 1 on green LED 1 flashing green LED 1 fast flashing green

Page 50 of 53

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Protocol Driver Manual S5 / S7

Function References

6.3. Fault Message and Operating Message Areas


The messages are transferred form the base address set by you. (See chapter 5.2. Setting the Station Parameters).
Fault message report resp. Operating message range 1-32 words +00 Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 x x x x x x x x x x x x x x x 1 . . . . . . . . . . . . . . . . 1 x x x x x x x x x x x x x x x +01 x x x x x x x x x x x x x x x 1 . . . . . . . . . . . . . . . . 1 x x x x x x x x x x x x x x x ... +255 x x x x x x x x x x x x x x x 1 . . . . . . . . . . . . . . . . 1 x x x x x x x x x x x x x x x

Meaning Fault 0 ... Fault 15 Fault 16 ... Fault 31 Fault 4080 ... Fault 4095

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

6.4. Other Communication Areas


Curves range Bit area for curve transmission

Curves- acknowledge range Demand bit range

Bit area for confirming curve transmissions

Bit area to require curve values

Demand bit acknowledge range Triggerbit range

Bit area for confirming curve requirements

Bit area for setpoint triggering

Ready bit

Address for ready bit

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

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Page 51 of 53

Function References

Protocol Driver Manual S5 / S7

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 the exchange of variable data. Data is stored in the PLC in certain formats. If variables are transferred from the PLC to the terminal in a certain format, the terminal device must identify the data type in which the data is to be presented. When variables are read from the terminal in the PLC, they must be stored in a defined format in the PLC. Hence the data must be converted in the format in which they are presented in the PLC.

PLC
Format S5 KF KB KH KM KD KD KC KT0 KT1 KT2 KT3 KZ KG S7 INT BYTE WORD BOOL DINT DWORD STRING 10ms 100ms 1sec 10sec BCD3 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 engineering software. For more details, see the SPSPlus WIN Engineering Manual.

Page 52 of 53

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Protocol Driver Manual S5 / S7 6.5.2. Type: Integer Unsigned Integer Long Integer Long Unsigned Integer Float Table Showing Types of Variables Description: 16-bit signed integer 16-bit unsigned integer 32-bit signed integer 32-bit unsigned integer Floating point number Max. digits: 5+ sign 5 10+ sign 10

Function References

Value range: -32768 ... 32767 0 ... 65535 -2147483648 ... 2147483647 0 ... 4294967295

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

SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01

Page 53 of 53

Anda mungkin juga menyukai