Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
de
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
Page 2 of 53
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.
Contents
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
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.
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
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.
Page 5 of 53
General Notes
Caution
to indicate a potentially dangerous situation which, if not avoided, could result in fatal injury and damage to property.
F
indicate important information to which we want to draw your particular attention.
Page 6 of 53
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.
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).
Page 7 of 53
Safety Notes
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
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.
L2 1 ***
101 1
103 1 ***
941 1 ***
942 1 ***
945 1/2** no
926
no
yes
yes
****
no
no
yes s. 95U no
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
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
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
Communication
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***
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***
CPU 413-2 DP 414-2 DP 416 ---yes* yes* yes* yes** yes** -Additional modules CP 441-2 CP 443-1 --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
Page 11 of 53
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
Page 12 of 53
6 7
Cable requirements: twisted pair and screened
2 3
Refer to Device Manual, chapter "Suppression measures/ Installation guidelines" for screening and interference immunity.
Page 13 of 53
1 2 3 4 5 6 7 8
Cable requirements: twisted pair and screened
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
4.3.
(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
Page 15 of 53
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
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
Protocol Driver Manual S5 / S7 4.3.1. Installation on CP524/525 and on CP544 via TTY
6 7
Cable requirements: twisted pair and screened
2 3
Refer to Device Manual, chapter "Suppression measures/ Installation guidelines" for screening and interference immunity.
Page 17 of 53
9 10 15
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
6 7
Cable requirements: twisted pair and screened
2 3
Refer to Device Manual, chapter "Suppression measures/ Installation guidelines" for screening and interference immunity.
Page 19 of 53
9 10 15
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
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.
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
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:
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
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
4.5.3. NETWORK 1 NAME: KOMMUN 0005 0006 0007 0008 0009 000A 000B 000C 000D 000E 000F 0010 0011
: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
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
6 7
Cable requirements: twisted pair and screened
2 3
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.
Page 25 of 53
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
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.
Data handling blocks DB2, DB3 and DB15 are entity blocks and may not be handled by any other program.
Page 27 of 53
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
4.6.2.
2 1 4 3
Refer to Device Manual, chapter "Suppression measures/ Installation guidelines" for screening and interference immunity.
2 1 4 3
Refer to Device Manual, chapter "Suppression measures/ Installation guidelines" for screening and interference immunity.
Page 29 of 53
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
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
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.
Page 31 of 53
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
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
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
6 7
Cable requirements: twisted pair and screened
2 3
Refer to Device Manual, chapter "Suppression measures/ Installation guidelines" for screening and interference immunity.
Page 33 of 53
Page 34 of 53
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.
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
Page 35 of 53
Page 36 of 53
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
Refer to Device Manual, chapter "Suppression measures/Installation guidelines" for screening and interference immunity.
Page 37 of 53
Page 38 of 53
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
4.10.2.
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.
Page 39 of 53
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
Protocol Driver Manual S5 / S7 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 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
Page 41 of 53
6 7
Cable requirements: twisted pair and screened
2 3
Refer to Device Manual, chapter "Suppression measures/ Installation guidelines" for screening and interference immunity.
Page 42 of 53
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".
Page 43 of 53
Addressing
For details, please consult the Engineering Manual, chapter "Station Parameters".
Page 44 of 53
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.
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
Page 45 of 53
Function References
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
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)
Page 46 of 53
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)
Page 47 of 53
Function References
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
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
Page 49 of 53
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
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
Function References
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.
Ready bit
For more details, please read the Engineering Manual, Chapter "Ports/ Station Parameters".
Page 51 of 53
Function References
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
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
Page 53 of 53