Preface, Contents 1 Part I Introduction 1 SIMATIC HMI 2 Communication Part II SIMATIC S5 Connections 11 User's Manual 12 Part III SIMATIC S7 Connections 14 15 Part IV SIMATIC 500/505 Connections 17 18 Part V Data Block Connections 24 A Part VI Appendices F Index 6AV3991-1BC05-1AB0 Release 05/99 Safety Guidelines ! ! This manual contains notices which you should observe to ensure your own personal safety, as well as to protect the product and connected equipment. These notices are highlighted in the manual by a warning triangle and are marked as follows according to the level of danger: Warning indicates that death, severe personal injury or substantial property damage can result if proper precautions are not taken. Caution indicates that minor personal injury or property damage can result if proper precautions are not taken. Note draws your attention to particularly important information on the product, handling the product, or to a particular part of the documentation. Qualified Personnel Equipment may be commissioned and operated only by qualified personnel. Qualified personnel within the meaning of the safety notices in this manual are persons who are authorized to commission, ground and identify equipment, systems and circuits in accordance with safety engineering standards. Correct Usage Note the following: ! Warning The equipment may be used only for the applications stipulated in the catalog and in the technical description and only in conjunction with other equipment and components recommended or approved by Siemens. Startup must not take place until it is established that the machine, which is to accommodate this component, is in conformity with the guideline 89/392/EEC. Faultless and safe operation of the product presupposes proper transportation, proper storage, erection and installation as well as careful operation and maintenance. Trademarks SIMATICR is a registered trademark of Siemens AG. Some of the other designations used in these documents are also registered trademarks; the owner's rights may be violated if they are used by third parties for their own purposes. Impressum Editor and Publisher: A&D PT1 Copyright E Siemens AG 1999 All rights reserved Disclaimer of Liability The reproduction, transmission or use of this document or its contents is not permitted without express written authority. Offenders will be liable for damages. All rights, including rights created by patent grant or registration of a utility model or design, are reserved. We have checked the contents of this manual for agreement with the hardware and software described. Since deviations cannot be precluded entirely, we cannot guarantee full agreement. However, the data in this manual are reviewed regularly and any necessary corrections included in subsequent editions. Suggestions for improvement are welcomed. Siemens AG Automation & Drives SIMATIC Human Machine Interface Postfach 4848, D-90327 Nuernberg Siemens Aktiengesellschaft Technical data subject to change. E Siemens AG 1999 Order No. 6AV3991-1BC05-1AB0 Communication User's Manual Preface Purpose The Communication User's Manual describes: the structure and function of the individual user data areas, the different types of connection between the operating unit and the PLC, the actions that need to be carried out in the PLC program. That description applies both to operating units configured using ProTool and units configured using COM TEXT. Conventions The following conventions are used in this manual: Communication User's Manual Release 05/99 VAR_23 Text that is displayed on the screen is printed in Courier type face. Examples of this are commands, file names, entries in dialog boxes and system messages. Tag The names of dialog boxes and boxes and buttons in dialog boxes are printed in italics. File Edit Menu items are shown linked by arrows. The full path to the menu item in question is always shown. F1 The names of keys are printed in a different type face. i Preface History of revisions The table below shows the history of revisions to the Communication User's Manual. Edition ii Remarks 07/94 Original version 12/94 Errata corrected, SINEC L2-DP added 10/95 - New chapters on SIMATIC S7, SIMATIC 500/505 - Technical content reviewed - Manual reorganized 01/96 - Technical additions for ProTool and SIMATIC S7 - New chapter on Telemecanique TSX Adjust 05/96 Errata corrected 11/97 - Inclusion of operating units TD17, OP7/17, OP27/37, TP27/37 - Technical content of section on SIMATIC S5 connections reviewed 05/99 Errata corrected Communication User's Manual Release 05/99 Preface Other support In the case of technical queries, please contact your local Siemens in the subsidiaries and branches responsible for your area. SIMATIC Customer Support Hotline Available worldwide, at all times: Nuernberg Johnson City Singapur Simatic Basic Hotline Nuernberg Johnson City SIMATIC BASIC Hotline SIMATIC BASIC Hotline SIMATIC BASIC Hotline Local time: Mon - Fri 8:00 to 18:00 Local time: Mon - Fri 8:00 to 17:00 Local time: Mon - Fri 8:00 to 17:30 Telephone: +49 (911) 895-7000 Telephone: +1 423 461-2522 Telephone: +65 740-7000 Fax: +49 (911) 895-7002 Fax: +1 423 461-2231 Fax: +65 740-7001 E-Mail: simatic.support@ nbgm.siemens.de E-Mail: simatic.hotline@ sea.siemens.com E-Mail: simatic@ singnet.com.sg Singapur SIMATIC Premium Hotline (charged, only with SIMATIC Card) Time: Mon - Fri 0:00 to 24:00 Telephone: +49 (911) 895-7777 Fax: +49 (911) 895-7001 Communication User's Manual Release 05/99 iii Preface SIMATIC Customer Online Services SIMATIC Customer Support offers comprehensive additional information concerning SIMATIC products through its Online services as follows: Up-to-date general information is provided - in Internet under http://www.ad.siemens.de/simatic - via Fax-Polling under 08765-93 02 77 95 00 Up-to-date product information and downloads for practical use can be found: - in Internet unter http://www.ad.siemens.de/support/ html-00/ - via the Bulletin Board System (BBS) in Nurnberg (SIMATIC Customer Support Mailbox) under +49 (911) 895-7100 In order to contact the mailbox, please use a modem with up to 28.8 kBaud (V.34) capacity. Set the parameters as follows: 8, N, 1, ANSI, or dial for connection via ISDN (x.75, 64 kBit). iv Communication User's Manual Release 05/99 Preface Abbreviations The meanings of the abbreviations used in the Communication User's Manual are as follows: Communication User's Manual Release 05/99 AM Alarm message ANSI American National Standards Institute AS511 Interface 511 ASCII American Standard Code for Information Interchange CBR Coordination byte "receive" CBS Coordination byte "send" CP Communication processor CPU Central processing unit DB Data block (on PLC) DHB Data handling block DW Data word (on PLC) DX Extended data block (on PLC) EM Event message EM Equipment Manual EPROM Erasable (by UV light) programmable read-only memory FAP Free ASCII Protocol FB Function block FW Firmware LED Light-emitting diode MPI Multipoint interface (SIMATIC S7) MW Memory word (on PLC) OB Organization block OP Operator panel PC Personal computer PLC Programmable logic controller PU Programming unit PPI Point-to-point interface (SIMATIC S7) RAM Random-access memory (system memory) RLO Result of logical operation SRAM Static RAM (buffered) TD Text display TP Touch panel UM User's Manual v Preface vi Communication User's Manual Release 05/99 Contents Part I 1 Introduction Types of Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1 1.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2 1.2 Which Connection for Which Operating Unit? . . . . . . . . . . . . . . . . . . . . . 1-4 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 SIMATIC S5 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AS511 Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Free ASCII Protocol (FAP) Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . PROFIBUS-DP Connection to SIMATIC S5 . . . . . . . . . . . . . . . . . . . . . . . SINEC L1 Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PROFIBUS Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Parallel Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9 1-9 1-10 1-11 1-12 1-13 1-14 1.4 1.4.1 1.4.2 1.4.3 SIMATIC S7 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . MPI Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PROFIBUS-DP Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PPI Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-15 1-15 1-16 1-17 1.5 SIMATIC 500/505 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-18 1.6 Data Block Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-19 Part II SIMATIC S5 Connections 2 3 4 Communication Management for the SIMATIC S5 . . . . . . . . . . . . . . . . . . . . . . . 2-1 2.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2 2.2 Standard Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3 2.3 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4 2.4 Optimization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5 2.5 Error Prevention . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-7 AS511 Connection, Group 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1 3.1 Communication Structure for Group 2 PLCs . . . . . . . . . . . . . . . . . . . . . . 3-2 3.2 Commissioning Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4 AS511 Connection, Group 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1 4.1 Communication Structure for Group 1 PLCs . . . . . . . . . . . . . . . . . . . . . . 4-2 4.2 Commissioning Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-4 4.3 4.3.1 4.3.2 4.3.3 4.3.4 4.3.5 Layout and Description of Interface Area for Group 1 PLCs . . . . . . . . . Startup of Standard Function Block and Operating Mode . . . . . . . . . . . Transferring Date and Time to PLC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Analyzing Scheduler Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Analyzable Areas of the Interface Area . . . . . . . . . . . . . . . . . . . . . . . . . . . Use of PLC Jobs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-7 4-9 4-11 4-12 4-14 4-16 Communication User's Manual Release 05/99 i Contents 5 6 7 8 9 ii FAP Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1 5.1 Communication Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2 5.2 Commissioning Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-5 5.3 Configuring CP Address and Interface Parameters . . . . . . . . . . . . . . . . 5-9 5.4 Configuring the SI2 Interface on CPU 928B . . . . . . . . . . . . . . . . . . . . . . 5-11 5.5 Configuring the Operating Unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-15 PROFIBUS-DP Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1 6.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2 6.2 Communication Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3 6.3 Commissioning Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-8 6.4 6.4.1 6.4.2 6.4.3 Configuring the PROFIBUS-DP Network . . . . . . . . . . . . . . . . . . . . . . . . . IM308B/C Interface Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Connecting to AG 95U DP-Master . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Other SIMATIC S5 PROFIBUS-DP Master Modules . . . . . . . . . . . . . . . 6-12 6-14 6-16 6-19 SINEC L1 Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-1 7.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2 7.2 Communication Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-4 7.3 Setting up the Program and Data Areas . . . . . . . . . . . . . . . . . . . . . . . . . . 7-6 7.4 Configuring the SINEC L1 Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-10 PROFIBUS Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-1 8.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-2 8.2 Communication Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-3 8.3 Setting up the Program and Data Areas . . . . . . . . . . . . . . . . . . . . . . . . . . 8-5 8.4 8.4.1 8.4.2 8.4.3 Configuring the SINEC L2 Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring with COM TEXT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring the Communications Processor . . . . . . . . . . . . . . . . . . . . . . Configuring the SIMATIC S5-95 L2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-9 8-10 8-12 8-12 Parallel Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-1 9.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-2 9.2 Communication Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-4 9.3 9.3.1 9.3.2 9.3.3 Setting up the Program and Data Areas . . . . . . . . . . . . . . . . . . . . . . . . . . Standard Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Interface Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Job Data Area (group 2 PLCs only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-6 9-6 9-10 9-14 9.4 9.4.1 9.4.2 9.4.3 9.4.4 9.4.5 Messages and PLC Jobs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuration Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Triggering Messages and PLC Jobs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Structure of Event and Alarm Messages . . . . . . . . . . . . . . . . . . . . . . . . . Structure of the Output Value to the TD . . . . . . . . . . . . . . . . . . . . . . . . . . Transferring Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-15 9-15 9-16 9-18 9-19 9-20 Communication User's Manual Release 05/99 Contents 10 11 9.4.6 Transferring PLC Jobs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-20 9.5 Configuring with COM TEXT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-21 9.6 Connection of Several Text Displays to One PLC . . . . . . . . . . . . . . . . . . 9-22 9.7 Interrupt Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-22 Communication Data Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-1 10.1 The Interface Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-2 10.2 10.2.1 10.2.2 10.2.3 10.2.4 10.2.5 Structure and Description of the Interface Area . . . . . . . . . . . . . . . . . . . Startup of Standard Function Block and Operating Mode . . . . . . . . . . . Transferring Date and Time to PLC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Analysing Scheduler Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Analyzable Areas of the Interface Area . . . . . . . . . . . . . . . . . . . . . . . . . . . Use of PLC Jobs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-3 10-6 10-9 10-10 10-12 10-15 10.3 Assignment Data Block DB-ZU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-19 User Data Areas for the SIMATIC S5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-1 11.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-2 11.2 Event and Alarm Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-3 11.3 11.3.1 11.3.2 11.3.3 Keyboard and LED Assignment Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . System Keyboard Assignment Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Function Keyboard Assignment Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . LED Assignment Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-8 11-9 11-11 11-12 11.4 Screen Number Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-13 11.5 Trend Request and Transfer Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-15 11.6 User Version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-17 11.7 11.7.1 11.7.2 11.7.3 11.7.4 Recipes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Transfer of Data Records . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Addressing Recipes and Data Records . . . . . . . . . . . . . . . . . . . . . . . . . . Data Areas for Transfer of Data Records . . . . . . . . . . . . . . . . . . . . . . . . . Synchronization during Transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-18 11-19 11-20 11-21 11-23 11.8 Writing Variables Indirectly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-26 Part III SIMATIC S7 Connections 12 SIMATIC S7 Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-1 12.1 12.1.1 12.1.2 Connection to S7-200, S7-300 and S7-400 via MPI . . . . . . . . . . . . . . . . S7-300 Addresses for MPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . S7-400 Addresses for MPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-5 12-8 12-11 12.2 Connection to S7-300 and S7-400 via PROFIBUS . . . . . . . . . . . . . . . . . 12-13 12.3 Configuring DP Direct Keys for the Operating Unit . . . . . . . . . . . . . . . . . 12-18 12.4 Connecting to S7 Positioning Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-24 12.5 Connecting to S7 SINUMERIK Modules . . . . . . . . . . . . . . . . . . . . . . . . . . 12-26 12.6 Connecting to an S7-200 via PPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-29 Communication User's Manual Release 05/99 iii Contents 12.7 13 14 Notes on Optimization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-32 Interface Area for the SIMATIC S7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13-1 13.1 Control and Acknowledgment Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13-3 13.2 Data Areas in the Interface Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13-5 User Data Areas for the SIMATIC S7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-1 14.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-2 14.2 Event and Alarm Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-3 14.3 14.3.1 14.3.2 14.3.3 Keyboard and LED Assignment Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . System Keyboard Assignment Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Function Keyboard Assignment Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . LED Assignment Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-8 14-9 14-11 14-12 14.4 Screen Number Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-13 14.5 Trend Request and Transfer Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-15 14.6 User Version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-17 14.7 14.7.1 14.7.2 14.7.3 14.7.4 Recipes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Transferring Data Records . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Addressing Recipes and Data Records and the Data Areas Required Synchronization during Transfer - Normal Case . . . . . . . . . . . . . . . . . . . Synchronization during Transfer - Special Cases . . . . . . . . . . . . . . . . . 14-18 14-19 14-20 14-22 14-23 14.8 Writing Variables Indirectly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-26 Part IV SIMATIC 500/505 Connections 15 16 17 iv SIMATIC 500/505 Connection, Version 3.1 or Later . . . . . . . . . . . . . . . . . . . . . . 15-1 15.1 Commissioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-3 15.2 Permissible Data Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-4 15.3 Notes on Optimization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-8 Interface Area for the SIMATIC 500/505 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16-1 16.1 Control and Acknowledgment Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16-3 16.2 Data Areas in the Interface Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16-5 User Data Areas for the SIMATIC 500/505 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17-1 17.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17-2 17.2 Event and Alarm Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17-3 17.3 17.3.1 17.3.2 17.3.3 Keyboard and LED Assignment Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . System Keyboard Assignment Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Function Keyboard Assignment Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . LED Assignment Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17-8 17-9 17-11 17-12 17.4 Screen Number Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17-13 17.5 Trend Request and Transfer Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17-15 Communication User's Manual Release 05/99 Contents 17.6 User Version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17-17 17.7 17.7.1 17.7.2 17.7.3 Recipes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Addressing Recipes and Data Records and the Data Areas Required Synchronization during Transfer - Normal Case . . . . . . . . . . . . . . . . . . . Synchronization during Transfer - Special Cases . . . . . . . . . . . . . . . . . 17-18 17-19 17-20 17-21 Part V Data Block Connections 18 19 20 21 22 23 24 Communication Management for Block Drivers . . . . . . . . . . . . . . . . . . . . . . . . . 18-1 18.1 18.1.1 18.1.2 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Communication Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Functional Principle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18-2 18-5 18-6 18.2 18.2.1 18.2.2 18.2.3 Communication via Data Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Structure of the Data Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data Block Exchange . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Structure of Special Data Blocks 0 and 1 . . . . . . . . . . . . . . . . . . . . . . . . . 18-7 18-7 18-8 18-9 18.3 Drivers and Configuration Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18-15 18.4 18.4.1 18.4.2 Configuring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setpoints/Actual Values (Two-Way Transfer) . . . . . . . . . . . . . . . . . . . . . . Notes on Configuring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18-16 18-18 18-19 Free Serial Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-1 19.1 Configuring and Handling the Data Blocks . . . . . . . . . . . . . . . . . . . . . . . . 19-2 19.2 Configuration Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-3 SIMATIC 500/505 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-1 20.1 Configuring and Handling the Data Blocks . . . . . . . . . . . . . . . . . . . . . . . . 20-3 20.2 Configuration Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-4 Mitsubishi FX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-1 21.1 Configuring and Handling the Data Blocks . . . . . . . . . . . . . . . . . . . . . . . . 21-2 21.2 Configuration Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-3 Allen-Bradley . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-1 22.1 Configuring and Handling the Data Blocks . . . . . . . . . . . . . . . . . . . . . . . . 22-3 22.2 Configuration Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-4 Telemecanique TSX Adjust . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23-1 23.1 Configuring and Handling Data Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . 23-3 23.2 Example Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23-4 User Data Areas for Block Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-1 24.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-2 24.2 Event Messages and Alarm Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-3 24.3 24.3.1 Keyboard and LED Assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . System Keyboard Assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-7 24-8 Communication User's Manual Release 05/99 v Contents 24.3.2 24.3.3 Function Keyboard Assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LED Assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-9 24-10 24.4 Screen Number Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-11 24.5 Trend Request and Transfer Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-13 24.6 User Version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-15 24.7 24.7.1 24.7.2 24.7.3 24.7.4 Recipes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Transferring Data Records . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Addressing Recipes and Data Records . . . . . . . . . . . . . . . . . . . . . . . . . . Data Areas for Transferring Data Records . . . . . . . . . . . . . . . . . . . . . . . . Synchronization while Sending a Data Record . . . . . . . . . . . . . . . . . . . . 24-16 24-17 24-18 24-19 24-20 24.8 Writing Variables Indirectly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-21 24.9 Notes on Optimization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-22 Part VI Appendix A B C D System Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-1 A.1 Operating Unit System Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-1 A.2 SIMATIC S5 Standard Function Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . A-24 A.3 Standard FB Error Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-25 PLC Jobs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-1 B.1 PLC Jobs - Special Cases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-13 B.2 Key Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-14 Interface Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-1 C.1 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-2 C.2 Serial Interface Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-3 C.3 Parallel Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-7 C.4 SINEC L2 Interface Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-9 C.5 SINEC L2-DP Interface Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-11 Technical Specifications of the Standard Function Blocks . . . . . . . . . . . . . . . . . . D-1 D.1 AS511 Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-2 D.2 D.2.1 D.2.2 Free ASCII Protocol (FAP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FAP at Interface SI2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FAP at CP Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-4 D-4 D-5 D.3 SINEC L1 Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-7 D.4 PROFIBUS and PROFIBUS-DP Connection . . . . . . . . . . . . . . . . . . . . . D-9 E Interface Area Assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-1 F SIMATIC HMI Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F-1 I Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Index-1 vi Communication User's Manual Release 05/99 Part I Introduction Types of connection 1 -2 Communication User's Manual Release 05/99 Types of Connection 1 This chapter provides an overview of the possible types of connection between the operating units on the one hand and the various PLCs on the other. The essential features of the different types of connection and the type of interface in each case are briefly described for each PLC. For more detailed information on each type of connection including connection-specific guidance on configuration, please refer to the relevant chapters in sections II, III, IV and V of this manual. Communication User's Manual Release 05/99 1-1 Types of Connection 1.1 Overview Function of Operating Units The operating unit is used to read, display, save and log messages and variables. The operating unit can also be used to intervene in the process. The term operating unit is used in this manual to refer to units with the designation TD, OP or TP. With regard to operation of the units, a distinction is generally need to be made between devices having a graphics display and devices having a text-based display. Table 1-1 shows which units are devices having a text-based display and which are devices having a graphics display. Devices having a graphics display can display data graphically whereas devices having a text-based display can only display alphanumeric characters. Table 1-1 Devices having a Graphics Display and Devices having a Text-Based Display Devices having a Text-Based Display Devices having a Graphics Display TD17 OP25, OP35 OP3 OP27, OP37 OP5, OP15 TP27, TP37 OP7, OP17 TD10, TD20, OP20 (with COM TEXT only) Data exchange The prerequisite for the ability to perform control and monitoring functions is connection of the operating unit to a PLC. The exchange of data between the operating unit and the PLC is controlled by a connection-specific communication driver. Each type of connection requires its own communication driver. PLC The following are examples of PLCs: SIMATIC S5 and S7, SIMATIC 500/505, PC/AT-compatible computers, PLCs produced by other manufacturers. 1-2 Communication User's Manual Release 05/99 Types of Connection Choice of connection type Criteria for selecting the type of connection between the operating unit and the PLC include the following: the type of PLC, the CPU on the PLC, the type of operating unit, the number of operating units per PLC, the structure of an existing installation and, if applicable, the used bus system, the work and expense involved in any additional components required. Implemented connection types The following types of connection are supported at present: SIMATIC S5 - AS511 connection - Connection using Free ASCII Protocol (FAP) - PROFIBUS-DP connection, - SINEC L1 connection, - PROFIBUS connection, - Parallel connection. SIMATIC S7 - Point-to-point interface (PPI) connection, - Multipoint interface (MPI) connection, - PROFIBUS-DP connection, SIMATIC 500/505 - NITP protocol Other PLCs For other PLCs there are what are referred to as NATIVE drivers. They are called NATIVE drivers because the PLC-specific addresses are specified directly in the operating unit configuration. The commissioning instructions are provided only in the Online Help. There are also block drivers. Operating units that are configured in ProTool support only the block driver for a "free serial connection" such as with a PC. Operating units that are configured using COM TEXT support the block drivers described in Section V. Communication User's Manual Release 05/99 1-3 Types of Connection 1.2 Which Connection for Which Operating Unit? Selection criteria Table 1-2 As not every type of connection is possible with every type of operating unit, tables 1-2, 1-3, 1-4 and 1-5 provide details of which type of connection can be used with which operating unit. The decisive factor in making the correct choice is the type of PLC and your existing network configuration. Tables 1-6, 1-7 and 1-8 show the possible connection for the various SIMATIC PLCs. Possible Types of Connection for Devices having a Text-Based Display - Part 1 PLC Networks Supported (Protocol) TD10 TD20 OP20 OP3 TD17 SIMATIC S5 AS511 x x - x FAP x x - x SINEC L1 SIMATIC S7 x x - - PROFIBUS 1) 2) 1) 2) - - PROFIBUS-DP 1) 2) 1) 2) Parallel 1) - - - MPI (S7 protocol) - - x x PPI (S7 protocol) - - x x PROFIBUS-DP (S7 protocol) - - - x x SIMATIC 500/505 NITP - - - x Other PLCs (block driver) SIMATIC 500/505 2) 2) - - Free serial 2) 2) - - Allen-Bradley (DF1) 3) 3) - - Mitsubishi (FX) 3) 3) - - Telemecanique TSX 17 Adjust - - - - Telemecanique TSX 7 Adjust - - - - Allen-Bradley (DF1) - - - x Mitsubishi (FX) - - - x Modicon (MODBUS) - - - x Telemecanique TSX 17 Adjust - - - x Telemecanique TSX 7 Adjust - - - x Telemecanique Uni-Telway - - - x Other PLCs (NATIVE driver) 1) Appropriate interface module required 2) Appropriate firmware memory module required 3) Upgrade driver (optional) required x Possible - Not possible 1-4 Communication User's Manual Release 05/99 Types of Connection Table 1-3 Possible Types of Connection for Devices having a Text-Based Display - Part 2 PLC Networks Supported (Protocol) OP5/A1 OP15/A1 OP15/C1 OP5/A2 OP15/A2 OP15/C2 OP7/PP OP17/PP SIMATIC S5 AS511 x - x x FAP x - x x SINEC L1 2) - - - PROFIBUS - - - - PROFIBUS-DP - x - - Parallel - - - - MPI (S7 protocol) - x - - PPI (S7 protocol) - x - - PROFIBUS-DP (S7 protocol) - x - - SIMATIC 500/505 NITP x x x x Other PLCs (bl k driver) (block di ) SIMATIC 500/505 x x - - SIMATIC S7 Other PLCs (NATIVE driver) di ) Free serial x x - - Allen-Bradley (DF1) 1) 1) - - Mitsubishi (FX) 1) 1) - - Telemecanique TSX 17 Adjust - 1) - - Telemecanique TSX 7 Adjust 1) 1) - - Allen-Bradley (DF1) x x x x Mitsubishi (FX) x x x x Modicon (MODBUS) x x x x Telemecanique TSX 17 Adjust x x x x Telemecanique TSX 7 Adjust x x x x Telemecanique Uni-Telway x x x x 1) Upgrade driver (optional) required 2) Only with COM TEXT x Possible - Not possible Communication User's Manual Release 05/99 1-5 Types of Connection Table 1-4 Possible Types of Connection for Devices having a Text-Based Display - Part 3 PLC Networks Supported (Protocol) SIMATIC S5 SIMATIC S7 OP7/DP OP17/DP OP7/DP -12 OP17/DP -12 AS511 - - x x FAP - - x x SINEC L1 - - - - PROFIBUS - - - - PROFIBUS-DP x x x x Parallel - - - - MPI (S7 protocol) x x x x PPI (S7 protocol) x x x x PROFIBUS-DP (S7 protocol) x x x x SIMATIC 500/505 NITP - - x x Other PLCs (bl k driver) (block di ) SIMATIC 500/505 - - - - Free serial - - - - Allen-Bradley (DF1) - - - - Mitsubishi (FX) - - - - Telemecanique TSX 17 Adjust - - - - Telemecanique TSX 7 Adjust - - - - Allen-Bradley (DF1) - - x x Mitsubishi (FX) - - x x Modicon (MODBUS) - - x x Telemecanique TSX 17 Adjust - - x x Telemecanique TSX 7 Adjust - - x x Telemecanique Uni-Telway - - x x Other PLCs di ) (NATIVE driver) x Possible - Not possible 1-6 Communication User's Manual Release 05/99 Types of Connection Table 1-5 Possible Types of Connection for Devices having a Graphics Display PLC Protocol OP25 OP35 OP27 OP37 TP27 TP37 SIMATIC S5 AS511 x x x FAP x x x PROFIBUS-DP x x x MPI (S7 protocol) x x x PPI (S7 protocol) x x x PROFIBUS-DP (S7 protocol) x x x SIMATIC 500/505 NITP x x x Other PLCs (block driver) Free serial x x x Other PLCs (NATIVE driver) Allen-Bradley (DF1) x x x Mitsubishi (FX) x x x Modicon (MODBUS) x x x Telemecanique TSX 17 Adjust x x x Telemecanique TSX 7 Adjust x x x Telemecanique Uni-Telway x x x SIMATIC S7 x - Possible with standard software module or integral software Not possible Table 1-6 Possible Connections for SIMATIC S5 PLCs SIMATIC S5 AS511 FAP to SI2 FAP via CP SINEC L1 PROFIBUS PROFIBUSDP Parallel S5-90U x - - - - - x S5-95U x - CP 521 SI 1) - x x 1) x 1) - x - x S5-95U DP- Master x - S5-100U (CPU 100/102) x - - - - - x S5-100U (CPU 103) x - CP 521 SI 1) - - - x S5-115U (CPU 941-944) x x 2) CP 523 x x x x S5-115U (CPU 945) - x 3) - - - x - S5-135U4) x x 5) CP 523 x x x - S5-155U 1) 2) 3) 4) 5) 6) x - - - CP 521 SI CP 523 x x x 6) - Significant impairment of performance; not OP25/35, OP27/37, TP27/37 Only with CPU 943A/B, CPU 944A/B Only with with special CPU interface module CPU 928A Version -3UA12 or later only Only with CPU 928B (with special CPU interface module) CPU 946/947 Version -3UA22 or later only Possible without qualification Not possible Communication User's Manual Release 05/99 1-7 Types of Connection Table 1-7 Possible Connections for SIMATIC S7 PLCs PPI MPI PROFIBUS-DP 1) S7-200 x - - S7-300 - x x S7-400 - x x S7-NC - x x SIMATIC S7 1) x - All CPUs with the designation "-2DP", CP or FM that support the S7 protocol Possible without qualification Not possible Table 1-8 Possible Connections for SIMATIC 500/505 PLCs SIMATIC 500/505 500 Series 505 Series Table 1-9 shows the possible connections for other PLCs. Table 1-9 Possible Connections for Other PLCs Using NATIVE Drivers PLC Allen-Bradley Mitsubishi Modicon Telemecanique 1-8 CPU SLC 500, PLC5 FX CPU 984 (not 984A, 984B, 984X), CPU984-785, CPU TSX TSX Communication User's Manual Release 05/99 Types of Connection 1.3 SIMATIC S5 Connections In the case of the SIMATIC S5 there is a number of types of connection which are briefly summarized below. 1.3.1 Interface AS511 Connection The operating unit is connected via the integral serial interface to interface SI1 on the CPU (figure 1-1). CPU Operating Unit PLC COROS OP35 SI1 interface AS 511 protocol Physical connection: TTY Figure 1-1 Features AS511 Connection S No additional modules are required. S Possible with any PLC except CPU 945 and AG155U. Communication User's Manual Release 05/99 1-9 Types of Connection 1.3.2 Interface Free ASCII Protocol (FAP) Connection The operating unit is connected via the integral serial interface to the PLC (figure 1-2). Connection is made to either S interface SI2 on the CPU or S the CP module on the PLC. CPU CP PLC Operating Unit COROS OP35 SI2 optional FAP protocol Physical connection: TTY or RS232 Figure 1-2 Features Connection using Free ASCII Protocol (FAP) S PU interface on PLC remains free. S Connection via SI2. S Connection via CP module: Multiple operating units can be connected to one PLC (CP 521 SI: up to 8, CP 523: up to 16). 1-10 Communication User's Manual Release 05/99 Types of Connection 1.3.3 PROFIBUS-DP Connection to SIMATIC S5 Interface The operating unit is connected via the PROFIBUS-DP interface using a special PROFIBUS connector to the PROFIBUS-DP bus (figure 1-3). Connection via PROFIBUS-DP requires either a suitable type of unit or an interface module. Master module, e.g. IM308B/C PLC CPU Operating Unit COROS OP35 Slave Master PROFIBUS-DP protocol PROFIBUS Bus terminal Figure 1-3 Features PROFIBUS-DP Connection S The PLC is the master. S All operating units in the network are slaves. S A network can have up to a maximum of 122 slaves. S Rapid data transmission (up to 12 MBit/s). S Multiple operating units can be connected to one PLC. Communication User's Manual Release 05/99 1-11 Types of Connection 1.3.4 SINEC L1 Connection Interface Operating unit types TD10, TD20 and OP20 are connected via the integral serial interface and bus terminal BT777 to the SINEC L1 bus (figure 1-4). CP 530 Operating Unit PLC CPU SINEC L1 protocol SINEC L1 BUS Physical connection: RS485 BT777 Figure 1-4 Features BT777 SINEC L1 Connection S PU interface on PLC remains free. S Up to 4 operating units can be connected via a CP module to one PLC. 1-12 Communication User's Manual Release 05/99 Types of Connection 1.3.5 PROFIBUS Connection Interface Operating units types TD10, TD20 and OP20 are connected via the PROFIBUS interface module using a special PROFIBUS connector to the PROFIBUS (figure 1-5). CP 5430/31 Operating Unit PLC CPU Master Master PROFIBUS protocol PROFIBUS Bus terminal Figure 1-5 Features PROFIBUS Connection S Up to a maximum of 127 bus nodes can be connected. S All bus nodes taking part in communication between the PLC and the operating unit are masters. S A network can have up to a maximum of 32 masters. S Rapid data transmission (up to 1,5 MBit/s). S Multiple operating units can be connected to one PLC. S Connection using "free Layer 2 access". Communication User's Manual Release 05/99 1-13 Types of Connection 1.3.6 Parallel Connection Interface Text display unit types TD10 and TD20 are connected via the parallel interface module with digital inputs/outputs to the SIMATIC S5 (e.g. via digital I/O modules). A schematic diagram of the connection is shown in figure 1-6. Digital output TD Digital input CPU PL C Parallel interface module Figure 1-6 Features Parallel Connection Multiple TDs can be connected to one PLC. S Connection via 16 digital outputs and 1 digital input. S Restricted range of text display unit functions. 1-14 Communication User's Manual Release 05/99 Types of Connection 1.4 SIMATIC S7 Connections In the case of the SIMATIC S7 there is a number of types of connection which are briefly summarized below. 1.4.1 MPI Connection Interface The operating unit is connected via the integral MPI interface on the CPU to the SIMATIC S7 (figure 1-7). CPU Operating Unit S7-300 COROS OP35 MPI interface MPI protocol Figure 1-7 Features MPI Connection S Multiple PLCs can be connected to one operating unit. S Operating unit is always the master.. S Baud rates up to 187.5 kBaud supported. S Multiple operating units can be connected to one S7. S Network can contain multiple operating units and multiple PLCs. S Parallel operation of PU and operating unit possible. Communication User's Manual Release 05/99 1-15 Types of Connection 1.4.2 PROFIBUS-DP Connection Interface The operating unit is connected via the integral PROFIBUS-DP interface on the CPU or a CP to the SIMATIC S7 (figure 1-8). Operating Unit CPU CP S7-300/400 COROS OP35 S7 protocol Figure 1-8 Features optional PROFIBUS-DP Connection S Multiple PLCs can be connected to one operating unit. S Operating unit is always the master.. S Baud rates up to 1.5 MBaud supported. S Use of DP direct keys with a response time of < 100 ms. S Multiple operating units can be connected to one S7. S Network can contain multiple operating units and multiple PLCs. 1-16 Communication User's Manual Release 05/99 Types of Connection 1.4.3 PPI Connection The operating unit is connected via the integral PPI interface on the CPU (figure 1-9). Operating Unit S7-200 COROS OP35 SF I0.0 Q0.0 RUN I0.1 Q0.1 STOP I0.2 Q0.2 I0.3 Q0.3 I0.4 Q0.4 I0.5 Q0.5 I0.6 SIMATIC S7-200 I0.7 PPI interface PPI protocol Figure 1-9 Features PPI Connection S Multiple PLCs can be connected to one operating unit. S Operating units is always the master.. S Multiple operating units can be connected to one S7 but only connection can be used at any one time. Communication User's Manual Release 05/99 1-17 Types of Connection 1.5 Interface SIMATIC 500/505 Connections The operating unit is connected via the programming interface of the CPU to the SIMATIC 500/505 (figure 1-10). CPU SIMATIC 500/505 Operating Unit COROS OP35 Physical connection: RS232 or RS422 Figure 1-10 Features SIMATIC 500/505 Connection S No additional modules are required. S 500/505 Series CPUs supported. 1-18 Communication User's Manual Release 05/99 Types of Connection 1.6 Data Block Connection Basic principle Connection of the operating units to other PLCs such as Free Serial Connection, Allen-Bradley, Mitsubishi or Telemecanique is established using the principle of the data block connection. Interface The operating unit is connected via the integral serial interface to the PLC in question. Features S Exchange of predefined data blocks between operating unit and PLC, S PLCs divided into two classes: - Class 1: PLC does not support data block transmission, - Class 2: Integrated interface driver for data block transmission. Communication User's Manual Release 05/99 1-19 Types of Connection 1-20 Communication User's Manual Release 05/99 Part II SIMATIC S5 Connections Communication Management for SIMATIC S5 2 AS511 Connection, Groupe 2 3 AS511 Connection, Groupe 1 4 FAP Connection 5 PROFIBUS-DP Connection 6 SINEC L1 Connection 7 PROFIBUS Connection 8 Parallel Connection 9 Communication Data Areas 10 User Data Areas for SIMATIC S5 11 1-2 Communication User's Manual Release 05/99 Communication Management for the SIMATIC S5 2 This chapter provides an overview of the blocks required for the various connections. Communication User's Manual Release 05/99 2-1 Communication Management for the SIMATIC S5 2.1 Overview When connecting the operating unit to the SIMATIC S5 various blocks must be set up on the PLC for the purposes of communication. An overview of which blocks are required for which type of connection is provided by table 2-1. Table 2-1 Blocks Required According to Type of Connection Block AS511 FAP via SI2 FAP via CP PROFIBUS-DP SINEC L1 PROFIBUS Parallel Standard function block x x x x x x x Interface area 1) x x x x x x x Assignment data block - x x x x x - Send and receive mailboxes1) - x x x x x - - x 2) x x - Data handling blocks - - 1) When connecting multiple operating unitss to one SIMATIC S5, these blocks must be set up for each separate operating unit 2) CP5430/31 only Standard function block The COROS standard function block is required for all types of connection. It co-ordinates data transfer between the operating unit and the PLC. However, different standard function blocks are required for the different PLCs and types of connection. The COROS standard function blocks must be ordered separately. Interface area The interface area is a data block that is required for all types of connection. It contains areas by means of which the operating unit and SIMATIC S5 synchronize their operations during data transfer. Assignment data block The assignment data block contains the parameters for all connected operating units, e.g. details of which interface area is to be used for which operating unit. Send and receive mailboxes The send and receive mailboxes are used as working areas for the function block. Data handling blocks The data handling blocks are additional standard function blocks required for the connection types SINEC L1, PROFIBUS and PROFIBUS-DP. They should be ordered together with the relevant connection. 2-2 Communication User's Manual Release 05/99 Communication Management for the SIMATIC S5 2.2 Standard Function Block Function The functions of the standard function block (standard FB) include the following: Monitoring the connection with the operating unit, Co-ordinating data exchange between operating unit and SIMATIC S5, Transferring PLC jobs, Detecting errors Standard function block files The standard function block to be used depends on the PLC used and the type of connection chosen. Table 2-2 lists the file names according to the PLC being used. Those files are located on the disk labelled COROS Standard Function Blocks which must be ordered separately. Table 2-2 Standard Function Block Files PLC Type File Name S5-90U S5TD02ST.S5D S5-95U S5TD03ST.S5D S5-100U with CPU 100 or 102 S5TD02ST.S5D S5-100U with CPU 103 S5TD01ST.S5D S5-115U with CPU 941 to 944 S5TD50ST.S5D S5-115U with CPU 945 S5TD51ST.S5D S5-135U S5TD24ST.S5D S5-155U S5TD69ST.S5D Table 2-3 shows which standard FB should be used for which type of connection. Table 2-3 Communication User's Manual Release 05/99 Standard Function Block Names Connection FB No. FB Name AS511 FB51 TDOP:511 FAP to SI2 FB53 TDOP:FAP FAP via CP521 SI FB52 TDOP:521 FAP via CP523 FB52 TDOP:523 PROFIBUS-DP FB58 TDOP:DP SINEC L1 FB56 TDOP:L1 PROFIBUS FB55 TDOP:L2 Parallel FB54 TDOP:PAR 2-3 Communication Management for the SIMATIC S5 Note Make a copy of the original disk. Work with the original disk only. Keep the original disk in a safe place. The number of the standard function block can be altered in any way required. The standard FB can be run from either the RAM or the EPROM, according to choice. 2.3 Examples Ready-made examples The configuration software is supplied with some ready-made examples. Those examples contain both configuration files for the various operating units and program files for the CPU required. The function block is not included in the program files. You must copy it from the separately ordered disk. Once you have loaded the configuration file onto the operating unit and transferred the program file to the PLC, the operating unit is ready for operation. The operating unit and the PLC are already communicating with one another. Detailed instructions for commissioning using the example files are included with the configuration software documentation. The examples are designed for all types of connection. We recommend that you use the program files as the basis for programming the connection. 2-4 Communication User's Manual Release 05/99 Communication Management for the SIMATIC S5 2.4 Optimization Polling time and update time The polling times specified in the configuration software for the area pointers and the polling times of the variables are key factors with regard to the update times actually achievable. The update time is the polling time plus transmission time plus processing time. In order to achieve optimum update times, the following points should be observed during configuration: When setting up the individual data areas, make them as large as necessary but as small as possible. Define data areas that belong together as contiguous areas. The effective update time will be better if you create a single large area rather than several smaller areas. Setting the polling times that are too short unnecessarily impairs overall performance. Set the polling time to match the rate at which process variables change. The rate of change of temperature of a furnace, for example, is considerably slower than the acceleration curve of an electric motor. Guide figure for polling time: approx. 1 second. If necessary, dispense with cyclic transmission of user data areas (polling time = 0) in order to improve the update time. Instead, use PLC jobs to transfer the user data areas at random times. Store the variables for a message or a screen in a contiguous data area. In order that changes on the PLC are reliably detected by the operating unit, they must be present for the duration of the actual polling time at least. Communication User's Manual Release 05/99 2-5 Communication Management for the SIMATIC S5 Screens In the case of screens, the update rate effectively achievable depends on: the number of data areas used, the type and volume of data to be displayed, the distribution of data within a particular data area. In the interests of achieving rapid update times, the following points should be observed during configuration: Use only one data block for the variables of a particular screen. Store the items of data to be used as closely as possible to one another in the DB. Only configure short polling times for those entries that actually need to be updated at frequent intervals. Text-based displays only: For screens with large numbers of actual values and specified/actual values activate partial screen updating by means of a PLC job. If, in the case of bit-triggered trends, the communication bit is set in the trend transfer area, the operating unit always updates all the trends whose bit is set in that area. Afterwards it resets the bit. If the S5 program immediately sets the bit again, the operating unit spends all its time updating the trends. It is then virtually impossible to operate the operating unit. PLC jobs If large numbers of PLC jobs are sent to the operating unit in quick succession, communication between the operating unit and the PLC can become overloaded as a result. If the function block enters 0 in the first data word of the job mailbox it signifies that the operating unit has received the job. It then processes the job - for which it requires a certain amount of time. In the case of fast CPUs it is possible that the operating unit may not have completely processed the PLC job before the next is sent. Where necessary, you should build in a delay period. Cyclic reading of DB address list 2-6 The DB address list only needs to be read every time the PLC is accessed if, for example, the user data areas are recreated during the commissioning phase. For subsequent operation, this operation should be deactivated for performance reasons. Communication User's Manual Release 05/99 Communication Management for the SIMATIC S5 2.5 Error Prevention Editing data blocks In the case of the SIMATIC S5 compressing the internal program memory of the PLC (PU function "Compress", integrated FB COMPR) is not permissible if an operating unit is connected! The process of compression alters the absolute addresses of the blocks in the program memory. Since the operating unit only reads the address list at startup, it will not detect the changes to the addresses and will access the wrong memory areas. If compression during normal operation can not be avoided, the operating unit must be switched off before compression takes place. In areas subject to explosion hazard, always disconnect the operating unit from the power supply before disconnecting connectors. PLC jobs If the operating unit is started up while a PLC job is being executed (e.g. after a change of language), the relevant job mailbox may under certain circumstances not be enabled. Inn order to prevent this, you should set Bit 28.0 in the interface area while the PLC is still in normal operation (operating unit is online). When the operating unit is restarted, that bit is reset by the operating unit. In this case you should delete the job mailboxes in the interface area (enter KY 8,0 in job status) and set Bit 28.0 again. Interrupt processing Below are a few notes on interrupt processing: 1. When programming process or timed-interrupt organization blocks, you should make sure that the scratch pad flags MB200 to MB255 (MB 100 to 127 on PLC 90U and PLC 100U) at the beginning of the interrupt organization block are saved and reloaded before quitting the interrupt organization block. This is only necessary if the data in the interrupt OB has been changed. On the S5-155U PLC the standard function blocks FB38 and FB39 should be used for saving and reloading. 2. When using the standard data handling blocks, you should make sure that the data handling blocks are not called twice. Interrupting the data handling blocks during the cycle and re-calling them at the interrupt level is not permissible. The user is responsible for these locking operations (disabling and enabling interrupts). Communication User's Manual Release 05/99 2-7 Communication Management for the SIMATIC S5 Operating unit is connected to CPU SI2 If communication via AS511 is performed on the CPU via both interfaces, the second interface has a lower priority. A possible configuration might be as follows: PU to SI1 and operating unit to SI2. In that case error messages indicating a communication fault may occur on the operating unit. In extreme cases, such characteristics may occur on the CPU928B . Remedy: Use FAP for communication. Life bit monitoring is triggered with recipes 2-8 The life bit can not be set during transmission. When transferring large data records, therefore, the life bit monitoring may be triggered. In such cases, set the life bit monitoring setting in the interface area on the DW98 to a higher figure. We recommend that you set life bit monitoring to between 2000 and 4000 (data format KF). Communication User's Manual Release 05/99 AS511 Connection, Group 2 3 This chapter describes communication between the operating unit and SIMATIC S5 using the AS511 connection. PLC groups For communication via AS511 the PLCs are divided into two groups that differ in terms of their communication structure. The PLCs in Group 2 include the following: - - - - Connection AG 95U AG 100U (CPU 103) AG 115U (except CPU 945) AG 135U The operating unit is connected directly to the CPU. Preferably, you should use the CPU interface SI1 with the TTY physical characteristics. If available, you can also use the CPU interface SI2 with the TTY physical characteristics. In the case of the SI2 interface, however, performance limitations must be taken into account. Details of which interface on the operating unit to use are given in the relevant equipment manual. Communication User's Manual Release 05/99 3-1 AS511 Connection, Group 2 3.1 Communication Structure for Group 2 PLCs Interface area Application program Communication area Job mailboxes Standard function block User data areas Operating Unit Messages User prompts PU interface PLC jobs PLC Recipes Figure 3-1 AS511 Communication Structure for Group 2 PLCs Function of Standard FB The arrows in figure 3-1 represent the flow of information between the components. The operating unit and PLC communicate with one another via the CPU programming unit interface SI1/2. Communication is supported by the standard function block which should be integrated in the STEP5 application program. Its job includes monitoring the connection with the operating unit and co-ordinating data transfer. Function of interface area The interface area is required by the function block and it is therefore absolutely essential that it is set up. General exchange of data between the PLC and the operating unit takes places by means of variables. The exchange of special data such as PLC jobs and watchdog is effected via the interface area. It contains data and pointers to data areas that are required, among other things, for synchronizing exchange of data between the PLC and the operating unit. A detailed description of the interface area is given in chapter 10.1, page 10-2. 3-2 Communication User's Manual Release 05/99 AS511 Connection, Group 2 User data areas User data areas should only be set up if the associated function is to be used. User data area are required, for example, for the following purposes: - initiating messages - transferring function keys - controlling LEDs - for recipes A detailed description of the user data areas is given in chapter 11. Communication User's Manual Release 05/99 3-3 AS511 Connection, Group 2 3.2 Commissioning Procedure Procedure The basic steps for commissioning the AS511 connection for Group 2 are described below. 1. Set up the data block, e.g. DB 51, for the interface area using a length of 185 DW. You do not have to specify any default values. The interface area may only be in the DB data area. DX extended data blocks are not permissible. If the data block is not present or too short, an error message is placed in AKKU 1 after the standard FB is invoked. 2. Copy standard FB 51 (file name: TDOP:511) from the disk labeled COROS Standard Function Blocks to your STEP5 program. 3. Load the data block number of the interface area into AKKU 1. Then invoke the standard FB unconditionally. Example program: L KY 51,0 :JU FB 51 NAME :TDOP:511 51=Number of interface area Communication with operating unit AS511 connection :T FW 100 Save AKKU 1 to FW 100 :JC=ERR Branch to error analysis Job status and error number are in FW 100. If an error occurs during processing of the function block, the logical operation result is set to the value "1". This allows you to branch to your own error analysis function using the command SPB. After the standard FB has been invoked, AKKU 1 contains the current job status and the number of any error that has occurred. 4. Now start up the standard FB using data word 64 in the interface area. In the interface area DW 64 is used to start up the standard FB. The startup organization block used (OB 20/21/22) must write the value 1 (KF format) to that data word in order to initiate FB startup and reset all other control bits. Example: OB 20/21/22 :C DB 51 :L KF 1 :T DW 64 In order to reset the operating unit and the standard FB, Bit 0 in this data word may also be set by the cyclic program. How this is done is described in chapter 10.2.1, page 10-6, under the heading "Restarting". 3-4 Communication User's Manual Release 05/99 AS511 Connection, Group 2 5. Check AKKU 1 to see if the standard FB has issued an error message. If an error occurs during processing of the function block, the logical operation result is set to the value 1. This allows you to branch to your own error analysis function using the command SPB. After the standard FB call, AKKU 1 contains the current job status and the number of any error that has occurred. The contents of AKKU 1 are illustrated in figure 3-2. 15 - - - 12 11 10 8 X X X - X 7 0 Error number X Bit is not assigned Bit is assigned (Read-only) Error number in KF data format (see chapter A.3) FB call terminated with error: error no. FB call completed without error: 0 Job status in KM data format Bit = 1: No job being processed Figure 3-2 Bit = 1: Job being processed Bit = 1: Job completed without error (low byte is 0) Bit = 1: Job terminated with error (low byte contains error no.) Contents of AKKU 1 after Invoking Standard FB 6. If you use user data areas, set them up now (see chapter 11). Communication User's Manual Release 05/99 3-5 AS511 Connection, Group 2 Loop-through operation In loop-through operation, a second operating unit or a PU/PC is connected to the second interface of the operating unit that is connected to the PLC. Connection of a second operating unit is only permissible with the following units: - OP15/A1 - OP15/C1 - OP25 - OP35 If a second operating unit is connected, the standard FB must be re-invoked within the same cycle as illustrated below. Example program: L KY 52,0 52=Number of 2nd interface area :JU FB 51 NAME :TDOP:511 :T FW 100 :JC=ERR Limitations: The operating unit does not monitor the life bit. It can therefore not detect whether the PLC is in Stop mode, for example. The greater load on the interface between the operating unit and the PLC may impair performance. Special features: The following points should be observed when starting PU status functions (message on PU: Status processing in progress, e.g. for block status, ForceVar): system message $340 is displayed on the operating unit, the operating unit can no longer be operated, communication between the operating unit and the PLC is stopped. For that reason, analysis by the STEP5 program of error number 115, which comes from the standard FB, does not make sense in this case. 3-6 Communication User's Manual Release 05/99 AS511 Connection, Group 1 4 This chapter describes communication between the operating unit and SIMATIC S5 using the AS511 connection. PLC groups For communication via AS511 the PLCs are divided into two groups that differ in terms of their communication structure. The PLCs in Group 1 include the following: - AG 90U - AG 100U (CPU 100, CPU 102) Connection The operating unit is connected directly to the CPU. Preferably, you should use the CPU interface SI1 with the TTY physical characteristics. If available, you can also use the CPU interface SI2 with the TTY physical characteristics. In the case of the SI2 interface, however, performance limitations must be taken into account. Details of which interface on the operating unit to use are given in the relevant equipment manual. Communication User's Manual Release 05/99 4-1 AS511 Connection, Group 1 4.1 Communication Structure for Group 1 PLCs Description Figure 4-1 shows the communication structure using the program and data blocks required on the PLC for communication between the PLC and the operating unit. Interface area Communication area PLC jobs Standard function block User data areas PU interface Application program Operating Unit Messages User prompts Figure 4-1 AS511 Communication Structure for Group 1 PLCs Function of standard FB The arrows in figure 4-1 represent the flow of information between the components. The operating unit and PLC communicate with one another via the CPU programming interface SI. Communication is supported by the standard function block which should be integrated in the STEP5 application program. Its job includes monitoring the connection with the operating unit and co-ordinating data transfer. Function of interface area The interface area is required by the function block and it is therefore absolutely essential that it is set up. General exchange of data between the PLC and the operating unit takes places by means of variables. The exchange of special data such as PLC jobs and watchdog is effected via the interface area. It contains data and pointers to data areas that are required, among other things, for synchronizing exchange of data between the PLC and the operating unit. A detailed description of the interface area is given in chapter 4.3, page 4-7. 4-2 Communication User's Manual Release 05/99 AS511 Connection, Group 1 User data areas User data areas should only be set up if the associated function is to be used. User data area are required, for example, for the following purposes: - initiating messages - transferring function keys - controlling LEDs A detailed description of the user data areas is given in chapter 11. Functional limitations The following limitations apply to Group 1 PLCs when using the AS511 connection: recipes are not possible, PLC jobs are entered directly in the interface area. Communication User's Manual Release 05/99 4-3 AS511 Connection, Group 1 4.2 Commissioning Procedure Procedure The basic steps for commissioning the AS511 connection for Group 1 are described below. 1. Set up the data block, e.g. DB 51, for the interface area using a length of 70 DW. You do not have to specify any default values. 2. Copy standard FB 51 (file name: TDOP:511) from the disk labeled COROS Standard Function Blocks to your STEP5 program. 3. Open the data block. Then invoke the standard FB unconditionally. Example program: A DB 51 :JU FB 51 NAME :TDOP:511 51=Number of interface area Communication with operating unit AS511 connection :T FW 100 Save AKKU 1 to FW 100 :JC=ERR Branch to error analysis Job status and error number are in FW 100. 4. Now start up the standard FB using data word 40 in the interface area. The startup organization block used (OB 21, 22) must write the value 1 (KF format) to that data word in order to initiate FB startup and reset all other control bits. Example: OB21/22 :C DB 51 :L KF 1 :T DW 40 5. Check AKKU 1 to see if the standard FB has issued an error message. If an error occurs during processing of the function block, the logical operation result is set to the value 1. This allows you to branch to your own error analysis function using the command SPB. After the standard FB call, AKKU 1 contains the current job status and the number of any error that has occurred. The contents of AKKU 1 are illustrated in figure 4-2. 4-4 Communication User's Manual Release 05/99 AS511 Connection, Group 1 15 - - - 12 11 10 8 X X X - X 7 0 Error number X Bit is not assigned Bit is assigned (Read-only) Error number in KF data format (see chapter A.3) FB call terminated with error: error no. FB call completed without error: 0 Job status in KM data format Bit = 1: No job being processed Figure 4-2 Bit = 1: Job being processed Bit = 1: Job completed without error (low byte is 0) Bit = 1: Job terminated with error (low byte contains error no.) Contents of AKKU 1 after Invoking Standard FB 6. If you use user data areas, set them up now (see chapter 11). Communication User's Manual Release 05/99 4-5 AS511 Connection, Group 1 Loop-through operation In loop-through operation, a second operating unit or a PU/PC is connected to the second interface of the operating unit that is connected to the PLC. Connection of a second operating unit is only permissible with the following units: - OP15/A1 - OP15/C1 - OP25 - OP35 If a second operating unit is connected, the standard FB must be re-invoked within the same cycle as illustrated below. Example program: L KY 52,0 52=Number of 2nd interface area :JU FB 51 NAME :TDOP:511 :T FW 102 :JC=ERR Limitations: The operating unit does not monitor the life bit. It can therefore not detect whether the PLC is in Stop mode, for example. The greater load on the interface between the operating unit and the PLC may impair performance. Special features: The following points should be observed when starting PU status functions (message on PU: Status processing in progress, e.g. for block status, ForceVar): system message $340 is displayed on the operating unit, the operating unit can no longer be operated, communication between the operating unit and the PLC is stopped. For that reason, analysis by the STEP5 program of error number 115, which comes from the standard FB, does not make sense in this case. 4-6 Communication User's Manual Release 05/99 AS511 Connection, Group 1 4.3 Layout and Description of Interface Area for Group 1 PLCs Definition Group 1 PLCs include the following: AG 90U, AG 100U (CPU 100, CPU 102). Setting up the interface area Set up the data block for the interface area using a length of 70 data words.If you do not use any of the data areas specified in the data block, you do not need to make any entries. The data areas required by the standard function block are present once the data block has been set up. Table 4-1 Assignment of Interface Area for Group 1 PLCs DW DL 0-9 DR Standard FB communication area Usage - This area must not be altered. 10-28 Reserved 29 Operating unit firmware version 30 254 DB number 31 PLC ID Connection ID 32 0 Job number 33 Parameter 1 34 Parameter 2 35 Parameter 3 36-38 The operating unit writes to DW 29 and 30. The standard FB writes to DW 31. PLC job Reserved 39 Job status Error number 40 Not assigned Startup of standard FB, operating mode Control and acknowledgment bit 1 41 Synchronization of date, time, scheduler Reserved Control and acknowledgment bit 2 42 Not assigned Hour (0...23) Time (BCD format) 43 Minute (0 - 59) Second (0 - 59) 44 Communication User's Manual Release 05/99 - Not assigned 45 Not assigned Day of week (1...7) 46 Day of month (1 - 31) Month (1 - 12) 47 Year (0 - 99) Not assigned Date (BCD format) 4-7 AS511 Connection, Group 1 Table 4-1 DW Assignment of Interface Area for Group 1 PLCs, continued DL DR 48-50 48 scheduler bits 51-57 Reserved 58 Life bit monitoring (Watchdog) 59 Standard FB version number 60-68 Standard FB communication area Usage To be specified by user in configuration. - Default 200 (KF format) The standard FB writes to DW 59. - This area must not be altered. Note The communication area and all areas not used by the connection concerned are reserved areas. Writing to reserved areas is illegal for the application program. 4-8 Communication User's Manual Release 05/99 AS511 Connection, Group 1 4.3.1 Startup of Standard Function Block and Operating Mode Assignment of bits in DR 40 The standard FB is activated by means of Bit 0. Bit 1 shows the current status of the standard FB and Bit 2 the operating mode of the OP. Figure 10-1 shows the structure of control and acknowledgement bit 1. DR 40 7 - - - - 2 1 0 - R R W FB startup FB status Operating mode of the OP - = Not assigned R = Read only W = Read and Write possible Figure 4-3 Significance of bits Starting the standard FB Structure of Control and Acknowledgment Bit 1 (DR 64 in interface area) Bit 0 = 1 Activate FB startup Bit 1 = 1 FB startup in progress Bit 2 = 0 Bit 2 = 1 Operating unit is online Operating unit is offline The standard function block has to be started by means of the rightmost byte of data word 40 in the interface area. The startup organization block used (OB 21/22) must write the value 1 (KF format) to data word 40 in order to initiate FB startup and reset all other control bits. Example: OB 21/22 :A DB 51 51 = DB number of interface area :L KF 1 :T DW 40 In order to reset the operating unit and the standard FB, Bit 0 in this data word may also be set by the cyclic program. Standard FB error message Check AKKU 1 to see if the standard FB has issued an error message. If an error occurs during processing of the function block, the logical operation result is set to the value 1. This allows you to branch to your own error analysis function using the command JC. Communication User's Manual Release 05/99 4-9 AS511 Connection, Group 1 After the standard FB call, AKKU 1 contains the current job status and the number of any error that has occurred. The contents of AKKU 1 are illustrated in figure 10-2. 15 - - - 12 11 10 8 X X X - X 7 0 Error number X Bit is not assigned Bit is assigned (Read-only) Error number in KF data format (see chapter A.3) FB call terminated with error: error no. FB call completed without error: 0 Job status in KM data format Bit = 1: No job being processed Figure 4-4 Bit = 1: Job being processed Bit = 1: Job completed without error (low byte is 0) Bit = 1: Job terminated with error (low byte contains error no.) Contents of AKKU 1 after Invoking Standard FB Operating mode bit The operating unit overwrites Bit 2 in DW 40 for the operating mode during startup and sets it to 0. If the operating unit is switched off-line by operator input on the operating unit, there is no guarantee that the operating unit will be able to set Bit 2 in DW 40 to 1. If the PLC sets the acknowledgment bit to 1, the PLC program can query whether the bit has been reset to 0, i.e. whether the operating unit is still off-line or is in communication contact with the PLC again. 4-10 Communication User's Manual Release 05/99 AS511 Connection, Group 1 Transferring Date and Time to PLC DW 42-47 Transfer of date and time from the operating unit to the PLC can be initiated by PLC job 41. PLC job 41 writes the date and time to the interface area where they can be analysed by the STEP5 program. Figure 4-5 shows the layout of the data area in the interface area. All data is in BCD format. DL DW 15 42 43 DR 8 7 Hour (0...23) Minute (0...59) Second (0 - 59) 44 Not assigned 45 Not assigned Day of week (1...7) 46 Day of month (1...31) Month (1 - 12) 47 Year (0...99) Not assigned Figure 4-5 Synchronization of transfer 0 Not assigned Time Transferring date and time Date 4.3.2 Layout of data area for Time and Date Control and acknowledgment bit 2 in the interface area (DW 41) synchronize the transfer of date and time. If the operating unit has transferred a new date or time to the PLC by means of the PLC job, it sets the bits shown in figure 4-6. After analysis of the date or time, the STEP5 program should reset the bits in order that the next transmission can be detected. DL 41 15 14 13 12 W W W - - Figure 4-6 - - 8 - - = Not assigned W = Read and Write possible Bit 13 = 1: New time Bit 14 = 1: New date Synchronization Bits for Date and Time Note PLC job 41 must not be invoked cyclically or at intervals of less than 5 seconds or else communication with the operating unit will be overloaded. In such cases, error number 502 or 503 will appear on the operating unit. Communication User's Manual Release 05/99 4-11 AS511 Connection, Group 1 4.3.3 Analyzing Scheduler Bits Operating units usable The use of schedulers is only possible with the OP15 and OP17. A scheduler is a periodically recurring (hourly, daily, weekly, annually) time at which a defined function is executed, e.g. - printing out the message buffer - printing out a screen - selecting a screen. When a scheduler time is reached on the OP, the corresponding bit is set in this area. DW 15 48 16 Bit no. 1 49 32 17 50 48 33 0 Scheduler no. Transferring scheduler times to the PLC (only if configured with COM TEXT) Input fields for scheduler times linked to the process and therefore with a link to the PLC can be created in screen entries. If a scheduler time is altered by operator input on the OP, the new scheduler time is then transferred to the OP. Structure of process link: DR DR DR Day of week: Sunday = 0 Monday = 1 : : Saturday = 6 4-12 DR Communication User's Manual Release 05/99 AS511 Connection, Group 1 Note The process link for the scheduler types "weekly" and "annually" must extend to a length of 2 data words. If not, system message $635 will be returned after the scheduler time is entered. Synchronization of transfer Control and acknowledgment bit 2 in the interface area (DW 41) synchronize the transfer of the scheduler bits. If the OP has set a new scheduler bit in the interface area, it also sets the corresponding bit in control and acknowledgement bit 2 (see figure 4-7). You therefore only need to poll this bit in order to be able to detect a change in the scheduler bits. DL 41 15 14 13 12 W W W - - - - 8 - - = Not assigned W = Read and Write possible Bit 15 = 1: Figure 4-7 Communication User's Manual Release 05/99 New scheduler bits Synchronization Bits for Schedulers 4-13 AS511 Connection, Group 1 4.3.4 Analyzable Areas of the Interface Area Operating unit entries The operating unit enters information in DW 29 and 30 that can be analysed by the application program. Writing to these data words is illegal for the application program. Operating unit firmware version DW 29: The operating unit stores its firmware version number in DW 29. You can read that information with the STEP5 program. Number of interface area DW 30, DL: Here, the operating unit enters the fixed value 254. At startup the standard function block checks whether code number 254 is entered in this data word. If it is not, the standard FB aborts processing and returns an error message. DW 30, DR: Here, the operating unit enters the number of the data block for the interface area configured in ProTool or COM TEXT. Standard FB entries The standard FB enters information in DW 31 and 59 that can be analysed by the application program. Writing to these data words is illegal for the application program. PLC and connection ID DW 31: The standard function block enters the identification 0 2 for the PLC type in DL and the identification 1 for the connection type in DR. The structure of the data word is shown in figure 4-8. Figure 4-8 Standard FB version number Assignment of DW 31 in Interface Area DW 59 The standard function block enters its version number in this data word. ... 15 8 7 6 5 0 Version number (0 to 99) R R Not assigned DW 59 in KF format (fixed-point) (Code letter from standard library no.) (R = Read only) 4-14 A B C D 0 0 1 1 0 1 0 1 Communication User's Manual Release 05/99 AS511 Connection, Group 1 Life bit monitoring DW 58 At regular intervals the operating unit inverts a bit in the interface area that is not accessible to the user. The standard FB counts how often it is invoked between two inversions of that bit. If the number of calls (cycles) exceeds a predefined figure, the standard FB passes error message 115 to AKKU 1. You enter the maximum number of FB calls permitted without the error message being triggered in this data word. If the data word is overwritten with the value 0, the standard FB enters the default figure of 200. If the application program cycle times are too short, error 115 can result even if the connection is good. In such cases, enter a higher figure for the maximum number of calls, e.g. 2000. Communication User's Manual Release 05/99 4-15 AS511 Connection, Group 1 4.3.5 Use of PLC Jobs Description PLC jobs can be used to initiate functions on the operating unit from the STEP5 program. Such functions include the following: - Displaying screens - Setting date and time - Printing out the message buffer - Altering general settings A PLC job is identified by its job number. Depending on the PLC job in question, up to three parameters can then be specified. The PLC jobs possible are listed in appendix B together with their parameters. PLC job structure 4 data words are defined in the interface area for a PLC job. The first data word contains the job number. Data words 2 to 4 are used to transfer up to three parameters depending on the function in question. The basic structure of a PLC job is shown in figure 4-9. Figure 4-9 Initiating a PLC job Structure of a PLC Job Enter the PLC job directly in the interface area. The standard FB initiates transfer of the PLC job to the operating unit when the job number is entered in DW 32. For that reason, you must enter the parameters in DW 33 to DW 35 before entering the job number in DW 32. Once the operating unit has received the PLC job, it is deleted. This means that the standard FB overwrites DW 32 with the value "0". Only then has the standard FB fully processed the PLC job thus allowing the job mailbox to be written to by the STEP5 program again. The operating unit issues no acknowledgement as to whether the PLC job has actually been executed or not. Current PLC job status and error number 4-16 DW 39 shows the current status of the PLC job and any error number that has occurred. After the standard FB has been invoked, this data word contains the same information as AKKU 1. Figure 4-10 shows the contents of AKKU 1. One exception to this is Bit 8 No job being processed. That bit is not set in the interface area. Communication User's Manual Release 05/99 AS511 Connection, Group 1 DL 15 - - 12 11 10 - R R R - DR 8 7 R 0 Error number - = Bit is not assigned R = Read only Error number Job status Bit = 1: No job being processed Bit = 1: Job being processed Bit = 1: Job completed without error (low byte is 0) Job terminated with error (low byte contains error no.) Bit = 1: Figure 4-10 Job Status and Error Number for PLC Jobs DL contains the job status. The bits are set by the standard FB. If the PLC job is completed without an error, the standard FB sets DR to the value 0. If the PLC job is terminated with an error, DR contains the error number. An explanation of the error numbers is given in appendix A.3. Communication User's Manual Release 05/99 4-17 AS511 Connection, Group 1 4-18 Communication User's Manual Release 05/99 FAP Connection 5 This chapter describes communication between the operating unit and the SIMATIC S5 using an FAP connection (FAP: Free ASCII Protocol). Communication User's Manual Release 05/99 5-1 FAP Connection 5.1 Communication Structure Connection The operating unit is connected to the SIMATIC S5 either via the SI2 interface on the CPU or CP module (communication processor) on the PLC. Multiple operating units can be simultaneously connected to one PLC via multiple CP modules. The communication structure and the differences between the to two methods of connection are described below. Interface area DB-ZU Communication area Job mailboxes User data areas PLC jobs Standard function block DB-SEND Send mailbox Messages User prompts CP interface/SI2 interface Application program Operating Unit DB-EMPF Receive mailbox Recipes Figure 5-1 Communication Structure for FAP Connection Description The components enclosed in dotted lines in figure 5-1 have to be set up separately for each operating unit connected. The arrows represent the flow of information between the components. Function of standard FB The operating unit and PLC communicate with one another via the CP interface or the CPU programming interface SI2. Data transfer from the PLC to the operating unit takes place via a send mailbox and from operating unit to PLC via a receive mailbox. Those two data areas act as send and receive buffers for the standard function block. The standard function block should be integrated in the STEP5 application program. Its job includes monitoring the connection with the operating unit and co-ordinating data transfer. 5-2 Communication User's Manual Release 05/99 FAP Connection Function of interface area The interface area is required by the function block and it is therefore absolutely essential that it is set up. The interface area is a data block that is simultaneously an interface between the application program and the standard function block and the application program and the operating unit. It contains data and pointers to data areas that are required, among other things, for synchronizing exchange of data between the PLC and the operating unit. A detailed description of the interface area is given in chapter 10.1, page10-2. Function of DB-ZU The assignment data block DB-ZU contains the parameters of all configured operating units involved in communication with the PLC. A basic description of DB-ZU area is given in chapter 10.3. Table 5-1 shows the structure of a 16-data word area in DB-ZU as it should be assigned for FAP and one operating unit. Table 5-1 Assignment of an Area in DB-ZU DW n+0 DL Reserved n+1 DR DB number of interface area Reserved Usage To be specified by user - n+2 Standard FB version number - n+3 Job status To be analysed by user n+4 n+5 Error number CP address (CP523 and CP521SI only) Data type 0 = DB DB/DX number 1 = DX n+6 0 Start address (DW number) n+7 Data type 0 = DB DB/DX number 1 = DX n+8 n+9 0 To be specified by user Pointer to receive mailbox; specified by user. Pointer to send mailbox; specified by user. Start address (DW number) Not relevant to FAP - Interface parameters. To be specified by user n+10 n+11 n+12 n+13 n+14 Reserved - n+15 Communication User's Manual Release 05/99 5-3 FAP Connection User data areas User data areas should only be set up if the associated function is to be used. User data area are required, for example, for the following purposes: - initiating messages - transferring function keys - controlling LEDs - for recipes A detailed description of the user data areas is given in chapter 11. Send and receive mailboxes The standard function block requires the send and receive mailboxes for internal communication. The two mailboxes have to be set up by the user at any memory location on the PLC. The addresses of the two mailboxes must be entered in the assignment block DB-ZU. The length of the mailboxes depends on the CPU being used (see table 5-2). Table 5-2 5-4 Size of Send/Receive Mailbox According to CPU Used CPU Size of Send/Receive Mailbox in Words All CPUs except CPU 945 50 CPU 945 128 Communication User's Manual Release 05/99 FAP Connection 5.2 Commissioning Procedure Procedure The basic steps for commissioning the FAP connection are described below. 1. Set up the data block, e.g. DB 51, for the interface area using a length of 185 DW. You do not have to specify any default values. If the data block is not present or too short, an error message is placed in AKKU 1 after the standard FB is invoked. 2. Copy standard FB 52 (name TDOP:521 or TDOP:523) or standard FB 53 (name TDOP:FAP) from the disk labeled COROS Standard Function Blocks to your STEP5 program. Table 5-3 shows which FB should be used for which configuration. Table 5-3 Standard FBs to be Used for Different Configurations Function Block PLC CPU File Standard FB for connection via SI2 FB 53 (TDOP:FAP) S5 115 U CPU 943, 944 S5TD50ST.S5D FB 53 (TDOP:FAP) S5 115 U CPU 945 S5TD51ST.S5D FB 53 (TDOP:FAP) S5 135 U CPU 928-3UB11 S5TD24ST.S5D Standard FB for connection via CP521 FB 52 (TDOP:521) S5 95 U S5TD03ST.S5D FB 52 (TDOP:521) S5 100 U CPU 103 S5TD01ST.S5D Standard FB for connection via CP523 FB 52 (TDOP:523) S5 115 U CPU 941, 942, 943, 944 S5TD50ST.S5D FB 52 (TDOP:523) S5 135 U CPU 922 version 9 or later S5TD24ST.S5D CPU 928-3UA12, CPU 928-3UB11 FB 52 (TDOP:523) S5 155 U CPU 946/947, 948 S5TD69ST.S5D 3. Set up DB-ZU, e.g. DB 52, with a minimum length of 16 words. The assignment data block DB-ZU contains the parameters of all configured operating units connected to the PLC. If more than one OP is connected to the same PLC using FAP (e. g. via CP 523), all of them can use the same DB-ZU. In such cases, 16 words must be reserved for each operating unit in DB-ZU. Communication User's Manual Release 05/99 5-5 FAP Connection 4. Make the required entries in DB-ZU. Table 5-4 shows an example of the assignment for an operating unit connected to CPU 944. The connection is made via CP523. The offset n in DB-ZU corresponds to [(device number -1)*16]. Specify the CP address in data word n+4. In data words n+5 to n+8, set up the pointers for the send and receive mailboxes. Enter the interface parameters in data words n+11 to n+13. The precise details of the entries required are given at the end of these step-by-step instructions. DB-ZU is only analysed during startup of the standard FB. That means that any changes to DB-ZU during normal operation will trigger a standard FB restart. Table 5-4 Assignment of an Area in DB-ZU DW n+0 DL DR Reserved n+1 51 Reserved Usage To be specified by user - n+2 Standard FB version number - n+3 Job status Error number To be analysed by user n+4 0 128 To be specified by user n+5 0 50 n+6 0 0 Pointer to receive mailbox; specified by user. n+7 0 50 n+8 0 50 Not relevant to FAP n+9 Pointer to send mailbox; specified by user. - n+10 n+11 9600 0 n+12 0 0 n+13 1 n+14 Reserved To be specified by user - n+15 5. Set up send and receive mailboxes with a length of 50 words each (128 data words in the case of CPU 945). To do so, create the data block DB 50 with a length of 100 words, for example. 5-6 Communication User's Manual Release 05/99 FAP Connection A separate send and receive mailbox has to be created for each operating unit connected. The standard FB requires those mailboxes as message buffers. If the mailboxes are not present or too short, an error message is placed in AKKU 1 after the standard FB is invoked. 6. Load the number of DB-ZU and the device number of the operating unit into AKKU 1. In this example, this would be device number 1. The device number is required is more than one operating unit is being operated using the same DB-ZU. The device number then determines the offset in DB-ZU. A maximum of 16 operating units can be operated using the same DB-ZU. 7. Next, invoke the standard FB unconditionally. Example program: L KY 52,1 :JU FB 52 NAME :TDOP:523 52=Number of DB-ZU 1 = Device number Communication with operating unit FAP Connection via CP523 :T FW 100 Save AKKU 1 to FW 100 :JC=ERR Branch to error analysis Job status and error number are in FW 100. If an error occurs during processing of the function block, the logical operation result is set to the value "1". This allows you to branch to your own error analysis function using the command JC. After the standard FB has been invoked, AKKU 1 contains the current job status and the number of any error that has occurred. 8. Now start up the standard FB using data word 64 in the interface area. In the interface area DW 64 is used to start up the standard FB. The startup organization block used (OB 20/21/22) must write the value 1 (KF format) to that data word in order to initiate FB startup and reset all other control bits. Example: OB20/21/22 :C DB 51 :L KF 1 :T DW 64 In order to reset the operating unit and the standard FB, Bit 0 in this data word may also be set by the cyclic program. How this is done is described in chapter 10.2.1, page 10-6 under the heading "Restarting". With an FAP connection, there is no check-back signal to the operating unit if the standard FB restarts. This has no effect on communication. Communication User's Manual Release 05/99 5-7 FAP Connection 9. Check AKKU 1 to see if the standard FB has issued an error message. If an error occurs during processing of the function block, the logical operation result is set to the value 1. This allows you to branch to your own error analysis function using the command JC. After the standard FB call, AKKU 1 contains the current job status and the number of any error that has occurred. The contents of AKKU 1 are illustrated in figure 5-2. 15 - - - 12 11 10 8 X X X - X 7 0 Error number X Bit is not assigned Bit is assigned (Read-only) Error number in KF data format (see chapter A.3) FB call terminated with error: error no. FB call completed without error: 0 Job status in KM data format Bit = 1: No job being processed Figure 5-2 Bit = 1: Job being processed Bit = 1: Job completed without error (low byte is 0) Bit = 1: Job terminated with error (low byte contains error no.) Contents of AKKU 1 after Invoking Standard FB 10. If you use user data areas, set them up now (see chapter 11). 5-8 Communication User's Manual Release 05/99 FAP Connection 5.3 Configuring CP Address and Interface Parameters Connectionspecific entries in DB-ZU The interface with the PLC is configured by means of the assignment data block DB-ZU. This section describes on those entries specific to FAP. A general description of DB-ZU is given in chapter 10.3. CP address DWn+4 This data word must match the hardware setting for the CP module address. for CP521SI: DL DR (start address) 0 64...120 (in increments of 8) for CP523: DL (address area) DR (start address) 0 P area > 128 (in increments of 8) 1 Q area > 0 (in increments of 8) 2 IM3 area > 0 (in increments of 8) 3 IM4 area > 0 (in increments of 8) If the CPU interface SI2 is used, data word n+4 is not relevant. Note Communication processors CP521 SI and CP523 use 8 addresses in the input/output area of the PLC. No settings must be made which result in an overlap of the address areas of other modules. Address area overlaps are not checked by the standard function block! Communication User's Manual Release 05/99 5-9 FAP Connection Interface parameters for CP DW n+(11 to 13): The parameters set here must match those configured on the operating unit. DL DR DW n +11 Baud rate Parity DW n +12 0 TTY/V.24 DW n +13 DL n +11 3 4 5 6 7 8 Character delay time (in multiples of 10 ms) Baud rate 300 600 1200 2400 4800 9600 DR n +11 0 1 4 Parity Even Odd No parity bit DR n +12 0 Physical char. TTY V.24 1 The character delay time (DW n +13) should be set to 10 ms. This means that the value for DW n +13 = 1. When configuring the operating unit, 120 ms and 8 data bits must be specified for the character delay time. Interface parameters for CPU If you connect the operating unit to the SI2 interface on the CPU, the following settings must be used: CPU 943/944: DW n + 11 and DW n + 12 are not relevant. They have a fixed setting specified on the CPU. In the case of CPU 945 data words n + 11 and DW n + 12 must be specified in the configuration. Values to be specified: - Baud rate: 9600 or 19200 - Parity: Even - Stop bits: 1 In the case of CPU 928 B data words DW n+(5..8) for the send and receive mailboxes and data words DW n+(11..13) for the interface parameters are not relevant. All that is required is entry of the number of the interface area in data word n+0. Configuration of CPU 928B is described in chapter 5.4, page 5-11. Cycle time for CP521 SI For an FAP connection via the communication processor module CP521 SI, the period between successive standard FB calls must not be more than 80 ms. For that reason the cycle time of the S5 program must not exceed 80 ms. If the cycle time of the PLC program is longer than 80 ms, the standard FB must not be invoked in OB1. Instead, it must be invoked in the timed organization block OB13. In such cases, save the scratchpad flags and then reload them afterwards. A cycle time of < 80 ms must be configured for OB13. 5-10 Communication User's Manual Release 05/99 FAP Connection 5.4 Configuring the SI2 Interface on CPU 928B Configuration The description which follows applies to 6ES5928-3UB11 version 6 or later. The following components must be configured: Extended data block DX2 Static parameter record, Send mailbox and receive mailbox, Coordination bytes Send (CBS) and Receive (CBR). The following information must be entered in the extended data block DX2: Type of connection: data transfer using the "open driver", Location of static parameter record, Location and length of send and receive mailboxes, Location of the two coordination bytes Send (CBS) and Receive (CBR). Send and receive mailboxes must be located in separate data blocks and start at address 0. The pointers to the two mailboxes in DB-ZU are irrelevant. The parameters for the bit transmission layer must be entered in the DB/DX with the static parameter record as follows: baud rate (bit/s), parity, bits per character, number of stop bits. All other parameters in the static parameter record are predefined. Communication User's Manual Release 05/99 5-11 FAP Connection DX2 assignment Figure 5-3 shows the values to be configured for extended data block DX2. Configuration starts at the absolute address DW 0. All values are specified in hexadecimal format. DW no. Parameter Explanation 0 4D41 MA 1 534B SK 2 5832 X2 3 0030 Data transfer using Connection type "open driver" 4 1) 44xx or DB no. xx or 58xx DX no. xx 5 xxxx From DW no. xxxx 6 0000 Reserved 7 0000 Reserved 8 44xx or DB no. xx or 58xx DX no. xx 9 xxxx From DW no. xxxx 10 xxxx Length in words 11 44xx or DB no. xx or 58xx DX no. xx 12 xxxx From DW no. xxxx 13 xxxx Length in words 14 44aa DB no. aa 1) 15 0064 DW no. 100 Pointer to static parameter record Pointer to send mailbox Pointer to receive mailbox Pointer to CBS/CBR The location of CBS/CBR is predefined. For aa, the number of the interface area must be entered. The DW number is 100D (64H). Figure 5-3 5-12 Assignment of Extended Data Block DX2 Communication User's Manual Release 05/99 FAP Connection Static parameter record This contains the parameters for the bit transmission layer and the transmission-specific parameters. Figure 5-4 shows the values stored for the static parameter record in the DB/ DX. Configuration starts at the data word specified in DX2. DW no. Parameter n 0001 n+1 n+2 n+3 Explanation 100 baud 0002 150 baud 0003 300 baud 0004 600 baud 0005 1200 baud 0006 2400 baud 0007 4800 baud 0008 9600 baud 0009 19200 baud 0000 No parity 0001 Odd parity 0002 Even parity 0006 6 bits per character 0007 7 bits per character 0008 8 bits per character 0001 1 stop bit 0002 0003 2 stop bits 1 stop bit n+4 0000 No flow control n+5 0001 Mode 1 n+6 0000 Reserved n+7 000X Character delay time (x * 10 ms) n+8 0000 Reserved n+9 0000 Reserved n + 10 0000 Reserved Figure 5-4 Static Parameter Record Note The value 10 must be entered in data word n + 7 (character delay time = 100 ms)! Communication User's Manual Release 05/99 5-13 FAP Connection Adoption of operating system error numbers The system program checks the second serial interface (SI2) of the CPU 928B every 100 ms for any communication errors that may have occurred. If an error has occurred, the system program invokes organization block OB 35. For the purposes of analysis of the error messages, the following instructions must be programmed in OB 35: OB35 C DB aaaa T DD 101 Number of interface area The function block always generates error message 200 in the event of a communication error. The precise cause of the fault is stored in the interface area in data words DW 101 and DW 102. 5-14 Communication User's Manual Release 05/99 FAP Connection 5.5 Configuring the Operating Unit Configuration parameters Table 5-5 details the interface parameters that must be specified in the configuration. It also shows the default settings used by the configuration software. The parameters are entered in ProTool under System PLC, in COM TEXT under ConfigureBasic SettingsTDOP Interfaces. Table 5-5 Configuring the Operating Unit Parameter Default setting in configuration software Range of values Interface TTY TTY; V.24 Baud rate 9.6 kBit/s 300 Bit/s 600 Bit/s 1.2 kBit/s 2.4 kBit/s 4.8 kBit/s 9.6 kBit/s 19.2 kBit/s Parity Even Even; Odd; None Data bits 8 7; 8 Stop bits 1 1; 2 Character delay time.1) 12 10 ms (1...9999) 10 ms 1) Max. permissible interval between two received characters. If no character is received at the operating unit in that time, a system message is returned. The interface parameters specified for the operating unit must match those specified for the SIMATIC S5. Note For the OP7 and OP17 only 1 stop bit may be used. Communication User's Manual Release 05/99 5-15 FAP Connection 5-16 Communication User's Manual Release 05/99 PROFIBUS-DP Connection 6 This chapter describes communication between the operating unit and SIMATIC S5 using the PROFIBUS-DP connection. Communication User's Manual Release 05/99 6-1 PROFIBUS-DP Connection 6.1 Introduction Definition PROFIBUS-DP is a master-slave field bus with capacity for up to 122 slaves. A PROFIBUS-DP network is normally operated by one master. That master polls all slaves cyclically. The master is typically a PLC with an interface module compatible with the DP standard. Each operating unit is permanently assigned to a master PLC. Connection of the PROFIBUS-DP slaves conforms to the PROFIBUS-DP standard DIN E 19245, Part 3. Hardware requirements In order to incorporate operating units in an existing PROFIBUS-DP network, the following hardware components are required: for the TD10, TD20 and OP20: PROFIBUS-DP interface module and firmware memory module, for the OP5 and OP15: model version OP5/A2, OP15/A2 or OP15/C2, for the OP7: model version OP7/DP or OP7/DP-12, for the OP17: model version OP17/DP or OP17/DP-12, for the OP25/35/27/37 and TP27/37: no additional components required, On the PLC: module compatible with DP standard, e.g. IM308C. Only one of these modules is required on the PLC. For every device (operating unit or PLC): PROFIBUS-DP bus connector or other component approved for the purpose (except FSK bus terminal; see configuration scheme in SIMATIC HMI Catalog ST80.1), For S5-155 U with CPU 946/947, equipment version 3UA22 or later is required. Software requirements In addition, the following software components are required for the PROFIBUS-DP connection: SIMATIC HMI standard function block version 3.2 or later (version 3.3 for DP window) for the PLC concerned, Configuration software ProTool or ProTool/Lite version 2 or later, or COM TEXT V3.10 or later, Specific configuration software for configuring the interface module in conformity with the DP-standard. Additional bus masters In special cases, a PROFIBUS-DP network can include an additional PLC with a master module compatible with the DP standard. The operating units can then be distributed between the two masters. System limits No more than 120 of the 122 slaves in a PROFIBUS-DP network may be an operating unit. Those figures are theoretical limits. The actual limits will be determined by the memory capacity and the performance capabilities of the PLC. 6-2 Communication User's Manual Release 05/99 PROFIBUS-DP Connection 6.2 Communication Structure Figure 6-1 shows the communication structure using the program and data blocks required on the PLC for communication between the PLC and multiple operating units. Application program Interface area Communi cation area Standard function block DBZU Job mailboxes PLC jobs DBSEND Send mailbox DBEMPF Receive mailbox User data areas Interface module PROFIBUSDP Operating Unit Figure 6-1 Operating Unit Operating Unit Communication Structure for PROFIBUS-DP Connection Description The components enclosed in dotted lines in figure 6-1 have to be set up separately for each operating unit connected. The arrows represent the flow of information between the components. Function of standard FB The operating unit and PLC communicate with one another via a PROFIBUSDP master module. Data transfer from the PLC to the operating unit takes place via a send mailbox and from operating unit to PLC via a receive mailbox. Those two data areas act as send and receive buffers for the standard function block. The standard function block should be integrated in the STEP5 application program. Its job includes monitoring the connection with the operating unit and co-ordinating data transfer. Communication User's Manual Release 05/99 6-3 PROFIBUS-DP Connection Function of interface area The interface area is a data block that is simultaneously an interface between the application program and the standard function block and the application program and the operating unit. It contains data and pointers to data areas that are required, among other things, for synchronizing exchange of data between the PLC and the operating unit. A detailed description of the interface area is given in chapter 10.1, page 10-2. Function of DB-ZU The assignment data block DB-ZU contains the parameters of all configured operating units involved in communication with the PLC. A basic description of DB-ZU is given in chapter 10.3, page 10-19. Table 6-1 shows the structure of a 16-data word area in DB-ZU as it should be assigned for PROFIBUS-DP and one operating unit. Table 6-1 Assignment of an Area in DB-ZU DW n+0 DL Reserved n+1 DR Usage DB number of interface area Reserved To be specified by user - n+2 Standard FB version number - n+3 Job status To be analyzed by user n+4 n+5 Error number Not relevant to PROFIBUS-DP Data type 0 = DB - DB/DX number Pointer to receive mailbox; specified by user. 1 = DX n+6 0 Start address (DW number) n+7 Data type 0 = DB DB/DX number Pointer to send mailbox; specified by user. 1 = DX n+8 0 n+9 Connection-specific entries that are depend dent on the h addressing dd i method h d used. d n+10 Start address (DW number) To be specified by user n+11 n+12 Not relevant to PROFIBUS-DP - Reserved - n+13 n+14 n+15 6-4 Communication User's Manual Release 05/99 PROFIBUS-DP Connection Connection specific entries in DB-ZU The entries in DB-ZU are dependent on the addressing method used. The description of data words n+9 to n+11 below is subdivided into the headings "Linear addressing/Page addressing" and "Addressing via DP window". For an explanation of the different methods of addressing, please refer to your PROFIBUS-DP manual. With addressing via DP window, block sizes of over 32 bytes can be used. This improves the performance of the operating unit. At the same time it increases the response time on the decentralized peripheral system. Note DP window addressing is only possible with the IM308C version 3 or later. Entries for linear addressing and page addressing Figure 6-2 shows the structure of data words n+9 to n+11 in DB-ZU as required for linear addressing and page addressing. The data must match that specified in the interface module configuration. DL DR DW n +9 Addressing method DW n +10 Page frame number DW n +11 Peripheral start address Block size Reserved Addressing method 0 Linear P area 1 Linear Q area 1) 2 P page 3 Q page 1) Permissible address area 128...255 0...255 192...254 0...254 1) Only possible with S5-115U with CPU 945, S5-135U and S5-155U. Figure 6-2 Structure of Data Words in DB-ZU for Linear Addressing and Page Addressing The block size can be either 8, 16 or 32 bytes. Page addressing is not permitted with multi-processor operation. When using linear addressing, the page frame number is not analyzed. The peripheral start address must be chosen so that the peripheral block of the specified size fits in the permissible address area. Communication User's Manual Release 05/99 6-5 PROFIBUS-DP Connection Entries for addressing via DP window Figure 6-3 shows the structure of data words n+9 to n+11 in DB-ZU as required for addressing via DP window. The data must match that specified in the interface module configuration. DL DR DW n +9 Addressing method DW n +10 PROFIBUS address of the operating unit DW n +11 Figure 6-3 IM number Block size Structure of Data Words in DB-ZU for Addressing via DP Window Entry in DB-ZU Permissible Values Addressing method 4 IM number 0, 16, 32, 48, ... , 240 (in increments of 16) PROFIBUS address of the operating unit 1 ... 123 Block size 8, 16, 32, 64, 120 DP window start address For S5-115U F800, FA00, FC00 For S5-135U, S5-155U F800, FA00, FC00, FE00 Note Operating unit types TD10, TD20 and OP20 do not support addressing via DP window. 6-6 Communication User's Manual Release 05/99 PROFIBUS-DP Connection Send and receive mailboxes The standard function block requires the send and receive mailboxes for internal communication. The two mailboxes have to be set up by the user at any memory location on the PLC. The addresses of the two mailboxes must be entered in the assignment block DB-ZU. The length of the mailboxes depends on the block size used (see table 6-2). Table 6-2 User data areas Size of Send/Receive Mailbox According to Block Size Used Block Size in Bytes Size of Send/Receive Mailbox in Words 8 41 16 41 32 41 64 41 120 60 User data areas should only be set up if the associated function is to be used. User data area are required, for example, for the following purposes: initiating messages transferring function keys controlling LEDs for recipes A detailed description of the user data areas is given in chapter 11. Communication User's Manual Release 05/99 6-7 PROFIBUS-DP Connection 6.3 Commissioning Procedure Procedure The basic steps for commissioning the PROFIBUS-DP connection are described below. 1. Set up the data block, e.g. DB 51, for the interface area using a length of 256 DW. For addressing via DP window (IM308C only) the data block must have a length of 255 DW. You do not have to specify any default values. If the data block is not present or too short, an error message is placed in AKKU 1 after the standard FB is invoked. 2. Copy standard FB 58 (file name: TDOP:DP) from the disk labeled COROS Standard Function Blocks to your STEP5 program. If you are using addressing via DP window you require version 3.3 or later of the function block. 3. Set up DB-ZU, e.g. DB 52, with a minimum length of 16 words. The assignment data block DB-ZU contains the parameters of all configured operating units connected to the PLC. If more than one operating unit is connected to the same PLC using PROFIBUS-DP, all of them can use the same DB-ZU. In such cases, 16 words must be reserved for each operating unit in DB-ZU. 4. Make the required entries in DB-ZU. Table 6-3 shows an example of the assignment for an operating unit. The offset n in DB-ZU corresponds to [(device number -1)*16]. Specify the DB number of the interface area in data word n+0. In data words n+5 to n+8, set up the pointers for the send and receive mailboxes. Enter the connection-specific entries in data words n+9 to n+11. DB-ZU is only analyzed during startup of the standard FB. That means that any changes to DB-ZU during normal operation will trigger a standard FB restart. 6-8 Communication User's Manual Release 05/99 PROFIBUS-DP Connection Table 6-3 Example of DB-ZU Assignment DW 0 DL Reserved 1 DR 51 Reserved Usage To be specified by user - 2 Standard FB version number - 3 Job status To be analyzed by user 4 Error number Not relevant to PROFIBUS-DP - Pointer to receive mailbox; specified by user. 5 0 58 6 0 0 7 0 58 8 0 41 9 0 128 Linear P area with start address 128 10 32 Block size 11 Reserved - 12 Not relevant to PROFIBUS-DP - Reserved - Pointer to send mailbox; specified by user. 13 14 15 5. Set up a send mailbox and a receive mailbox with a length of 41 words in each case for linear addressing or page addressing. To do so, create the data block DB 58 with a length of 82 words, for example. For addressing via DP window (IM308C only) using a block size of 120 bytes, send and receive mailboxes with a length of 60 words in each case must be created. To do so, create the data block DB 58 with a length of 120 words, for example. A separate send and receive mailbox has to be created for each operating unit connected. The standard FB requires those mailboxes as message buffers. If the mailboxes are not present or too short, an error message is placed in AKKU 1 after the standard FB is invoked. 6. Load the number of DB-ZU and the device number of the operating unit into AKKU 1. In this example, this would be device number 1. The device number is required is more than one operating unit is being operated using the same DB-ZU. The device number then determines the offset in DB-ZU. A maximum of 16 operating units can be operated using the same DB-ZU. Communication User's Manual Release 05/99 6-9 PROFIBUS-DP Connection 7. Next, invoke the standard FB unconditionally. Example program: L KY 52,1 :JU FB 58 NAME :TDOP:DP 52=Number of DB-ZU 1 = Device number Communication with operating unit PROFIBUS-DP connection :T FW 100 Save AKKU 1 to FW 100 :JC=ERR Branch to error analysis Job status and error number are in FW 100. If an error occurs during processing of the function block, the logical operation result is set to the value "1". This allows you to branch to your own error analysis function using the command JC. After the standard FB has been invoked, AKKU 1 contains the current job status and the number of any error that has occurred. 8. Now start up the standard FB using data word 64 in the interface area. In the interface area DW 64 is used to start up the standard FB. The startup organization block used (OB 20/21/22) must write the value 1 (KF format) to that data word in order to initiate FB startup and reset all other control bits. Example: OB 20/21/22 :C DB 51 :L KF 1 :T DW 64 In order to reset the operating unit and the standard FB, Bit 0 in this data word may also be set by the cyclic program. How this is done is described in chapter 10.2.1, page 10-6 under the heading "Restarting". With a PROFIBUS-DP connection, there is no check-back signal to the OP if the standard FB restarts. This has no effect on communication. 9. Check AKKU 1 to see if the standard FB has issued an error message. If an error occurs during processing of the function block, the logical operation result is set to the value "1". This allows you to branch to your own error analysis function using the command JC. After the standard FB call, AKKU 1 contains the current job status and the number of any error that has occurred. The contents of AKKU 1 are illustrated in figure 6-4. 6-10 Communication User's Manual Release 05/99 PROFIBUS-DP Connection 15 - - - 12 11 10 8 X X X - X 7 0 Error number X Bit is not assigned Bit is assigned (Read-only) Error number in KF data format (see chapter A.3) FB call terminated with error: error no. FB call completed without error: 0 Job status in KM data format Bit = 1: No job being processed Figure 6-4 Bit = 1: Job being processed Bit = 1: Job completed without error (low byte is 0) Bit = 1: Job terminated with error (low byte contains error no.) Contents of AKKU 1 after Invoking Standard FB 10. If you use user data areas, set them up now (see chapter 11). Communication User's Manual Release 05/99 6-11 PROFIBUS-DP Connection 6.4 Configuring the PROFIBUS-DP Network Network configuration The table below shows which parameters must be specified in the PROFIBUS-DP network for the interface module and the operating unit in order that the two can communicate with one another. To be specified when configuring Parameter Interface module DB-ZU Station number of operating unit (PROFIBUS node address) x Address size (block size) x x Peripheral address area x x Baud rate x Operating Unit x x In order to make optimum use of the available address space, the address size used can be specified individually for each operating unit. Note The bigger the block size chosen, the faster the data transmission rate. At the same time, however, it increases the response time on the decentralized peripheral system. For reasons of performance, the block size should always be as large as possible for graphics display units. Use of acknowledgement delay for the operating unit If you have activated acknowledgement delay for the operating unit and set up OB23, accumulator 1 must be set to zero, e.g. L KH0000, at the end of OB 23. This bypasses the acknowledgement delay which occurs when the operating unit is initialized (restart, power on) and the CPU remains in RUN mode. Configuring the operating unit Table 6-4 details the parameters that must be specified when configuring the operating unit. It also shows the default settings used by the configuration software. The parameters are entered in ProTool under System PLC, in COM TEXT under Configure Basic Settings TDOP Interfaces. 6-12 Communication User's Manual Release 05/99 PROFIBUS-DP Connection Table 6-4 PROFIBUS-DP Parameters of the Operating Unit Parameter Default Setting in Configuration Software Range of values OP address 3 3 to 126 Baud rate 1.5 MBit/s 93.75 kBit/s 187.5 kBit/s 500 kBit/s 1.5 MBit/s 12 MBit/s The data must match that specified in the configuration for the interface module, e.g. IM308C. Communication User's Manual Release 05/99 6-13 PROFIBUS-DP Connection 6.4.1 IM308B/C Interface Modules COM PROFIBUS In order to be able to configure the IM308B/C, the configuration package COM PROFIBUS is required. The SIMATIC HMI configuration tool is supplied with GSD files for operating unit slaves. Those GSD files can be found in the following locations: in ProTool in the directory \PROTOOL\PLCPROG\GSD, in ProTool/Lite in the directory \PROLITE\PLCPROG\GSD The different operating units require different GSD files. Table 6-5 gives the details. Table 6-5 GSD File Required According to Operating Unit GSD File Baud Rate Supported by Operating Unit Less than 12 Mbaud Up to 12 Mbaud SI108020.GSD OP20, TD10, TD20 - SI058020.GSD OP5 - SI158020.GSD OP15 - SI078020.GSD OP7/DP, OP17/DP - SI078040.GSD - OP7/DP-12, OP17/DP-12 SI178040.GSD - TD17 SI258020.GSD OP25, OP35 - SI278040.GSD - OP27, OP37, TP27, TP37 If you use the IM308B you do not require any device master files. If the GSD files in the COM PROFIBUS directory are older than those supplied with ProTool or if the COM PROFIBUS does not yet support a newer operating unit, you should copy the files from ProTool to COM PROFIBUS. You should then restart COM PROFIBUS and then choose Load Device Master Files. If you have already created a COM PROFIBUS configuration using an older file and now want to use the newer GSD files you need to create a new configuration. 6-14 Communication User's Manual Release 05/99 PROFIBUS-DP Connection Parameters In order that the IM308B/C and operating unit can communicate with one another, the following parameters must be set in COM PROFIBUS: Station type: COROS OP.. or HMI.. Station number: 3...126 The value entered here must match the OP address specified in the operating unit configuration. Specified configuration: The specified configuration is determined by selecting the block size. The block size is determined by the number of specified slots. This is done by specifying the address 055 in each slot used. The choice of possible block sizes is as follows: 8 bytes, 16 bytes, 32 bytes, 64 bytes, 120 bytes. Address ID: The address ID is allocated automatically by the specified configuration and must not be modified. I and O address: This field is left blank when addressing via DP window. Communication User's Manual Release 05/99 6-15 PROFIBUS-DP Connection 6.4.2 Connecting to AG 95U DP-Master Communication peers A maximum of two operating units can be connected to the AG 95U DP master. In ProTool, choose menu item System PLC Edit, select the protocol SIMATIC S5 - L2-DP and in the Parameters box set the CPU Type to S5 95U. Performance is relatively low when two operating units are connected. For example, the update time for the operating unit is around 5 to 15 seconds if the PLC cycle time is longer than 150 ms. Standard FB The program file S5TD03ST.S5D contains FB 58 and the additional function block FB 0. FB58 should be invoked unconditionally by the S5 program whereas FB 0 is invoked by FB 58. FB 0 should only be copied to the program file. Connectionspecific entries in DB-ZU In the case of the connection-specific entries in DB-ZU only addressing method 0 (linear P area) is permissible. Data word n+11 contains the number of the additional FB. This means that assignment of data words n+9 to n+11 in DB-ZU is as follows: DL DR DW n +9 0 DW n +10 Not relevant Block size DW n +11 0 No. of additional FB Figure 6-5 Peripheral start address Structure of Data Words in DB-ZU for Linear Addressing The permissible data area is between 64 and 191. 8/16/32 input and output bytes are occupied in this area depending on the chosen block size. Since address 127 is at a different physical location than address 128, a block must not be created in such a way as to overlap areas. The start addresses for the various block sizes are thus as follows: Block Size Start Address 8 64 to 120, 128 to 184 16 64 to 112, 128 to 176 32 64 to 96, 128 to 160 Note If the DP interface of the AG 95U DP master is configured by means of DB1, no scratchpad flags may be used for the DP status. 6-16 Communication User's Manual Release 05/99 PROFIBUS-DP Connection COM PROFIBUS In order to be able to configure the AG 95U DP master, the configuration package COM PROFIBUS is required. The SIMATIC HMI configuration tool is supplied with GSD files for operating unit slaves. Those GSD files can be found in the following locations: in ProTool in the directory \PROTOOL\PLCPROG\GSD, in ProTool/Lite in the directory \PROLITE\PLCPROG\GSD The different operating units require different GSD files. Table 6-6 gives the details. Table 6-6 GSD File Required According to Operating Unit GSD File Baud Rate Supported by Operating Unit Less than 12 Mbaud Up to 12 Mbaud SI108020.GSD OP20, TD10, TD20 - SI058020.GSD OP5 - SI158020.GSD OP15 - SI078020.GSD OP7/DP, OP17/DP - SI078040.GSD - OP7/DP-12, OP17/DP-12 SI178040.GSD - TD17 SI258020.GSD OP25, OP35 - SI278040.GSD - OP27, OP37, TP27, TP37 If the GSD files in the COM PROFIBUS directory are older than the GSD files supplied with ProTool or if the COM PROFIBUS does not yet support a newer operating unit, you should copy the files from ProTool to COM PROFIBUS. You should then restart COM PROFIBUS and then choose Load Device Master Files. If you have already created a COM PROFIBUS configuration using an older file and now want to use the newer GSD files you need to create a new configuration. Communication User's Manual Release 05/99 6-17 PROFIBUS-DP Connection Parameters In order that the AG 95U DP master and operating unit can communicate with one another, the following parameters must be set in COM PROFIBUS: Station type: COROS OP.. or HMI.. Station number: 3...126 The value entered here must match the OP address specified in the operating unit configuration. Bus designation: Profibus-DP Bus profile: Variable/S5-95U Specified configuration: The specified configuration is determined by selecting the block size. The block size is determined by the number of specified slots. This is done by specifying the address 055 in each slot used. The choice of possible block sizes is as follows: 8 bytes, 16 bytes, 32 bytes. Address ID: The address ID is allocated automatically by the specified configuration and must not be modified. I and O address: This field can only be assigned the P area; the permissible address range is 64-191. Transfer of COM file Transfer of the COM PROFIBUS configuration from the PU/PC to the PLC takes place via the DP interface of the CPU. The transmission may only be set to 19.2 kbaud. 1. Execute a full reset on the PLC. 2. Transfer the COM PROFIBUS configuration to the PLC. 3. Transfer the S5 program (excluding DB1). 6-18 Communication User's Manual Release 05/99 PROFIBUS-DP Connection 6.4.3 Other SIMATIC S5 PROFIBUS-DP Master Modules Requirement The operating units can communicate via the PROFIBUS-DP with all master modules that support PROFIBUS-DP to DIN E 19245, Part 3. Notes on configuring For details of how to configure other PROFIBUS-DP master modules, please refer to the relevant module descriptions. When connecting the operating unit to a PROFIBUS-DP network you should take account of the following performance data: Configure the operating unit as a PROFIBUS-DP slave in accordance with DIN E 19245, Part 3. The address size (block size) of the I/O area must be set to 32 bytes for every operating unit. For the manufacturer ID of an operating unit slave that support as baud rate lower than 12 Mbaud, enter 8020. For operating units that support a baud rate of 12 Mbaud, specify 8040 for the manufacturer ID. "SYNC" and "FREEZE" modes are not supported by the operating unit. User-configurable data is not possible. Slave response monitoring is possible but of no useful purpose for operating unit slaves. When the monitoring system is triggered a restart is executed on the operating unit. Select the operating unit baud rate from the following list of options only (regardless of any other possible settings offered by the configuration software): - - - - - 93.75 kBit/s, 187.5 kBit/s, 500 kBit/s, 1.5 MBit/s, 12 MBit/s. The "Min. slave interval" should be set to 2 ms for all operating units except the OP15. For OP15 set an interval of 6 ms. Configure the operating unit peripheral address range as a combined I/O area with byte consistency (Address ID 55H). There are no other consistency requirements. Communication User's Manual Release 05/99 6-19 PROFIBUS-DP Connection CP 5430 TF and CP 5431 FMS In order to be able to configure the communication processors CP 5430 TF (version 2 or later) and CP 5431 FMS (version 1 or later) the configuration interface PROFIBUS-NCM is required. The notes on configuration given on page 6-19 apply. At this point only the details of particular relevance to the CP 5430/5431 are explained. For details of how to configure the communication processors using PROFIBUS NCM, please refer to the relevant module descriptions. We recommend that you use the parameters listed below in table 6-7. Table 6-7 Recommended Parameters for PROFIBUS-NCM Parameter Setting Bus parameter data Use "calculated parameters" DP operating mode Non-synchronized Response monitoring "No" is the only meaningful setting for operating unit Polling cycle time At least 5 ms; as short as possible Largest min. slave interval 5 ms The only permissible addressing method is linear P area. FB-SYNCHRON must be invoked by organization blocks OB 20, OB 21 and OB 22 as follows: Example call for SIMATIC S5-115U: :JU FB 249 DHB SYNCHRON call NAME :SYNCHRON 6-20 SSNR :KY 0,8 Interface no. (page frame no.) BLGR :KY 0,5 Block size PAFE :FY 255 DHB error message Communication User's Manual Release 05/99 SINEC L1 Connection 7 This chapter describes communication between the TD/OP and the SIMATIC S5 with a SINEC L1 connection. Communication User's Manual Release 05/99 7-1 SINEC L1 Connection 7.1 Definition Overview The SINEC L1 bus is a master-slave bus with one master and up to 30 slaves. Up to 4 TD/OP devices can be connected as SINEC L1 slaves to one SINEC L1 bus system. These TD/OP devices are addressed by one PLC (i.e. the L1 master). The connection between the PLC and the SINEC L1 bus requires a CP 530 communications processor. Interface The TD/OP is connected to the SINEC L1 bus by means of a SINEC L1 BT 777 bus terminal. The connection is made either via the base interface of the TD/OP, or via the serial interface module of the TD/OP. The serial interface module permits simultaneous use of a serial interface and the SINEC L1 bus connection. Function The serial connection of the SINEC L1 field bus is defined by the RS485 standard. The SINEC L1 bus terminal is used to adapt the physical TTY characteristics of the TD/OP to the RS485 characteristics of the SINEC L1. Required hardware The SINEC L1 bus connection requires the following hardware: One or more TD/OP devices, One PLC - S5-115U (not for CPU 945), - S5-135U (CPU 928A only for Version -3UA12 or higher), - S5-155U (not for CPU 948), One CP 530 communications processor for the connection between the PLC and the SINEC L1 network, One interface module for the connection of the TD/OP to the field bus in case it is not directly connected via the base interface, One BT 777 bus terminal for each SINEC L1 user. Required software The SINEC L1 bus connection requires the following software: One FB-TDOP:L1 (FB 56) (function block for the PLC), One COM 530 package for configuring the CP 530 communications processor, Data handling blocks for the PLC (for S5-115U: integrated in the CPU; otherwise must be ordered separately). 7-2 Communication User's Manual Release 05/99 SINEC L1 Connection Configuring the SINEC L1 network The SINEC L1 bus is configured by the COM 530 software package. For further information refer to the corresponding manual. The connection of each TD/OP device to the bus system requires that the slave address of each TD/OP which is configured with COM TEXT be entered in the polling list of the CP 530. Note Disconnect the voltage supply to the TD/OP before connecting or disconnecting the connection from the BT 777 to the TD/OP. The bus can remain active during this procedure. Communication User's Manual Release 05/99 7-3 SINEC L1 Connection 7.2 Communication Structure Figure 7-1 shows the communication structure, as well as the program and data blocks which are required in the PLC for communication between it and several TD/OP devices. DB-TDOP User program Communication area Standard function block Job mailboxes User data areas DB-ZU Allocation data block DB-SEND Send mailbox DB-REC Receive mailbox PLC jobs DB-DHB Messages TD/OP PLC Handling blocks Recipes SINEC L1 Communications processor BT 777 SINEC L1 bus BT 777 TD/OP Figure 7-1 TD/OP TD/OP Communication structure of the SINEC L1 connection Description The components shown inside the broken lines in figure 7-1 must be set up separately for each TD/OP which is connected. The arrows represent the flow of information between the components. Each bus user is connected to the SINEC L1 bus via a separate BT 777 bus terminal. These bus terminals convert the transferred signals to the physical RS485 characteristics of the SINEC L1 protocol. 7-4 Communication User's Manual Release 05/99 SINEC L1 Connection Tasks of standard FB The TD/OP and the PLC communicate with one another by means of a SINEC L1 communications processor. Data are transferred from the PLC to the TD/OP via a send mailbox and from the TD/OP to the PLC via a receive mailbox. These two data areas are used by the standard function block as send and receive buffers. The standard function block must be embedded in the STEP5 user program. Its tasks include monitoring the connection to the TD/OP and coordinating data transfers. It is supported by data handling blocks, which it calls automatically. Tasks of DB-TDOP The interface area DB-TDOP serves as the interface both between the user program and the standard function block and between the user program and the TD/OP. It contains data and pointers to data areas, which are required amongst other things for synchronizing the data exchange between the PLC and the TD/OP. A PLC job is stored by the user program in the user data area called "PLC jobs", together with its parameters. The job is initiated by entering a pointer to this data area in a free job mailbox in the DB-TDOP. You must only set up user data areas if you are actually intending to use the associated functions. Tasks of DB-ZU The allocation data block DB-ZU contains a list of all the TD/OP devices which have been configured and which are participating in communication with the PLC, together with their PLC parameters. Condition The minimum configuration necessary to operate a TD/OP on the SINEC L1 bus is as follows: the standard function block FB 56 (TDOP:L1) of the program file on the PLC side, the interface area DB-TDOP, the allocation data block DB-ZU, data handling blocks. These components are described below. Communication User's Manual Release 05/99 7-5 SINEC L1 Connection 7.3 Setting up the Program and Data Areas Interface area Set up DB 51, for example, with a size of 228 DW. This is the interface area DB-TDOP. Standard function block The standard FB is called by specifying an absolute address. Example program: L KY 52,1 :JU FB 56 NAME:TDOP:L1 :T FW 100 :JC= FEHL 52 = Number of DB-ZU 1 = TD/OP device number Communication with TD/OP SINEC L1 connection Store AKKU 1 in FW 100 Branch to error evaluation; job status and error number contained in FW 100 The standard FB is started with data word DW 64 in the DB-TDOP. This data word must be set to the value 1 (KF format) in the relevant startup organization block (OB 20, 21, 22), in order for the FB to be started up and all the other control bits to be reset. Example: OB20/21/22 :C DB 51 :L KF 1 :T DW 64 51 = Number of DB-TDOP Bit 0 of this data word can also be set in the cyclic program, in order to reset the TD/OP and the standard FB. No acknowledgment is sent to the TD/OP via the SINEC L1 connection when the standard FB is restarted. This has no effect on communication. Check AKKU 1 to see if the standard FB has output an error message. If an error occurs while the function block is being processed, the result of the logic operation is set to the value 1. This allows you to activate a separate error evaluation with the JC command. After the standard FB call, AKKU 1 contains the current job status and the error number, if an error has occurred. The contents of AKKU 1 are shown in figure 7-2. 7-6 Communication User's Manual Release 05/99 SINEC L1 Connection 15 - - - 12 11 10 8 X X X - X 7 0 Error number X Bit not allocated Bit allocated (read access only) Error number in KF data format (see chapter A.3) FB call terminated with error: error no. FB call terminated without error: 0 Job status in KM data format Bit = 1: Not processing any jobs Figure 7-2 Bit = 1: Processing job Bit = 1: Job terminated without error (low byte = 0) Bit = 1: Job terminated with error (low byte contains error no.) Contents of AKKU 1 after the standard FB call Connectionspecific entries in DB-ZU The interface to the PLC is configured via the allocation data block DB-ZU. Only the SINEC L1-specific entries are written in this block. Please refer to chapter 10.3 for a general description of the DB-ZU. The allocation data block DB-ZU must be set up with a size of at least 16 words. DW n+4, DW n+11..13 These data words are reserved. DW n+9, DW n+10: SINEC L1 parameters These two data words contain: The page frame address of the communications processor The TD/OP slave number. DL DR DW n +9 Not allocated CP page frame address DW n +10 Not allocated TD/OP slave number The CP page frame address must be identical to the configured address (e.g. in COM 530). The TD/OP slave number must be identical to the number configured in COM TEXT. The following entries must be incorporated in the DB-ZU before the standard function block is started up: - Pointer to the receive mailbox, - Pointer to the send mailbox, - Number of the DB-TDOP. If other TD/OP devices are connected via the SINEC L1 in the same PLC, they can all use the same DB-ZU. In this case, 16 words must be reserved in the DB-ZU for each device. Communication User's Manual Release 05/99 7-7 SINEC L1 Connection Note The DB-ZU is only evaluated when the standard FB is started up. The standard FB must be started up again after any changes to the DB-ZU. Data handling blocks All interface functions are handled via the function block FB-TDOP: L1. This block requires the following data handling blocks: - DHB-SEND, - DHB-RECEIVE, - DHB-CONTROL, - DHB SYNCHRON. Note The data handling blocks require the DB-DHB as a work area. This block must be set up permanently as DB 56 with a minimum size of 16 data words. If DB 56 is set up with more than 16 data words, it is freely available to the user starting with data word DW 16. Table 7-1 contains the function block numbers of the data handling blocks which are required for the different CPUs. Table 7-1 Function block numbers Function block PLC S5-115 U S5-135 U S5-155 U FB-SEND FB 244 FB 120 FB 120 FB-RECEIVE FB 245 FB 121 FB 121 FB-CONTROL FB 247 FB 123 FB 123 FB-SYNCHRON FB 249 FB 125 FB 125 The data handling blocks are included in the EPROM of the CPU in the case of the 115 U PLC; they must be ordered separately for all the other PLCs. 7-8 Communication User's Manual Release 05/99 SINEC L1 Connection Data handling block calls Except for the FB-SYNCHRON, the data handling blocks are called automatically by the standard FB. The FB-SYNCHRON must be called in the startup organization blocks OB 20, OB 21 and OB 22: Example for SIMATIC S5-115 U: :JU FB 249 NAME:SYNCHRON SSNR: KY 0,8 BLGR: KY 0,5 PAFE: FY 255 Send mailbox, receive mailbox DHB-SYNCHRON call Interface (page frame) no. Block size Error message of the DHB One send mailbox and one receive mailbox with a fixed size of 34 data words each must be set up for every connected TD/OP. Pointers must be set up for the send mailbox and the receive mailbox in data words n+5 to n+8 of the DB-ZU. Communication User's Manual Release 05/99 7-9 SINEC L1 Connection 7.4 Configuring the SINEC L1 Network Table 7-2 lists the interface parameters which must be set for a configuration with COM TEXT. The preset values offered by COM TEXT are also shown. You can set the parameters in Configure Basic Settings TDOP Interfaces. Table 7-2 Interface parameters for the SINEC L1 connection Parameter name Preset value in COM TEXT Range of values Interface TTY TTY; V.24 Baud rate 187.5 kbit/s 9.6 kbit/s 19.2 kbit/s 93.75 kbit/s 187.5 kbit/s 500 kbit/s 1.5 Mbit/s Parity Even Even; odd; none Data bits 8 7; 8 Stop bits 1 1; 2 1 1 to 30 Slave 1) no.1) L1 bus address of TD/OP The interface parameters specified for the TD/OP must be identical to the values configured for the SINEC L1 communications processor. 7-10 Communication User's Manual Release 05/99 PROFIBUS Connection 8 This chapter describes communication between the TD/OP and the SIMATIC S5 with a SINEC L2 connection. Communication User's Manual Release 05/99 8-1 PROFIBUS Connection 8.1 Overview Definition The SINEC L2 bus is a multi-master bus with a maximum of 127 stations. A maximum of 32 bus stations can have master capability. All bus stations interconnected by the TD/OP-PLC communication are bus masters. A PLC can communicate with a maximum of 30 TD/OP devices. Each TD/OP device communicates with only one PLC. The allocation of TD/OP devices to a PLC can be configured separately for each TD/OP. TD/OP devices are connected to PLCs by means of the Free Layer 2 Access protocol. The Free Layer 2 Access protocol is compatible with PROFIBUS in accordance with DIN 19245 Part 1. System limits The following system limits must be observed when the TD/OP devices are networked via the SINEC L2 bus: Up to 32 masters (TD/OP or PLC) or other stations with a master capability can be connected in the network. Further SINEC L2 bus stations (slaves) are permissible but not included in TD/OP-PLC communication. Up to 30 TD/OP devices are allowed per PLC (if one bus master PLC is on the SINEC L2). Required hardware The SINEC L2 connection requires the following hardware: For TD10, TD20, OP20: One SINEC L2 interface module, For each PLC (except S5-95 L2): One CP communications processor with Free Layer 2 Access, e.g. CP5430, or One S5-95U-L2 PLC with Free Layer 2 Access (MLFB no. 6ES5 095-8MB02 or higher), For each device (TD/OP or PLC): One SINEC L2 bus plug connector or other authorized component (except FBA bus terminal, see SINEC L2 catalog). Required software The SINEC L2 connection requires the following software: "OPTIONS" memory module with SINEC L2 firmware, FB-TDOP:L2 function block for the relevant PLC, COM TEXT configuration package, V2.00 or higher, COM package for CP module. 8-2 Communication User's Manual Release 05/99 PROFIBUS Connection 8.2 Communication Structure Figure 8-1 shows the communication structure, as well as the program and data blocks which are required in the PLC for the communication between it and several TD/OP devices. User program DBTDOP DBZU Communi cation area Job mailboxes Standard function block DB-SEND Send mailbox DBEMPF Receive mailbox DBAPP DBDHB User data area Data handling blocks SINEC L2 Communications processor*) SINEC L2 bus TD/OP TD/OP TD/OP *) not for S5-95 L2 Figure 8-1 Communication structure of the SINEC L2 connection Description The components shown inside the broken lines in figure 8-1 must be set up separately for each TD/OP which is connected. The arrows represent the flow of information between the components. Tasks of standard FB The TD/OP and the PLC communicate with one another by means of a SINEC L2 CP. This communications processor is already integrated in the SIMATIC PLC S5-95 L2. Data are transferred from the PLC to the TD/OP via a send mailbox and from the TD/OP to the PLC via a receive mailbox. These two data areas are used by the standard function block as send and receive buffers. The standard function block must be embedded in the STEP5 user program. Its tasks include monitoring the connection to the TD/OP and coordinating data transfers. It is supported by data handling blocks, which it calls automatically. Communication User's Manual Release 05/99 8-3 PROFIBUS Connection Tasks of DB-TDOP The interface area DB-TDOP serves as the interface both between the user program and the standard function block and between the user program and the TD/OP. It contains data and pointers to data areas, which are required amongst other things for synchronizing the data exchange between the PLC and the TD/OP. A PLC job is stored by the user program in the DB-APP, together with its parameters. The job is initiated by entering a pointer to this data area in a free job mailbox in the DB-TDOP. You must only set up user data areas if you are actually intending to use the associated functions. Tasks of DB-ZU The allocation data block DB-ZU contains a list of all the TD/OP devices which have been configured and which are participating in communication with the PLC, together with their PLC parameters. Condition The minimum configuration necessary to operate a TD/OP on the SINEC L2 bus is as follows: the standard function block FB 55 (TDOP:L2) of the program file on the PLC side, the interface area DB-TDOP, the allocation data block DB-ZU, data handling blocks. These components are described below. 8-4 Communication User's Manual Release 05/99 PROFIBUS Connection 8.3 Setting up the Program and Data Areas Interface area Set up DB 51, for example, with a size of 256 DW. This is the interface area DB-TDOP. Standard function block The standard FB is called by specifying an absolute address. Sample program: 52 = Number of DB-ZU 1 = TD/OP device number :JU FB 55 Communication with TD/OP NAME:TDOP:L2 SINEC L2 connection :T FW 100 Store AKKU 1 in FW 100 :JC= ERR Branch to error evaluation; job status and error number contained in FW 100 L KY 52,1 The standard FB is started with data word DW 64 in the DB-TDOP. This data word must be set to the value 1 (KF format) in the relevant startup organization block (OB 20, 21, 22) in order for the FB to be started up and all the other control bits to be reset. Example: OB20/21/22 :C DB 51 :L KF 1 :T DW 64 51 = Number of DB-TDOP Bit 0 of this data word can also be set in the cyclic program, in order to reset the TD/OP and the standard FB. No acknowledgment is sent to the TD/OP via the SINEC L2 connection when the standard FB is restarted. This has no effect on communication. Check AKKU 1 to see if the standard FB has output an error message. If an error occurs while the function block is being processed, the result of the logic operation is set to the value 1. This allows you to activate a separate error evaluation with the JC command. After the standard FB call, AKKU 1 contains the current job status and the error number, if an error has occurred. The contents of AKKU 1 are shown in figure 8-2. Communication User's Manual Release 05/99 8-5 PROFIBUS Connection 15 - - - 12 11 10 8 X X X - X 7 0 Error number - X Bit not allocated Bit allocated (read access only) Error number in KF data format (see chapter A.3) FB call terminated with error: error no. FB call terminated without error: 0 Job status in KM data format Bit = 1: Not processing any jobs Figure 8-2 Bit = 1: Processing job Bit = 1: Job terminated without error (low byte = 0) Bit = 1: Job terminated with error (low byte contains error no.) Contents of AKKU 1 after the standard FB call Connectionspecific entries in DB-ZU The interface to the PLC is configured via the allocation data block DB-ZU. Only the SINEC L2-specific entries are written in this block. Please refer to chapter 10.3 for a general description of the DB-ZU. The allocation data block DB-ZU must be set up with a size of at least 16 words. Connection-specific entries are required in DW n+9 to DW n+11. DL SIMATIC S5-95 L2 DW n +9 DR L2 user address 1) Reserved DW n +10 TD/OP-SAP 1) 2) PLC-SAP 2) DW n +11 STBS 2) STBS 2) 1) These entries must be identical to those configured in COM TEXT 2) These entries must be identical to those configured in DB1 Other PLCs DL DR DW n +9 L2 user address Page frame address CP 5430 2) DW n +10 TD/OP-SAP 1) 2) SEND/REC-ANR 2) DW n +11 Reserved 1) These entries must be identical to those configured in COM TEXT 2) These entries must be identical to those configured in COM in the PLC CP or in COM NCM 8-6 Communication User's Manual Release 05/99 PROFIBUS Connection Data handling blocks All interface functions are handled via data handling blocks. The necessary function blocks are dependent on the PLC which is used. SIMATIC S5-115 U, S5-135 U and S5-155 U When the SINEC L2 bus is used to connect the TD/OP to the PLC, the data handling blocks control data communication between the standard function block and the CP module. Depending on the type of PLC, the data handling blocks have the following function block numbers. Function block PLC S5-115 U S5-135 U S5-155 U FB-SEND FB 244 FB 120 FB 120 FB-RECEIVE FB 245 FB 121 FB 121 FB-CONTROL FB 247 FB 123 FB 123 FB-SYNCHRON FB 249 FB 125 FB 125 The data handling blocks are included in the EPROM of the CPUs in the case of the PLC 115 U; otherwise they must be ordered separately. Note These data handling blocks require the DB-DHB as a work area. This block must be set up permanently as DB 55 with a minimum length of 16 data words. If DB 55 is set up with more than 16 data words, it is freely available to the user starting with DW 16. Communication User's Manual Release 05/99 8-7 PROFIBUS Connection Data handling block calls Except for the FB-SYNCHRON, the data handling blocks are called automatically by the standard function block. The FB-SYNCHRON must be called in the startup organization blocks OB 20, OB 21 and OB 22. Example for SIMATIC S5-115U: :JU FB 249 NAME:SYNCHRON SSNR: KY 0,8 BLGR: KY 0,5 PAFE: FY 255 SIMATIC S5-95 L2 DHB-SYNCHRON call Interface (page frame) number Block size Error message of the DHB The EPROM of SIMATIC S5-95 L2 contains the L2-SEND and L2-RECEIVE function blocks. These blocks are called by the FB-TDOP:L2. Synchronization by the user is not required. Note These function blocks require the DB-DHB as a work area. This block must be set up permanently as DB 55 with a minimum size of 16 data words. If DB 55 is set up with more than 16 data words, it is freely available to the user starting with DW 16. Error messages The data handling blocks store any error messages in data words 101 and 102. Please refer to the SINEC L2 Manual for a detailed description of these errors. Structure: DL DW 101 DW 102 Send mailbox, receive mailbox 8-8 DR ANZW Not used PAFE One send mailbox and one receive mailbox with a fixed size of 128 data words each must be set up for every connected TD/OP. Pointers must be set up for the send mailbox and the receive mailbox in data words n+5 to n+8 of the DB-ZU. Communication User's Manual Release 05/99 PROFIBUS Connection 8.4 Configuring the SINEC L2 Network Scope The bus stations must be configured for the SINEC L2 bus connection. Configuration comprises: Station-specific parameters Example: Own station address, station type (active/passive), etc. Bus parameters Example: Transfer rate, protocol, etc. Connection parameters Connection channels and communication buffers are set up by these parameters. SW tools The SINEC L2-CP must be configured with the appropriate COM package for the PLC (except S5-95 L2). The TD/OP is configured with the COM TEXT configuration software. Preset values The majority of the parameters are preset to standard values in both the CP COM package and COM TEXT. These preset values are identical for both the COM package and COM TEXT. The necessary parameters for the TD/OP bus connection are listed in the following table. The table also indicates whether the parameter values configured in COM TEXT and the COM package must be identical. The exact meanings of the bus parameters are described in the SINEC L2 Equipment Manual. Communication User's Manual Release 05/99 8-9 PROFIBUS Connection 8.4.1 Configuring with COM TEXT Tables 8-1 to 8-3 list the interface parameters which must be set for a configuration with COM TEXT. The preset values offered by COM TEXT are also shown. The following parameters must be set: S Station-specific parameters (table 8-1), S Bus parameters (table 8-2), S Connection parameters (table 8-3). You can set the parameters in Configure Basic Settings TDOP Interfaces. Table 8-1 Station-specific parameters Parameter name Preset value in COM TEXT Range of values L2 user address 1 1 to 31 Baud rate1) 187.5 kbit/s 9.6 kbit/s 19.2 kbit/s 93.75 kbit/s 187.5 kbit/s 500 kbit/s 1.5 Mbit/s 1) The baud rate configured with COM TEXT must be identical to the value specified for the communications processor Table 8-2 Bus parameters Parameter name Retry counter Preset value in COM TEXT 1 Range of values 1 (fixed) Slot time 400 35 to 65535 bit times1) (but not less than 2 msec) Setup time 80 0 to 1024 bit times1) Minimum station delay 80 0 to 255 bit times1) Maximum station delay 400 0 to 1024 bit times1) Target rotation time 3000 0 to 1048576 bit times1) GAP updating factor 20 1 to 100 HSA 31 2 to 126 Default SAP 2) 60 0 to 63 1) The times are entered as "bit times". A bit time unit is the time needed to send one bit (reciprocal value of the data transfer rate); see SINEC L2 Equipment Manual 2) SAP: Service Access Point All the values configured with COM TEXT (exception: default SAP) must be identical to the values configured for the communications processor. 8-10 Communication User's Manual Release 05/99 PROFIBUS Connection Note The bus parameters are already preset with realistic values. Changing the preset values to implausible values can impair the functionality of the bus system. Table 8-3 Connection parameters Parameter name Remote parameter (PLC) - Address - SAP Local parameters (TD/OP) - SAP Meaning Range of values L2 station address of the PLC to which the TD/OP is allocated 1 to 126 (the PLC address must be different from the TD/OP station address) PLC-SAP: Communication with this TD/ 0 to 63 OP takes place via this address extension of the PLC TD/OP-SAP: Communication with the 0 to 63 allocated PLC takes place via this address (SAP must be different from the default extension of the TD/OP SAP) The values configured with COM TEXT do not necessarily need to be identical to the values configured for the communications processor. The following configured parameters must also be entered in the DB-ZU data block: S Station address of the TD/OP device (DL n+9) S SAP of the TD/OP device (DL n+10) The following parameters must also be configured for the allocated PLC: S L2 address of the PLC S PLC-SAP Communication User's Manual Release 05/99 8-11 PROFIBUS Connection 8.4.2 Configuring the Communications Processor Configuring the communications processor (CP), e.g. CP 5430, in the SIMATIC S5 is described in the SINEC L2 Equipment Manual. A Free Layer 2 Access must be configured for each TD/OP allocated to the PLC. The following connection parameters must be configured in the PLC CP: S Type S PRIO S SEND/REC-ANR FREE H Freely configurable (must be identical to DR n+10 in the DB-ZU entry for this TD/OP) S SAP The Service Access Point is freely configurable (must be identical to the PLC-SAP parameter in the Connection Parameters mask of COM TEXT). 8.4.3 Configuring the SIMATIC S5-95 L2 Configuring the SINEC L2 interface of the SIMATIC S5-95 L2 is described in the Equipment Manual. A Free Layer 2 Access must be configured for each TD/OP assigned to the PLC. This is achieved by editing the DB 1 data block in the PLC. A service access point (SAP) must be set up for each TD/OP connection in the send and receive directions. A "status byte send" (STBS) and a "status byte receive" (STBR) must be defined for each sending SAP. The numbers of these status bytes must be entered in the DB-ZU. Example for DB1: 0: 12: 24: 36: 48: 60: 72: 84: 96: 108: 114: 8-12 KS KS KS KS KS KS KS KS KS KS ='DB1 OBA: AI 0 ; OBI: '; =' ; OBC: CAP N CBP '; ='N ; SL2: TLN 2 S'; ='TA AKT BDR 187.5 HSA 10'; =' TRT 5120 SET 80 ST'; =' 440 SDT 1 80 SDT 2 40'; ='0 STBS 34 FY196 STBR 3'; ='4 FY198 STB 200 FY192 '; =' FMAE Y ; ERT: ERR MW1'; ='94 ; END '; Communication User's Manual Release 05/99 Parallel Connection 9 This chapter describes communication between the TD and the SIMATIC S5 with a parallel connection. Communication User's Manual Release 05/99 9-1 Parallel Connection 9.1 Overview The TD10 and TD20 text displays can be connected to PLCs in the SIMATIC S5 series with a parallel interface module. The connection between the TD device and the PLC is made via 16 digital inputs and one digital output on the parallel interface module. Since it is not possible to transfer data from the TD to the PLC, the TD's functionality is restricted as a result of the parallel connection. It is possible to connect several TDs to the same PLC at once. Figure 9-1 shows the standard configuration. Digital input module CPU TD Digital output module PLC SS2 Parallel interface module Parallel connection 16 1 Figure 9-1 Parallel connection: standard configuration PLC groups When a parallel connection is used, PLCs are subdivided into two groups with different communication structures. These groups are as follows: Group 1: PLC 90U PLC 100U (CPU 100, CPU 102) Group 2: PLC 95U PLC 100U (CPU 103) PLC 115U Interface The TD device with the parallel module is connected to a PLC equipped with 16 digital outputs and one digital input (e.g. via a digital I/O module). Communication Communication (i.e. data transfer) takes place in only one direction, namely from the PLC to the TD device. Only the strobe signal from the TD device is transferred to the PLC via a line. 9-2 Communication User's Manual Release 05/99 Parallel Connection Function The parallel connection between the PLC and the TD device can be used for: S 999 event messages with/without variables S 999 alarm messages with/without variables S Jobs Minimum system The connection can also be configured so that not all 16 data lines from the PLC to the TD are used. In this case, the following constraints apply: S Fewer than 999 messages can be configured S Only jobs without parameters S Only messages without variables Note You will require the information contained in chapter 9.4 (Structure of the Output Value to the TD) if you want to configure a minimum system. The number of data lines to be used must be programmed in COM TEXT. Required hardware and software The parallel connection requires the following hardware: S 1 TD10 or TD20, S 1 parallel module, S 1 PLC with 16 digital outputs and one digital input. The digital I/O module which is used must have a switching frequency of at least 100 Hz. The following PLCs can be used: - PLC 90U - PLC 95U - PLC 100U - PLC 115U (CPU 941 to CPU 944) - PLC 115U (CPU 941B to CPU 944B) S Programming unit, S Function block FB-TDOP:PAR for the particular PLC. Restrictions Since data can only be transferred from the PLC to the TD when a parallel connection is used, functions requiring a data request from the TD or a data transfer from the TD to the PLC cannot be utilized. Examples: S Variables on process screens or in the production report S Transfer of an alarm acknowledgment to the PLC S Transfer of a keyboard assignment to the PLC The number of variable words is restricted to 5 per message when group 1 PLCs are used. Communication User's Manual Release 05/99 9-3 Parallel Connection 9.2 Communication Structure Figures 9-2 and 9-3 show the principal procedures involved in transferring jobs or messages from the PLC to the TD for the various PLC groups. Group 1 PLCs DB-TD Interface area FB 54 2 Standard function block 6 Dout of parallel module 3 Output value 2 5 Input module Job mailbox 1 User program 4 3 Control and monitoring Din 0 to Din 14 of parallel module Output module Accesses performed by FB 54 Accesses performed by user program Figure 9-2 Job and message processing for group 1 PLCs A The user enters the job or message data in the free job mailbox of the DB-TD. A The standard function block (FB 54) reads the data in the job mailbox byte by byte, converts it to an output word and makes it available as an output value. A The output value is sent by the user to the output module. A The output module forwards the output value to the TD. A The TD interprets the received data and acknowledges the reception at the Dout output with a strobe signal. A The user uses an input module to read the TD strobe signal, and forwards it following the next call as a result of a logical operation to the standard function block. 9-4 Communication User's Manual Release 05/99 Parallel Connection Group 2 PLCs DB-TD Interface area 3 Standard function block 2 2 7 6 Input module Dout of parallel module 4 Output value 8 job mailboxes Control and monitoring Send mailbox 1 4 User program 5 Output module Din 0 to Din 14 of parallel module FB 54 DB-APP Job data block PLC jobs Events Accesses performed by FB 54 Accesses performed by user program Alarms Figure 9-3 Job and message processing for group 2 PLCs A The user makes the following entries: - Jobs and messages in the DB-APP job data block - A pointer to a job or message in a free job mailbox of the DB-TD A FB 54 copies the job/message data from the job data area to a send mailbox of the DB-TD. A FB 54 reads the data in the send mailbox byte by byte, converts it to an output word and makes it available as an output value. A The output value is sent by the user to the output module. A The output module forwards the output value to the TD. A The TD interprets the received data and acknowledges its reception at the Dout output with a strobe signal. Communication User's Manual Release 05/99 9-5 Parallel Connection 9.3 Setting up the Program and Data Areas Required program and data areas You need the following program and data areas in the PLC to operate a TD via the parallel module interface: - Standard function block FB 54 (TDOP:PAR), - Interface area DB-TD, - Job data area DB-APP (group 2 PLCs only). 9.3.1 Standard Function Block File name The standard function block FB 54 (TDOP:PAR) is stored on the floppy disk labeled COROS Standard Function Blocks in a file called S5TDnnST.S5D PLC-specific number (see chapter 2.2) Call Example program (group 1 PLCs) Example program (group 2 PLCs) 9-6 FB 54 is called during the cyclic user program. It does not have block parameters. :A I 0.5 :C DB 54 :JU FB54 NAME:TDOP:PAR :T FW 100 :C DB 54 :L DR 28 :T QB n :L DL 28 :T QB n+1 :JC= ERR A A A :A I 0.5 :L KY 54,0 :JU FB54 NAME:TDOP:PAR :T FW 100 :C DB 54 :L DR 28 :T QB n :L DL 28 :T QB n+1 :JC= ERR A A A A A A A A A Communication User's Manual Release 05/99 Parallel Connection Meaning of call A Scan strobe bit Dout of TD for signal status "1" (provide result of logical operation "RLO"). Group 1 PLCs A Open interface area DB-TD. Group 2 PLCs A Load number of DB-TD in DL of AKKU 1. A Call FB 54. Before returning to the user program, FB 54 transfers the status and the error number of the current job (see chapter A.3) to accumulator 1. In addition, the RLO logical result is set to "1" if an error is detected. A Store (FW 100) job status and error number so that this information will be available for later evaluation. A Load two bytes of output word consecutively and transfer to output module. (QBn = data bits Din00 to Din07 QBn+1 = data bits Din08 to Din15). The output values must also be transferred to the output word if an error occurs. A Branch to error routine if RLO = 1. Startup of standard FB An instruction which sets the startup bit in the interface area DB-TD must be programmed in the startup organization block. The startup bit is located among the control and acknowledge bits of the DB-TD. Group 1 PLCs: DW 40, bit 0 Group 2 PLCs: DW 64, bit 0 Control and acknowledge bits DL 15 ...8 Reserved Startup organization block R/ W R/ W R/ W R KH = User access: Resetting standard FB DR 7... 6 5 4 3 2 - - 0 R = Read W= Write - =Bit not allocated 0 1 ..0 R/ W R/ W 0 1 Bit = 1 (start FB 54 startup) The standard function block can also be reset by setting the startup bit in the cyclic program for one program cycle. Function block FB-TDOP:PAR resets the startup bit again. Communication User's Manual Release 05/99 9-7 Parallel Connection Example Edge-triggered reset for group 2 PLCs :A I 4.0 :AN F 4.0 := F 4.1 :A I 4.0 := F 4.0 :AN F 4.1 :JC= CONT :L KH 0001 :C DB DB-TD :T DW X CONT:.. .. .. X = Detecting wiring faults and open circuits Edge evaluation reset input Edge flag Reset pulse flag Update edge flag Reset input activated? If not, then continue Set reset bit Open DB-TD Transfer reset control bit 40 for group 1 PLCs 60 for group 2 PLCs During the startup procedure and after a data transfer has been completed, function block FB 54 sets all the outputs which are used to 1. The TD checks all the lines which are used during the startup to ensure that they have this level. If a fault is detected on a line, system message $514 "Line no. xx defective" is output (xx = 0 to 15). The TD then initiates a restart. Note In a minimum system with a reduced number of data lines, it is necessary to configure any lines which are not used in COM TEXT. They will otherwise be reported as defective when the check for open circuits is performed. Job status and error number of current job FB 54 stores the job/message status and an error (if one has occurred) in a word in the job mailbox of the DB-TD which is currently being processed. Location of word in DB-TD Group 1 PLCs: Group 2 PLCs: 9-8 The word contains the same information as accumulator 1 immediately after FB 54 is called. DB 39 DB m+4 in the current job mailbox Communication User's Manual Release 05/99 Parallel Connection Structure and allocation 15 - - - 12 11 10 8 X X X - X FB 54 enters an error number here if the job is terminated with an error. DR contains the value 0 if no errors occurred during processing. Please refer to chapter A.3 for a list of possible errors and remedies. 7 0 Error number X Bit not allocated Bit allocated (read access only) Error number in KF data format (see chapter A.3) FB call terminated with error: error no. FB call terminated without error: 0 job status in KM data format Bit = 1: Not processing any jobs Figure 9-4 Bit = 1: Processing job Bit = 1: Job terminated without error (low byte = 0) Bit = 1: Job terminated with error (low byte contains error no.) Contents of AKKU 1 after the standard FB call Communication User's Manual Release 05/99 9-9 Parallel Connection 9.3.2 Interface Area The minimum size which must be set up for the interface area DB-TD is dependent on the PLC that is used: - Group 1 PLCs: 60 data words, - Group 2 PLCs: 134 data words. If the DB-TD does not exist, or if it is too short, an error message will be output in the DR of AKKU 1 after the standard FB call. DB-TD (group 1 PLCs) DW no. 15 0 . . . . 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 . . . . . 57 58 59 Figure 9-5 9-10 DL 8 7 DR 0 Communication area Do not modify this area! 16-bit output value of FB-TDOP:PAR Reserved Reserved Reserved PLC identiConnection fier Job header Job data User job (message or PLC job) Job status, error number of PLC job Control and acknowledge bits Reserved Life bit monitoring (watchdog) Version number of standard FB Structure of the interface area for group 1 PLCs Communication User's Manual Release 05/99 Parallel Connection DB-TD (group 2 PLCs) DW 15 0 . . . . 27 28 29 30 31 32 33 34 35 36 . . . 39 40. . . . 59 60. . 63 64 65 . . . . . . 93 94 . . . 97 98 99 100. .. 133 Figure 9-6 DL 8 7 DR 0 Work area of standard function block Do not modify this area! 16-bit output value of FB-TDOP:PAR Reserved Reserved Reserved PLC identifier Connection Type DB number Assign as 0! Start address Reserved Job status, error number of job Second pointer 1st pointer to user job DB-APP First job Second job Third to seventh pointers Eighth pointer Eighth job Control and acknowledge bits Reserved Current job from job mailboxes 1 to 8 Life bit monitoring (watchdog) Version number of standard function block Send mailbox 34 words Structure of the interface area for group 2 PLCs Communication User's Manual Release 05/99 9-11 Parallel Connection Control and acknowledge bits DW 40 for group 1 PLCs, DW 64 for group 2 PLCs: Control and acknowledge bits are available in the DB-TD for the following functions: - Starting and monitoring the startup of the function block - Monitoring the acknowledgment signal status of the TD - Configuring the parity check for transferring jobs/messages to the TD Structure and allocation Control and acknowledge DR bits DL 15 ...8 R W Reserved User access: 7 6 5 4 3 R W R W R - 2 1 0 - R R W R = Read W = write - = Bit not allocated DR: Control and acknowledge bits (KM data format) 9-12 Bit no. Bit value Meaning 7 1 0 Switch on parity evaluation Switch off parity evaluation 6 1 0 Odd parity Even parity 5 x New value of TD acknowledgment signal status 4 x Old value of TD acknowledgment signal status 1 0 1 Startup of FB 54 has not started. FB 54 is in startup phase. 0 1 Setting this bit to "1" triggers a startup of FB 54. This bit must be set by the startup organization block. Communication User's Manual Release 05/99 Parallel Connection PLC identifier and connection identifier DW 31: FB 54 stores a PLC-specific identifier and a connection-specific identifier in this data word of the DB-TD. Structure and allocation PLC identiDL fier 15 Connection identifier 12 11 R R User access: DL: PLC identifier (BCD-coded) DR 4 3 8 7 R ..0 - R =Read - = Bit not allocated Value PLC CPU File 0 1 PLC 100U CPU103 S5TD01ST.S5D 0 2 PLC 90U PLC 100U CPU 100, CPU 102 S5TD02ST.S5D 0 3 PLC 95U S5TD03ST.S5D 5 0 PLC 115U CPU 941, 942, 943, 944 S5TD50ST.S5D The PLC identifier is identical to the two digits in the file name DR: Connection identifier (BCD-coded) Communication User's Manual Release 05/99 Bit Connection 1 AS 511 connection 2 Parallel connection 3 Free ASCII protocol (PU-Interface) 4 Free ASCII protocol (CP 521 SI) 5 Free ASCII protocol (CP 523) 6 L1 connection 7 L2 connection 9-13 Parallel Connection Version number of FB 54 Structure of version number in DB-TD DW 59 for group 1 PLCs, DW 99 for group 2 PLCs: The version number of FB 54 is stored in this data word of the DB-TD. Release status Identification letDR ter DL 15 8 R User access: 7 6 5 ..0 0 R R = Read DL: Release status of FB 54 Value: 0 to 99 DR: Identification letter The identification letter (A to D) of the library number is stored in bits 6 and 7. 9.3.3 Value Identification letter 00 01 10 11 A B C D Job Data Area (group 2 PLCs only) You should only set up the job data area DB-APP for group 2 PLCs. It contains the job and message data which must be transferred to the TD. The size of the job data area depends on the number of jobs and messages which are entered. The number of the data block DB-APP which is used must not be the same as that of the DB-TD. 9-14 Communication User's Manual Release 05/99 Parallel Connection 9.4 Messages and PLC Jobs The configuration options and the procedures for triggering and transferring messages and PLC jobs are described below. 9.4.1 Messages Configuration Options Up to 999 event messages and 999 alarm messages, each with or without variables, can be configured for the TD. During the configuration procedure in COM TEXT, each message is assigned a unique message number (1 to 999), via which it can be triggered by the PLC. Note Event number 0 is a configurable standby message (variables are not permitted). During the startup of the TD, the configured message text is output instead of the fixed firmware standby message. PLC jobs PLC jobs are used to trigger certain permanently specified functions via a user program. Examples: - Switch operating mode of TD - Select special screens - Set date/time Please refer to appendix B for a list of permissible PLC jobs. Communication User's Manual Release 05/99 9-15 Parallel Connection 9.4.2 Triggering Messages and PLC Jobs Group 1 PLCs Data areas DW 32 to DW 39 of the DB-TD are made available for the job entry (PLC job or message). The job or message data are entered by the user in the job mailbox in order to trigger a job or a message. A PLC job consists of up to 4 words (job header and up to three parameters). A message consists of up to 7 words (message header and any message variables). DW Job mailbox User program DB-TD 32 Job header 33 34 35 PLC job or 36 37 message 38 39 Job status, error number of job After the TD has accepted the job or the message and transferred all the job parameters or message variables, FB 54 overwrites the first data word in the job mailbox with the value 0. A new job (or message) must not be entered until the first data word in the job mailbox has the value 0. 9-16 Communication User's Manual Release 05/99 Parallel Connection Group 2 PLCs Data areas DW 32 to DW 63 of the DB-TD are divided into 8 job mailboxes with equal access rights, each with a size of four words. The user program triggers a job or a message by entering a pointer in any free job mailbox. Pointer to job The pointer indicates the first data word in the DB-APP (job data area with job/message data). Using pointers in the job mailboxes of the DB-TD allows the jobs/messages to be entered in the DB-APP without gaps. DB-TD 8 job mailboxes Pointer to Pointer to Pointer to User program DB-APP e.g. Job Event message Alarm message .. . .. . After the TD has accepted the job or the message and transferred all the job parameters or message variables, FB 54 deletes the pointer from the job mailbox. This causes the first data word in the mailbox to be overwritten with the value 0. A new job (pointer to a job or message) must not be entered until the first data word in the mailbox has the value 0 (see Structure of a Job Mailbox, DW n+1). Structure of a job mailbox for group 2 PLCs Each of the eight job mailboxes has the following structure: DL 15... DR ..8 7.. DW n+0 KH=00 DB number DW n+1 Assign as 0! Start address DW n+2 DW n+3 ..0 Reserved Job status, error number of job DB number Number of the DB-APP (the job/message data are located in DB-APP). Permissible values: 10 to 255 Start address Number of the first data word of a job/message in the DB-APP. Permissible values: 0 to 255 Job status, error number The job status and the error number of the current job are described in chapter 10.2.5. Communication User's Manual Release 05/99 9-17 Parallel Connection 9.4.3 Structure of Event and Alarm Messages Figure 9-7 shows the basic structure of event and alarm messages. DW n+0 15 14 13 12 11 10 9.. ..0 0 0 X X X X (1 to 999) n+1 n+2 Variable word 1 n+3 Variable word 2 n+4 Variable word 3 .. . Message header Variable area .. . Variable word n Figure 9-7 Message header Message structure With group 2 PLCs, the pointer in the job mailbox of the DB-TD indicates the job header. You must enter the following information here: S S S Message number (1 to 999) Message status "Event" or "alarm" mode 15 14 13 12 11 10 9.. 0 0 X X X Message number (1 to 999) 0 0 1 1 0 1 0 1 Arriving Departing Acknowledged Reserved Message status Event message Alarm message Mode 0 1 1 0 S ..0 X Number of variable words (DW n+1) - Group 1 PLCs: 0 to 5 - Group 2 PLCs: 0 to 31 If the message does not contain variables, specify the value 0 as the number of variables. The variable area is then not transferred to the TD. The variables can only be updated by transferring the message again ("arriving" status, with new variable values). Variable area The variable area is only required if messages are configured with variables. Variable word 1 to variable word n: Specify the values of the variables in the PLC here. 9-18 Communication User's Manual Release 05/99 Parallel Connection 9.4.4 Structure of the Output Value to the TD PLC jobs and messages are transferred to the TD word by word (output value of DW 28 in DB-TD). 15 14 13 12 11... 0 P Mode ..0 Data Din 0 Parallel module Din 14 Dout Assignment of digital inputs Bits 0 to 14 of the output value are assigned to digital inputs Din 0 to Din 14 of the parallel module. Parity The parity bit is used to check the validity of the transferred data. Proceed as follows if you need to evaluate the parity bit: Switch on the parity evaluation in the control and acknowledge bits of the DB-TD, and set the parity to even/odd. Configure the parity evaluation in COM TEXT (parity: even/odd) so that the TD performs a parity check. Mode Bits 12 and 13 are used to transfer the type of job to the TD. Bit Data 13 12 Meaning 0 0 Reserved 0 1 Event message 1 0 Alarm message Bits 0 to 11 are used to transfer the job/message data to the TD. Communication User's Manual Release 05/99 9-19 Parallel Connection 9.4.5 Transferring Messages Transferring message header When messages are transferred, the message header is transferred first byte by byte, followed by the message variables (if configured). 15 14 13 12 11 10 9... 0 P Mode Z ...0 Output value (DW 28 of DB-TD) Message number Message number (1 to 999) Message status Event or alarm mode Parity bit (if parity configured) Transferring variables 15 14 13 0 P ...8 7... Number ...0 Output value (DW 28 of DB-TD) Variable Variables are transferred to the TD byte by byte. Number of variable bytes of a message still to be transferred. Number is decremented by "1" each time a transfer occurs (i.e. number has the value 0 when the last variable is transferred). 9.4.6 Transferring PLC Jobs Transferring job header 15 14 13 12 11 10 8 0 P Mode - Number When PLC jobs are transferred, the job header is transferred first, followed by the job parameters (if any). 7... ...0 Output value (DW 28 of DB-TD) - Bit not allocated. Least significant byte of the job number specified by you in the job header Number of subsequent parameter bytes. Number = 0 means that the job transfer is complete. Other numbers cause the next job parameters to be transferred byte by byte Mode: PLC jobs Parity bit Job number Transferring job parameters 15 14 13 12 11 10 8 0 P Mode - Number 9-20 7... ...0 Parameter byte Output value (DW 28 of DB-TD) - Bit not allocated. Parameters are transferred to the TD byte by byte. Number of parameter bytes still to be transferred. Number is decremented by 1 each time a transfer occurs (i.e. number has the value 0 when the last parameter byte is transferred). Communication User's Manual Release 05/99 Parallel Connection 9.5 Configuring with COM TEXT Table 9-1 lists the interface parameters which must be set for a configuration with COM TEXT. The preset values offered by COM TEXT are also shown. You can set the parameters in Configure Basic Settings TDOP Interfaces. Table 9-1 Interface parameters for the parallel connection Parameter name Preset value in COM TEXT Range of values Parity None Even; odd; none 50 10 ms (1...500) 10 ms Lines 1...9 and 11...14 12) 0; 1 Lines 10 and 15 1 Fixed setting Character delay time1) 1) Maximum time allowed between two received characters. If a character is not received by the TD within this time, a system message is output. 2) 0 = line not required; 1 = line required. The interface parameters specified for the TD must be identical to the values configured for the SIMATIC S5. Communication User's Manual Release 05/99 9-21 Parallel Connection 9.6 Connection of Several Text Displays to One PLC Wiring of transfer line Several devices can be operated in parallel when the parallel interface is used. If only the transfer line of one device is wired, transfer errors may occur when rapid PLC cycles are used. Use sufficiently slow PLC cycles to prevent this. The transfer line of every device should be wired to ensure reliable data transfers. Preparation A link between all the transfer lines and one valid RLO must be established for the standard function block before FB 54 is called. Example: A A S AN AN R A Ix.y Ix.z F100.0 Ex.y Ex.z F100.0 F100.0 Transfer line, device Transfer line, device Intermediate flag for Transfer line, device Transfer line, device Intermediate flag for Generate RLO from intermediate flag 1 2 RLO 1 2 RLO 9.7 Interrupt Processing Saving scratch flags When programming process or timed-interrupt organization blocks, make sure that any scratch flags you use: for group 1 PLCs: FY106 to FY127 for group 2 PLCs: FY218 to FY255 are saved at the beginning of the interrupt block and reloaded again before the interrupt block is exited. 9-22 Communication User's Manual Release 05/99 Communication Data Areas 10 This chapter describes in detail the data blocks that are required for communication. In doing so, it explains in detail the areas relevant to the user and how they are used. Communication User's Manual Release 05/99 10-1 Communication Data Areas 10.1 The Interface Area Function The interface area is a data block that represents the interface between the application program and the standard FB. It contains data and pointers to data areas that are required for exchange of data between the PLC and the operating unit. A separate interface area has to be created for each operating unit connected. Minimum length The table below details the minimum data block length for the various types of connection. Connection Minimum Length in Data Words AS511 (Group 1) 70 AS511 (Group 2) 185 FAP 185 SINEC L1 228 PROFIBUS 256 PROFIBUS-DP 169 PROFIBUS-DP with IM308C 256 Note The data block for the interface area must be set up in the CPU RAM. DX extended data blocks are not permissible. The DB number must be greater than or equal to 10. 10-2 Communication User's Manual Release 05/99 Communication Data Areas 10.2 Structure and Description of the Interface Area Types of connection The description below applies to the following types of connection: - AS511, Group 2 PLCs AG 95U, AG 100U (CPU 103), AG115U, AG 135U and AG 155U - FAP - PROFIBUS-DP - SINEC L1 - PROFIBUS Setting up the interface area Set up the data block for the interface area with the required length for the type of connection you are using. If you do not use any of the data areas specified in the data block, you do not need to make any entries. The data areas required by the standard function block are present once the data block has been set up. Table 10-1 DW 0-9 Assignment of Interface Area for Group 2 PLCs DL DR Standard FB communication area Usage - This area must not be altered. 10 Data type 11 0 12 Data type 14 0 15 Communication User's Manual Release 05/99 DB/DX number Start address Length in words 16 Data type 17 0 19-28 Start address Length in words 13 18 DB/DX number DB/DX number Start address Length in words Reserved Pointer to recipe mailbox; only textbased display units write to these data words. For explanation refer to chapter 11.7.3. Pointer to successive recipe mailbox; only text based display text-based units write to these data words. For explanation refer to chapter 11.7.3. Pointer to recipe number mailbox; text based disdis only text-based play units write to these data words. For explanation refer to chapter 11.7.3. - 10-3 Communication Data Areas Table 10-1 Assignment of Interface Area for Group 2 PLCs, continued DW DL 29 DR 254 DB number 31 PLC ID Connection ID 32 Data type 33 0 The standard FB writes to DW 31. 1st job mailbox DB/DX number Start address 34 Reserved Job status Error number 36-39 2nd job mailbox As DW 32-35 40-43 3rd job mailbox As DW 32-35 44-47 4th job mailbox As DW 32-35 48-51 5th job mailbox As DW 32-35 52-55 6th job mailbox As DW 32-35 56-59 7th job mailbox As DW 32-35 60-63 8th job mailbox As DW 32-35 64 Synchronization of data transfer (see chapter 11.7.4) Startup of standard FB, operating mode Control and acknowledgment bit 1 65 Synchronization of date, time, scheduler Reserved Control and acknowledgment bit 2 66 Not assigned Hour (0...23) Time (BCD format) 67 Minute (0 - 59) Second (0 - 59) 68 Not assigned 69 Not assigned Day of week (1...7) 70 Day of month (1 - 31) Month (1 - 12) 71 Year (0 - 99) Not assigned 72-74 48 scheduler bits 75-93 Reserved 94 10-4 The operating unit writes to DW 29 and 30. Operating unit firmware version 30 35 Usage 0 Parameter 1 96 Parameter 2 97 Parameter 3 To be specified by user in configuration. - Job number 95 Date (BCD format) Copy of last PLC job processed d Communication User's Manual Release 05/99 Communication Data Areas Table 10-1 Assignment of Interface Area for Group 2 PLCs, continued DW DL DR 98 Life bit monitoring (Watchdog) 99 Standard FB version number 100 Reserved Usage Default 200 (KF format) The standard FB writes to DW 99. - 101 - 102 Data handling block error messages (PROFIBUS only) 103 - 255 Reserved To be analyzed by user - (Length according to connection type) If a pointer to a data area is specified in the interface area, different data types are permissible for that data area. Table 10-2 lists the permissible data types. Table 10-2 Permissible Data Types Data Type 0 DB-type data block 1 DX-type extended data 2 Flag area DB/DX Number 10 to 255 block1) 10 to 255 Not analyzed 1) Only possible with S5-115U with CPU 945, S5-135U and S5-155U. Note The communication area and all areas not used by the connection concerned are reserved areas. Writing to reserved areas is illegal for the application program. Communication User's Manual Release 05/99 10-5 Communication Data Areas 10.2.1 Startup of Standard Function Block and Operating Mode Assignment of bits in DR 64 The standard FB is activated by means of Bit 0. Bit 1 shows the current status of the standard FB and Bit 2 the operating mode of the operating unit. Figure 10-1 shows the structure of control and acknowledgement bit 1. DR 64 7 - - - - 2 1 0 - R R W FB startup FB status Operating mode of the operating unit - = Not assigned R = Read only W = Read and Write possible Figure 10-1 Significance of bits Starting the standard FB Structure of Control and Acknowledgment Bit 1 (DR 64 in interface area) Bit 0 = 1 Activate FB startup Bit 1 = 1 FB startup in progress Bit 2 = 0 Bit 2 = 1 Operating unit is online Operating unit is offline The standard function block has to be started by means of the rightmost byte of data word 64 in the interface area. The startup organization block used (OB 20/21/22) must write the value 1 (KF format) to data word 64 in order to initiate FB startup and reset all other control bits. Example: OB 20/21/22 :C DB 51 51 = DB number of interface area :L KF 1 :T FW 64 In order to reset the operating unit and the standard FB, Bit 0 in this data word may also be set by the cyclic program. Standard FB error message 10-6 Check AKKU 1 to see if the standard FB has issued an error message. If an error occurs during processing of the function block, the logical operation result is set to the value 1. This allows you to branch to your own error analysis function using the command JC. Communication User's Manual Release 05/99 Communication Data Areas After the standard FB call, AKKU 1 contains the current job status and the number of any error that has occurred. The contents of AKKU 1 are illustrated in figure 10-2. 15 - - - 12 11 10 8 X X X - X 7 0 Error number X Bit is not assigned Bit is assigned (Read-only) Error number in KF data format (see chapter A.3) FB call terminated with error: error no. FB call completed without error: 0 Job status in KM data format Bit = 1 No job being processed Figure 10-2 Restarting Bit = 1 Job being processed Bit = 1 Job completed without error (low byte is 0) Bit = 1 Job terminated with error (low byte contains error no.) Contents of AKKU 1 after Invoking Standard FB If the PLC restart (automatic or manual) is to be used, Bit 0 "Initiate FB startup" in DW 64 of the interface area must not be set directly by organization block OB21 or OB22. Set the bit indirectly by means of a flag so that communication with the operating unit can be reliably resumed. Example program: Block Program Code OB 21/22 :AN F 99.0 :S F 99.0 OB 1 :A F 99.0 :JC PB 51 :JU FB xx PB 51 Explanation Standard FB call :R F 99.0 :C DB 51 Interface area call :L KF 0001 :T DW 64 :BE Restart not possible with AG 115U. Communication User's Manual Release 05/99 10-7 Communication Data Areas Operating mode bit The operating unit overwrites Bit 2 in DW 64 for the operating mode during startup and sets it to 0. If the operating unit is switched off-line by operator input on the operating unit, there is no guarantee that the operating unit will be able to set Bit 2 in DW 64 to 1. If the PLC sets the acknowledgment bit to 1, the PLC program can query whether the bit has been reset to 0, i.e. whether the operating unit is still off-line or is in communication contact with the PLC again. 10-8 Communication User's Manual Release 05/99 Communication Data Areas Transferring Date and Time to PLC DW 66-71 Transfer of date and time from the operating unit to the PLC can be initiated by PLC job 41. PLC job 41 writes the date and time to the interface area where they can be analyzed by the STEP5 program. Figure 10-3 shows the layout of the data area in the interface area. All data is in BCD format. DL DW 15 66 67 DR 8 7 Hour (0...23) Minute (0...59) Second (0 - 59) 68 Not assigned 69 Not assigned Day of week (1...7) 70 Day of month (1...31) Month (1 - 12) 71 Year (0...99) Not assigned Figure 10-3 Synchronization of transfer 0 Not assigned Time Transferring date and time Date 10.2.2 Layout of Data Area for Time and Date Control and acknowledgment bit 2 in the interface area (DW 65) synchronize the transfer of date and time. If the operating unit has transferred a new date or time to the PLC by means of the PLC job, it sets the bits shown in figure 10-4. After analysis of the date or time, the STEP5 program should reset the bits in order that the next transmission can be detected. DL 65 15 14 13 12 W W W - - Figure 10-4 - - 8 - - = Not assigned W = Read and Write possible Bit 13 = 1: New time Bit 14 = 1: New date Synchronization Bits for Date and Time Note PLC job 41 must not be invoked cyclically or at intervals of less than 5 seconds or else communication with the operating unit will be overloaded. In such cases, error number 502 or 503 will appear on the operating unit. Communication User's Manual Release 05/99 10-9 Communication Data Areas 10.2.3 Analysing Scheduler Bits Operating units usable The use of schedulers is only possible with the OP15 and OP17. A scheduler is a periodically recurring (hourly, daily, weekly, annually) time at which a defined function is executed, e.g. - printing out the message buffer - printing out a screen - selecting a screen. When a scheduler time is reached on the OP, the corresponding bit is set in this area. DW 15 72 16 Bit no. 1 73 32 17 74 48 33 0 Scheduler no. Transferring scheduler times to the PLC (only if configured with COM TEXT only) Input fields for scheduler times linked to the process and therefore with a link to the PLC can be created in screen entries. If a scheduler time is altered by operator input on the OP, the new scheduler time is then transferred to the PLC. Scheduler type Structure of process link: DR DR Sunday = 0 Monday = 1 : : Saturday = 6 DR Day of week 10-10 DR Communication User's Manual Release 05/99 Communication Data Areas Note The process link for the scheduler types "weekly" and "annually" must extend to a length of 2 data words. If not, system message $635 will be returned after the scheduler time is entered. Synchronization of transfer Control and acknowledgment bit 2 in the interface area (DW 65) synchronize the transfer of the scheduler bits. If the OP has set a new scheduler bit in the interface area, it also sets the corresponding bit in control and acknowledgement bit 2 (see figure 10-5). You therefore only need to poll this bit in order to be able to detect a change in the scheduler bits. DL 65 15 14 13 12 W W W - - - - 8 - - = Not assigned W = Read and Write possible Bit 15 = 1: Figure 10-5 Communication User's Manual Release 05/99 New scheduler bits Synchronization Bits for Schedulers 10-11 Communication Data Areas 10.2.4 Analyzable Areas of the Interface Area Operating unit entries The operating unit enters information in DW 29 and 30 that can be analyzed by the application program. Writing to these data words is illegal for the application program. Operating unit firmware version DW 29: The operating unit stores its firmware version number in DW 29. You can read that information with the STEP5 program. Number of interface area DW 30, DL: Here, the operating unit enters the fixed value 254. At startup the standard function block checks whether code number 254 is entered in this data word. If it is not, the standard FB aborts processing and returns an error message. DW 30, DR: Here, the operating unit enters the number of the data block for the interface area configured in ProTool or COM TEXT. Standard FB entries The standard FB enters information in DW 31 and 99 that can be analyzed by the application program. Writing to these data words is illegal for the application program. PLC and connection ID DW 31: The standard function block enters an ID for the PLC type and for the connection type in the interface area. The structure of the data word is shown in figure 10-6. Details of the assignment are shown in tables 10-3 and 10-4. The PLC ID shown in table 10-4 matches the file name for the standard function block. Example: PLC ID = 69 File name for standard function block = S5TD69ST.S5D Figure 10-6 10-12 Assignment of DW 31 in Interface Area Communication User's Manual Release 05/99 Communication Data Areas Table 10-3 Connection ID Value Connection 1 AS511 (via CPU interface SI1) 2 Parallel 3 FAP (via CPU interface SI2) 4 FAP (via CP 521 SI) 5 FAP (via CP 523) 6 SINEC L1 (via CP 530) 7 PROFIBUS 9 PROFIBUS-DP Table 10-4 PLC ID PLC PLC ID (BCD format) Bit 12-15 0 Standard FB version number CPU Bit 8-11 2 AG 90 U AG 100 U CPU 100, CPU 102 0 3 AG 95 U 6ES5 095-8MB02 with PROFIBUS 0 1 AG 100 U CPU 103 5 0 AG 115 U CPU 941 - 944 5 1 AG 115 U CPU 945 2 4 AG 135 U CPU 922 9, 928-3UA12, 928B 6 9 AG 155 U CPU 946/947, 948 DW 99 The standard function block enters its version number in this data word. ... 15 8 7 6 5 0 Version number (0 to 99) R R Not assigned DW 99 in KF format (fixed-point) (Code letter from standard library no.) (R = Read only) Communication User's Manual Release 05/99 A B C D 0 0 1 1 0 1 0 1 10-13 Communication Data Areas Data handling block error messages DW 101, 102: In the case of a PROFIBUS connection via CP5430/31 the data handling blocks store any error messages in these data words. A detailed description of the errors is given in the SINEC manual. Layout: DL DW 101 DW 102 Life bit monitoring DR ANZW Not assigned PAFE DW 98 At regular intervals the operating unit inverts a bit in the interface area that is not accessible to the user. The standard FB counts how often it is invoked between two inversions of that bit. If the number of calls (cycles) exceeds a predefined figure, the standard FB passes error message 115 to AKKU 1. You enter the maximum number of FB calls permitted without the error message being triggered in this data word. If the data word is overwritten with the value 0, the standard FB enters the default figure of 200. If the application program cycle times are too short, error 115 can result even if the connection is good. In such cases, enter a higher figure for the maximum number of calls, e.g. 2000. 10-14 Communication User's Manual Release 05/99 Communication Data Areas 10.2.5 Use of PLC Jobs Description PLC jobs can be used to initiate functions on the operating unit from the STEP5 program. Such functions include the following: - displaying screens - setting date and time - printing out the message buffer - altering general settings A PLC job is identified by its job number. Depending on the PLC job in question, up to three parameters can then be specified. The PLC jobs possible are listed in appendix B together with their parameters. PLC job structure A PLC job always consists of 4 data words. The first data word contains the job number. Data words 2 to 4 are used to transfer up to three parameters depending on the function in question. The basic structure of a PLC job is shown in figure 10-7. The 4 data words for the PLC job can be stored at any location on the PLC. Figure 10-7 Job mailboxes in the interface area Structure of a PLC Job A job mailbox in the interface area contains a pointer to the address at which the actual PLC job is located. When you want to initiate a PLC job, you enter the pointer in the job mailbox. The interface area contains 8 job mailboxes in all. This means that multiple PLC jobs can be initiated in succession. The order in which the PLC jobs are processed by the operating unit does not, however, have to be the same as the order in which they are placed in the interface area. Initiating a PLC job When you enter a pointer to a PLC job in the interface area, the standard FB initiates transfer to the operating unit. You should first enter the actual data for the PLC job in the relevant memory area, e.g. a data block. Then enter the pointer to the memory area in the job mailbox. When doing so, first enter data in DW 33 and then in DW32. Communication User's Manual Release 05/99 10-15 Communication Data Areas Once the operating unit has received the PLC job, the pointer is deleted from the job mailbox. This means that the standard FB overwrites the first data word with the value "0". Only then has the standard FB fully processed the PLC job thus allowing the job mailbox to be written to by the STEP5 program again. The operating unit does not issue any acknowledgment that the PLC job is being processed or has in fact been executed. Example of PLC job Below is an example based on PLC job 51, "Select Screen".Screen number 5 is to be activated on an OP17 and the cursor is positioned on screen entry 0 in the second field. Figure 10-8 shows a schematic representation of the assignment of the first job mailbox. The actual PLC job is located in data block 100 from DW 4 onwards. Table 10-5 lists the associated STEP5 program. Interface area DB51 DW32 DW33 0 100 0 4 Pointer to PLC job DW34 DB100 DW35 DW4 DW6 5 0 DW7 2 DW5 Figure 10-8 10-16 51 0 Assignment of 1st Job Mailbox, DW 32 to DW 35 Communication User's Manual Release 05/99 Communication Data Areas Table 10-5 Example Program for PLC Job Block Program Code OB 1 :A F1.0 :JC FB 41 FB 41 :C DB 51 :L DW 32 Explanation Activate PLC job, set flag once only Only enter job if the job mailbox is empty :L KF +0 :> Parameters". Communication User's Manual Release 05/99 System Messages Message Cause Remedy 200 Battery power no longer sufficient for internal data buffer Replace battery. on operating unit. Note: Battery on memory is discharged, data may no longer be Replace the battery while the unit is readable. switched on in order to prevent loss of data. 201 Hardware fault on timer module. Send unit for repair. 202 Error reading date Send unit for repair. 203 Error reading time Send unit for repair. 204 Error reading day Send unit for repair. 205 Printer not ready and internal storage of print jobs is no longer possible. Make sure printer is ready or disable message logging. 206 Printer not ready. Print job placed in temporary storage. Make sure printer is ready. 207 Buffer printout or print screen function cancelled. Check printer, cable and connectors. 210 Internal error Press restart button. Operating unit co-ordination area not receivable during startup. 212 Internal error Restart operating unit. Bit for changing operating mode has been inverted erroneously. 213 Offline mode not possible at present. Try change of operating mode again later. 214 The job number sent by the PLC or configured in a function field is too large. Check PLC program and configured screen. 217, 218 Overlapping specified/actual values. Check configuration of actual/specified values in the process link. 219 Hardware fault: relay or port could not be set. Send unit for repair. 220 Print buffer overflow due to overload. Printout not possible. Messages have been lost. 221 Print buffer overflow due to overload. Printout of overflow messages not possible. Messages have been lost. 222 Warning: the event message buffer is full apart from the specified remaining buffer space. Clear the buffer or configure a smaller figure for the remaining buffer space. 224 The event message buffer has overflowed. If a printer is connected and buffer overflow has been configured, the overflow messages will automatically be printed out. 225 Warning: the alarm message buffer is full apart from the specified remaining buffer space. Clear the buffer or configure a smaller figure for the remaining buffer space. 227 The alarm message buffer has overflowed. If a printer is connected and buffer overflow has been configured, the overflow messages will automatically be printed out. 229 No keyboard connected (internal keyboard with ribbon cable). 230 The minimum value is greater than the maximum value for tag limits. Correct the limit settings. 231 The minimum value is equal to the maximum value for tag scales. Correct the scale on the operating unit. 250 You can not switch to the desired operating mode. Check parameters of PLC job. Communication User's Manual Release 05/99 A-5 System Messages Message Cause Remedy 251 Error transferring data record to PLC. Check recipe configuration. 252 Function can not be executed as a function of the same group has not yet been completed (e.g.: setpoint entry is active, password list can not be opened). Wait until preceding function has been completed (or terminate function) and then invoke desired function again. 253 Access to data medium is not possible. 1. Floppy drive not present, 2. Floppy is read only, 3. Disk is not formatted. 254 The disk must be formatted before a data record can be saved for the first time. First format the disk. 255 Not enough space on disk for this data record. Delete data records that are no longer required. 256 Not enough system memory available to execute the desired function. Try activating function again. Check configuration. 1. Move function to a different screen 2. Simplify screen structure 3. Do not use trends on screen in conjunction with this function 257 Data record has been stored with a different version stamp than defined in the current configuration. If the data records are to continue to be used, the old version number must be entered in the recipe configuration. Caution: The structure of the recipe determines the assignment of data to a data record. 258 A parameter record has been selected as a recipe. Parameter records can not be edited directly. Only individual data records of a parameter record can be edited. 259 Transfer of a data record to the PLC is taking too long. Check PLC program. In the case of large data records no modifications are necessary as the function is being processed correctly. Example: PLC is not acknowledging data record or very large data records are being transferred. 260 Operating mode of PLC does not match the configuration. Change operating mode of PLC. 261 The data in this data record is no longer consistent and it can therefore no longer be used. Edit data record and check that all entries are correct. 262 Password or query window already in use by another function. Complete first function then execute desired function again. 263 Specified remaining buffer space for messages has been reached! Configure smaller remaining buffer, delete event/alarm message buffers. 264 Message buffer overflow. The overflow messages are printed out if so specified in the configuration. 265 The number of passwords issued has already reached 50. You can not enter any more passwords. If you wish to issue additional passwords, you must first delete some of the existing ones. 266 The field configured in the PLC job does not exist. Change the parameters of the PLC job and retransfer the configuration. 303 Fault in connection with PLC. Check PLC status. S5: this error may occur when transferring large data records. In such cases the watchdog is activated. S5: set value in data word 98 to at least 2000. A-6 Communication User's Manual Release 05/99 System Messages Message Cause 304 Illegal S5 job number or job parameters in a function field. 305 Data block number missing. Set up data block or change configuration. 306 Incorrect CPU specified under "PLC -> Parameters". Change configuration and retransfer. 307 ... 311 Tag not present on PLC Check configuration of process link. 312 The printer is already processing a print job and can not accept this next job at present. Wait until the printer is free again and repeat the print job. 313 Information message: print job completed. 314 S7 diagnostics buffer not present. 315 No help text available. 316 Active password level insufficient for menu item Enter password with higher password level. 317 Input is password protected. Enter password. 318 Incorrect password entered when attempting to log in. 319 An existing password was entered when editing the password. 320 You have attempted to alter the level of or delete the supervisor password. 321 You have attempted to alter the level of an invalid password. First enter the password then specify the level. 322 The password entered is too short. Password must be at least three characters long. 323 You have pressed <- Statistics or Message Text -> on a buffer screen but there is no entry for the current message. -- 324 The entry number specified does not exist on the selected screen. -- 325 The FM/NC (= MPI peer) has no alarm messages buffer. A node does not have the required functional capability. 326 You have attempted to collect a recipe number other than the active recipe number from the PLC. Select the appropriate recipe number. 327 There is no recipe number when a recipe is selected. Configure missing recipe or select a different one. 328 Recipe number >99 when selecting a recipe. 329 The same number has been entered for source and destination on the "Data Record Processing and Transmission" screen. 330 Full details of source and destination not entered when initiating data record transfer function. 331 The data record specified as the source does not exist. 332 Data record number >99 when selecting a recipe screen. 333 Data record number not present when selecting a recipe screen. 335 Information message: alarm message will be suppressed. 336 No process screens have been configured. 337 No recipes have been configured. Communication User's Manual Release 05/99 Remedy The CPU has no diagnostics buffer (hardware problem). Enter a different password. Enter differing numbers. A-7 System Messages Message Cause Remedy 338 Operating unit can not establish a connection with the printer. 1. Printer is not switched on, 2. Printer is not ready, 3. Connecting lead between printer <--> operating unit is not connected or defective, 4. No interface module inserted. 339 Startup completed. 340 Status processing in progress on PU/PC. The operating unit can not be used while this is going on. 341 Internal error Communication with PLC has been resumed. With non-Siemens connections: data block error 342 Network node has illegal address. Max. addresses: S7-MPI: 32 PROFIBUS-DP: 128 343 You are attempting to edit a tag of a type that can not be edited in a recipe: currently applies to ARRAY tags only. 350 PLC is performing initialization. You can not enter any setpoints during initialization. Scrolling of screens is possible. 351 PLC has completed initialization. You can resume entering setpoints once this message has appeared. 352 You are attempting to select a screen that does not exist or has been disabled by the function Hide. 353 The minimum value is greater than the maximum value for tag scales. 354 You are attempting to enter a value in an input field when Log on with a higher password level. the current password level is insufficient for input. 355 Entry of this tag has not been configured for the current PLC mode. 356 A print function has been initiated on the operating unit. When attempting to print it has been ascertained that the printer is offline. This operating mode may be set by the PLC programmer. Minimum and maximum values are being confused by operating unit. To prevent this, enter correct minimum and maximum values. Switch the printer online. Check the connection between the operating unit and the printer. Has the printer been connected to the correct interface? 357 You are attempting to enter a setpoint that contains an illegal character. 358 The operating unit is currently executing a function Wait until the function has been completed. which does not permit use of the operating unit while it is This message may appear in the case of in progress. recipe functions, for example. A-8 Enter the value correctly. Communication User's Manual Release 05/99 System Messages Message Cause 359 The CPU is in STOP mode. System error message issued if S7 messages not available. The S7 CPU is in STOP mode. This may occur if - there is an internal fault on the CPU - the mode switch is operated - STEP 7 is set in the "Mode" dialog box 360 The S7 CPU is in STOP mode due to an error in the S7 PLC program. 361 The S7 CPU is defective. 365 A multiplex index is outside the defined range. 366 - The mode you require is already active. - The CPU key-operated switch is not set to RUN-P. - The command is not supported by the CPU. Remedy Switch S7 CPU back to RUN mode. Correct the error in the S7 PLC program and switch to RUN mode. 367 Set PLC parameters are incorrect. 368 Communication error S7 module; error class and error number will be read out. 369 The command cannot be executed in the S7 mode selected. 370 Hard copy print-out has been cancelled manually. 371 Print function disabled at present. 372 The function started has been cancelled. 383 Information message: transfer of data records completed. 384 Data record required is not on data medium. Check the data record selection parameters (recipe, data record name, data medium) or use the Select function to select the data record. 385 Information message: transfer of data records from operating unit to data medium or vice versa has been initiated. 386 Information message: transfer of data records from operating unit to PLC or vice versa has been initiated. One possible reason is that operation is no longer possible: The PLC has not reset the corresponding bit which control and acknowledgment bit, deactivates the recipe mailbox lock, in the interface area. 387 There is no data record relating to the selected recipe on the data medium. 388 Activating selected function. 389 De-activating selected function. 391 No help text configured. 392 - No alarm messages are queued on the NC. - Acknowledgement is not possible in the NC mode set. 393 The password is incorrect or you cannot enter a password in the NC mode set. 394 Acknowledgement is not possible on the NC set. 395 - No part programs have been configured. - The PLC specified (FM or NC) is not ready. Communication User's Manual Release 05/99 Check configuration. A-9 System Messages Message Cause 396 - The part program specified does not exist. - The PLC specified (FM or NC) is not ready; in the case of FM: no user data area has been created on the PLC. - The part program specified does not exist. - The record specified does not exist. - The PLC specified (FM or NC) is not ready. - The command cannot be executed in the MCU mode selected. - The command is not supported by the MCU version. - The PLC does not have a directory of tool corrections. - The tool correction specified does not exist. 397 398 399 Remedy 400 Illegal key pressed. 401 Value entered could not be converted. 402 Operator error on STATUS VAR or FORCE VAR screen. 403 Incorrect time entered 404 Incorrect date entered 406 Operator error on STATUS VAR or FORCE VAR screen. 407 You have attempted to delete the only data record for a recipe. 409 Lower limit violated: you have attempted to enter a setpoint that is below the configured lower limit. Enter a value that is greater than or equal to the specified value. No limit is indicated for data of the type DOUBLE. 410 Upper limit violated: you have attempted to enter a setpoint that is above the configured upper limit. Enter a value that is less than or equal to the specified value. No limit is indicated for data of the type DOUBLE. 411 Illegal screen selection because incorrect PLC type speci- Change configured interface parameter. fied (external driver) 442 Data block error x DB no. y This message indicates a data block error. The tags x and y identify the cause of the fault (x)) and the number of the receive block concerned (y)). Only 10 entries are permitted (after pressing INS if 10th line already used). Values can only be changed after update operation has been cancelled (BREAK key). Correct the block length/block number as necessary or send the correct data block. Tag x: 0 incorrect block length entered in receive block No. y. 1 incorrect block number entered in receive block No. y. 450 When entering a value, you have attempted to press a key that is not compatible with the defined input field. 451 You have entered a setpoint that is below the configured lower limit. Enter a value that is greater than or equal to the limit. 452 You have entered a setpoint that is above the configured upper limit. Enter a value that is less than or equal to the limit. 453 Time not entered correctly. Enter time correctly A-10 Communication User's Manual Release 05/99 System Messages Message Cause Remedy 454 Interface parameters incorrectly set. Enter valid settings for interface parameters. - When configuring the printer interface - By specifying an identification in PLC job Recipe which is not assigned to a recipe The following settings are possible: - Baud rate: 300, 600, 1200, 2400, 4800, 9600, 19200 - Data bits: 5, 6, 7, 8 - Stop bits: 1, 2 - Timeout: 1...600 Enter correct identifications in PLC job. 455 You have set graphics printing on the operating unit but the corresponding ESC sequence has not been configured. Select a different printer or check printer configuration in ProTool. 456 You have entered an incorrect value, e.g. a tag with a user function that blocks certain input values. Enter permissible value. 458 You have entered a value that is too great or too small for the tag type concerned, e.g. a value greater than 32767 for a tag of the type Integer. Enter a value that is within the permissible range. 459 You are attempting to enter an illegal character (e.g. letter Enter permissible value. in a numerical value) The input is rejected and the existing entry retained. 500...503 Scheduler, counter, date or time data can not be sent. This error can occur if the PLC is tempop rarily il overloaded l d d or if the h ffunction i bl block k iis not invoked for more than 1.5 s. 504 Free ASCII Protocol: operator input value could not be sent. 505 The data record can not be sent as the recipe disable bit on the PLC is set or because transfer of a recipe is still in progress. Try sending again later when the PLC has released the recipe mailbox. 506 Overload: too many message blocks with the same block number in transit. This error occurs if the PLC sends too many jobs using 'collect message area' within a certain period of time. 507 Transfer of the data record was not acknowledged by the PLC within a certain period. Checking of data records by the user at the PLC end must be carried out more quickly (< 10 s). 509 Firmware version is different from standard FB version. Please contact the SIMATIC Hotline. 510 A process link with a non-existent data block has been configured in a recipe or the recipe data contains errors. 511 You have used a PLC job to select a recipe or a request data record that does not exist. 512 Configured data block length is too short. Change configuration and retransfer. The tag transferred with the message identifies the number of the data block. 516 SINEC L2 protocol configured but no interface module inserted. Change configuration and retransfer. 518 Interface module inserted and protocol configured do not match. Change configuration and retransfer. 520 Excessive number of saved returns has meant that maximum nesting level has been exceeded. Go to Message Level (by pressing ESC key if necessary). Communication User's Manual Release 05/99 A-11 System Messages Message Cause 521, 522 Screen can not be constructed or selected because there is You can optimize memory availability by not enough memory available. 1. Removing unused fields from the configuration Message 522 triggers a restart with memory optimization. Remedy 2. Configuring the screen with fewer fields, or splitting it into more than one screen 3. Creating fewer recipe data records 523 No text found. 524 Object class does not exist. 525 Illegal operand. 526 Loop-through operation is set on the operating unit. 527 Access to recipe data is not possible at present. 528 Recipe does not exist. 529 File does not exist. 530 Data record not present. 531 Data record can not be loaded. 532 Information message: data record memory is full. 533 Floppy connection unclear. 534 Information message: disk is full. 535 Disk access error. 536 Disk transfer error. 537 Information message: disk is blank. 538 Simultaneous accessing of data record by job and operator. Repeat uncompleted accessing operation. 539 The data records in the RAM for recipe no. x contained errors and have been deleted. If data records are stored in the Flash memory they will remain valid. 540 The maximum number of data records has already been created. Change mode from "Loop-through operation" to "Normal operation". Check the physical connection. 541...550 Specified tag not available on PLC. Change configuration and retransfer. 551 An MPI/PPI connection to the PLC cannot be established using the specified station address. Check MPI station addresses and wiring. 552 Query: safety check as to whether the selected data record is to be deleted. The data record is only deleted if 0 is entered. If not the function is cancelled. This query is also used when backing up or restoring configurations. In that case, it relates to deletion of all data records in the system memory. 553 Information message: selected data record has been deleted. 554 Query: 1st safety check as to whether the data medium for storing data records is to be formatted. Any data records already on the disk will be deleted when the function is executed! The function is only executed if 0 is entered. A-12 Communication User's Manual Release 05/99 System Messages Message Cause 555 Query: 2nd safety check as to whether the data medium for storing data records is to be formatted. Any data records already on the disk will be deleted when the function is executed! The function is only executed if 0 is entered. 556 Information message: disk has been formatted. 557 Query: if 0 is entered the data record will be adopted with the new values. If anything else is entered, you may continue editing. 558 Query: if 0 is entered the edited data record is rejected. The data remains as it was before editing. If anything else is entered, you may continue editing. 559 Query as to whether the event message buffer should be cleared. 560 Query as to whether the alarm message buffer should be cleared. 561 A global data record (rel. 3.0 or higher) is being edited and does not have all the entries defined in the current recipe. 562, 563 Information as to which mode was set using the function "First/Last Message". 564 Query: if 0 is entered the data record is created. If anything else is entered, the function is cancelled. 565 On transferring a global data record, it is established that not all entries are present. You have the following options: 1: read the missing entries from the PLC Remedy The data record can only be saved if the marked entries are edited. If no entries are marked, only the version number has changed. Only returned in the case of data records that are transferable from one recipe to another. (Rel. 3.0 or higher, plastic functions.) 2: edit the missing entries 3: cancel the Download operation. 566 Data record contains array that does not fit the current recipe structure. The following question appears: Save yes/no ? If you elect to save, the array data is set to 0. 567, 568 569 In the event of forced deletion of the message buffer contents, pending event/alarm messages have to be deleted as well so that space can be reclaimed for new message events. Check configuration. There are too many messages pending. ALARM_S: quantity structure exceeded. Display of pending messages no longer correct! If necessary, clear SRAM. CPI no. x error y This message indicates a CPI error. The variables x and y indicate the cause of the fault (y) and the number of the CPI concerned (x). Variable y: 1 Voltage too low 2 Current too high 3 Temperature too high 2 Module not present (failed during operation) Communication User's Manual Release 05/99 A-13 System Messages Message Cause Remedy 570 Tag contains errors: tag name from ProTool is used as parameter. Check configuration. Frequently occurs with NC tags and when multiplexing. 571 S7 system diagnosis/ALARM_S returns error if OP logs on/off. CPU operating system out of date. 572 Query: data record already exists on data medium. If 0 is entered the data record will be overwritten with the new values. 600 Configuration error: overflow warning at basic setting 1 601 Configuration error: message logging at basic setting 1 602 Configuration of remaining buffer space incorrect. Correct the remaining buffer space and retransfer configuration. 604 Message does not exist. Configure message. 605 Process link is only configured symbolically. Change g configuration g and retransfer. 606 Too many message tags configured. 607 Data type configured does not exist. 608 The process screen number does not exist. 609 Special object or operator object for message text does not exist or is not permissible. 610 Operator object for header or footer does not exist or is not permissible. 611 Special operator object for buffer printout does not exist or is not permissible. 613 Data block not available or too short. Create data block of required length on the PLC. 614 No entry present for log (header and footer not present). Configure log fully. 615 The line to be output is larger than the amount of print memory reserved for it or the number of control sequences is too great. Check configuration as regards logging. 616 Internal error Correct the data format. Change and retransfer. g configuration g If the fault is not corrected by performing a restart,, please contact the SIMATIC Hotp li line. Incorrect data format in process link. 617 Internal error Correct the word length. Incorrect word length in process link. 618 Configuration error in actual control value (bit number > 15). Bit number for actual control tag must be < 15. 619 Error presetting setpoint (error in data structures). Change configuration and retransfer. 620 Illegal keyboard ID: module number too high or number of keys does not match keyboard ID. Enter configuration to match hardware. 621 Incorrect parameter transferred: message type Set required value by way of standard screen or PLC. 622 Configured recipe does not fit in recipe mailbox on PLC (> 512 data words). Reduce configured size of recipe and retransfer configuration. 623 Internal error If the fault is not corrected by performing a restart, please contact the SIMATIC Hotline. Screen object for "Send Recipe" is not a recipe type (fixed by COM TEXT). 624 A-14 No recipe entries found. Set up area pointers and retransfer configuration. Communication User's Manual Release 05/99 System Messages Message Cause Remedy 625 Recipe number does not exist. Reconfigure recipe. g p 626 No setpoints have been configured. 627 Internal error Correct the block number. Configured keyboard block number too high. 628 Recipe does not fit in mailboxes. Increase configured size of recipe mailbox or succeeding recipe mailbox. 629 LED assignment area too small. Increase size of LED assignment area according to bit numbers used. 630 Keyboard assignment area too small. Increase size of keyboard assignment area according to bit numbers used. 631 Message configuration incomplete or incorrect. Complete configuration. Tag x: 1, 2 3 4 5, 6 7 If the fault is not corrected by performing a restart, please contact the SIMATIC Hotline. Configuration error: Check the configuration. Tag x: 1, 4 2 3, 6..8, 11, 13 5 9 12 If the fault is not corrected by performing a restart, please contact the SIMATIC Hotline. Alarm message triggered not configured Process link only created symbolically. Actual-value field only created symbolically. Event message triggered not configured Symbolic actual-value field only created symbolically. 8..20 Internal error 21..24 Field texts for symbolic actual value do not exist 25 Illegal field type 632 634 Help text does not exist Help text ID for messages does not exist Internal error Field only created symbolically. Screen or recipe entry created symbolically only Process screen or recipe does not contain any entries Configuration error: Tag x: 0..8, 34 Internal error 18 Screen or recipe title not configured Communication User's Manual Release 05/99 Screen or recipe title not configured If the fault is not corrected by performing a restart, please contact the SIMATIC Hotline. A-15 System Messages Message Cause Remedy 635 Configuration error: Check the configuration. Tag x: If the fault is not corrected by performing a 1 Screen or recipe entry created symbolically only restart, please contact the SIMATIC Hot3 Field only created symbolically. line. 6 Message, entry or information text not configured for current language 7...9, Internal error 19, 28, 41...43 18 Screen or recipe title not configured 20 Process link only created symbolically. 21 Help text only created symbolically. 22 Symbolic field only created symbolically. 23 Fewer than 2 field texts configured for symbolic field 24 Current field type for symbolic field not configured 25 Illegal data format for symbolic field (only KF and KY permissible) 26 Recipe setpoint configured with data format KC 33 Illegal data format for setpoint field 35 Data format for scheduler too short 36 Illegal data format for actual control value 44 With a permanently programmed Return to menu: menu item not present 45 With permanently programmed Return to screen: entry or field number not present 46 Too many control actual values on screen (no more than 200 allowed) 48 Too many fields on process screen 50 Process link for soft keys does not exist 51 Soft key number too high 53 Help text for soft key not configured or not configured in all languages 55 Soft key specified in entry does not exist 636 Event message is not configured Configure event message (-> message number) fully. 637 Missing configuration for an event message 638, 639 Actual value field for event message has only been created symbolically. Configure g event message g ((-> message g numb ) fully. ber) f ll 640 Alarm message is not configured 641 Alarm message triggered is not configured Configure g alarm message g ((-> message g number). b ) 642, 643 The actual value field for alarm message has only been created symbolically. Reconfigure alarm message (-> message number). 645 Internal error Press key to restart. PLC co-ordination area not receivable during startup. If the fault is not corrected by performing a restart, please contact the SIMATIC Hotline. 648 The driver number configured can not be interpreted. 649 Internal error Driver number configured can not be interpreted. A-16 If the fault is not corrected by performing a restart, please contact the SIMATIC Hotline. Communication User's Manual Release 05/99 System Messages Message Cause Remedy 650 Missing area pointer. Configure an area pointer. 651 Internal error If the fault is not corrected by performing a restart, please contact the SIMATIC Hotline. There is not at least one data record for every recipe. 652 Configuration is not compatible with S5 Change configuration and retransfer. If the fault is not corrected by performing a restart, please contact the SIMATIC Hotline. 653 The configured user version number does not match the version number stored on the PLC. Change configuration and retransfer. 654 The PLC acknowledgement area has not been configured to follow on physically from the message area. 655 PLC acknowledgement area does not physically follow on from the alarm messages area (-> no startup). 656 Configured protocol is not possible. Check protocol in configuration. 657 Configured PLC protocol is not possible. Use current firmware version or configure different protocol. 658 Configured PLC protocol is not possible. 659 Illegal process link in recipe, destination does not exist. Change configuration and retransfer. 660 Invalid destination configured for return reference in menu. Break key on operating unit; complete configuration and retransfer 661 On process screen: recipe setpoint or previous value configured in recipe: field is neither recipe setpoint or previous value. Change field type or remove field and retransfer configuration 662 Invalid destination configured for return reference in screen. Change configuration and retransfer. 663 Data record memory full (during startup) 664 Standard data records for the configured recipes require more than 20 Kbytes. Unit switches to COM TEXT mode. Configure fewer or smaller recipes. 665 Configuration of interfaces incorrect, printer/PLC interfaces have same physical characteristics. Check interface parameters. 667 Configuration error: x = 1..8: Change the configuration of the process link and retransfer. x = 9..13:Change configuration of area pointer and retransfer x = 14: Restrict configuration and retransfer. Tag x: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 Data type is not DB DB number is greater than 15 DB length is greater than 1024 DW is in data block header Actual value not in send block Setpoint not in receive block Setpoint/actual value not in receive block Initial value not in send block Data type is not DB DB number is greater than 15 DB length is greater than 1024 DW is in data block header Area is in wrong DB Sum of data blocks too great Communication User's Manual Release 05/99 A-17 System Messages Message Cause Remedy 668 Incorrect configuration. Change configuration and retransfer. Meaning of tags: 1: Incompatible PLC types configured 2: No PLC configured 3: Incorrect baud rate configured 669 Too many actual values (> 512) have been configured for cyclic reading in a screen/tag. 670 Too many tags requested simultaneously. Lengthen standard clock pulse or configure fewer tags on screen. 671 Configuration of message tags incompatible. Differences between configuration and PLC. 672 Message not configured. Check S7 programs, check message g server configuration, g , dif configuration fi i and d ddownload l d again. i modify 680 Selection of a recipe not defined in the project. Select a valid recipe. 681 Overload caused by too many tags (setpoints/actual values). Check the interface parameters. Fault in connection between the operating unit and PLC. 682 Incorrect interface parameters configured. Configure fewer process links for the screen displayed. 683 Configuration error: upper limit = lower limit Correct the limits and retransfer configuration. 684 Non-existent trend switch buffer requested. Check PLC program/operating unit configuration. Only use trend request area 2 for trends with switch buffer. 685 Configuration error. Two tags that supply information If you are dealing with a configuration erabout the faulty function (Tag 1) and the faulty parameter ror: delete the function and reconfigure. (Tag 2) are transferred together with this message. Or if the operating unit tries to determine Tag 1: the value of a tag while no PLC is connec535 Conversion, Linear 1 ted: connect a PLC. 536 Conversion, Linear 2 537 Increment, tag 539 Increment current 545 Convert value Tag 2: This specifies the parameter of the function in which an error has arisen (e.g. Tag 2 = 3: parameter 3 of the Tag 1 function is faulty). 686 Too many tags. 701 Internal error Incorrect assignment of "head -> res" when receiving tag. 702 Job can not be executed. Change interface or configure area pointer. 703 Flash memory full. Restrict the configuration. 704 Incorrect CPU specified under "PLC -> Parameters". Change configuration and retransfer. 705 An acknowledged message can not be entered in the buffer because the corresponding message or a message in the same acknowledgement group is missing. A-18 Communication User's Manual Release 05/99 System Messages Message Cause 706 Recipe request will not be processed as another request is already active. 707 Internal error Remedy S7 message task error. 708 Internal error Incorrect mailbox type 709 Internal error Invalid mailbox type. 710 Internal error Incorrect mode. 711 Internal error Display status invalid. 712 No submenu configured. 713 Internal error No special operator object configured. 714 Internal error Menu number invalid. 715 Internal error Mailbox type of received message is incorrect. 716 Internal error The setting for the maximum number of messages is too high (tag overflow). 717 Internal error Incorrect message status when entering in statistics. 718 Internal error Incorrect message status when entering in event message buffer. 719 Internal error Incorrect message status when entering in alarm message buffer. 720 Internal error Error reading messages from message buffer. 721 Internal error Configuration message error 722 Internal error Incorrect mailbox type received (OP15 -> OP5) 723 Internal error Change area pointer list. OP5: more than 500 messages are specified in the area pointer lists. 724 Internal error Mailbox type not implemented. Communication User's Manual Release 05/99 A-19 System Messages Message Cause 725 Internal error Remedy Block number does not exist. 726 Internal error Incorrect mailbox type 727 Internal error Illegal screen type 728 Internal error Return reference number incorrect 729 Internal error Error in internal mailbox buffer management for direct message logging. 731 Internal error Transfer parameter LEDSTATUS is incorrect in RIO function "Change LED Status" 732 Internal error Key number can not be higher than 7/15/23 (8-key/16-key/24-key keyboard) 733 Internal error Key number must be less than 4 as a maximum of 4 keys is possible. 734 Internal error The module number must be 0. 735 Internal error Illegal RIO function. 736 The following are permissible: Read, Write (LEDs, outputs) and Initialize. Internal error Keyboard driver error. 737 Internal error Too many keyboard assignment areas (mailboxes) being transferred to PLC. 738 Internal error Mailbox type of received message is incorrect. 739 Internal error Key acknowledgement received when message already acknowledged. 740 Internal error Message status not permitted for first alarm/event message. 741 Internal error Buffer type different from event or alarm message buffer. 742 Internal error Message type different from event or alarm message buffer. A-20 Communication User's Manual Release 05/99 System Messages Message Cause 743 Internal error Remedy Configuration message error 744 Internal error Incorrect mailbox type received. 746 Internal error In COM TEXT: change address Actual control value and process link are identical on a screen. 747 Internal error Buffer type different from event or alarm message buffer. 748 Internal error Message type different from event or alarm message buffer. 749 Internal error Error in data structure of a buffer function screen. 750 Internal error Error in data structure of the password function screen. 751 Internal error Error in data structure of screen for setting time. 752 Internal error Error in data structure of the Login screen. 753 Internal error In COM TEXT: IHV recipes affected Error in data structure of other type of function screen. 754 Internal error Error in data structure of "Average Statistics" screen. 758 Internal error Error group (task ID) does not exist. 759 Internal error The message number for this error group does not exist. 760 Internal error Communication: Mailbox type of received message is incorrect. 761 Internal error Configuration error: message for which there is no text expected. 761 received instead. 762 Occurs if, for example, new firmware is being used with old COM TEXT version. Internal error Configuration error 763, 764 Internal error There are two tags: Tag 1: Message number, Tag 2: Number for error location Communication User's Manual Release 05/99 A-21 System Messages Message Cause Remedy 765...770 Internal error With stop, TD10 - TD/OP20 different. 771 Internal error Error during communication ( messages). 773 Internal error Error reading area pointer 774 Error on reading from "Basic Settings General parameters" 775 Internal error Data record memory full 776 Internal error Too many schedulers in transit 779 Internal error Reset and repeat MPI download. Internal error during MPI download; possibly due to buffer problems. 780 Internal error Undefined error from communication with PLC. 781 An "Online Setter" function has been incorrectly defined in ProTool. 783 Internal error Error in NC messages 784 Communication fault in tag x. Communication must be restarted. 785 Internal error Restarting the operating unit may remedy the problem in the short term. Press key to restart. M = Module, # = Error number for more precise differentiation. Please contact the SIMATIC Hotline. 2280 Alarm or event message buffer is empty or the filter settings are such that no matching data could be found. Check contents of message buffer on message buffer pages or change filter settings. 2281 Error during download to PC. Error in PC program or connection lost. 2282... 2284 No disk inserted or disk drive faulty. Insert disk or check disk drive using recipe function. 2285 Disk is write protected, no disk inserted or disk drive faulty. Set disk write protection tab to Write Enable, insert disk or check disk drive using recipe function. A-22 Communication User's Manual Release 05/99 System Messages Procedure for "internal errors" In the case of all system messages that relate to "internal errors", please follow the procedure outlined below. a) Switch off the operating unit, set the PLC to STOP mode and then restart both units. b) During startup, set the operating unit to download mode, downlaod the configuration again and then restart the operating unit and PLC again. c) If the fault recurs, please contact your nearest Siemens representative. When doing so, please quote the number of the error that has occurred and any tags referred to in the message. Communication User's Manual Release 05/99 A-23 System Messages A.2 SIMATIC S5 Standard Function Blocks General errors Under normal circumstances, the standard function blocks can not cause the CPU to go into STOP mode. However, the function blocks can not detect whether the I/O peripheral addressed is actually present. If STOP mode occurs with an addressing error or an acknowledgement error during startup of the PLC program, one of the following errors has occurred: Error in PLC peripheral allocation (in DB1 on S5-135U or S5-155U) Error in peripheral address allocation for CP 521 SI, CP 523 or IM308B (in DB-ZU) Note Occurrence of STOP mode can be prevented by programming the relevant PLC error OBs. However, this does not correct the configuration error. A-24 Communication User's Manual Release 05/99 System Messages A.3 Standard FB Error Numbers Error analysis If an error occurs during processing of the standard function block, the logical operation result RLO is set. This enables the user to branch to a user-specific error analysis routine using the conditional branch SPB. Storage method The standard function block stores errors that have occurred at various locations in the PLC memory as follows: a in accumulator 1 every time the standard function block is invoked, b in DW n+3 of data block DB-ZU (if present), c in the interface area application mailbox if the error is attributable to an application. The table below details the possible errors arranged in order of error number and according to storage method. The errors possible in the case of PROFIBUS and PROFIBUS-DP are identified by an asterisk (*) after the error number. Storage Method St d d F Standard Function ti Bl Block k Possible Theirr Treatment Poss ble Errors and The Interface Area DB-ZU (if present) Accumulator 1 Error Number a 1* Description of Error Cause/Remedy DB-ZU: number invalid The DB-ZU number transferred in accumulator 1 must be in the range 10 to 255. It may be that the accumulator high byte has been confused with the low byte. 2* DB-ZU: does not exist. DB-ZU must be set up with a minimum length of 16 words, depending on the number of OPs connected. 3* DB-ZU: too short The length of data block DB-ZU is based on the highest OP number issued, even if only one OP is connected. 4* OP number: invalid The OP number transferred in accumulator 1 must be in the range 1 to 16. It may be that the accumulator high byte has been confused with the low byte. 5* No startup performed Set startup bit (D64.0 in interface area) once Incorrect CPU type Check type and version number of CPU Interface area = DB-ZU Specify a different number for the interface area Invalid PLC job number The OP sends internal PLC jobs to the standard FB (e.g. date, time). If this error occurs it indicates that the OP has sent an invalid job number. 6 7* 10* b c The version number of the function block does not match the firmware version. 101* Interface area: DB number invalid Communication User's Manual Release 05/99 An interface DB number in the range 10 to 255 must be transferred to the standard FB. A-25 System Messages Error Number a 102* b c Description of Error Cause/Remedy Interface area: does not exist. The data block for the interface area must be set up. 103* Interface area: too short The data block must be set up with the required minimum length. 105 Interface area: incorrect ID The connected OP must enter a specific ID in DW 30 of the data block for the interface area. The data block number configured on the OP is a component of that ID. This error message occurs if the data block number configured on the OP does not match the DB number specified in the standard function block. It may temporarily occur immediately following startup if the OP has not yet stored the ID in the data block. In that particular case, the error should be ignored. 107* DB-ZU number = Interface area no. = DB-HTB number Rename one of the two data blocks DB-ZU and DB for interface area. (DB-HTB no. is fixed) 108* DB-HTB does not exist. DB-HTB must be present as DB 56 for the SINEC-L1 connection. DB-HTB must be present as DB 55 for the PROFIBUS connection. 109* DB-HTB too short The data block must have been set up with a length of 15 data words (DW 0 to DW 14). 115 Life bit monitoring has been triggered The connected OP has not inverted its life bit. Reason: There is no connection with the OP or the standard FB is being invoked too many times within a cycle. Increase the setting in the DB for the interface area. STBS: number invalid Valid flag numbers: 0...198 STBR: number invalid Valid flag numbers: 0...198 STBS=STBR Specify a different number for one of the status bytes. 150 151 CP 521 SI, CP 523, IM308B: address invalid The address of the CP 521 SI, CP 523 or IM308B specified in DB-ZU is invalid. 152 CP 521 SI, CP 523: does not exist. The communication processor CP 521 SI, CP 523 is not present on the PLC or the address set on the CP 521 SI, CP 523 does not match the one specified in the standard FB. 153* Invalid block size Valid block sizes: 8, 16, 32, 64, 120 or 240 bytes Incorrect IM number Change IM number in DB-ZU 155* Incorrect OP address OP with address specified not present; change address of OP in DB-ZU. 156* IM308C not communicating with OP - IM308C not ready or defective. - Start address of DP window in DB-ZU does not match the COM PROFIBUS configuration of the IM308C. 120* 121* 122* 154* A-26 CP 521 SI, CP 523 not ready May occur during startup before the CP has adopted the configuration data. Communication User's Manual Release 05/99 System Messages Error Number a 157* b c Description of Error Cause/Remedy Incorrect DP window address Start address of DP window in DB-ZU does not match the COM PROFIBUS configuration of the IM308C. 158* Incorrect block length Block length in DB-ZU does not match the COM PROFIBUS configuration of the IM308C. 160* Receive mailbox type no. invalid Valid types: 0=DB, 1=DX (DX only possible on S5-115U with CPU 945, S5-135U and S5-155U) 161* Receive mailbox DB/DX no. The DB/DX no. must be in the range 10 to 255. invalid 162* Receive mailbox DB/DX offset invalid The offset must be in the range 0 to 128 (for PROFIBUSDP: 0 to 215) 163* Send mailbox type invalid Valid types: 0=DB, 1=DX (DX only possible on S5-115U with CPU 945, S5-135U and S5-155U) 164* Send mailbox DB/DX no. invalid The DB/DX no. must be in the range 10 to 255. 165* Send mailbox DB/DX offset invalid The offset must be in the range 0 to 128 (for PROFIBUSDP: 0 to 215) 166 DX2 not present (SI2 of CPU 928B only) Set up DX2 167 Coordination bytes CBS and CBR missing The coordination bytes must be in the interface area (for SI2 of CPU 928B see DX2 Configuration). 168 ASCII driver missing Startup may not have been carried out 169 ASCII driver not enabled Startup may not have been carried out 170* Acknowledgement of PLC job received when no PLC job is active. Job status of an application has been overwritten by user. 171 Message ID unknown The OP has either received an undefined job or an error has occurred in transmission. 172 Job number invalid The OP has received a PLC job with an unknown job number. 180 Transmission error Undefined status of coordination byte CBR. 181 Parity error Compare parity settings of S5 and OP and set both to the same parity (parity for SI2 of CP944: even). 183 Input buffer full The OP is transmitting too fast for the PLC cycle. Messages are being lost. Invoke the FB more often in each cycle or optimize configuration of OP. 184 Too many messages See error no. 183 185 Message larger than receive mailbox Message length is normally limited to 88 bytes by the OP; it may be that the character delay time between two messages has not been detected ==> transmission error. 186 Receive mailbox not present Configured data area not present or startup not performed after making changes. Communication User's Manual Release 05/99 A-27 System Messages Error Number a b c Description of Error Cause/Remedy 187 188 Message too long See error no. 185 Break There is a break in the connection. Cable defective or not connected. 189* Receive mailbox DB/DX too Compare specified pointer for receive mailbox (offset + short length) with actual data area. Transmission error Undefined status of coordination byte CBS. 192 Configuration error Check data in DB-ZU relating to send/receive mailbox and character delay time. 193 Send mailbox not present Configured data area not present or startup not performed after making changes. 194 Message too long The character delay time between two messages has not been detected ==> transmission error. 199* Send mailbox DB/DX too 190* 191* Output buffer full short 200 System program communi- Compare specified pointer for send mailbox (offset + length) with actual data area. Check static parameter record for SI2. cation error (SI2 of CPU 928B only) 201* DB-APP: number invalid The pointer to a PLC job contains an invalid DB number. Only DB numbers in the range 10 to 255 are permissible. 202* DB-APP: does not exist. The pointer for a PLC job points to a non-existent DBtype data block. The data block must be set up. 203* DB-APP: too short The pointer for a PLC job points to a DB-type data block. The PLC job is partially or completely outside the DB. The start address of the pointer should be selected so that the the 4-word PLC job fits completely inside the DB. 206 DX-APP: number invalid The pointer to a PLC job contains an invalid DX number. Only DB numbers in the range 10 to 255 are permissible. 207 DX-APP: does not exist. The pointer for a PLC job points to a non-existent DXtype data block. The data block must be set up. 208 DX-APP: too short The pointer for a PLC job points to a DX-type data block. The PLC job is either partially or completely outside the DX. The start address of the pointer should be selected so that the the 4-word PLC job fits completely inside the DX. 209* TIMER-APP: A PLC job pointer points to a timer area. The permissible start addresses are CPU-dependent. Check the configuration of the OP. Invalid address 210* COUNTER-APP: Invalid address A-28 A PLC job pointer points to a counter area. The permissible start addresses are CPU-dependent. Check the configuration of the OP. Communication User's Manual Release 05/99 System Messages Error Number a b c Description of Error 211 M-APP: address invalid Cause/Remedy A pointer to a PLC job points to the flag area. The PLC job must not be located in the scratchpad flag area (even partially). The permissible start addresses are in the range 0 to 192. 212* S-APP: address invalid The pointer to the PLC job points to the extended scratchpad flag area. The permissible start addresses are CPUdependent and are in the range 0 to 4088. 213* The permissible start addresses are in the range 0 to 126. 215* EB-APP: address invalid AB-APP: address invalid OP is offline 216* PROFIBUS-DP connection - Peripheral address area in DB-ZU specified incorrectly - OP not connected (check BF LED on IM308B) 214* The permissible start addresses are in the range 0 to 126. The connection with the OP has been lost and no PLC jobs can be sent at present. This error may also occur temporarily immediately after startup. In that case, the error should be ignored. can not be established 219 Invalid PLC job 220 Number of tags greater than 31 Error only occurs with parallel connection. The job ID must be in the range 30Hto 36H. The number of tags in an alarm message or event message must not be more than 31. 221* Pointer: incorrect type 222* Pointer: type pointing to DX The DX-type extended data blocks are only permitted on incorrect 223* Pointer: type pointing to scratchpad flag invalid In the application mailbox there is an incorrect data type as the pointer to a PLC job. Only data types 0 to 3 are permissible. In the case of PLC job pointers, only data types 0 to 7 are permissible. PLCs 115U with CPU 945, 135 U, 155 U. The extended flag area is only permitted on PLCs 135 U and 155 U 1 (PAFE no. in DR102 of DB for the interface area). 246* PAFE error 247* SEND terminated with error The send job has been terminated with an error. The indi- PAFE error in data handling blocks CONTROL, SEND or RECEIVE. cator word (ANZW1) is available to the user in data word 101 in the data block for the interface area. 248* 249* 250* 251* 252* 253* STBS/STBR error The send/receive job has been terminated with an error. (S5-95 L2 only) Link status 01h: Interface error1) Link status 02h: Device not available1) Link status 03h: Service not activated1) Link status 10h: Service on local SAP not activated1) Link status 11h: No response from station1) Link status 12h: Bus line disconnected1) Communication User's Manual Release 05/99 A-29 System Messages Error Number a 254* Link status 15h: OP error 255* b c Description of Error Cause/Remedy Invalid parameter in header1) The connected OP has reported an error. The error number is stored in the application mailbox in DW m+3. 1) PROFIBUS bus error: The meaning of the link status is explained in the PROFIBUS equipment manual. Only SDA services are used for the connection between the OP and the PLC. A-30 Communication User's Manual Release 05/99 B PLC Jobs This section of the Appendix contains a list of all PLC jobs and their relevant parameters. Communication User's Manual Release 05/99 B-1 PLC Jobs Description PLC jobs can be used to initiate functions on the TD/OP from the PLC program for the purposes of - displaying screens - setting date and time - altering general settings A PLC job consists of 4 data words. The first data word contains the job number. Data words 2 to 4 are used to transfer up to three parameters depending on the function in question. The basic structure of a PLC job is shown in figure B-1. Address Left byte (LB) 1st word Job no. 2nd word Parameter 1 3rd word Parameter 2 4th word Parameter 3 Figure B-1 Listing Right byte (RB) 0 Structure of a PLC Job No. Function TD10 TD20 TD17 OP5 OP7 OP15 OP17 OP20 OP25 OP27 OP35 OP37 TP27 TP37 All PLC jobs that are possible on the various operating units are listed below along with their parameters. The No. column shows the PLC job number. In general, PLC jobs can only be initiated by the PLC when the operating unit is in online mode. 2 Blank Screen - - - - - 3 Parameter 1 0: Off 1: On Parameter 2, 3 - Parameter 1, 2, 3 4 - Print Screen - - - - - - - - Activate Port Parameter 1 Port number: 1..4 1..8 1..8 Parameter 2 Parameter 3 B-2 LB: on OP20 for port 1..8: on OP25/35, OP27/37, TP27/37 for port 9..16: on OP35/OP37/TP37 RB: Keyboard number: 1..4 on OP20 1 for port 1..8: on OP25/35, OP27/37, TP27/37 2 for port 9..16: on OP35, OP37, TP37 0 0: 3: Off On Communication User's Manual Release 05/99 No. Function TD10 TD20 TD17 OP5 OP7 OP15 OP17 OP20 OP25 OP27 OP35 OP37 TP27 TP37 PLC Jobs 4 Set Relay - - - - - 5 7 Parameter 1 0 Parameter 2 LB: RB: FFH FFH Parameter 3 0: 3: Off On Select Directory Parameter 1 1: 2: 4: 5: 7: Parameter 2, 3 - 11 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Print All Screens Parameter 1, 2, 3 10 Directory: screens, display Directory: recipes, display Directory: print screens Directory: print recipes Directory: recipes, data record transfer - Print recipe with all data records Parameter 1 Recipe number (1..99) Parameter 2, 3 - - - - - - - - - - Select Function Screen The following screens integrated in the firmware can be selected by their (fixed) object numbers. Parameter 1 LB: RB: Cursor lock (0: Off, 1: On) Function screen number - - - - - - - - - Alarm message buffer 1 Buffer output 2 Output number of messages 3 Overflow warning on/off 4 Delete buffer yes/no - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Event messages buffer 5 Buffer output 6 Output number of messages 7 Overflow warning on/off 8 Delete buffer yes/no - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Alarm message statistics 15 Frequency and duration of fault per group 16 Frequency and duration of fault per message 17 Average fault times 18 Average acknowledgement time 19 Delete buffer yes/no - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Event message statistics 20 Frequency and duration per group 21 Frequency and duration per message 22 Total number and duration 23 Delete buffer yes/no - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Communication User's Manual Release 05/99 B-3 No. TD10 TD20 TD17 OP5 OP7 OP15 OP17 OP20 OP25 OP27 OP35 OP37 TP27 TP37 PLC Jobs Function PU functions 25 Status VAR 26 Force VAR - - - - - - - - - - - - - - - - - - Special functions 30 Select language, brightness (contrast) 31 Change operating mode - - - - - - - - - - - - - - Settings 35 Set time/date 36 Internal interface (OP5/OP7: V.24; OP15/OP17: IF1) 37 Module interface (OP5/OP7: TTY; OP15/OP17: IF2) 38 Printer parameters 40 Message type Parameter 2, 3 12 13 14 15 B-4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - System messages 50 Output system message buffer - - - - - - - Passwords 55 Login 56 Password entry - - - - - - - - - - - - - - - - - Parameter 1 0: Off 1: On Parameter 2, 3 - - Change Language Parameter 1 0: 1st language 1: 2nd language 2: 3rd language Parameter 2, 3 - Set Time (BCD format) LB: RB: - Hours (0..23) Parameter 2 LB: RB: Minutes Seconds (0..59) (0..59) Parameter 3 - Set Date (BCD format) Parameter 1 - - - - - - - - Message texts 45 Display alarm message texts 46 Display event message texts Enable/disable message logging Parameter 1 - - - - - - - - - - - - - - - LB: RB: - Day of week Parameter 2 LB: RB: Day of month (1..31) Month (1..12) Parameter 3 LB: Year (1..7: Sunday...Saturday) Communication User's Manual Release 05/99 TD10 TD20 TD17 OP5 OP7 OP15 OP17 OP20 OP25 OP27 OP35 OP37 TP27 TP37 PLC Jobs No. Function 16 Internal Interface Parameters (OP5/OP7: V.24; OP15/OP17/TD17: IF1) - - - - - - Parameter 1 Value for parameter 2 Baud rate (FAP and printer only) 0: 300 baud 1: 600 baud 2: 1200 baud 3: 2400 baud 4: 4800 baud 5: 9600 baud 6: 19200 baud (FAP only) Data bits (FAP and printer only) 0: 7 data bits 1: 8 data bits Stop bits (FAP and printer only) 0: 1 stop bit 1: 2 stop bits Parity (FAP and printer only) 0: Even 1: Odd 2: None Operating unit address 17 1..30 (only on SINEC L1) Parameter 2 Interface parameters to be set 0: Baud rate 1: Data bits 2: Stop bits 3: Parity 4: Operating unit address (SINEC L1 only) Parameter 3 - Module Interface Parameters (OP5/OP7: TTY; OP15/OP17: IF2) Parameter 1 - - - - - - - Value for parameter 2 Baud rate (FAP only) 0: 300 baud 1: 600 baud 2: 1200 baud 3: 2400 baud 4: 4800 baud 5: 9600 baud 6: 19200 baud Data bits (FAP only) 0: 7 data bits 1: 8 data bits Stop bits (FAP only) 0: 1 stop bit 1: 2 stop bits Parity (FAP only) 0: Even 1: Odd 2: None Communication User's Manual Release 05/99 B-5 No. TD10 TD20 TD17 OP5 OP7 OP15 OP17 OP20 OP25 OP27 OP35 OP37 TP27 TP37 PLC Jobs Function Operating unit address 1..30 (SINEC L1) 1..31 (PROFIBUS) 3..122 (PROFIBUS-DP) PLC address TD/OP-SAP PLC SAP 19 1..126 (PROFIBUS only) 0..63 (PROFIBUS only) 0..63 (PROFIBUS only) Parameter 2 Interface parameters to be set 0: Baud rate 1: Data bits 2: Stop bits 3: Parity 4: Operating unit address (SINEC L1, PROFIBUS and PROFIBUS-DP only) 5: PLC address (PROFIBUS only) 6: TD/OP-SAP (PROFIBUS only) 7: PLC SAP (PROFIBUS only) Parameter 3 - Printer parameters Parameter 1 - - - - - - - Value for parameter 2 Number of characters per line 0: 20 Characters/line 1: 40 Characters/line 2: 80 Characters/line Number of lines per page 0: 60 Lines/page 1: 61 Lines/page : 12: 72 Lines/page 21 22 Parameter 2 Printer parameters to be set 0: Number of characters per line 1: Number of lines per page Parameter 3 - Alarm message display mode Parameter 1 0: First (oldest message) 1: Last (most recent message) Parameter 2, 3 - Set display brightness Parameter 1 0..9 (corresponds to 10%..100% intensity) Parameter 2, 3 - Set display contrast B-6 Parameter 1 0..15 Parameter 2, 3 - - - - - - - - - - - - - - - - - - - - - - - Communication User's Manual Release 05/99 No. Function TD10 TD20 TD17 OP5 OP7 OP15 OP17 OP20 OP25 OP27 OP35 OP37 TP27 TP37 PLC Jobs 23 Set password level - - 24 Parameter 1 0..9 0 = Lowest password level 9 = Highest password level Parameter 2, 3 - Parameter 1, 2, 3 29 32 33 Parameter 1 0: Print chronologically 1: Print grouped Parameter 2, 3 - 37 38 39 Parameter 1 0: Print chronologically 1: Print grouped Parameter 2, 3 - Print alarm message statistics 41 - - - - - - - - - - - - - Enable/disable overflow warning for event messages Parameter 1 0: Off 1: On Parameter 2, 3 - Enable/disable overflow warning for alarm messages Parameter 1 0: Off 1: On Parameter 2, 3 - Reset event message statistics - - - - - - - - - - - - - - - Reset alarm message statistics Parameter 1, 2, 3 - - - - - - - - - - - - - Print event message statistics Parameter 1, 2, 3 40 - - - - - - - - - - - - - - - Print event buffer Parameter 1, 2, 3 - - - - - - - - - Print alarm buffer Parameter 1, 2, 3 34 - Print production report (only for configuration with COM TEXT) Parameter 1, 2, 3 31 - - Password logout - - - - - - - - - - - - - Transfer date/time to PLC There should be at least 5 seconds between two jobs or else the operating unit will be overloaded. Parameter 1, 2, 3 - Communication User's Manual Release 05/99 B-7 No. Function TD10 TD20 TD17 OP5 OP7 OP15 OP17 OP20 OP25 OP27 OP35 OP37 TP27 TP37 PLC Jobs 42 Get LED area from PLC - - - - - - - 43 Parameter 1 Area pointer no.: Parameter 2, 3 - 1..4 1..8 Get event message area from PLC Parameter 1 Area pointer no.: 1..4 1..8 Parameter 2, 3 44 on OP15/OP17/OP20 on OP25/35, OP27/37 on TD10/20, OP20, OP5/15, OP7/17, TD17 on OP25/35, OP27/37, TP27/37 - Get alarm message area and acknowledgement area from PLC - - This PLC job gets both the alarm message area and the PLC ! operating unit acknowledgement area from the PLC. If you have not set up an acknowledgement area, only the alarm message area is returned. Parameter 1 Area pointer no.: 1..4 1..8 Parameter 2, 3 47 on TD20, OP20, OP5/15, OP7/17 on OP25/35, OP27/37, TP27/37 - - - - - - - - Transfer LED area directly to operating unit Parameter 1 Area pointer no.: 1..4 1..8 Parameter 2 LED assignment: 1st word Parameter 3 LED assignment: 2nd word on OP15/OP17/OP20 on OP25/35, OP27/37 In contrast with PLC job no. 42 (Get LED area from PLC) the LED assignment area is transferred directly with the PLC job in this case resulting in more rapid activation of the LED. The specified LED area must not be configured larger than 2 DW! B-8 Communication User's Manual Release 05/99 TD10 TD20 TD17 OP5 OP7 OP15 OP17 OP20 OP25 OP27 OP35 OP37 TP27 TP37 PLC Jobs No. Function 48 Select menu (only for configuration with COM TEXT) Parameter 1 Menu number in standard menu 1 Message level (including configuration with ProTool) 2 Main menu 3 Alarm messages 12 Print alarm messages 4 Event messages 14 Print event messages 5 Screens 6 Recipes 7 Statistics functions 18 Alarm message statistics 19 Event message statistics 8 PU functions 9 Special functions 24 System messages 23 Message texts 22 Settings 10 Password 49 Parameter 2 Menu item number 0: First menu item 1..20 Other menu items Parameter 3 - 50 51 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Delete alarm buffer Parameter 1, 2, 3 - - Delete event buffer Parameter 1, 2, 3 - - - - - - - - - - - - - - - - - - - Select Screen Parameter 1 LB: RB: Cursor lock (0: Off, 1: On) Screen number 1..99 on TD20, OP20, OP5/15, OP7/17 1..255 on OP25/35, OP27/37, TP27/37 - - - - - - - - - - - Parameter 2 Entry number 0..99 (0 = Cursor is positioned on first available entry) - - - - - - - - Parameter 3 Field number: 1..8 on TD20, OP20, OP5, OP7 1..32 on OP15, OP17 1..255 on OP25/35, OP27/37 Output fields are ignored for serial number purposes. - - - - Note re. TD20, OP20,OP5/15, OP7/17: The input fields of an entry are number consecutively: 0 Entry number field 1 First input field : n Last input field The numbering of the input fields starts from 1 again for each entry. Communication User's Manual Release 05/99 B-9 No. Function TD10 TD20 TD17 OP5 OP7 OP15 OP17 OP20 OP25 OP27 OP35 OP37 TP27 TP37 PLC Jobs 52 Print screen - - - - - - - - 53 Parameter 1 Screen number (1..99) in Byte format Parameter 2, 3 - - - - - - - - - - Select recipe Parameter 1 LB: RB: Cursor lock Recipe number (0: Off, 1: On) 1..99 Parameter 2 Data record number Parameter 3 LB: Entry number (0..99) (0 = Cursor is positioned on first available entry) RB: Field number (0/1) The input fields of an entry are number consecutively: 0 Entry number field 1 First input field : n Last input field The numbering of the input fields starts from 1 again for each entry. 1..99 Output fields are ignored for serial number purposes. 54 69 70 B-10 - - - - - - - - - Print recipe Parameter 1 Recipe number (1..99) Parameter 2 Data record number (1..99) Parameter 3 - Transfer recipe data record from PLC to operating unit Parameter 1 Recipe number: 1..99 on OP20, OP5/15, OP7/17 Identification 1: on OP25/35, OP27/37, TP27/37 Parameter 2 Data record number 1..99 on OP20, OP5/15, OP7/17 Identification 2: on OP25/35, OP27/37, TP27/37 Parameter 3 0, 1 - - - on OP20, OP5/15, OP7/17 0: Data record is not overwritten 1: Data record is overwritten Identification 3: on OP25/35, OP27/37, TP27/37 Transfer recipe data record from operating unit to PLC Parameter 1 Recipe number: 1..99 on OP20, OP5/15, OP7/17 Identification 1: on OP25/35, OP27/37, TP27/37 Parameter 2 Data record number: 1..99 on OP20, OP5/15, OP7/17 Identification 2: on OP25/35, OP27/37, TP27/37 Parameter 3 - on OP20, OP5/15, OP7/17 Identification 3: on OP25/35, OP27/37, TP27/37 - - - Communication User's Manual Release 05/99 No. Function TD10 TD20 TD17 OP5 OP7 OP15 OP17 OP20 OP25 OP27 OP35 OP37 TP27 TP37 PLC Jobs 71 Partial screen update - - - - - - - - Parameter 1 0: Off 1: On Parameter 2, 3 - This job may only be activated when no screen is selected! 72 73 Position cursor on current screen or in current recipe - - - - Parameter 1 Entry number: 0..99 - - - - - - - - Parameter 2 Field number: 1..8 on TD20, OP20, OP5, OP7 1..32 on OP15, OP17 1..255 on OP25/35, OP27/37 - - - - Parameter 3 Cursor lock - - - - - - - - - (0: Off, 1: On) Position cursor on current function screen Parameter 1 - - - - - - - - Field number (0..8) Parameter 2 Cursor lock Parameter 3 - Communication User's Manual Release 05/99 (0: Off, 1: On) B-11 No. Function TD10 TD20 TD17 OP5 OP7 OP15 OP17 OP20 OP25 OP27 OP35 OP37 TP27 TP37 PLC Jobs 74 Simulate keyboard - - - - - - - Parameter 1 LB: Keyboard number 1 TD20: system keyboard OP20: internal function keyboard OP5/15: internal function keyboard OP7/17: internal function keyboard 2 OP20: system keyboard OP5/15: system keyboard OP7/17: system keyboard TD17: system keyboard 3 OP20: external function keyboard (16 keys) 4 OP20: external function keyboard (24 keys) RB: Password level 0: is analyzed 1: is not analyzed Parameter 2 LB: First Key Code Parameter 3 - A summary of the key codes for the operating units is given in chapter B.2. When performing keyboard simulation by PLC job, the transmission time from PLC to operating unit must be taken into account. The acknowledgement of an alarm message from the PLC by keyboard simulation can, under certain circumstances, bring about an undesirable result if - - 75 B-12 the alarm message concerned has already been acknowledged by operator input on the operating unit, an new alarm message or a system message arrives before the PLC job is analyzed. Scroll event messages Parameter 1 0: Off 1: On Parameter 2, 3 - - - - - - - - - - - - - Communication User's Manual Release 05/99 PLC Jobs B.1 PLC Jobs - Special Cases Jobs with cursor lock If any of the jobs 11, 51, 53, 72 or 73 is initiated with a value other than 0 specified for the parameter "Cursor lock", the selected input field can not be exited using the arrow keys or the ESC key. The cursor lock is not cancelled until the job is repeated specifying cursor lock = 0, another job that changes the display is executed. If an attempt is made to exit the input field while the cursor lock is active the system message "$400 Illegal input" is displayed. The cursor lock is not possible on the graphic display units. Communication User's Manual Release 05/99 B-13 PLC Jobs B.2 Key Codes The key codes for the TD20, OP5, OP15 and OP20 are detailed below. These key codes are required, among other things, for PLC job no. 74 (Simulate keyboard). Function keys System keyboard OP5: F1...F6: 1...6 OP7: F1...F4: K1...K4 1...4 5...8 OP15: F1...F16: 1...16 OP17: F1...F8: K1...K16: 1...8 9...24 OP20: F1...F24: 1...24 TD20: 4 5 2 6 1 3 8 7 TD17: ESC 6 11 16 HELP 22 B-14 18 23 ENTER 24 Communication User's Manual Release 05/99 PLC Jobs OP5 and OP15: 7 D 4 A 1 8 7 5 2 9 8 6 E B 3 F 9 4 DEL INS 5 HARD COPY 10 C 6 11 12 1 13 2 14 3 15 16 SHIFT 17 18 . 19 0 20 +/- 21 22 24 3 4 9 10 15 16 SHIFT 17 23 OP7 and OP17: 7 1 8 7 5 1 13 . 19 D 4 A 2 9 8 6 2 14 3 0 20 +/- E B INS DEL 5 ESC 6 F C 11 ACK 12 21 HELP 22 23 18 ENTER 24 OP20: 7 1 8 7 3 F 8 5 A Communication User's Manual Release 05/99 9 E D 4 2 9 6 INS HARD COPY 4 DEL 10 5 6 11 12 17 18 23 24 C B 1 13 2 14 . 19 0 20 15 16 +/- 21 22 3 SHIFT B-15 PLC Jobs B-16 Communication User's Manual Release 05/99 Interface Modules C This part of the Appendix describes the different interface modules for the TD10, TD20 and OP20. Communication User's Manual Release 05/99 C-1 Interface Modules C.1 General Concept Different methods of implementation have been adopted for each device, in order to allow for the differences between the interfaces: TD10, TD20 and OP20 There are several interface modules for these devices. OP5/15 and OP15/17 There are several device versions of these operator panels. OP25/35, OP27/37 and TP27/37 All the interfaces are integrated in these operator panels. Interface modules An interface module must be used in the TD10/20, OP20 if one of the following conditions applies: S Operation of a printer on the TD10/20 or OP20 S Connection to the PLC via: - RS422 interface - Second serial interface (loop-through mode) - Parallel interface - SINEC L2 bus - SINEC L2-DP bus Possible modules S S S S Hardware identifier Each interface module has its own hardware identifier, which is read by the TD/OP during the device startup procedure and compared to the specifications in the configuration. If the hardware identifiers do not match, the device indicates an error message and stops. ! C-2 Serial interface module Parallel module SINEC L2 module SINEC L2-DP module Caution The interface modules are only allowed to be inserted and withdrawn when the power supply to the TD/OP is switched off. Communication User's Manual Release 05/99 Interface Modules C.2 Serial Interface Module Models The serial interface module is designed for three different transfer modes. V.24 (RS 232) X.27 (RS 422) TTY (20 mA) Connection elements The serial interface module is equipped with two sub-D sockets, some of whose signals are wired in parallel. For this reason, only one can be used at a time. 15-pin sub-D socket 25-pin sub-D socket 15-pin sub-D socket Characteristics: - Sliding lock - TTY signal assignment same as programming unit interface on PLC - Additional V.24 signals Pin-out of the 15-pin socket: Communication User's Manual Release 05/99 Pin General 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Shield V.24 TTY RxD- RxD TxD CTS TxD+ TxD- Shield RxD+ RTS +JT GND +JR +5 V GND C-3 Interface Modules 25-pin sub-D socket Characteristics: - Screw-down lock - V.24 standard assignment - Additional TTY and X.27 signals Pin-out of the 25-pin socket: C-4 Pin General 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Shield V.24 TTY X.27 TxD RxD RTS CTS n. c. GND n. c. RxD+ +JR RxD- GND n. c. RxD+ RxD- TxD+ TxD- TxD+ n. c. n. c. +JT TxD- GND n. c. n. c. Communication User's Manual Release 05/99 Interface Modules Switch elements The serial interface module is equipped with a quadruple DIL switch. Setting as delivered and default setting: All switches in OFF position. Set all switches to OFF if the standard cables are used. Exception: standard cable 6ES5 726-5 for connection to CPU 928B: all switches in ON position. Figure C-1 shows the positions of the switch elements and the default setting. S1. .4 .3 .2 .1 ON OFF 25-pin 15-pin PLCs with PU-SS 6XV1440-2A TTY CP521 SI 6XV1440-2G TTY CP 523 Figure C-1 6XV1440-2F TTY Serial interface module: default setting of DIL switch S1 6ES5 726-5 TTY/V.24 6XV1418-0C V.24 CPU 928B with TTY module S1: All switches set to ON 6ES5 735-2 V.24 Positions of the switch elements; default setting Communication User's Manual Release 05/99 C-5 Interface Modules Switches S1.1 and S1.2 Switches S1.1 and S1.2 are used for active/passive TTY operation (see figure C-2). SS module 25-pin S1.1 S1.2 Figure C-2 Signal assigment for DIL switch setting Sub-D socket 15-pin Active 21 11 TxD+ +JT 18 6 TxD- TxD+ 22 7 TxD- 23 15 GND 10 13 RxD+ +JR 9 9 RxD- RxD+ 11 2 RxD- 12 12 GND Active/passive TTY operation Switches S1.3 and S1.4 Switches S1.3 and S1.4 are not evaluated. Technical specifications S Insulation voltage: 250 V (for TTY, passive) S Current consumption: TTY V.24 X.27 C-6 Passive max. 50 mA at 24 V max. 10 mA at 5 V max. 100 mA at 5 V Communication User's Manual Release 05/99 Interface Modules C.3 Parallel Module Short description The parallel module allows a TD to be connected to a PLC with digital inputs/output (e.g. digital I/O modules). Seventeen 24 V digital inputs and one digital output are available. The digital inputs and the digital output are electrically isolated from the TD by optical isolators. Structure Figure C-3 shows the structure of the parallel module. Pin 1 X1, 20-pin plug connector Figure C-3 Pin-out Pin 20 Structure of the parallel module The pin-out of the 20-pin plug connector on the parallel module is shown in the table below. Communication User's Manual Release 05/99 Pin Name Function 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Din 00 Din 01 Din 02 Din 03 Din 04 Din 05 Din 06 Din 07 Din 08 Din 09 Din 10 Din 11 Din 12 Din 13 Din 14 Din clk pls Din Aux Dout 01 P 24 V EGND Digital input 0 Digital input 1 Digital input 2 Digital input 3 Digital input 4 Digital input 5 Digital input 6 Digital input 7 Digital input 8 Digital input 9 Digital input 10 Digital input 11 Digital input 12 Digital input 13 Digital input 14 Digital input 15 (clock pulse signal) Digital input 16 (not used) Digital output (acknowledgment signal) Input +24 V DC (18...30 V) for Dout 01 Ground "GND" for Din/Dout C-7 Interface Modules Technical specifications Digital inputs: Current consumption at 24 V: 10 mA Low level: -30 V to +5 V High level: +13 V to +30 V Digital output: Low level: <2V High level: +16 V to +30 V C-8 Communication User's Manual Release 05/99 Interface Modules C.4 SINEC L2 Interface Module Short description A TD/OP device is connected to the SINEC L2 bus (PROFIBUS) by the SINEC L2 module. The SINEC L2 module is an "intelligent" module with its own processor which handles various protocol functions. The L2 module is connected to the SINEC L2 or PROFIBUS bus system by a serial interface with RS485 characteristics. This interface is available on the 9-pin socket of the module. The SINEC L2 interface module can be connected to all SIEMENS SINEC L2 bus components, such as RS485 bus terminals or SINEC L2 FO bus terminals. Note FBA bus terminals cannot be connected! Structure and connection elements Figure C-4 shows the structure and connection elements of the SINEC L2 interface module. Internal connection to the TD/OP 9-pin sub-D socket Rear panel cover To SINEC L2 bus terminal Figure C-4 Communication User's Manual Release 05/99 Structure of the L2 interface module C-9 Interface Modules Pin-out 9-pin, sub-D socket 8 1 15 Pin 1 2 3 4 5 6 7 8 9 Technical specifications 9 Signal Shield Data B (redundant) Data B RTS-PU (identical to pin number 9) Data ground and supply voltage ground +5 V DC supply voltage Data A (redundant) Data A RTS-PU (send enable output) Transfer rate: 9.60 kbit/s 19.20 kbit/s 93.75 kbit/s 187.50 kbit/s 500.00 kbit/s 1.50 mbit/s Interface type: RS485 Transfer cable: Twisted, shielded two-wire line C-10 Communication User's Manual Release 05/99 Interface Modules C.5 SINEC L2-DP Interface Module Short description The SINEC L2-DP interface module is required to integrate the TD10/20 and OP20 in a SINEC L2-DP system. The L2-DP module is connected to the SINEC L2-DP bus system by a serial interface with RS485 characteristics. This interface is available on the 9-pin socket of the module. The L2-DP module can be connected to all SIEMENS SINEC L2 bus components, such as RS485 bus terminals or SINEC L2 FO bus terminals. Note FBA bus terminals cannot be connected! Structure and connection elements Figure C-5 shows the structure and connection elements of the SINEC L2-DP interface module. Internal connection to the TD/OP 9-pin sub-D socket Rear panel cover To SINEC L2 bus terminal Figure C-5 Communication User's Manual Release 05/99 Structure of the L2-DP interface module C-11 Interface Modules Pin-out 9-pin, sub-D socket 8 1 15 Pin 1 2 3 4 5 6 7 8 9 Technical specifications 9 Signal Shield Reserved Data B Reserved Data ground and supply voltage ground +5 V DC supply voltage for bus terminal Reserved Data A Reserved Transfer rate: 9.60 kbit/s 19.20 kbit/s 93.75 kbit/s 187.50 kbit/s 500.00 kbit/s 1.50 mbit/s Interface type: RS485 Transfer cable: Twisted, shielded, two-wire line C-12 Communication User's Manual Release 05/99 Technical Specifications of the Standard Function Blocks D This part of the Appendix contains the technical specifications of the standard function blocks for connections via AS511, FAP, SINEC L1, PROFIBUS and PROFIBUS-DP. Communication User's Manual Release 05/99 D-1 Technical Specifications of the Standard Function Blocks D.1 AS511 Connection Table D-1 General specifications PLC S5-90 U, S5-100 U with CPU 100/102 S5-95 U S5-100 U with CPU 103 S5-115 U S5-135 U with CPU 922/928 Block number FB51 FB51 FB51 FB51 FB51 File name S5TD02ST.S5D S5TD03ST.S5D S5TD01ST.S5D S5TD50ST.S5D S5TD24ST.S5D Block name TDOP:511 TDOP:511 TDOP:511 TDOP:511 TDOP:511 Lib. no. E88530-B 3051-A-2 1051-A-2 1051-A-2 5051-A-2 2051-A-2 Call length (in words) 2 2 2 2 2 Block size (in words) 290 543 543 526 495 Nesting depth 0 0 0 0 0 Allocation in the DW 0...69 DB-TDOP DW 0...184 DW 0...184 DW 0...184 DW 0...184 Allocation in the FW 100...126 flag area FW 200...254 FW 200...254 FW 200...254 FW 200...254 Allocation in the - system area - - - - Table D-2 Processing times of FB51 (all times stated in milliseconds) PLC Basic load Sending PLC message Evaluating TD/OP message S5-90 U 2.1 (2.0) 2.2 2.2 S5-95 U 4.0 (2.5) 3.7 to 5.1 2.2 S5-100 U - CPU 100 - CPU 102 - CPU 103 12.3 (12.1) 2.5 (2.4) 4.8 (3.0) 12.5 2.6 4.5 to 6.1 12.6 2.6 5.7 S5-115 U - CPU 941 - CPU 942 - CPU 943 - CPU 944 - CPU 941 B - CPU 942 B - CPU 943 B - CPU 944 B 32.7 (15.1) 8.4 (4.3) 3.6 (1.5) 0.7 (0.4) 3.2 (1.4) 3.2 (1.4) 2.7 (1.0) 0.5 (0.4) 22.5 to 38.2 6.4 to 9.0 2.8 to 4.5 0.5 to 1.1 2.4 to 3.8 2.4 to 3.8 1.9 to 3.3 0.8 36.8 8.8 4.1 0.9 3.6 3.6 3.1 0.7 S5-135 U - CPU 922 - CPU 928 - CPU 928 B 7.5 (4.3) 2.8 (1.2) 0.7 (0.4) 5.8 to 8.1 2.0 to 3.2 0.4 to 0.8 7.8 3.0 0.7 D-2 Communication User's Manual Release 05/99 Technical Specifications of the Standard Function Blocks Meanings of the processing times: Basic load - Time for processing the control and acknowledge bits - Time for browsing through the application mailboxes and the job mailbox for new entries (the values in parentheses apply if a job is currently being processed) - Time for evaluating the life bit Sending PLC message Time for processing a PLC job which must be sent. The time varies according to whether the program finds a pointer to a new job in the first application mailbox through which it browses or in a subsequent mailbox. The value does not provide any indication of when the job is actually located in the TD/ OP or when it is executed there. Evaluating TD/OP message Time for entering the date, the time and the time interrupt bits in the interface DB. Communication User's Manual Release 05/99 D-3 Technical Specifications of the Standard Function Blocks D.2 Free ASCII Protocol (FAP) D.2.1 FAP at Interface SI2 Table D-3 General specifications PLC S5-115 U with CPU 943B, CPU 944A/B S5-135 U with CPU 928B Block number FB53 FB53 Block name TDOP:FAP TDOP:FAP Lib. no. E88530-B 5053-A-2 2053-A-2 Call length (in words) 2 2 Block size (in words) 1569 1252 Nesting depth 0 0 Allocation in the - DB-TDOP - DB-ZU DW 0...184 DW 0...n*16 DW 0...184 DW 0...n*16 Allocation in the flag area FW 200...254 FW 200...254 Allocation in the system area - BS 60, BS 61 n = Number of connected TD/OP devices Table D-4 PLC Processing times of FB53 (all times stated in milliseconds) Startup Basic load Transfer to TD/OP 1 pointer 4 pointers Transfer to PLC S5-115 U - CPU 944A - CPU 944B 2.5 1.9 1.6 0.9 1.6 / 1.1 0.9 / 0.8 2.6 / 1.1 1.6 / 0.8 1.9 1.2 S5-135 U - CPU 928B 2.2 1.2 1.3 / 1.0 2.1 / 1.0 1.6 D-4 Communication User's Manual Release 05/99 Technical Specifications of the Standard Function Blocks D.2.2 FAP at CP Module Table D-5 General specifications for CP 521 SI PLC S5-95 U with CP 521 SI S5-100 U with CPU 103/CP 521 SI Block number FB52 FB52 Block name TDOP:521 TDOP:521 Lib. no. E88530-B 0352-A-3 1052-A-3 Call length (in words) 2 2 Block size (in words) 2132 1812 Nesting depth 0 0 Allocation in the - DB-TDOP - DB-ZU DW 0...184 DW 0...n*16 DW 0...184 DW 0...n*16 Allocation in the flag area FW 200...254 FW 200...254 Allocation in the system area - - n = Number of connected TD/OP devices Table D-6 General specifications for CP 523 PLC S5-115 U with CP 523 S5-135 U with CP 523 S5-155 U with CP 523 Block number FB52 FB52 FB52 Block name TDOP:523 TDOP:523 TDOP:523 Lib. no. E88530-B 5052-A-4 2052-A-3 6052-A-3 Call length (in words) 2 2 2 Block size (in words) 1707 1540 1626 Nesting depth 0 0 0 Allocation in the - DB-TDOP - DB-ZU DW 0...184 DW 0...n*16 DW 0...184 DW 0...n*16 DW 0...184 DW 0...n*16 Allocation in the flag area FW 200...254 FW 200...254 FW 200...254 BS 60, BS 61 - Allocation in the system area - n = Number of connected TD/OP devices Communication User's Manual Release 05/99 D-5 Technical Specifications of the Standard Function Blocks Table D-7 PLC Processing times of FB52 (all times stated in milliseconds) Startup Basic load Transfer to TD/OP 1 pointer Transfer to PLC 4 pointers S5-95 U 11 6 11 *) 11 *) S5-100 U - CPU 103 11 6 11 *) 11 *) S5-115 U - CPU 941 - CPU 941B - CPU 942 - CPU 942B - CPU 943 - CPU 943B - CPU 944 - CPU 944B 33.5 3.7 9.5 3.7 5.2 3.2 2.1 1.7 51.0 7.1 13.5 7.1 7.1 4.6 1.3 0.7 80 / 56 12.8 / 7.0 21.7 / 15.3 12.8 / 7.0 12.8 / 7.0 10.7 / 5.2 2.0 / 1.5 1.4 / 1.2 129 56 19.0 / 7.0 35.2 / 15.3 19.0 / 7.0 22.1 / 7.0 17.0 / 5.2 3.8 / 1.5 2.2 / 1.2 126 19.5 34.2 19.5 22.8 19.2 3.8 1.8 S5-135 U - CPU 922 - CPU 928A - CPU 928B 6.5 4.7 0.7 12.8 5.8 0.9 16.2 / 14.5 7.8 / 6.6 2.8 / 3.0 26.5 / 14.5 13.6 / 6.6 4.6 / 3.0 19.2 9.8 3.9 S5-155 U 0.9 1.3 1.9 / 1.5 3.2 / 1.5 3.1 *) These PLCs (with CPU 521 SI) only transfer 6 bytes to the TD/OP or read 6 bytes from it during each cycle (standard FB call). Meanings of the processing times: Basic load - Time for processing the control and acknowledge bits - Time for browsing through the application mailboxes for new entries - Time for evaluating the life bit Transfer to TD/OP First FB call - Time for evaluating the data request from the TD/OP - Time for gathering together the requested data Second FB call - Time for entering the requested data in the send mailbox The specified values apply to the first and second calls in the following configuration example: - One pointer to one contiguous area of 15 data words - Four pointers to four separate areas of 15 data words each The specified values apply to one contiguous area of 15 data words. D-6 Communication User's Manual Release 05/99 Technical Specifications of the Standard Function Blocks D.3 SINEC L1 Connection Table D-8 General specifications PLC S5-115 U with CP 530 S5-135 U with CP 530 S5-155 U with CP 530 Block number FB56 FB56 FB56 Block name TDOP:L1 TDOP:L1 TDOP:L1 Lib. no. E88530-B 5056-A-1 2056-A-1 6056-A-1 Call length (in words) 2 2 2 Block size (in words) 1601 1431 1530 Nesting depth 0 0 0 Allocation in the - DB-TDOP - DB-ZU - DB-DHB (DB56) DW 0...227 DW 0...n*16 DW 0...14 DW 0...227 DW 0...n*16 DW 0...14 DW 0...227 DW 0...n*16 DW 0...14 Allocation in the flag area FW 200...254 FW 200...254 FW 200...254 BS 60, BS 61 - Allocation in the system area - n = Number of connected TD/OP devices Table D-9 Processing times of FB56 (all times stated in milliseconds) PLC Basic load Sending PLC message Evaluating TD/OP message S5-115 U - CPU 943 - CPU 944 - CPU 941 B - CPU 942 B - CPU 943 B - CPU 944 B 9.0 4.5 9.5 9.5 9.0 3.0 13.0 8.0 13.0 13.0 12.0 6.0 17.5 13.5 18.5 18.5 17.5 9.0 S5-135 U - CPU 922 - CPU 928 - CPU 928 B 11.0 4.0 1.5 14.0 7.0 4.0 19.0 10.0 5.5 S5-155 U 2.5 5.0 7.0 Communication User's Manual Release 05/99 D-7 Technical Specifications of the Standard Function Blocks Meanings of the processing times: Basic load - - - - Sending PLC message Time needed for the FB-SEND to process a PLC send job. The value does not provide any indication of when the job is actually located in the TD/OP or when it is executed there. Evaluating TD/OP message - Time for calling FB-RECEIVE - Time for evaluating the data request from the TD/OP and gathering together the requested data - Time for calling FB-SEND D-8 Time for processing the control and acknowledge bits Time for browsing through the application mailboxes for new entries Time for evaluating the life bit Time for calling FB-CONTROL Communication User's Manual Release 05/99 Technical Specifications of the Standard Function Blocks D.4 PROFIBUS and PROFIBUS-DP Connection Table D-10 General specifications PROFIBUS PLC S5-95 L2 S5-115 U with CPU 941 A/B to CPU 944 A/B S5-115 U with CPU 945 S5-135 U with CPU 922 CPU 928 A/B S5-155 U with CPU 946/947 Block number FB55 FB55 FB55 FB55 FB55 Block name TDOP:L2 TDOP:L2 TDOP:L2 TDOP:L2 TDOP:L2 Lib. no. E88530-B 0355-A-1 5055-A-3 5155-A-1 2055-A-3 6055-A-3 Call length (in words) 2 2 2 2 2 Block size (in words) 1996 1682 1628 1512 1621 Nesting depth 1 1 1 1 1 DW 0...255 DW 0...(n16)-1 DW 0...14 DW 0...255 DW 0...(n16)-1 DW 0...14 DW 0...255 DW 0...(n16)-1 DW 0...14 DW 0...255 DW 0...(n16)-1 DW 0...14 Allocation in the FW 200...254 flag area FW 200...254 FW 200...254 FW 200...254 FW 200...254 Allocation in the - system area - - BS 60, BS 61 - Allocation in the - DB-TDOP DW 0...255 DW 0...(n16)-1 - DB-ZU DW 0...14 - DB-DHB (DB 55) n = Number of connected TD/OP devices Communication User's Manual Release 05/99 D-9 Technical Specifications of the Standard Function Blocks Table D-11 Gemeral specifications PROFIBUS-DP AG S5-115 U with CPU 941 A/B to CPU 944 A/B S5-115 U with CPU 945 S5-135 U with CPU 922 CPU 928 A/B S5-155 U with CPU 946/947 Block number FB58 FB58 FB58 FB58 Block name TDOP:DP TDOP:DP TDOP:DP TDOP:DP Lib. no. E88530-B 5058-A-1 5158-A-1 2058-A-1 6055-A-1 Call length (in words) 2 2 2 2 Block size (in words) 1704 1802 1779 1793 Nesting depth 1 1 1 1 Allocation in the - DB-TDOP - DB-ZU - DB-DHB (DB 55) DW 0...168 DW 0...(n 16) - 1 DW 0...14 DW 0...168 DW 0...(n 16) - 1 DW 0...14 DW 0...168 DW 0...(n 16) - 1 DW 0...14 DW 0...168 DW 0...(n 16) - 1 DW 0...14 Allocation in the flag area FW 200...254 FW 200...254 FW 200...254 FW 200...254 Allocation in the system area - - BS 60, BS 61 - n = Number of connected TD/OP devices Table D-12 Processing times PROFIBUS and PROFIBUS-DP PLC CPU Function Upload PLC TD/OP (PLC job) Download TD/OP AG (TD/OP job) (approx. 20 Byte) Basic load PLC S5-115U CPU 943 CPU 944 CPU 941 B CPU 942 B CPU 943 B CPU 944 B CPU 945 *) 13,0 8,0 13,0 13,0 12,0 6.0 - 17,5 13,5 18,5 18,5 17,5 9,0 - 9,0 4,5 9,5 9,5 9,0 3,0 - PLC S5-135U CPU 922 CPU 928 CPU 928 B 14,0 7,0 4,0 19,0 10,0 5,5 11,0 4,0 1,5 PLC S5-155U CPU 946/947 CPU 948 *) 5,0 - 7,0 - 2,5 - *) Values not yet available. D-10 Communication User's Manual Release 05/99 Technical Specifications of the Standard Function Blocks Meanings of the processing times: Basic load The function block must be called absolutely in the periodic program. At base load, the control and acknowledgement bits are processed; all eight application mailboxes of the DB-TD/OP interface data block are examined for possible entries and the life bit for the connection watchdog is evaluated. The function block requires the specified time for this activity. Download TD/OP job When data are uploaded from the PLC to the connected TD or OP, the TD or OP first sends a request for data. The function block evaluates this request for data (checks for validity, availability of data etc.), assembles the requested data and uploads them. The processing time has been determined for one data area (1pointer) in the request for data. In this case 20 bytes of useful data will be uploaded. Upload PLC job When PLC jobs are uploaded, the function blocks are examined until an entry is found and the data area specified in the pointer is checked. The data to be transmitted are assembled with the coordination area in the send mailbox and transmitted. No TD/OP job is accepted by the function block in the same cycle. Notes on the PROFIBUS and PROFIBUS-DP bus system The response time of TDs and OPs on the PROFIBUS bus is determined by the scan time of the PLC. You can improve response times by means of a high-speed CPU u for example, CPU 944/S5-115U or CPU 928/S5-135U u or by distributing the TDs or OPs over several PLCs. Use of CPUs 941 and 942 of the S5-115U series and CPU 922 of the S5-135U series is to be recommended therefore only for hardware configurations which are uncritical with respect to time, for few devices, or for small parameter configurations (few area pointers or, even better, transfers initiated by PLC jobs). Communication User's Manual Release 05/99 D-11 Technical Specifications of the Standard Function Blocks D-12 Communication User's Manual Release 05/99 Interface Area Assignment E This appendix details the interface assignment for all plug-in connecting cables. They can also be ordered separately from Siemens. Note Siemens offers no guarantee for cables soldered by the user. Communication User's Manual Release 05/99 E-1 Interface Area Assignment Plug-in Connecting Cable: Operating Unit <-> SIMATIC S5 (TTY) PU Interface on CPUs 6XV1440 - 2A... Connector 1: 15-pin Sub D male connector Secured by slide TTY, active Connector 2: 15-pin Sub D male connector Secured by slide TTY, passive Connector 1 Operating Unit Connector 2 PLC PE 1 1 PE PE 8 8 PE R20 mA 13 +RxD 9 -RxD 2 6 +TxD 15 7 - TxD Casing shield Casing shield GND * T20 mA 11 9 +RxD +TxD 6 2 - RxD GND 12 -TxD * 7 For TTY cables with special lengths > 10m, 2 Zener diodes (12 V) must be soldered in the 15-pin connector for the operating unit (TTY active): BZX 55 C12 ser. no. 30095128 Shielding connected at both ends to casing with large contact area Cable: 5 x 0.14 mm2; shielded; max. length 1000 m E-2 Communication User's Manual Release 05/99 Interface Area Assignment Plug-in Connecting Cable: Operating Unit <-> CPU 928B/945 (TTY) 6 XV1440 - 2J... Connector 1: 15-pin Sub D male connector Connector 2: 25-pin Sub D male connector Secured by slide Secured by slide V.24, TTY, active V.24, TTY, passive Connector 1 Connector 2 Operating Unit Casing shield PE 1 PE 8 T20 mA 11 +TxD 6 CPU 928B/945 1 PE Casing shield -TxD 7 13 +RxD GND 15 14 -RxD 7 GND 10 +TxD 19 -TxD R20 mA +RxD -RxD 13 9 2 RxD 3 2 TxD TxD 4 3 RxD Cable: 5 x 0.14 mm2; shielded; max. length 1000 m Shielding connected at both ends to casing with large contact area Communication User's Manual Release 05/99 E-3 Interface Area Assignment Plug-in Connecting Cable: Operating Unit <-> Printer (TTY) 6 XV1440 - 2B... Printer: DR210-/211-/230-/231-N DR215-/216-/235-/236-N Connector 1: 15-pin Sub D male connector Connector 2: 25-pin Sub D male connector Secured by slide TTY, passive Secured by screws Connector 1 Operating Unit TTY, active Connector 2 Printer Casing shield PE 1 PE 8 +RxD 9 21 - TxD - RxD 2 18 +TxD +TxD 6 10 - RxD - TxD 7 9 +RxD 1 Casing shield Cable: 5 x 0.14 mm2; shielded; max. length 1000 m Shielding connected at both ends to casing with large contact area E-4 Communication User's Manual Release 05/99 Interface Area Assignment Plug-in Connecting Cable: Operating Unit <-> Printer (V. 24) 6 XV1440 - 2C... Printer: DR210-/211-/230-/231-N DR215-/216-/235-/236-N Connector 1: 15-pin Sub D male connector Connector 2: 25-pin Sub D male connector Secured by slide Secured by screws V.24 V.24 Connector 1 Connector 2 Operating Unit Printer 1 PE Casing shield RxD 3 2 TxD TxD 4 3 RxD GND 15 7 GND CTS 5 25 BUSY Cable: 5 x 0.14 mm2; shielded; max. length 15 m Shielding connected at both ends to casing with large contact area Communication User's Manual Release 05/99 E-5 Interface Area Assignment Plug-in Connecting Cable: Operating Unit <-> CP 521 SI (V.24) 6 XV1418 - OC... Serial interface module or adapter 6XV1440-2DE32 Connector 1: 25-pin Sub D male connector Secured by screws V.24 Connector 1 Operating Unit Casing shield Connector 2: 25-pin Sub D male connector Secured by screws V.24 Connector 2 CP521 SI 1 PE RxD 3 2 TxD TxD 2 3 RxD CTS 5 4 RTS RTS 4 5 CTS GND 7 7 GND Cable: 5 x 0.14 mm2; shielded; max. length 15 m Shielding connected at both ends to casing with large contact area E-6 Communication User's Manual Release 05/99 Interface Area Assignment Plug-in Connecting Cable: Operating Unit <-> CP 521 SI (TTY) 6 XV1440 - 2G... Connector 1: 15-pin Sub D male connector Connector 2: 25-pin Sub D male connector Secured by slide Secured by screws TTY, active TTY, passive Connector 1 Connector 2 Operating Unit CP 521 SI 1 PE Device shield PE 1 PE 8 R20 mA 13 +RxD 9 -RxD 2 18 +TxD GND 15 21 - TxD T20 mA 11 9 +RxD +TxD 6 10 - RxD Device shield -TxD 7 GND 12 For TTY cables with special lengths > 10m, 2 Zener diodes (12 V) must be soldered in the 15-pin connector for the operating unit (TTY active): BZX 55 C12 ser. no. 30095128 Shielding connected at both ends to casing with large contact area Cable: Liycy 5 x 0.14 mm2; shielded; max. length 1000 m Communication User's Manual Release 05/99 E-7 Interface Area Assignment Plug-in Connecting Cable: Operating Unit <-> CP 523 (TTY) 6 XV1440 - 2F... Connector 1: 15-pin Sub D male connector Connector 2: 25-pin Sub D male connector Secured by slide Secured by screws TTY, active TTY, passive Connector 1 Connector 2 Operating Unit PE Casing shield CP 523 25 1 PE Casing shield PE 8 R20 mA 13 +RxD 9 -RxD 2 10 +TxD GND 15 12 - TxD T20 mA 11 6 +RxD 6 8 - RxD +24V +24V +TxD -TxD GND 7 12 For TTY cables with special lengths > 10m, 2 Zener diodes (12 V) must be soldered in the 15-pin connector for the operating unit (TTY active): BZX 55 C12 ser. no. 30095128 Shielding connected at both ends to casing with large contact area Cable: 5 x 0.14 mm2; max. length 1000 m E-8 Communication User's Manual Release 05/99 Interface Area Assignment Plug-in Connecting Cable: Operating Unit RS422 <-> SIMATIC 500/505 RS422 6 XV1440 - 1M... (PLC 545 / CPU 1102, 555) Secured by screws Connector 2: 9-pin Sub D male connector Secured by screws Cable outlet at Pin 1 Cable outlet at Pin 1 Connector 1: 9-pin Sub D male connector RS422 Connector 1 Operating Unit RS422 Connector 2 SIMATIC 500/505 + - TxD+ 3 9 DI+ + TxD- 8 2 DI- - + RxD+ 4 3 DO+ - RxD- 9 8 DO- GND 5 5 GND_RS422 Shielding connected to casing with large contact area Cable: 3 x 2 x 0.14 mm2; shielded; max. length 300 m Communication User's Manual Release 05/99 E-9 Interface Area Assignment Plug-in Connecting Cable: Operating Unit <-> SIMATIC 500/505 or PC 6 XV1440 - 2K... Connector 1: 15-pin Sub D male connector Connector 2: 9-pin Sub D socket connector Secured by slide Cable outlet at Pin 1 Solid metal cover V.24 Connector 1 Operating Unit Casing shield Secured by screws Cable outlet at Pin 1 V.24 Connector 2 SIMATIC 500/505 or PC PE 1 1 DCD PE 8 6 DSR 4 DTR CTS 5 RxD 3 3 TxD TxD 4 2 RxD GND 12 5 GND RTS 10 7 RTS 8 CTS Shielding connected at both ends to casing with large contact area Cable: 5 x 0.14 mm2; shielded; max. length 15 m E-10 Communication User's Manual Release 05/99 Interface Area Assignment Plug-in Connecting Cable: Operating Unit <-> SIMATIC 500/505 or PC 6 XV1440 - 2L... Connector 1: 15-pin Sub D male connector Connector 2: 25-pin Sub D male connector Secured by slide Secured by screws Cable outlet at Pin 1 Solid metal cover V.24 Cable outlet at Pin 1 V.24 Connector 1 Operating Unit 1 PE Casing shield Connector 2 SIMATIC 500/505 or PC 25 PE Casing shield 8 RxD 3 2 TxD TxD 4 3 RxD RTS 10 4 RTS CTS 5 5 CTS GND 12 7 GND 6 DSR 20 DTR 8 DCD Shielding connected to casing with large contact area Cable: 5 x 0.14 mm2; shielded; max. length 15 m Communication User's Manual Release 05/99 E-11 Interface Area Assignment Plug-in Connecting Cable: Operating Unit RS422 <-> SIMATIC 500/505 RS422 6 XV1440 - 2M... (PLC 525, 545 / CPU 1101, 565T) Connector 1: 9-pin Sub D male connector Secured by screws Connector 2: 9-pin Sub D male connector Secured by screws Cable outlet at Pin 1 Cable outlet at Pin 1 RS422 RS422 Connector 1 Connector 2 Operating Unit SIMATIC 500/505 + - TxD+ 3 5 DI+ + TxD- 8 8 DI- - + RxD+ 4 1 DO+ - RxD- 9 7 DO- GND 5 6 GND_RS422 3 GND_RS485 Shielding connected to casing with large contact area Cable: 3 x 2 x 0.14 mm2; shielded; max. length 300 m E-12 Communication User's Manual Release 05/99 Interface Area Assignment Plug-in Connecting Cable: Operating Unit RS422 <-> SIMATIC 500/505 RS422 6 XV1440 - 2N... For the following operating units only: TD10, TD20, OP5, OP15, OP20, OP30 Connector 1: 25-pin Sub D male connector Secured by screws Cable outlet at Pin 1 Connector 2: 9-pin Sub D male connector Secured by screws Cable outlet at Pin 1 Solid metal cover Connector 1 Operating Unit Connector 2 SIMATIC 500/505 GND 12 + RxD+ 14 1 DO+ - RxD- 15 7 DO- 16 5 DI+ + TxD- 17 8 DI- - GND 7 6 GND_RS422 GND 23 3 GND_RS485 TxD+ Shielding connected to casing with large contact area Cable: 3 x 2 x 0.14 shielded; max. length 300 m Communication User's Manual Release 05/99 E-13 Interface Area Assignment Plug-in Connecting Cable: Adapter cable (TTY/V. 24) 6 XV1440 - 2DE32 Adapter cable for connecting plug-in cable: 6ES5 735-2... 6XV1418-OC... to integral interface on operating unit Connector 1: 15-pin Sub D male connector Connector 2: 25-pin Sub D socket connector Secured by slide Bolt for screw fixing V.24, TTY V. 24, TTY, active Connector 1 Operating Unit PE 1 PE 8 TxD RxD Connector 2 Standard Cable 1 PE Casing shield 4 2 TxD 3 3 RxD RTS 10 4 RTS CTS 5 5 CTS GND 12 7 GND GND 15 -RxD 2 +RxD 9 9 +RxD (R20mA) 13 10 -RxD 6 18 +TxD (T20mA) 11 21 -TxD +TxD -TxD 7 Cable: 9 x 0.14 mm2; shielded; max. length 0.3 m Shielding connected at both ends to casing with large contact area E-14 Communication User's Manual Release 05/99 Interface Area Assignment Plug-in Connecting Cable: Operating Unit <-> Mitsubishi FX0 6 XV1440 - 2P Secured by screws Cable feed-out to rear Connector 2: 8-pin mini DIN socket Secured by screws Cable feed-out to rear Connector 1 Connector 2 Operating Unit Mitsubishi FX0 Connector 1: 9-pin Sub D male connector + - TxD+ 3 2 RxD+ + TxD- 8 1 RxD- - GND 5 3 GND + RxD+ 4 7 TxD+ - RxD- 9 4 TxD- Cable: 3 x 2 x 0.14 mm2; shielded; max. length 500 m Shielding connected at both ends to casing with large contact area Communication User's Manual Release 05/99 E-15 Interface Area Assignment Plug-in Connecting Cable: Operating Unit <-> Mitsubishi FX0 6 XV1440 - 2Q Connector 1: 25-pin Sub D connector Connector 2: 8-pin mini DIN socket Secured by screws Cable feed-out to rear Secured by screws Cable feed-out to rear Connector 1 Connector 2 Operating Unit Mitsubishi FX0 TxD+ 16 1 RxD+ + TxD- 17 2 RxD- - GND 7 3 GND + RxD+ 14 7 TxD+ - RxD- 15 4 TxD- Cable: 3 x 2 x 0.14 mm2; max. length 500 m Shielding connected at both ends to casing with large contact area E-16 Communication User's Manual Release 05/99 Interface Area Assignment Plug-in Connecting Cable: Operating Unit <-> Mitsubishi FX 6 XV1440 - 2R Connector 1: 9-pin Sub D male connector Secured by screws Cable to rear Connector 1 Operating Unit Casing shield Connector 2: 25-pin Sub D male connector Secured by screws Cable to rear Connector 2 Mitsubishi FX PE 1 TxD+ 3 2 RxD+ + TxD- 8 15 RxD- - GND 5 20 GND 12 +5V + - + RxD+ 4 3 TxD+ - RxD- 9 16 TxD- 4 DSR+ + 17 DSR- - 5 DTR+ 18 DTR- 21 PWE Cable: 3 x 2 x 0.14 mm2; max. length 500 m Shielding connected at both ends to casing with large contact area Communication User's Manual Release 05/99 E-17 Interface Area Assignment Plug-in Connecting Cable: Operating Unit <-> Mitsubishi FX 6 XV1440 - 2S Connector 1: 9-pin Sub D connector Secured Connector 2: 25-pin Sub D male connector Secured by screws Cable to rear Connector 1 Operating Unit Connector 2 Mitsubishi FX 16 2 RxD+ + TxD- 17 15 RxD- - GND 20 GND 12 +5V TxD+ 7 + RxD+ 14 3 TxD+ - RxD- 15 16 TxD- 4 DSR+ + 17 DSR- - 5 DTR+ 18 DTR- 21 PWE Cable: 3 x 2 x 0.14 mm2; max. length 500 m Shielding connected at both ends to casing with large contact area E-18 Communication User's Manual Release 05/99 Interface Area Assignment Plug-in Connecting Cable: Operating Unit <-> Allen Bradley PLC-5/RS422 6 XV1440 - 2V... Connector 1: 9-pin Sub D connector Connector 2: 25-pin Sub D connector Secured by screws Secured by screws Cable feed-out to rear Cable feed-out to rear Connector 1 Operating Unit Connector 2 PLC-5 + - 3 16 -RxD + - TxD 8 3 +RxD - 4 14 +TxD -RxD 9 2 -TxD GND 7 GND +TxD + - +RxD 5 Cable 3 x 2 x 0.14 mm2; shielding contacts joined; max. length 60 m Shielding connected at both ends to casing with large contact area Communication User's Manual Release 05/99 E-19 Interface Area Assignment Plug-in Connecting Cable: Operating Unit <-> Allen Bradley PLC-5/RS422 6 XV1440 - 2W... Connector 1: 25-pin Sub D connector Connector 2: 25-pin Sub D connector Secured by screws Secured by screws Cable feed-out to rear Cable feed-out to rear Connector 1 Operating Unit Connector 2 PLC-5 + - 14 14 - TxD -RxD 15 2 +TxD +TxD 16 16 - TxD 17 3 +RxD GND 7 7 GND +RxD - RxD - + Cable 3 x 2 x 0.14 mm2; shielded; max. length 60 m Shielding connected at both ends to casing with large contact area Shielding contacts joined. E-20 Communication User's Manual Release 05/99 Interface Area Assignment Plug-in Connecting Cable: Adapter cable (TTY/V. 24) 6 XV1440 - 2HE20 For OP5 only Connector 2: 15-pin Sub D socket connector Secured by slide Mushroom button on connector Connector 2 TTY 1 Connector 1: 15-pin Sub D male connector Secured by slide Slide on connector 2 cable feed-outs 8 PE Casing PE shield 2 -RxD 6 +TxD Connector 1 OP 5 Casing shield PE 1 PE 8 -RxD 2 RxD 3 TxD 4 CTS 5 +TxD 6 -TxD 7 +RxD 9 RTS 10 20mA 11 M 12 20mA 13 P5V 14 M 15 Cable: 5 x 2 x 0.14 mm2; shielded; max. length 20 cm Shielding connected at both ends to casing with large contact area Communication User's Manual Release 05/99 7 -TxD 9 +RxD 11 20mA 12 M 13 20mA 14 PSV 15 M Connector 3: 15-pin Sub D socket connector Secured by slide Mushroom button on connector Connector 3 V.24 1 PE 8 PE 3 RxD 4 TxD 5 CTS 10 RTS 12 M 14 PSV 15 M Casing shield E-21 Interface Area Assignment Adapter for PROFIBUS-DP extension 6 XV1440 - 2T... Connector 1 Connector 2 Operating Unit Bus connector 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 Cable: 9 x 0.14 mm2, shielded; length 5 cm Shielding connected at both ends to casing with large contact area Installation of multiple OP15s one under another (e.g. 3x6 = 18 units at intervals of 3 cm) 6XV1440-2TE10 can not be used. E-22 Communication User's Manual Release 05/99 Interface Area Assignment Adapter for TD/OP to 9-pin (as PC) 6 XV1440 - 2UE 32 Connector 1: 15-pin Sub D male connector Connector 2: 9-pin Sub D male connector Secured by slide Bolt for screw fixing Cable outlet at Pin 1 Cable to rear Connector 1 Operating Unit Connector 2 AT PC RTS 10 7 RTS RxD 3 2 RxD TxD 4 3 TxD CTS 5 8 CTS GND 15 5 GND Cable: 5 x 0.14 mm2; shielded; max. length 32 cm Shielding connected at both ends to casing with large contact area Communication User's Manual Release 05/99 E-23 Interface Area Assignment Plug-in Connecting Cable: OP20 <-> MR20 6 XV1440 - 2E... Connector 1: 25-pin Sub D male connector Secured by screws Connector 1 OP20, Decentralized Connector 2: 25-pin Sub D male connector Secured by screws Connector 2 MR20 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 Cable 26 x 0.18 mm2; shielded; max. length 3.2 m Shielding connected at both ends to casing with large contact area E-24 Communication User's Manual Release 05/99 Interface Area Assignment Plug-in Connecting Cable: Operating Unit <-> Omron 6 XV1440 - 2X... Connector 1: 15-pin sub D mail connector Connecotr 2: 9-pin sub D male connector Secured by slide Secured by screws Cable outlet at Pin 1 Cable outlet at Pin 1 Solid metal cover V.24 Solid metal cover Connector 1 Operating Unit V.24 Connector 2 Omron 3 2 TxD 4 3 RxD GND 12 7 9 GND RxD TxD Shielding connected to casing with large contact area Cable: 5 x 0,14mm2; shielded; max. length 15m Communication User's Manual Release 05/99 E-25 Interface Area Assignment Plug-in Connecting Cable: Operating Unit <-> Omron Connector 1: 9-pin sub D conncector Secured by screws Cable feed-out to rear Connector 1 Operating Unit Connector 2: 9-pin sub D connector Secured by screws Cable feed-out to rear Connector 2 Omron + - 8 -RxD + - TxD 8 6 +RxD - +RxD 4 2 -TxD -RxD 9 1 +TxD +TxD + - GND 3 5 R=220 GND Insert 220 Ohm/>150mW resistor (e.g. type 0207) Cable: 3 x 2 x 0,14mm2; shielding contacts joined; max. length 500 m E-26 Communication User's Manual Release 05/99 SIMATIC HMI Documentation F Target groups This manual is part of the SIMATIC HMI documentation. The documentation is aimed at the following target groups: Newcomers Users Configurers Programmers Commissioning engineers How the documentation is organized The SIMATIC HMI documentation consists of the following components: User's Guides / User's Manuals for: - Configuration software - Runtime software - Communication between PLCs and operating units Equipment Manuals for the following operating units: - MP (Multi Panel) - OP (Operator Panel) - TP (Touch Panel) - TD (Text Display) - PP (Push Button Panel) Online Help on the configuration software Start-up Guides First Steps Overview of complete documentation The following table provides an overview of the SIMATIC HMI documentation and shows you when you require the different documents. Communication User's Manual Release 05/99 F-1 SIMATIC HMI Documentation Documentation Target Group Content First Steps with ProTool Newcomers This documentation guides you step by step through the configuration of Product Brief a screen with various objects changing from one screen to another a message. This documentation is available for: OP3, OP5, OP7, OP15, OP17 OP25, OP27, OP35, OP37, TP27, TP37 Windows-based systems ProTool Configuring Windows-based Systems Configurers Provides information on working with the ProTool/Pro configuration software. It contains information on installation basic principles of configuration a detailed description of configurable objects and func- User's Guide tions. This documentation is valid for Windows-based systems. ProTool Configuring Graphics Displays Configurers Provides information on working with the ProTool configuration software. It contains information on installation basic principles of configuration a detailed description of configurable objects and func- User's Guide tions. This documentation is valid for graphic display operating units. ProTool Configuring Text-based Displays Configurers Provides information on working with the ProTool/Lite configuration software. It contains information on installation basic principles of configuration a detailed description of configurable objects and func- User's Guide tions. This documentation is valid for text-based display operating units. ProTool Online Help ProTool/Pro Runtime User's Guide Configurers Provides information on the configuration computer while working with ProTool. Online Help contains context-sensitive help detailed instructions and examples detailed information all the information from the user guide. Commissioning en- Provides information on working with ProTool/Pro Runtime gineers, software. It contains Users installation of the ProTool/Pro Runtime visualization software commissioning and running the software on Windows-based systems. Copy Protection Start-up Guide F-2 Commissioning en- The ProTool/Pro Runtime visualization software is a copygineers, right product. This manual contains information on the instalUsers lation, repair and uninstallation of authorizations. Communication User's Manual Release 05/99 SIMATIC HMI Documentation Documentation Target Group Content Application Example Newcomers ProTool is supplied with example configurations and the corresponding PLC programs. This documentation describes how you Start-up Guide load the examplesonto the operating unit and PLC run the examples and upgrade the connection to the PLC to suit your own specific application. MP270 Equipment Manual Commissioning en- Describes the hardware and the general operation of Multi gineers, Panel MP270. It contains Users installation and commissioning instructions a description of the equipment operating instructions instructions for connecting the PLC, printer and programming computer, maintenance instructions. OP37/Pro Equipment Manual Commissioning en- Describes the hardware, installation and inclusion of upgineers, grades and options for the OP37/Pro. Users TP27, TP37 Equipment Manual Commissioning en- Describes the hardware and general operation. gineers, It contains Users installation and commissioning instructions OP27, OP37 Equipment Manual OP25, OP35, OP45 Equipment Manual OP7, OP17 Equipment Manual OP5, OP15 Equipment Manual Equipment Manual PP7, PP17 connecting the PLC, printer and programming computer operating modes operation description of the standard screens supplied with the operating unit and how to use them fitting options maintenance and fitting of spare parts. TD17 Equipment Manual OP3 operating unit description Commissioning en- Describes the hardware of the OP3, its general operation and gineers, the connection to the SIMATIC S7. Users, Programmers Equipment Manual Commissioning en- Describes the hardware, installation and commissioning of gineers, push-button panels PP7 and PP17. Users Communication Programmers User's Manual Provides information on connecting text-based and graphics displays to the following PLCs: SIMATIC S5 SIMATIC S7 SIMATIC 500/505 drivers for other PLCs This documentation describes the configuration and parameters required for connecting the devices to the PLC and the network user data areas used for exchanging data between operationg unit and PLC. Communication User's Manual Release 05/99 F-3 SIMATIC HMI Documentation Documentation Target Group Content Communication for Windows-based Systems Programmers Provides information on connecting Windows-based systems to the following PLCs: User's Manual SIMATIC S5 SIMATIC S7 SIMATIC 505 Allen Bradley PLC 5/SLC 500 This documentation describes the configuration and parameters required for connecting devices to the PLC and the network user data areas used for exchanging data between operating unit and PLC. Other PLCs Programmers Online Help Provides information on connecting devices to PLCs, such as: Mitsubishi Allen Bradley Telemecanique Modicon Omron SIMATIC WinAC When the drives are installed, the relevant Online Help is installed at the same time. ProAgent for OP User's Manual Configurers Provides the following information about the ProAgent optional package (process diagnosis) for OPs configuring system-specific process diagnosis detecting, locating the cause of and eliminating process errors, customizing standard diagnostic screens supplied with the software. F-4 Communication User's Manual Release 05/99 I Index A Acknowledge bits block drivers, 18-10 parallel connection, 9-12 Acknowledgement areas, 11-5, 11-6, 14-5, 14-6, 17-5, 17-6, 24-4, 24-5 Acknowledgement error, A-24 Acknowledgment, 11-3, 14-3, 17-3, 24-3 sequence, 24-5 Acknowledgment bit, 11-5, 14-6, 17-6, 24-5 Activate port, B-2 Active/passive operation, C-6 Adapter Allen-Bradley, 22-2 Mitsubishi FX, 21-2 Address, 12-7, 12-15, 12-31 Address ID operating unit, 6-15 TD/OP, 6-18 Addressing error, A-24 Addressing recipes and data records, 11-20, 14-20, 17-19, 24-18 AG 95U DP master block size, 6-18 specified configuration, 6-18 station type, 6-18 AKKU1, after standard FB call, 3-5, 4-4, 4-10, 5-8, 6-10, 7-6, 8-5, 10-7 Alarm, processing, 9-22 Alarm message acknowledgement area, number, 11-4, 14-4, 17-4 Alarm message area number, 11-4, 14-4, 17-4 setting bits, 11-3, 14-3, 17-3 Alarm message display mode, B-6 Alarm messages acknowledge, 19-4 acknowledgment area, 24-3 area, 24-3 structure, 9-18 Communication User's Manual Release 05/99 trigger, 19-4 Allen-Bradley configuration example, 22-4 data blocks, 22-3 example files, 22-4 interface, 22-2 standard cables, 22-2 Allocation DB, entries, 7-7, 8-6 Altering, Assignment DB, 10-19 Analysis, Error message, 5-14 Analyzing scheduler, 4-12, 10-10 APS programming software, 22-4 Area pointers configure, 18-17 screen number area, 11-13, 14-13, 17-13, 24-11 AS511, 3-2 Commissioning, Group 1, 4-4 commissioning, group 2, 3-4 description, 3-2 invoking the standard FB, 3-4 standard FB, D-2 AS511 connection Brief summary, 1-9 Description, Group 1, 4-1 description, group 2, 3-1 Group 1, 4-2 group 2, 3-2 Assignment, Extended data block, 5-12 Assignment DB Altering, 10-19 Function, 10-19 Number, 10-19 B Base interface, 7-2 Baud rate, 12-7, 12-15, 12-31, 23-3 Bit number, 17-12, 24-10 Bit-triggered trends, 11-15, 14-15, 17-15, 24-13 Index-1 Index Blank screen, B-2 Block Drivers keyboard assignment, 24-7, 24-8, 24-9 LED assignment, 24-10 recipes, 24-16 screen number area, 24-11 trend request area, 24-13 trend transfer area, 24-13 user data areas, 24-2 user version, 24-15 Block drivers communication management, 18-1 firmware requirements, 18-2 notes on configuring, 18-19 other PLCs, 18-2 scheduler bits, 18-12 Block size, 6-5, 6-15, 6-18 Bus plug connector, 8-2 Bus terminal, 1-12, 7-2 C Cables Allen-Bradley, 22-2 block drivers, 20-2 free serial interface, 19-2 Mitsubishi FX, 21-2 other PLCs, 18-3, 23-2 SINEC L2 module, C-10 SINEC L2-DP module, C-12 Calling twice, Data handling block, 2-7 Category, System message, A-1 Causes, System message, A-2 Change language, B-4 Changing, Standard FB number, 2-4 Channel configuration, 22-5 Character delay time, 5-10, 18-17, 19-2 Choosing, type of connection, 1-3, 1-4 COM package, 8-9 COM PROFIBUS, 6-14 COM TEXT, 5-15, 6-2, 8-10, 9-21, 19-3 Communicating by means of variables, 12-2 Communication Blocks, 2-2 direction, 9-2 management Block Drivers, 18-1 data blocks, 18-7 structure other PLCs, 18-5 parallel connection, 9-4 SINEC L1, 7-4 Index-2 SINEC L2, 8-3 Communication driver, 1-2 Communication management Assignment DB, 10-19 Interface area, 10-2 Overview, 2-2 SIMATIC S5, 2-1, 10-1 Standard function block, 2-3 Communication peers, 12-5, 12-13 Communication structure FAP connection, 5-2 PROFIBUS-DP connection, 6-3 Components, other PLCs, 18-5 Compressing, Illegal, 2-7 Compression, Internal program memory, 2-7 Configuration CP, 8-12 examples Allen-Bradley, 22-4 free serial interface, 19-3 Mitsubishi FX, 21-3 other PLCs, 18-15 SIMATIC 500/505, 20-4 notes, 18-19 parallel connection, 9-21 SINEC L1 connection, 7-3 SINEC L2 connection, 8-10 SINEC L2 network, 8-9 Software, 6-2 Configuration , example , Telemecanique, 23-4 Configuring Extended data block, 5-12 PROFIBUS-DP master modules, 6-19 PROFIBUS-DP network, 6-12 Static parameter record, 5-13 Configuring PROFIBUS-DP, operating unit, 6-12 Configuring the operating unit, S7 network configuration, 12-5 Connecting to S7 positioning modules, 12-24 Connection elements serial interface module, C-3 SINEC L2 module, C-9 SINEC L2-DP module, C-11 Mitsubishi FX, 21-2 other PLCs, 18-3 serial interface module, C-3 several text displays, 9-22 SINEC L2 module, C-9 SINEC L2-DP module, C-11 via CPU interface SI1/2, 3-2 Communication User's Manual Release 05/99 Index Connection ID, 13-5 Connection types Allen-Bradley, 22-1 AS511, Group 1, 4-1 AS511, group 2, 3-1 block drivers, 18-1 Data block connection, 1-19 FAP connection, 5-1 free serial connection, 19-1 Mitsubishi FX, 21-1 MPI, 1-15 parallel connection, 1-14, 9-1 PPI, 1-17 PROFIBUS-DP, 1-11, 1-16, 6-1 selection criteria, 1-3, 1-4 SIMATIC 500/505, 1-18, 15-1, 20-1 SIMATIC S5 connections, 1-9 SIMATIC S7, 12-1 SINEC L1, 7-1 SINEC L2, 8-1 Supported, 1-3 Telemecanique, 23-1 Control and acknowledgment bits, 13-3, 16-3 Interface area, 4-7, 10-4 Control bits block drivers, 18-10 parallel connection, 9-12 response bits, 24-20 Control jobs, other PLCs, 18-11 Copy, Last PLC job, 10-18 CP configuration, 8-12 page frame address, 7-7 CP 5430 TF, 6-20 CP 5431 FMS, 6-20 CP521 SI, 5-9 CP523, 5-9 CPU 928B Assignment of DX2, 5-12 Configuring interface, 5-11 Static parameter record, 5-13 Create, data blocks, 23-3 Cursor lock, B-13 Cycle, 18-8, 20-3 Cycle time, CP521 SI, 5-10 D Data areas Date, 4-11, 10-9, 16-6 Communication User's Manual Release 05/99 screen number area, 11-13, 24-11 set up, 8-5, 9-6 SIMATIC 500/505, 15-4 system keyboard assignment, 24-8 system keyboard assignment area, 11-9, 14-9, 17-9 Time, 4-11, 10-9, 16-6 Transfer of data records, 11-21 transfer of data records, 24-19 Trend request area, 14-16 trend request area, 11-16, 17-16, 24-14 Trend transfer area, 14-16 trend transfer area, 11-16, 17-16, 24-14 Data bits, 18-16, 19-4, 20-3 Data block Assignment DB, 10-19 Extended, 5-12, 10-2 Data block connection, 1-19 Brief summary, 1-19 Data blocks Allen Bradley, 22-3 amount of data, max., 18-7 bit assignment, 20-3 creating, 23-3 entries, 18-10 exchange, 18-8 free serial interface, 19-2 function, 18-9 header, 18-7 Interface area, 10-2 Mitsubishi FX, 21-2 number, 18-7 other PLCs, 18-7 set up, 20-3, 21-2, 22-3 size, 18-7, 19-2 start addresses, 18-16 structure, 18-7, 18-9 Data exchange, 1-2, 18-3 Data handling block Calling twice, 2-7 Interrupting, 2-7 SINEC L1 connection, 7-8 SINEC L2 connection, 8-7 Data handling block error messages Interface area, 10-5 SIMATIC S5, 10-14 Data mailbox, 11-22, 24-19 Data record Addressing, 11-20 addressing, 17-19, 24-18 Index-3 Index Recipes, 11-18, 14-18 recipes, 17-18, 24-16 Synchronization, 11-23 synchronization, 24-20 transfer, 18-14 Transfer sequence, 11-23 transfer sequence, 24-20 Data record operating unit -> PLC, B-10 Data record PLC -> operating unit, B-10 Data record transfer Control and acknowledgment bits, 11-23 Synchronization, 14-22 synchronization, 17-20 Data record transfer sequence, 11-23 Data records, Addressing, 14-20 Data transfer rate, 7-10, 8-10, 19-4, C-10, C-12 Data transmission rate, 6-12 Data types SIMATIC 500/505, 15-4 SIMATIC S7, 12-3 Date display, 19-4 transfer, 18-12 Date and time, 13-3, 13-6 Transferring to PLC, 4-11, 10-9 Date/time, Interface area, 4-7, 10-4 DB address list, 2-6 DB-ZU, 10-19 Device number, 10-19 For FAP, 5-3 For PROFIBUS-DP, 6-4 Number of interface area, 10-21 Receive mailbox, 10-20 Send mailbox, 10-20 Delete alarm buffer, B-9 Delete event buffer, B-9 Detect interruption in connection, 18-13 open circuits, 9-8 wiring faults, 9-8 Device number, DB-ZU, 10-19 Digital I/O module, 9-2 Digital inputs, C-7 Digital outputs, C-7 DIL switch, C-5 Direct, 24-17 Direct transfer, 11-19, 14-19 Index-4 Disabling, Interrupts, 2-7 Display Brightness, B-6 Contrast, B-6 date, 19-4 time, 19-4 Documentation, F-1 Download configuration, 23-4 project, 23-4 DP direct keys, 12-18 Assignment, 12-21 Configuring in STEP 7, 12-20 DP window, 6-6 Drivers, other PLCs, 18-15 DW 64 in interface area, 11-23 E Enabling, Interrupts, 2-7 EPROM failure, A-1 Error analysis, 3-4, 3-5, 4-4, 4-9, 5-7, 5-8, 5-14, 6-10, 10-6, A-25 Error evaluation, 7-6, 8-5 Error handling, A-23, A-25 Error messages, Memory, A-1 Error number Accumulator, 4-5, 4-10, 5-8, 6-11, 10-7 accumulator, 3-5 PLC job, 4-16, 10-17, 10-21 Error numbers, 9-8 accumulator, 7-7, 8-6, 9-9 Standard FB, A-25 Error prevention, 2-7 Errors, internal, A-23 Event message area number, 11-4, 14-4, 17-4 setting bits, 11-3, 14-3, 17-3 Event messages area, 24-3 structure, 9-18 trigger, 19-4 Example file, file name, 19-3, 20-4, 21-3, 23-4 Example program, 19-4 Expansion Slot, 12-7, 12-15 Extended data block, 5-12 Communication User's Manual Release 05/99 Index F FAP, 5-2 Assignment of DB-ZU, 5-3 Commissioning, 5-5 CP address, 5-9 CPU 928B, 5-11 CPU SI2 interface, 5-2, 5-10 Description, 5-2 DP-ZU assignment, 5-6 Entries in DB-ZU, 5-9 Error analysis, 5-8 Interface parameters, 5-10 Invoking standard FB, 5-7 standard FB, D-4 FAP connection Brief summary, 1-10 Communication structure, 5-2 configuring the operating unit, 5-15 Description, 5-1 Features FAP connection, 1-10, 5-2 Other connections, 1-19 Parallel connection, 1-14 SIMATIC 500/505 connection, 1-18 SIMATIC S7 connection, 1-15, 1-16, 1-17 SINEC L1 connection, 1-12 SINEC L2 connection, 1-13 SINEC L2-DP connection, 1-11 Field, types, 18-18 File name example file, 21-3, 22-4 standard FB, 9-6 File names, Standard FBs, 2-3 Firmware Memory module, 6-2 memory submodule, 18-2 Firmware version Interface area, 4-7, 10-4 SIMATIC S5, 4-14, 10-12 Flash memory failure, A-1 Floppy disk configuration examples, 18-15, 19-3, 20-4, 21-3, 22-4 drivers, 18-15 example configuration , 23-4 standard FB, 9-6 FM, 12-9 Free ASCII Protocol, 1-10 Free Layer 2 Access, 8-2 Free serial connection Communication User's Manual Release 05/99 description, 19-1 example file, 19-3 Free serial interface, configure, 19-2 Full duplex, 18-6 Function data blocks, 18-9 keyboard assignment, 24-9 of operating units, 1-2 screen number area, 24-12 TD, 9-3 Function Keyboard, communication bit, 24-9 Function keyboard, keyboard communication bit, 17-11 Function keyboard assignment area, 11-11, 14-11, 17-11 Function keys, B-14 Function screen activating, 18-14 Screen number area, 14-14 screen number area, 11-14, 17-14 G Get acknowledgement area, B-8 Get alarm message area, B-8 Get event message area, B-8 Get LED area, B-8 Graphics display, Data mailbox, 11-22 Graphics display unit, Definition, 1-2 Group 1, 4-2 GSD files, IM308C, 6-14 H Hardware identifier, C-2 Hardware requirements parallel connection, 9-3 PROFIBUS-DP connection, 6-2 SINEC L1 connection, 7-2 SINEC L2 connection, 8-2 HSA, 12-7, 12-15, 12-31 I I and O address, 6-18 Identifications, 14-20, 17-19 Identifiers interface modules, C-2 other PLCs, 18-11 Index-5 Index IM308B/C, 6-14 Block size, 6-15 Specified configuration, 6-15 Station number, 6-15 Station type, 6-15 IM308C, I and O address, 6-15 Indirect, 24-17 Indirect input, 18-14 Indirect transfer, 11-20, 14-20 Initialization, program/interface, 19-4 Initiating a PLC job, 4-16, 10-15 Input, indirect, 18-14 Installation in COM TEXT, 18-15 in ProTool, 18-15 language, 18-15 Integer variables, 20-3, 23-3 Interface, 12-7, 12-15, 12-31 Allen-Bradley, 22-2 AS511 connection, 1-9 basic, 7-2 COM1, 19-4 FAP connection, 1-10 free serial interface, 19-2 initialization, 19-4 MPI, 1-15 Other connections, 1-19 other PLCs, 18-3 parallel, 9-2, 9-22, C-2 Parallel connection, 1-14 parameters, 18-3, 18-16 PU, 1-9 RS232, 18-3, 20-5, 22-2, C-3 RS422, 18-3, 20-5, 22-2, 22-5, C-3 Serial, 1-9, 1-10, 1-12, 1-19 serial, 18-4, 19-2 SI2, 1-10, 5-14 SIMATIC 500/505, 20-2 SIMATIC 500/505 connection, 1-18 SIMATIC S7 connection, 1-15, 1-16 SINEC L1, 7-2 SINEC L1 connection, 1-12 SINEC L2 connection, 1-13 SINEC L2-DP connection, 1-11 Telemecanique, 23-2 TTY, 7-10, 18-3, C-3 V.24, 7-10, 22-5, C-3 X.27, C-3 Interface Area, parallel connection, 9-10 Index-6 Interface area Control and acknowledgement bits, 4-7, 10-4 Data handling block error messages, 10-5 Date/time, 4-7, 10-4 Firmware version, 4-7, 10-4 Function, 10-2 Group 1 PLCs, 4-7 Job mailbox, 10-4 Length, 10-2 Life bit monitoring, 4-8, 10-5 PLC and connection ID, 4-7, 10-4 PLC job, 4-7 Recipe mailbox, 10-3 Recipe number mailbox, 10-3 Reserved areas, 10-5 Scheduler bits, 4-8, 10-4 SIMATIC 500/505, 16-1 SIMATIC S5, 10-2 SIMATIC S7, 13-1 Successive recipe mailbox, 10-3 Interface module, 6-2, 9-2, 20-2, 21-2 IM308B/C, 6-14 overview, C-1 parallel, C-7 serial, C-3 SINEC L2, C-9 SINEC L2-DP, C-11 Interface parameters, 5-10 Internal errors, A-23 Interrupt processing, 2-7 Interrupting, Data handling block, 2-7 Interruption in connection, detect, 18-13 Invoking, Standard FB, 4-4 J Job data area, setting up, 9-14 header, 9-20 parameters, transfer, 9-20 status, 9-8 type, 9-19 Job mailbox, 10-15, 13-5, 16-5 Interface area, 10-4 Job mailboxes other PLCs, 18-11 structure, 9-17, 18-11 Communication User's Manual Release 05/99 Index Job status, 4-16, 10-17, 10-21 K Key assignment function keyboard, 24-9 Function keyboard assignment area, 14-11 function keyboard assignment area, 11-11, 17-11 Key codes, B-14 Keyboard assignment, system keyboard, 17-9 assignments, 24-7 Communication bit, Function keyboard, 14-11 communication bit, system keyboard, 14-10, 17-10 Keyboard assignment area, 14-8 Keyboard assignment areas, 11-8, 17-8 Keyboard communication bit, 17-11 function keyboard, 11-11 system keyboard, 11-10 L LADDER program, 20-5 LED Assignment, 14-12 assignment, 11-12, 17-12, 24-10 OP17, 11-12, 14-12, 17-12 Statuses, 14-12 statuses, 11-12, 17-12 LED assignment Bit number, 14-12 bit number, 11-12, 17-12 LED Assignment Area, 14-12 LED assignment area, 11-12, 17-12 Life bit, 13-4, 16-3 monitoring, 18-13 Life bit monitoring Interface area, 4-8, 10-5 SIMATIC S5, 4-15, 10-14 When transferring data records, 2-8 Limitations AS511 connection, 4-3 Loop-through operation, 4-6 loop-through operation, 3-6 Linear addressing, 6-5 List, System messages, A-1 Literature, F-1 Lock, Cursor, B-13 Communication User's Manual Release 05/99 Logic operation, 7-6, 8-5 Loop-through operation, 3-6, 4-6 Status/Controlling, 4-6 status/controlling, 3-6 M Managing multiple operating units in DB-ZU, 10-19 Master, 12-7, 12-15, 12-31 Master module, 6-2 Master-slave field bus, 6-2 MEDOC, 21-3 Memory organization, 18-17 Message areas, 24-3 bit, 24-4 header, 9-18, 9-20 initiation, 24-3 level, screen number area, 24-11 number, 24-4 sending/receiving automatically, 19-4 Message areas, 11-3, 11-4, 14-3, 14-4, 17-3, 17-4 Message bit, 11-4, 14-4, 17-4 Message initiation, 11-3, 14-3, 17-3 Message level Screen number area, 14-14 screen number area, 11-14, 17-14 Message log ON/OFF, B-4 Message number, 11-4, 14-4, 17-4, A-1 Messages configure, 9-15 definition, 11-3, 14-3, 17-3, 24-3 process, 9-4 transfer , 9-20 trigger, 9-16 Method of counting, data bits, 20-3 Minimum configuration parallel connection, 9-3 SINEC L1 connection, 7-5 SINEC L2 connection, 8-4 Mitsubishi configuration example, 21-3 connection, 21-2 data blocks, 21-2 example files, 21-3 Module interface, B-5 Modus, 9-19 Monitoring, life bit, 18-13 MPI, 12-5 Index-7 Index MPI address, 12-8, 12-11 MPI connection, Brief summary, 1-15 Multi-master bus, 8-2 N NATIVE drivers, 15-1 Network parameters, 12-6, 12-14, 12-30 Networks supported, 1-4 Number data blocks, 18-7 DB-APP, 9-17 Number of interface area, SIMATIC S5, 4-14, 10-12 O Open circuits, detection, 9-8 Operating mode, Analyzing, 4-9, 10-6 Operating unit address, 12-7, 12-15, 12-31 assignment in DB-ZU, 10-19 Configuring PROFIBUS-DP, 6-12 interface, 12-7, 12-15, 12-31 Operating unit operating mode, 13-4, 16-3 Operating unit parameters, 12-6, 12-14, 12-30 Operating unit startup, detecting on S7, 13-4 Operating units, function, 1-2 Operator panel, definition, 1-2 Optical isolators, parallel module, C-7 Optimization, 2-5, 15-8 performance, 18-19, 20-3 Organization block, 3-4, 4-4, 5-7, 6-10 Other connections Allen-Bradley, 22-1 Mitsubishi FX, 21-1 SIMATIC 500/505, 20-1 Other connections , Telemecanique, 23-1 Other PLCs classes, 18-4 communication structure, 18-5 configuration examples, 18-15 configuring, 18-16 data block exchange, 18-8 data blocks, 18-7 dependencies, 18-2 drivers, 18-15 free serial connection, 19-1 overview, 18-2 Possible connections, 1-8 Index-8 Overflow warning ON/OFF, B-7 Overview Communication management, 2-2 other PLCs, 18-2 parallel connection, 9-2 SINEC L1 connection, 7-2 SINEC L2 connection, 8-2 Types of connection, 1-2 P Page addressing, 6-5 Page frame, address, 7-7 Page frame number, 6-5 Parallel connection brief summary, 1-14 description, 9-1 interface area, 9-10 messages, 9-15 overview , 9-2 PLC jobs, 9-15 Parallel module, C-2, C-7 Parameterization, SINEC L1 connection, 7-10 Parameters Communication peers, 12-6, 12-14, 12-30 interface, 18-3 Parity, 7-10, 9-12, 9-19, 9-21, 18-16, 19-4 Partial screen update, B-11 Password logout, B-7 Pause, 18-16, 19-2 PC-AT, 18-4, 19-2, 19-3 PC-AT, 1-2 Performance, 2-5, 15-8 optimization, 18-19, 20-3 Peripheral start address, 6-5 Physical connection, other PLCs, 18-3 Pin-out Parallel module, C-7 serial interface module, C-3, C-4 SINEC L2-DP module, C-12 SINEC L2-Modul, C-10 PLC groups, 9-2 Types, 1-2 PLC and connection ID Interface area, 4-7, 10-4 SIMATIC S5, 4-14, 10-12 PLC Group 1, 4-1 PLC group 2, 3-1 PLC groups, 3-1, 4-1 Communication User's Manual Release 05/99 Index PLC job Configuration rules, 2-6, 12-33 Copy of, 10-18 Interface area, 4-7 Job mailbox, 10-15 Job status, 4-16, 10-17 SIMATIC 500/505, 16-5 SIMATIC S7, 13-5 Structure, 4-16, 10-15 transfer, 9-20 trigger, 9-16 PLC jobs, 4-16, 10-15, B-1, B-10 Activate port, B-2 Alarm message display mode, B-6 Change language, B-4 Clear alarm buffer, B-9 Clear event buffer, B-9 Data record operating unit -> PLC, B-10 Data record PLC -> operating unit, B-10 Dim screen, B-2 Get acknowledgement area, B-8 Get alarm message area, B-8 Get event message area, B-8 Get LED area, B-8 Initiating, 4-16, 10-15 Key codes, B-14 Message logging ON/OFF, B-4 Module interface, B-5 Overflow warning ON/OFF, B-7 Partial screen update, B-11 Password logout, B-7 Position cursor, B-11 Print alarm buffer, B-7 Print alarm message statistics, B-7 Print all screens, B-3 Print event buffer, B-7 Print event message statistics, B-7 Print production report, B-7 Print recipe, B-3 Print screen, B-2, B-10 Printer parameters, B-6 Reset statistics, B-7 Scroll event messages, B-12 Select directory, B-3 Select function screen, B-3 Select menu, B-9 Select recipe, B-10 Select screen, B-9 Set brightness, B-6 Set contrast, B-6 Set date, B-4 Communication User's Manual Release 05/99 Set interface parameters, B-5 Set password level, B-7 Set relay, B-3 Set time, B-4 Simulate keyboard, B-12 Special cases, B-13 Transfer date/time, B-7 PLC-5, 22-2 PLCs parallel connection, 9-3 types of connection, 1-7 Polling list, 7-3 Polling time, 2-5 Area pointers, 2-5 configuration rules, 18-19 Factors affecting, 12-32, 15-8 for user data areas, 2-5 influencing factors, 24-22 LED assignment, 24-22 Notes, 2-5 PROFIBUS-DP, 6-20 Position cursor, B-11 PPI connection, Brief summary, 1-17 Print alarm buffer, B-7 Print alarm message statistics, B-7 Print all screens, B-3 Print event buffer, B-7 Print event message statistics, B-7 Print production report, B-7 Print recipe, B-3, B-10 Print screen, B-2, B-10 Printer parameters, B-6 Priority, 18-8, 18-16 Process alarms, 9-22 jobs, 9-4 messages, 9-4 PROFIBUS, 8-2 PROFIBUS connection, Brief summary, 1-13 PROFIBUS NCM, 6-20 PROFIBUS screen number, TP only, 12-23 PROFIBUS-DP, 6-1 Address ID, 6-15 Commissioning, 6-8 DB-ZU assignment, 6-4 DP-ZU assignment, 6-8 Entries in DB-ZU, 6-5 Error analysis, 6-10 Invoking standard FB, 6-10 Parameters, 6-15 parameters, 6-18 Index-9 Index PROFIBUS-DP connection, 6-2 Brief summary, 1-11, 1-16 Communication structure, 6-3 Configuring, 6-12 PROFIBUS-DP master modules, 6-19 PROFIBUS-DP network, Configuring, 6-12 Profile, 12-7, 12-15, 12-31 Programming cable, Mitsubishi, 21-2 Programming interface, 1-18 Protocol, free serial interface, 19-2 Protocols, 1-4 ProTool, 5-15, 6-2 R Rack, 12-7, 12-9, 12-15 RAM failure, A-1 Range of values, integer variables, 20-3, 23-3 Receive mailbox, 7-9, 8-8 Description, 10-21 Recipe Synchronization, 11-18, 14-18 synchronization, 17-18 Transfer of data records, 11-19 Transferring data records, 14-19 Recipe mailbox, 11-21 Interface area, 10-3 Recipe number mailbox, 11-21 Interface area, 10-3 Recipes, 11-18, 14-18, 17-18 Addressing, 11-20, 14-20 addressing, 17-19, 24-18 condition, 24-16 Condition for use of, 11-18, 14-18 condition for use of, 17-18 Data mailbox, 11-22 data mailbox, 24-19 Definition, 11-18, 14-18 definition, 17-18, 24-16 Method of transfer, 11-19, 14-19 number mailbox, 24-19 Recipe mailbox, 11-21 Recipe number mailbox, 11-21 Successive recipe mailbox, 11-22 synchronization, 24-16 transfer data records, 24-16, 24-17 Transfer of data records, 11-18, 14-18 transferring data records, 17-18 type of transfer, 24-17 Remedies, System message, A-2 Requirements, other PLCs, 18-2 Reset, standard FB, 9-7 Index-10 Reset statistics, B-7 Restart, 18-13, 18-18 Restarting, While PLC job is running, 2-7 Restrictions other PLCs, 18-19 parallel connection, 9-3 Result of logical operation, 3-4, 3-5, 4-4, 4-9, 5-7, 6-10, 10-6 S S7 Address, 12-7, 12-15, 12-31 PROFIBUS-DP, 12-13 S7 positioning modules, 12-24 S7 SINUMERIK modules, 12-26 S7-300 Connection via PROFIBUS-DP, 12-13 MPI address, 12-8 Number of nodes, 12-5, 12-13 S7-300 addresses, 12-8 S7-400 Connection via PROFIBUS-DP, 12-13 MPI address, 12-11 S7-400 addresses, 12-11 Sample file, file name, 22-4 SAP, 8-10 Save, scratch flags, 9-22 Scheduler bits, 13-3, 13-6 Interface area, 4-8, 10-4 Scheduler times, 4-12, 10-10 Scheduler type, 4-12, 10-10 Scratch flags, 9-22 Scratch pad flags, 2-7 Screen display, 19-4 select, 20-5, 21-4, 22-5 Update rate, 2-6, 12-32 Screen number area, 11-13, 14-13, 17-13, 24-11 Screen update, Partial, 2-6, 12-32 Scroll event messages, B-12 Select, PLC, 18-16 Select directory, B-3 Select function screen, B-3 Select menu, B-9 Select recipe, B-10 Select screen, B-9 Send mailbox, 7-9, 8-8 Description, 10-21 Serial interface module, C-3 Service Access Point, 8-10 Set brightness, B-6 Communication User's Manual Release 05/99 Index Set contrast, B-6 Set date, B-4 Set interface parameters, B-5 Set password level, B-7 Set relay, B-3 Set time, B-4 Setting up data areas, 7-6, 8-5, 9-6 data blocks, 20-3, 21-2, 22-3 SHIFT, 24-7 SHIFT key, 11-8, 14-8, 17-8 SIMATIC 500/505 addressing recipes and data records, 17-19 Commissioning, 15-3 Configuration, 15-2 configuration example, 20-4 Control and acknowledgment bits, 16-3 data blocks, 20-3 Description, 15-1 example file, 20-4 function keyboard assignment area, 17-11 identifications, 17-19 interface, 20-2 Job mailbox, 16-5 keyboard assignment areas, 17-8 LED assignment area, 17-12 Life bit, 16-3 operating unit operating mode, 16-3 Optimization, 15-8 Permissible data areas, 15-4 screen number area, 17-13 Standard cable, 15-3 transferring data records, 17-18 trend request area, 17-15 trend transfer area, 17-15 user data areas, 17-2 User data types, 15-4 user version, 17-17 SIMATIC 500/505 connections features, 1-18 Possible connections, 1-8 SIMATIC HMI documentation, F-1 SIMATIC S5 AS511 connection, 3-1, 4-1 Commissioning AS511, 4-4 commissioning AS511, 3-4 Commissioning FAP, 5-5 Commissioning PROFIBUS-DP, 6-8 Compressing the program memory, 2-7 function keyboard assignment area, 11-11 Interrupt processing, 2-7 Keyboard assignment areas, 11-8 Communication User's Manual Release 05/99 LED assignment area, 11-12 Life bit monitoring, 4-15, 10-14 Number of interface area, 4-14, 10-12 operating unit firmware version, 4-14, 10-12 parallel connection, 9-1 PLC and connection ID, 4-14, 10-12 screen number area, 11-13 SINEC L1 connection, 7-1 SINEC L2 connection, 8-1 Standard FB version number, 4-14, 10-13 Standard function block, 2-3 system keyboard assignment area, 11-9 trend request area, 11-15 trend transfer area, 11-15 user data areas, 11-2 User version, 11-17 SIMATIC S5 connections AS511, 1-9 FAP, 1-10 FAP connection, 5-1 parallel connection, 1-14 Possible connections, 1-7 PROFIBUS, 1-13 PROFIBUS-DP, 6-1 SINEC L1, 1-12 SIMATIC S7, 12-1 Addressing recipes and data records, 14-20 alarm messages, 14-3 Communication peers, 12-5, 12-6, 12-13, 12-14, 12-30 configuring the operating unit, 12-5 Connection ID, 13-5 Control and acknowledgment bits, 13-3 Date and time, 13-3, 13-6 DP direct keys, 12-18 event messages, 14-3 Function keyboard assignment area, 14-11 HSA, 12-7, 12-15, 12-31 Identifications, 14-20 Job mailbox, 13-5 keyboard assignment area, 14-8 LED Assignment Area, 14-12 Life bit, 13-4 Master, 12-7, 12-15, 12-31 Network parameters, 12-6, 12-14, 12-30 operating unit operating mode, 13-4 Operating unit parameters, 12-6, 12-14, 12-30 operating unit startup, 13-4 PLC job, 13-5 Recipes, 14-18 Scheduler bits, 13-3, 13-6 Index-11 Index Screen number area, 14-13 system keyboard assignment area, 14-9 Transferring data records, 14-19, 14-22 Trend transfer area, 14-15 user data areas, 14-2 User version, 14-17 SIMATIC S7 connection S7-200 connection via PPI, 12-29 via MPI, 12-5 SIMATIC S7 connections MPI, 1-15 Possible connections, 1-8 PPI, 1-17 PROFIBUS-DP, 1-16 SIMATIC S7-200, 12-5, 12-29 SIMATIC S7-300, 12-5 SIMATIC S7-400, 12-5 Simulate keyboard, B-12 SINEC L1 communication structure, 7-4 description, 7-1 overview, 7-2 standard FB, D-7 SINEC L1 connection, Brief summary, 1-12 SINEC L2 communication structure, 8-3 description, 8-1 interface module, C-9 overview, 8-2 standard FB, D-9 SINEC L2-DP interface module, C-11 standard FB, D-10 Size, acknowledgment areas, 24-6 Size of acknowledgement areas, 14-7 Slave address, 7-3 SLC 500, 22-2 Software package, COM 530, 7-3 Software requirements parallel connection, 9-3 PROFIBUS-DP connection, 6-2 SINEC L1 connection, 7-2 SINEC L2 connection, 8-2 Source address, Allen-Bradley, 22-3 Source code, 19-4 Specified configuration, 6-15, 6-18 Standard cables Allen-Bradley, 22-2 block drivers, 20-2 free serial interface, 19-2 Mitsubishi FX, 21-2 other PLCs, 18-3, 23-2 Index-12 serial interface module, C-5 Standard configuration, parallel connection, 9-2 Standard FB Error numbers, A-25 file name, 9-6 Invoking, 5-7, 6-10 reset, 9-7 startup, 9-7 technical specifications, D-1 Version number, 10-21 Standard FB files, 2-3 Standard FB version number, SIMATIC S5, 4-14, 10-13 Standard FBs Errors, A-24 File names, 2-3 Standard function block, 2-3 Starting, 4-9, 10-6 Standby message, 9-15 Startup organization block, 9-7 standard FB, 9-7 TD/OP, 18-13, 18-18 Startup organization block, 3-4, 4-4, 5-7, 6-10 Static parameter record, 5-13 Station number, 6-15, 6-18 Station type, 6-15, 6-18 Stop bits, 18-16, 19-4 STOP mode, CPU, A-24 Storage method, Errors, A-25 Strobe signal, 9-2 Structure alarm message, 9-18 data blocks, 18-9 event messages, 9-18 job mailbox, 9-17, 18-11 of data blocks, 18-7 output value, 9-19 parallel module, C-7 SINEC L2-DP module, C-11 SINEC L2-Modul, C-9 Structure of a PLC job, 4-16, 10-15 Structure of the documentation, F-1 Sub-D socket, C-3, C-4, C-10, C-12 Successive recipe mailbox, 11-22 Interface area, 10-3 Switch buffer, 11-15, 14-15, 17-15, 24-13 Switch elements, serial interface module, C-5 Switching frequency, 9-3 Synchronization, 11-18, 14-18, 17-18, 24-16 Data record transfer, 11-23 System Keyboard, communication bit, 24-9 Communication User's Manual Release 05/99 Index System keyboard, B-14 assignment, 24-8 System keyboard assignment area, 11-9, 14-9, 17-9 System limits PROFIBUS-DP connection, 6-2 SINEC L2, 8-2 System messages List of, A-1 operating unit, A-1 T Target groups, F-1 TD, 9-2 Technical specifications parallel module, C-8 serial interface module, C-6 SINEC L2 module, C-10 SINEC L2-DP module, C-12 standard FBs, D-1 Telemecanique data blocks, 23-3 example configuration , 23-4 example file, 23-4 interface, 23-2 Text-based display Recipe mailbox, 11-21 Successive recipe mailbox, 11-22 Text-based display unit, Definition, 1-2 Time displaying, 19-4 transfer, 18-12 Time-triggered trends, 11-15, 14-15, 17-15, 24-13 TISOFT, 20-4 TP, PROFIBUS screen number, 12-23 Transfer actual values, 18-18 configuration, 19-3, 20-4, 21-3 Data record, 11-23 data records, 24-17, 24-20 data areas, 24-19 date, 18-12 job header, 9-20 job parameters, 9-20 line, 9-22 messages, 9-20 PLC jobs, 9-20 project, 20-5, 21-4, 22-5 setpoints, 18-18 time, 18-12 Communication User's Manual Release 05/99 two-way, 18-18 variables, 9-20 Transfer a data record Direct, 24-17 Indirect, 24-17 Transfer date/time, B-7 Transfer rate, 20-3 Transferring data records, 11-19, 14-19, 14-22, 17-18, 17-20 Data areas, 11-21 Direct method, 11-19, 14-19 Indirect method, 11-20, 14-20 Trend request area, 11-16, 14-16, 17-16, 24-14 Trend transfer area, 14-15, 14-16, 17-16, 24-14 Trends, 11-15, 14-15, 24-13 Bit-triggered, 14-15 bit-triggered, 11-15, 17-15, 24-13 Time-triggered, 14-15 time-triggered, 11-15, 17-15, 24-13 trends, 17-15 Trigger alarm messages, 19-4 event messages, 19-4 messages, 9-16 PLC jobs, 9-16 Two-way transfer, 18-18 Types of connection Components, Required, 2-2 Overview, 1-2 U Update time, 2-5, 12-32, 15-8, 24-22 User data areas alarm messages, 11-3, 17-3, 24-3 Block Drivers, 24-1, 24-2 event messages, 11-3, 17-3, 24-3 functions, 24-2 optimization, 12-32, 24-22 range of functions, 11-2, 14-2, 17-2 recipes, 11-18, 17-18 SIMATIC 500/505, 17-1, 17-2 SIMATIC S5, 11-1, 11-2 SIMATIC S7, 14-1, 14-2 Writing variables indirectly, 11-26, 14-26 writing variables indirectly, 24-21 User data types, 15-4 User version, 11-17, 14-17, 17-17, 18-18, 24-15 Index-13 Index V V memory, 20-3 Variable internal values, 23-3 Variables, 12-2 area, 9-18 configuring, 18-17 integer, 20-3, 23-3 Screen, 2-6, 12-32 transfer, 9-20 write indirectly, 24-21 Writing indirectly, 11-26, 14-26 Index-14 Version number firmware, 18-11 Standard FB, 10-21 structure, 9-14 W Watchdog, 4-15, 10-14 Watchdog function, 18-13 Wiring faults, detection, 9-8 Communication User's Manual Release 05/99