SAE-STAHL GMBH Im Gewerbegebiet Pesch 14 D-50767 Köln Tel.: +49-221-59808-200 Fax: +49-221-59808-60 http://www.sae-stahl.de E-mail:
[email protected]
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:
1.1 2
Edition:
26 .04.01
Publisher and copyright by: SAE-STAHL GMBH Köln Im Gewerbegebiet Pesch 14 D-50767 Köln Phone Fax • • •
(exchange)+ 49/(0)221/ 5 98 08 (Hotline) 60
- 200 59 -
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
is a registered trademark of IBM-Corp.
MS DOS WINDOWS 95 S5/ S7
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
ProtocoD l riveM r anuaS l5 S /7
Contents
Table of Contents 1. General Notes ..................................................................................... 5 1.1. 1.1.1. 1.1.2. 1.1.3. 1.1.4.
Documentation Manuals ................. ................. ................. .................. ................. .... 5 Device Manual ................. ................. ................. ................. ................. .............5 Engineering Manual............................. ................. ................. ................. ..........5 Protocol Driver Manuals............................ ................. .................. ................. .... 5 Target Groups ................. ................. ................. ................. ................. .............5
1.2.
Safety Alert Symbols ................. ................. ................. ................. ................. ..........6
2.
Safety Notes.............................................................. .................... 7
2.1.
General Provisions ................. ................. ................. ................. ................. .............7
2.2.
Use for Intended Purpose............... ................. ................. .................. ................. .... 7
2.3.
Repairs .................. ................. ................. ................. ................. ................. .............8
3.
Communication ........................................................ .................... 9
3.1.
SPC Mode S5/PG........................ ................. .................. ................. ................. .......9
3.2.
SPC Mode S5/3964R/RK512................ ................. ................. ................. ................9
3.3. 3.4.
SPC Mode S5/L1-Bus.................. ................. .................. ................. ................. .......9 Cycle Times ................ ................. ................. .................. ................. ................. .......9
3.5.
Connection options to S5............................ ................. ................. ................. ........10
3.6.
Connection options to S7............................ ................. ................. ................. ........11
4.
Installation on the PLC .............................................................. 12
4.1.
Overview................................................................................................................12
4.2. 4.2.1. 4.2.2. 4.2.3.
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
4.3. 4.3.1.
Installation on 3964R of S5 CP 524/525 and S5 CP 544 .................. ................. .. 15 Installation on CP524/525 and on CP544 via TTY ................ ................. ........17
4.3.2. 4.4.
Installation on CP524/525 and on CP544 via V.24................... ................. ..... 18 Installation on S5 CP521-SI.......................... .................. ................. ................. ..... 19
4.5. 4.5.1. 4.5.2. 4.5.3.
Installation on 3964R of SAE-STAHL SAS 525 ................ .................. ................. .. 21 Setting the DIL Switches................ ................. ................. ................. ..............21 Interface Card Configuration................. .................. ................. ................. ..... 24 Cyclic Handling of Communication ................ ................. ................. ..............24
4.6. 4.6.1. 4.6.2.
Installation on 3964R of S7 CP340........................ ................. ................. ..............26 ProVicom Pin Configuration via V.24 / RS-232-C ............... ................. ...........28 ProVicom/ Exicom Pin Configuration via RS422............................................. 29
4.7.
Installation on 3964R of S7 CP441-1 ................. ................. ................. .................30
©
SAE-STAHLGMBH/VS_S5GB.DOC/26.04.01
Page3of53
Contents
Protocol Driver Manual S5 / S7
4.7.1. 4.7.2.
ProVicom Pin Configuration ProVicom / Exicom via V.24 / RS-232-C ............ 32 ProVicom/Exicom Pin Configuration via TTY............................... ................. .. 33
4.8. 4.8.1. 4.8.2. 4.8.3. 4.8.4. 4.8.5. 4.8.6.
Installation on the MPI-Bus via MPI-Box ................ ................. ................. ..............34 MPI-Box power supply ................ ................. ................. ................. .................35 Interfacing PG and MPI-Box ................ ................. ................. ................. ........35 Mounting instructions and installation MPI-Box RS-232 ................ .................35 Installation of a ProVicom on S7/MPI with MPI-Box RS-232........................... 35 Connection diagram MPI-Box RS-232 ............... ................. ................. ...........36 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.
Addressing....................................................... ........................... 43
5.1.
Address Specification ................ ................. ................. ................. ................. ........43
5.2.
Setting Station Parameters........................... .................. ................. ................. ..... 44
6.
Function References ................................................ .................. 45
6.1.
Key functions ................. ................. ................. ................. .................. ................. .. 45
6.2. 6.2.1.
LED Bit Area.............................. ................. ................. ................. ................. ........48 LEDs (ProVicom only)................. ................. ................. ................. .................50
6.3.
Fault Message and Operating Message Areas....................... ................. ..............51
6.4.
Other Communication Areas....................... ................. ................. ................. ........51
6.5. 6.5.1. 6.5.2.
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
ProtocolDriverManualS5/S7
GeneralNotes
1. General Notes 1.1. Documentation Manuals The documentation is presented in 3 manuals:
1.1.1.
Device Manual
The Device Manual contains •
a productand overview with technical firmware, the designation of thespecifications accessories. and the features of the devices and the •
the setting up and installation instructions,
•
and the description of the start-up.
1.1.2.
Engineering M anual
The Project Engineer’s Manual contains • a description of the SPSPlus WIN project tool, and • the design of the devices
1.1.3.
Protocol Driver Manuals
The Protocol Driver Manuals contain descriptions of all features of the protocol drivers used, e.g., addressing the process links and specific design notes. 1.1.4.
Target Groups
Target group Overview Design engineer / programmer Operator Installer Service
Required manual Device manual Protocol driver manual all
Required chapters Product overview Function overview all
Device manual Device manual
Operation Setting-up and installation instructions all Configuration
Device manual Protocol driver manual
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-STAHLGMBH/VS_S5GB.DOC/26.04.01
Page5of53
GeneralNotes
ProtocolDriverManualS5/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
ProtocoD l riverManuaS l 5S /7
SafetyNotes
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-STAHLGMBH/VS_S5GB.DOC/26.04.01
Page7of53
SafetyNotes
ProtocoD l riverManuaS l 5S /7
2.3. Repairs •
SAE-STAHL products may only be repaired by SAE-STAHL customer service staff or other certified persons / firms.
•
Only srcinal 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
90U
CPUTypes CPU interfaces PG/AS511 Add. SAE Add. Sie. PG/L1 Add. SAE Add. Sie. 3964R Add. SAE Add. Sie.
95U SS 1
SS 2
95F L2
*
100U 101
102
115U 103
941
1
1
2
1
1
1
1
1
1
***
***
***
no
yes
yes
***
***
***
yes
****
no
no
yes s. 95U -
no
no
no
no
no
no
no
yes/ max.1 SS HB-L1-RK no
yes/2.S S SAE*1 -
3964R/RK512
CP521 /SI 3964R
Add. SAE Add. Sie.
CP521/SI
no
HB-CP521 -
s. 95U
Additional modules Protocol Add. SAE Add. Sie. Additional modules Protocol Add. SAE Add. Sie.
* ** *** ****
943/b
yes TM-1
Additional modules Protocol
Protocol Add. SAE Add. Sie.
942
115H 944/b
945
*
1/2**
1/2**
1/2**
***
***
no
yes/ max. 1 interface HB-L1-RK no
yes/2.S S SAE*1 Option
yes/ 2.SS SAE*3 Module yes/2.S S SAE*4 Module
CP524/ CP525/CP544/CP544B
115F *
135U 926
1 no
no
***/1
***/1
1/2** ***/1
155H
948
1/2** no
* 1
1
no
no
no
no
no
yes SAE*5 Module
yes SAE*5 Module
no
no
no
no
no
no
yes/2.S S SAE*0 Module
yes/ 2.SS SAE*0 Module
no
no
CP524/ CP525/ CP544/ CP544B 3964R/RK512
COM525
COM525
SAS525
SAS525
SAS525
3964R/RK512 HB SAS-525 for 115U -
3964R/RK512 HB SAS-525 for 135U -
3964R/RK512 HB SAS-525 (155U) -
CP530
CP530
L1 HB-L1-Bus for 135U COM530
L1 HB-L1-Bus for 155U COM530
L2-DP SAE*2 IM308-B/ IM308-C
L2-DP SAE*2 IM308-B/ IM308-C
*
L2-DP SAE*2 IM308-B/ IM308-C Sie
928b
no
L1 HB-L1-Bus for 115U COM530
Not possible at present Option AS511 coupling very critical(seepagebefore) Onrequest
155U 928b
CP524/CP525/CP544/ CP544B 3964R/RK512
3964R/RK512
CP530
L2-DP SAE*2
928a
Siemens SAE*0 Entry DX2 in SAE*1 HB-CPU-RK512 SAE*2 HB-L2-S5BL2DPincl.Typefile
SAE*3 HB-CPU-945-L1 SAE*4 HB-CPU945-RK512 SAE*5 HB-L1-928b
COM525
ProtocolDiverManualS5/S7
Communication
3.6. Connection options to S7 CPU
S7-200 CPU interface PPI MPI L2-DP -* **
210 yes* ---
212 yes* ---
214 yes* ---
215 yes* -no **
216 yes* ---
CP242-2 ----
CP242-8 --no **
Not possible At present only ProVicom MT-300 CPU / interface has only one L2-DP Slave interface CPU
S7-300 CPU interface PPI MPI L2-DP
L2-DP 3646R -* ** *** ****
312 -yes* -CP 340 -yes***
313 -yes* -CP 341 -yes****
CPU interface PPI MPI L2-DP
L2-DP 3646R -* ** *** ****
314 315 --yes* yes* --Additional modules CP 342-2 CP 342-5 CP 343-1 -yes** -----
315-2 DP -yes* yes** CP 343-5 ---
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
CPU
S7-400
©
Additionam l odules
412 -yes* -CP441-1 -yes***
413-2DP -yes* yes**
414-2DP 416 --yes* yes* yes** -Additional modules CP441-2 CP443-1 --yes**** --
416-2DP -yes* yes** CP443-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-STAHLGMBH/VS_S5GB.DOC/26.04.01
Page11of53
InstallationonthePLC
ProtocolDriverManualS5/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
F only be made via RS-232-C or RS-422.
With MT-310, connection via TTY is not possible. The connection to S5 or S7 can
A list of the possible interface connections on the various Simatic S5 systems can be found in the chapter "Product Survey/ Communication". F
In order to build up communication with the PLC, the programming cable may not be attached to the programming interface.
4.2. Installation on the Programming Interface S5 with AS511 (Only for operating software S5-PG) Warning note: The AS511 is a is non-assured procedure. Hence malfunction cannot be excluded in the case of error. Only the L1 procedure can be used with many 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
ProtocolDriverManualS5/S7 4.2.1.
InstallationonthePLC
ProVicom/ Exicom with TTY Passive/Passive (Default)
The connecting cable VB-10 is available as a special accessory. E T- 8 COM1 Pin
MT-300 X2/COM3 25-polesub-D
PG-S5 15-polesub-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-STAHLGMBH/VS_S5GB.DOC/26.04.01
Page13of53
InstallationonthePLC 4.2.2.
ProtocolDriverManualS5/S7
ProVicom/Exicom with TTY Active/Active (optional)
The connecting cable VB-80 is available as a special accessory. E T- 8 COM1 Pin
MT-300 X2/COM3 25-pols eub-D
PG-S5 15-pols eub-D
1 2 3 4
Cable requirements: twisted pair and screened
5 6 7 8
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
ProtocolDriverManualS5/S7
4.3.
InstallationonthePLC
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 higherparity 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
SAE-STAHLGMBH/VS_S5GB.DOC/26.04.01
Baud rate: Character length No. of stop bits: Priority: Parity:
9600 8 bits 1 higher even
Page15of53
InstallationonthePLC
ProtocolDriverManualS5/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 0008 0009 000A 000B
NAME SSNR BLGR PAFE
:SPA FB 249 :SYNCHRON : KY 0,0 : KY 0,1 : 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
ProtocolDriverManualS5/S7 4.3.1.
InstallationonthePLC
Installation on CP524/525 and on CP544 via TTY
The connecting cable VB61 is available as a special accessory.
E T- 8 COM1 Pin
MT-300 X2/COM3 25-pols eub-D
CP525/CP524/CP54T 4 TY 25-pols eub-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-STAHLGMBH/VS_S5GB.DOC/26.04.01
Page17of53
InstallationonthePLC 4.3.2.
ProtocolDriverManualS5/S7
Installation on CP524/525 and on CP544 via V.24
This connection is good for short distances of up to 3m. E T- 8 COM2 Pin
MT-300:X4/COM1 MT-310: X4/ COM4 oder COM1/ COM2* 9-polseub-D
CP525/CP524/CP544V24 25-polseub-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
ProtocolDriverManualS5/S7
InstallationonthePLC
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 E T- 8 COM1 Pin
MT-300 X2/COM3 25-pols eub-D
CP5S2I1 25-pols eub-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-STAHLGMBH/VS_S5GB.DOC/26.04.01
Page19of53
InstallationonthePLC
ProtocolDriverManualS5/S7
Connection diagram V.24 Siemens CP521-SI on ProVicom/ Exicom E T- 8 COM2 Pin
MT-300X: 4C/ OM1 MT-310: X4/ COM4 or COM1/ COM2* 9-polseub-D
CP521 SI 25-polseub-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
ProtocolDriverManualS5/S7
InstallationonthePLC
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. interface To configure the module, the FB194 called from theatstartup once words for every channel. Make certain thatmust one be data block with least OB 32 data 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 für Kanal 1 Modul für Kanal 2 Modul für Kanal 3 ©
-
Module for channel 1 Module for channel 2 Module for channel 3
SAE-STAHLGMBH/VS_S5GB.DOC/26.04.01
Page21of53
InstallationonthePLC 4.5.1.1.
ProtocolDriverManualS5/S7
Plug connectors X6 and X3
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
ProtocolDriverManualS5/S7
InstallationonthePLC
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-STAHLGMBH/VS_S5GB.DOC/26.04.01
Page23of53
InstallationonthePLC 4.5.2.
Interface Card Configuration
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
NAME DBHB ADR KAN BAUD BCC PRIO FEHL NAME DBHB ADR KAN BAUD BCC PRIO FEHL NAME DBHB ADR KAN BAUD BCC PRIO FEHL
0023 0024
0000
: :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
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
: :BE
4.5.3.
Cyclic Handling of Communication
NETWORK 1 NAME: KOMMUN 0005 0006 0007 0008 0009 000A 000B 000C 000D 000E 000F 0010 0011
ProtocolDriverManualS5/S7
0000
: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
Page 24 of 53
Edit interface 1
Edit interface 2
Edit interface 3
©
SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01
ProtocolDriverManualS5/S7
InstallationonthePLC
The connecting cable VB-64 is available as a special accessory. E T- 8 COM1 Pin
MT-300 X2/COM3 25-pols eub-D
S5 A2S5 25-pols eub-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-STAHLGMBH/VS_S5GB.DOC/26.04.01
Page25of53
InstallationonthePLC
ProtocolDriverManualS5/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
1
Installing the CP340 For a detailed description, see the CP340 Point-to-Point Link-up Manual.
2
Configuring the CP340 To integrate the CP340, the following settings must be made.
1
The design package for the CP340 must be installed on the PU. Library CP340 is created during installation.
2
The CP340 must be integrated in the hardware configuration menu. The CP340 can be found under Simatic 300 in the Hardware Catalog under - CP-300 - CP340 RS232 MODULE When the CP340 is integrated, the logic base address is automatically created by the system.
3
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 Confirmdelay Establishment attempts Transmission attempts Page 26 of 53
: 220 ms :2000ms :6 :6 ©
SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01
ProtocolDriverManualS5/S7
InstallationonthePLC
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
ADR = logic base address
DB15 entity DB Logicbaseaddress 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.
©
SAE-STAHLGMBH/VS_S5GB.DOC/26.04.01
Page27of53
InstallationonthePLC 4.6.1.
ProtocolDriverManualS5/S7
ProVicom Pin Configuration via V.24 / R S-232-C
Connection on X2: The connecting cable VB-30 is available as a special accessory. MT-300 X2 25-poleSub-D
CP340 9-poleSub-D
Screen connection to connector enclosure
Connection X4: VB31 is available as a special accessory. The interfaceto cable MT-300X: 4C/ OM1 MT-310: X4/ COM4* 9-polS e ub-D
CP340 9-polS e ub-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
ProtocolDriverManualS5/S7
4.6.2.
InstallationonthePLC
ProVicom/ Exicom Pin Configuration v ia RS422
Pin configuration for the CP-340-RS 422/485 E T- 8 COM1 Pin
MT-300 X2/COM3 25-pols eub-D
CP340 15-pols eub-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.
E T- 8 COM1 Pin
MT-300X:4C/OM1 MT-310X:4 C/OM4 9-polseub-D
2
CP340 X27 15-polseub-D Cable requirements: twisted pair and screened
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-STAHLGMBH/VS_S5GB.DOC/26.04.01
Page29of53
InstallationonthePLC
ProtocolDriverManualS5/S7
4.7. Installation on 3964R of S7 CP 441-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
1
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.
3
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
ProtocolDriverManualS5/S7 3
InstallationonthePLC
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.
4
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
ID = logic base address
DB14 entity DB Logicbaseaddress 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.
©
SAE-STAHLGMBH/VS_S5GB.DOC/26.04.01
Page31of53
InstallationonthePLC 4.7.1.
ProtocolDriverManualS5/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-poleSub-D
CP441-1 9-poleSub-D
Screen connection to connector enclosure
Connection ProVicom/ The interfaceon cable VB31 is Exicom availableCOM1: as a special accessory. E T- 8 COM1 Pin
MT-300X:4C/ OM1 MT-310: X4/ COM4 or COM1/ COM2* 9-polSeub-D
CP441-1 9-polSeub-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
ProtocolDriverManualS5/S7 4.7.2. E T- 8 COM1 Pin
InstallationonthePLC
ProVicom/Exicom Pin Configuration via TTY MT-300 X2/COM3 25-pols eub-D
CP441 9-pols eub-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-STAHLGMBH/VS_S5GB.DOC/26.04.01
Page33of53
InstallationonthePLC
ProtocolDriverManualS5/S7
4.8. Installation on the MP I-Bus via MPI-B ox 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 srcinal 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
ProtocolDriverManualS5/S7 4.8.1.
InstallationonthePLC
MPI-Box power supply
There are two options for power supply of the MPI-Box: • Via the S7 MPI interface or Via an external 24V voltage •
4.8.2.
Interfacing P G a nd M PI-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 i nstructions a nd i nstallation MPI-Box R S-232
ProVicom:
ProVicom MT -xx
SPS S7
3 Meters = 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-STAHLGMBH/VS_S5GB.DOC/26.04.01
Page35of53
InstallationonthePLC 4.8.5.
ProtocolDriverManualS5/S7
Connection diagram MPI-Box RS-232
Page 36 of 53
©
SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01
ProtocolDriverManualS5/S7 4.8.6.
InstallationonthePLC
Interfacing to M PI-BOX RS-422
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 : ExicomET-8 COM1 Pin
MT-300:X4C / OM1 MT-310X:4C/OM4 9-polSeub-D
MPI-BOX RS422 9-polSeub-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-STAHLGMBH/VS_S5GB.DOC/26.04.01
Page37of53
InstallationonthePLC
ProtocolDriverManualS5/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
ProtocolDriverManualS5/S7
4.10.
Installation on L1 Bus
4.10.1.
System overview L1
InstallationonthePLC
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
4.10.2.
9600Bd 150 ms
19200Bd(onlywithSAS) 100 ms
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-STAHLGMBH/VS_S5GB.DOC/26.04.01
Page39of53
InstallationonthePLC
ProtocolDriverManualS5/S7
4.10.3.
L1 Connection via PG Interface
4.10.3.1 .
Installation of the Data Handling Blocks for L1
The two SAE-STAHL data handling blocks FB"INIT" (FB60) and FB"WORK" (FB61), together with the auxiliary data block DB"H-DB" (DB6) ensure the communication with ProVicom/ Exicom. These data blocks are standard entries under the specified numbers 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
Page 40 of 53
; non-recurring initial. of L1
©
SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01
ProtocolDriverManualS5/S7
InstallationonthePLC
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 bit 7 6 :: not not in in use use sense
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
©
SAE-STAHLGMBH/VS_S5GB.DOC/26.04.01
; Cyclic L1 handling
; User program
Page41of53
InstallationonthePLC 4.10.3.2 .
ProtocolDriverManualS5/S7
"Point-to-Point" Connection to th e PG Interface
The connecting cable VB-10 is available as a special accessory. E T- 8 COM1 Pin
MT-300 X2/COM3 25-pols eub-D
L1-S5 15-pols eub-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
ProtocoD l riverManuaS l 5S /7
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-STAHLGMBH/VS_S5GB.DOC/26.04.01
Page43of53
Addressing
ProtocoD l riverManuaS l 5S /7
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
ProtocolDriverManualS5/S7
FunctionReferences
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 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 xxxxxxxxxxxxxxx 1 xxxxxxxxxxxxxx 1 x xxxxxxxxxxxxx x 1 x xxxxxxxxxxxx x x 1 x xxxxxxxxxxx x x 1 x x xxxxxxxxxx x x x x 1 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 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 x 1 x
Bit Bit Bit Bit Bit Bit 151 41 31 21 11 0 +01 xx xx xx ................ xxxx 1 x +02 x x x x x x ................ xxxx 1 x Bit Bit Bit Bit Bit Bit 151 41 31 21 11 0 +03 x x x x x x ................ xxxx 1 x +04 x x x x x x ................ xxxx 1 x F= Function key
Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit 9 8 7 6 5 4 3 2 1 0 xx xx xx xx 1 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 1 x Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit 9 8 7 6 5 4 3 2 1 0 x x x x x x x x x 1
Meaning Cursor up Cursordown Cursorleft Cursorright ClearorEscapekey Enter key Info key Trigger bit 1) Histogram full Pass bit; 1) Device pass control Meaning F1 F12 Shift-F1 Shift-F12 Meaning Alt-F1
x x
x x
1 x
x x
x x
x x
x x
x x
x x
x 1
Alt-F12 Ctrl-F1
x
x
1
x
x
x
x
x
x
x
Ctrl-F12
1)
Function currently not implemented.
©
SAE-STAHLGMBH/VS_S5GB.DOC/26.04.01
Page45of53
FunctionReferences
ProtocolDriverManualS5/S7
+05
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 xxxxxxxxxxxxxxx 1 xxxxxxxxxxxxxx 1 x xxxxxxxxxxxxx x 1 x xxxxxxxxxxxx x x 1 x xxxxxxxxxxx x x 1 x x xxxxxxxxxx x x x x 1 x xxxxxxxxx x x x x x 1 x xxxxxxxx 1 x x x x x x x xxxxxxx x x x x x x x 1 x xxxxxx x x x x x x x x 1 x S = Soft key
• • • • • • •
Meaning (onlyProVicom) 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 1)
communication is under fault condition. 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
ProtocolDriverManualS5/S7
FunctionReferences
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
31
DR MB DL MB
0 10 0 11
Cursorkeys After flag byte 10 1) Passbit After flag 11.7
DR MB
1 12
Function keys F1-F8 After flag byte 12
DR MB
2 13
ShiftF1-F8 After flag byte 13
DR MB
3 14
AltF1-F8 After flag byte 14
The assignment in the flag area is then as follows : M10.0 - Cursor up ... M10.5 - Enter key 1) M11.6 - Histogram full 1)
M11.7 - Pass bit ... 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-STAHLGMBH/VS_S5GB.DOC/26.04.01
Page47of53
FunctionReferences
ProtocolDriverManualS5/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 151 41 31 21 11 0 9 8 7 6 5 4 3 2 1 0 xxxxxxxxxxxxxxx xxxxxxxxxxxxxx xxxxxxxxxxxxx xxxxxxxxxxxx xxxxxxxxxxx xxxxxxxxxx xxxxxxxxx xxxxxxxx xxxxxxx xxxxxx xxxxx xxxx x x x 1 x x x 1 x x x 1 x x x 1 +01
1 x x x x
1 x x x x x
1 x x x x x x
1 x x x x x x x
1 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
1 x x x x x x x x x x x
1 x x x x x x x x x x x x
1
1 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
LEDF4flashinggreen LEDF5flashinggreen LEDF6flashinggreen LEDF7flashinggreen LEDF8flashinggreen LEDF1flashingyellow LEDF2flashingyellow LEDF3flashingyellow LEDF4flashingyellow LEDF5flashingyellow LEDF6flashingyellow LEDF7flashingyellow LED F8flashingyellow
1 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
Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit 151 41 31 21 11 0 9 8 7 6 5 4 3 2 1 0 xxxxxxxxxxxxxxx xxxxxxxxxxxxxx xxxxxxxxxxxxx xxxxxxxxxxxx xxxxxxxxxxx xxxxxxxxxx xxxxxxxxx xxxxxxxx xxxxxxx xxxxxx xxxxx xxxx x x x x x 1 x x 1 x x 1
Page 48 of 53
1 x x x
1 x x x x
1 x x x x x
1 x x x x x x
1 x x x x x x x
1 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
1 x x x x x x x x x x x
©
1 x x x x x x x x x x x x
Meaning (only MT-300) LED F1 on green LEDF2ongreen LEDF3ongreen LEDF4ongreen LEDF5ongreen LEDF6ongreen LEDF7ongreen LEDF8ongreen LEDF1onyellow 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
SAE-STAHL GMBH / VS_S5GB.DOC / 26.04.01
ProtocolDriverManualS5/S7
+02
FunctionReferences
Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit 151 41 31 21 11 0 9 8 7 6 5 4 3 2 1 0 xxxxxxxxxxxxxxx
1
xxxxxxxxxxxxxx
1
x
1
x
x
1
x
x
x
1
x
x
x
x
1
x
x
x
x
x
1
x
x
x
x
x
x
1
x
x
x
x
x
x
x
1
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
1
x
x
x
x
x
x
x
x
x
x
x
xxxxxxxxxxxxx xxxxxxxxxxxx xxxxxxxxxxx xxxxxxxxxx xxxxxxxxx xxxxxxxx xxxxxxx xxxxxx xxxxx xxxx
©
Meaning (only MT-300) LED F1 flashing fast green LED F2 flashing fast green LED F3 flashing fast green LEDF4flashingfast green LEDF5flashingfast green LEDF6flashingfast green LEDF7flashingfast green LEDF8flashingfast green LEDF1flashingfast yellow LEDF2flashingfast yellow LEDF3flashingfast yellow LEDF4flashingfast yellow LEDF5flashingfast yellow LED F6flashing fast yellow
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
LED F7 flashing fast yellow
1
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
LED F8 flashing fast yellow
SAE-STAHLGMBH/VS_S5GB.DOC/26.04.01
Page49of53
FunctionReferences 6.2.1.
ProtocolDriverManualS5/S7
LEDs (ProVicom only)
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 :
PLC address LED bit area DB31 DW10
MB DR
20 10
LED1-8ongreen
MB DR
22 11
LED 1-8 flashing green
MB DR
24 12
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.0-
LED 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
ProtocolDriverManualS5/S7
FunctionReferences
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 xxxxxxxxxxxxxxx 1 .. .. .. .. .. .. .. .. x x x x x x x x x 1 x x x x x x +01 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 1 x x x x x x ... +255x x x x x 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
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
Bit area for confirming curve transmissions
Demand bit range
Bit area to require curve values
Demand bit acknowledge range
Bit area for confirming curve requirements
Triggerbit range
Bit area for setpoint triggering
Readybit
Addressforreadybit
For more details, please read the Engineering Manual, Chapter "Ports/ Station Parameters".
©
SAE-STAHLGMBH/VS_S5GB.DOC/26.04.01
Page51of53
FunctionReferences
ProtocolDriverManualS5/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
S7
KF KB KH KM KD KD KC KT0 KT1 KT2 KT3 KZ KG
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
ProtocolDriverManualS5/S7 6.5.2.
FunctionReferences
Table Showing Types of Variables
T y pe : Integer Unsigned Integer Long Integer LongInteger Unsigned Float
Description: 16-bit signed integer 16-bit unsigned integer 32-bit signed integer
Max.digits: 5+ sign
Valuerange: -32768 ... 32767
5
0...65535
10+ sign
-2147483648 ... 2147483647
32-bit integerunsigned Floatingpoint number
10
0...4294967295
For details of creating variables, see Engineering Manual, Chapter "Variables".
©
SAE-STAHLGMBH/VS_S5GB.DOC/26.04.01
Page53of53