Purebits x4 Wartungshandbuch

Stöbern Sie online oder laden Sie Wartungshandbuch nach Audioverstärker Purebits x4 herunter. Purebits x4 Technical data Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 568
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
Volume 1 of 2
CP 5430 TF with COM 5430 TF, CP 5431 FMS with COM 5431 FMS
1
Introduction
C79000-B8976-C060/02
11
Data Transmission with Distributed
I/Os
2
System Overview
12
Service- und Diagnostic Functions
on SINEC L2 Bus using
FMA Services
3
Fundamentals of the Modul
13
Clock Services
4
Technical Description/Installation
14
Documentation and Testing
5
Selecting the Type of
Communication
15
Utilities
6
Basics of Configuration with NCM
16
Working with the Application
Examples
7
Data Transmission Using S5-S5
Links
17
Appendix
8
Data Transmission by Direct
Access to Layer 2-Services
A
Abbreviations
9
Data Transmission with Global
I/Os
B
Index
10
Data Transmission with Cyclic
I/Os
C
Further Reading
SINEC is a trademark of Siemens
Siemens Aktiengesellschaft
SINEC
6GK1970-5AB01-0AA1 C79000-G8976-C048 Release 02
Seitenansicht 0
1 2 3 4 5 6 ... 567 568

Inhaltsverzeichnis

Seite 1 - Siemens Aktiengesellschaft

Volume 1 of 2CP 5430 TF with COM 5430 TF, CP 5431 FMS with COM 5431 FMS1IntroductionC79000-B8976-C060/0211Data Transmission with Distributed I/Os2Sys

Seite 2

9 Data Transmission with Global I/Os 9 - 19.1 Basics of Data Transmission with Global I/Os 9 - 39.1.1 Checking the Data Transmission with ANZW and the

Seite 3 - C79000-B8976-C060/02

Chapter 5.7 provides a brief overview of SINEC FMS. In Volume 2 (CP5431 FMS), you will find the complete description of communication withSINEC FMS an

Seite 4 -

5.1 Data Transmission with HDBs (S5-S5)Data transmission with HDBs on configured links is suitable for thetransmission of related blocks of data up to

Seite 5

5.2 Data Transmission with HDBs (Free Layer 2Access)This type of data transmission is suitable for communication betweenSIMATIC S5 programmable contro

Seite 6

5.3 Data Transmission with Global I/Os (GP)Data transmission with global I/Os (I/O interface) is suitable forcommunication between SIMATIC S5 PLCs. Th

Seite 7

Special features: With this type of communication, the base interface is always used. Data isonly transmitted when the status of bytes has changed. If

Seite 8

5.4 Data Transmission with Cyclic I/Os (ZP) (CP 5430 TF)Data transmission with cyclic I/Os is suitable for communication betweenSIMATIC S5 PLCs and PR

Seite 9

5.5 Data Transmission with Distributed I/Os (DP)Data transmission via L2-DP (distributed I/Os) provides a standardizedinterface for communication betw

Seite 10 - Contents B8976060/02

5.6 Communication with TF (CP 5430 TF)Owing to its complexity, TF communication is discussed in detail in Volume2 (CP 5430 TF). This section simply pr

Seite 11 - B8976060/02 Contents

program development (the system grows with the requirements of theuser) and also means a reduction of training costs.➣ Bridges can be implemented with

Seite 12

5.7 Communication with FMS (CP 5431 FMS)FMS communication is discussed in detail in Volume 2 (CP 5431 FMS).Here, there is only a overview of the servi

Seite 13

11 Data Transmission with Distributed I/Os 11 - 111.1 Basics of SINEC L2-DP 11 - 411.1.1 The SINEC L2-DP Interface for the CP 5430 TF/CP 5431FMS 11 -

Seite 15

6 Basics of Configuration with NCMTo configure the CP you require the corresponding software package COM5430 TF/COM 5431 FMS, simply called COM from n

Seite 16 - Volume 1 XII

6.1 SINEC NCMTo make it easier to handle the increasing number of different configuringand test tools, SINEC COM products now have the management inte

Seite 17 - 1 Introduction

6.1.1 The KeyboardFunctions are executed using standard keys or key combinations.The following list shows the assignment of the most commonly used COM

Seite 18 - Introduction B8976060/02

6.1.2 Menu Structure and OperationThis chapter briefly explains the structure, functions and operation of SINECNCM.The user interface is designed so t

Seite 19 - B8976060/02 Introduction

➣Explanation of the menu bar and the individual pull-down menus.From the menu bar you can obtain all the menu items. The menu itemsin the menu bar rep

Seite 20

6.1.3 COM Screen Layout and OperationThe COM software is operated exclusively via screens and softkey menus.The softkey menus display the possible bra

Seite 21

Screen title bar:Screen name: Description of the path in abbreviated form, e.g. "InitEdit"Context: Screens specific to the CP: name of the

Seite 22

➣Once you have processed a screen completely and want to enter thedata, press F7 or the enter key to transfer the data to the databasedisplayed as the

Seite 23

6.1.4 Special WindowsThese windows are used by NCM to provide help and information and aredisplayed automatically or after selecting a pull-down menu

Seite 24

11.8.3 Cyclic and Acyclic Transmission of Global_Control Commands 11 - 6911.8.4 Special Job "STOP DP polling list processing" 11 - 7412 Serv

Seite 25 - 2 System Overview

6.2 Installation and StartFree working memory capacity of at least 590 Kbytes is required to useSINEC NCM.Make sure that you have enough free space on

Seite 26 - System Overview B8976060/02

✔Call the command interpreter (KOMI) with >S5, then press the <insert>or <OK> key.– Selecting the package under S5 DOS stage VActivate

Seite 27 - 2.1 SINEC Overview

6.3 General Guidelines for Working with your SoftwareWhen designing your bus system, follow the procedure outlined below:➣Find out how many PLCs and f

Seite 28

With ONLINE, you select the ONLINE functions of the COM. It is assumedthat the PG is connected directly to a CP or to a remote bus station via abus se

Seite 29 - SINEC L2/L2FO

6.4 Overview of Basic ConfigurationTo provide you with an overview of the structure and procedures involved inconfiguration, these aspects are explain

Seite 30

When you first call SINEC NCM, the screen Init -> Edit appearsautomatically. Unless this screen is filled out correctly and completely, youcannot p

Seite 31 - B8976060/02 System Overview

2. Edit -> CP Init basic initialization (SYSID) blockHere you program the system parameters which describe the generalallocation of the CP to a pro

Seite 32

6.5 Screens for Basic Configuration6.5.1 EditingWhen you first call SINEC NCM, you are requested to select a CP type inthe Init-Edit screen. Using the

Seite 33

Input fields:CP type: Here, you can choose between the various CPsintegrated in SINEC NCM:(possible selections: e.g. CP 5430 TF, CP 5431 FMS,CP 5412,

Seite 34

Documentation:Footer: With this you decide whether you want a footer printedout at the end of each page (refer to footer file, possibleselections: ON

Seite 35 - Passive stations on bus

12.9.3 Program Examples for the FDL_LIFE_LIST_CREATE_REMOTE Service 12 - 4212.9.4 Program Example for the FDL_LIFE_LIST_CREATE_LOCAL Service 12 - 4312

Seite 36

Function keysF7 OK The "OK" function key enters the data. If the module filedoes not yet exist it is set up after confirmation.F8SELECTIf yo

Seite 37

➣Transfer of parameters which define certain responses of the module.➣Display of the firmware version of the module.When you set up a new module file,

Seite 38

Active / passive The CP 5430 TF/CP 5431 FMS must be active.Network file Here, the local system is assigned to a network. Thenetwork is managed indepen

Seite 39

Date created: Date (max. 8 ASCII characters)Plant designation: Designation of the plant (possible selections: ASCIIcharacters).Output fieldsSubmodule

Seite 40

6.5.3 Network ParametersIf you do not make entries in the network parameter screens, the COMautomatically enters the default values.The network parame

Seite 41 - 2 - 17 Volume 1

6.5.3.1 Global Network ParametersIn this screen you can modify the bus parameters for the whole network.The screen is divided into three logical areas

Seite 42 - 2.3 Network Topology

Input fieldsCumulative topology info:No. of remoteactive stationsThe number of active stations not included in thetopology file. These are normally st

Seite 43 - 2 - 19 Volume 1

Setup time (TSET): Minimum "dead time" between the reception of anacknowledgment before sending a new call frame bythe initiator (range of v

Seite 44

Function keysF1CALCULATEThis key triggers the calculation of the bus parameterdatabased on the information.F7 OKThe "OK" function key en

Seite 45

Select Edit -> Local Network Parameters to call the COM screen. Thescreen has the following layout:Input fields:Highest stationaddress (HSA):Highes

Seite 46 - Volume 1 2 - 22

14.2.2.2 Display of the GP Output Values 14 - 1514.2.2.3 Display of the GP Input Values 14 - 1814.2.3 ZP Test Functions (CP 5430 TF) 14 - 2114.2.3.1 T

Seite 47 - 2.4 Configuring the Network

Default SAP: When an L2 frame is received without a destinationSAP number, the layer 2 firmware automatically selectsthe default SAP. Maximum no. ofre

Seite 48

Maximum stationdelay (max. TSDR):(Maximum protocol processing time)An initiator must wait at least this time after transmittingbefore sending a furthe

Seite 49

Function keys:F7 OKThe "OK" function key enters the data. If the module filedoes not yet exist it is set up after confirmation.F8SELECTI

Seite 50

6.5.4 Network FunctionsUnder the main menu item Network, you can call all the functions for thenetwork. sind.☞The network file assigned to a database

Seite 51 - 3 Fundamentals of the Model

6.5.4.1 Network OverviewThe network overview displays all the database files belonging to a network(i.e. nodes) in a list. By selecting a node, you ca

Seite 52

L2 address: Bus address of the stationBus stationtype:CP or DP slaveFunction keys:SHIFT F1 PAGE +Page one page downSHIFT F2 PAGE -Page one page up

Seite 53 - 3 - 3 Volume 1

6.5.4.2 Network MatchingIn the global network parameters screen you can define all the busparameters for all stations on the network. These bus parame

Seite 54

- Network file: Here, a network file is displayed whose name wasassigned in the Edit -> CP Init screen and whichcontains bus parameters created wit

Seite 55

6.5.4.3 GP ConsistencyThis function starts a consistency check of the global I/Os within a networkfile. If the check detects that GP output bytes over

Seite 56

- Network file: As default, the name of the last network you worked onis displayed.Update: Range of values:CYCLE SYNCHRONIZED: All configuration setti

Seite 57

17.4.1 Messages in the status word for predefined S5S5 links, free layer 2 and FMA 17 - 617.4.2 Global I/Os - Error Bits 17 - 1017.4.3 Cyclic I/Os Err

Seite 58

6.5.4.4 Default S5-S5 LinksThis menu item allows simple configuration of an S5-S5 link. Default linksare generated between all the systems on the netw

Seite 59

Input field:Network file: Format: Drive : Network file name- Drive: Here, you specify the drive you want to work with. Youcan display possible drives

Seite 60

6.5.4.5 Network DocumentationThis function provides you with global network documentation of the variousservices.After selecting the required document

Seite 61

The following documentation filters are available:All: complete documentation of the network (starting with the network overview list).Topology: outpu

Seite 62 - STATION 2

6.5.4.6 ArchivingWith this function, you can archive a whole network on disk. .Input field:Network file: Format: Drive : Network file name- Drive: Her

Seite 63

Output field:Status: Displays the status of the currently active archivingfunction.Function keys: F7OKStarts the archiving F8SELECTIf you press this k

Seite 64

6.6 Transfer Functions Using the transfer functions, a parameter set, e.g. a submodule file of a CPcreated locally can be transferred. The commands st

Seite 65

In the ONLINE mode, the transfer is between the hard disk (= FD) and thememory submodule of the CP. If the memory submodule is an EPROM,only transfer

Seite 66

6.6.1.2 Stop CPSelect Transfer -> Stop CP, to call the function. This function changes theCP to the STOP mode. A dialog box which you can exit by p

Seite 67

6.6.2 Delete CPWith the delete CP command, you can delete the content of a RAMsubmodule. To prevent you deleting data accidentally, this command mustb

Seite 68

Contents B8976060/02Volume 1 XII

Seite 69 - 4.1 Technical Description

6.6.3 Delete FDWith the Delete FD command you can delete the contents of a databasefile. To prevent data being accidentally deleted, this command must

Seite 70

6.6.4 CP Database TransferSelect Transfer -> CP Database Transfer, to change to the submenu.6.6.4.1 FD -> CPSubmodule files created OFFLINE are

Seite 71

Function keys:F1SINGLEThe blocks are transferred singly to the CP. For themeaning of the individual blocks refer to Fig. 6.27/6.28in this chapter.F2TO

Seite 72 - Volume 1 4 - 4

6.6.4.2 CP -> FDThe submodule files are transferred from the CP to FD. The PG must,however, be ONLINE with the CP at the time of the transfer. The

Seite 73

Output fields:Dest. file This is the file in which the database from the CP isstored.Function keys:F1SINGLEThe blocks are transferred singly to the CP

Seite 74

6.6.4.3 FD -> EPROMThe data records on FD (diskette or hard disk) are written directly to theEPROM (blown). Select CP Database Transfer -> FD -&

Seite 75

Function keys:F7 OKThe data are transferred to the EPROM.F8SELECTIf you press this key, a selection list is displayed withpossible entries for fie

Seite 76

Output fieldsDest. file This is the file in which the database from the EPROMis stored.Function keys:F7OKAll the data are read from the EPROM and stor

Seite 77 - Multiprocessor PLCs

Input fields:Dest. file Here, you specify the drive (e.g. A: for floppy disk or B:for a hard disk) and the name of the destination file(possible value

Seite 78 - Monoprocessor PLCs

6.7 Link ConfigurationThis menu item is available in all SINEC NCM COMs but the screen layoutdiffers depending on the protocol or type of data transmi

Seite 79

1 Introduction The manual for the CP 5430 TF and CP 5431 FMS is divided into twovolumes. This volume, Volume 1 of the manual describes the PROFIBUS(PR

Seite 80

6.8 Basic ConfigurationFor basic configuring, the software package COM 5430 TF/COM 5431 FMSis used under SINEC NCM.The screens required for basic conf

Seite 81

General Procedure:During configuration, the following must be done for each station:➣A database file must be assigned in the Init -> Edit screen pe

Seite 82

6.8.1 Block Overview CP 5430 TFBlock MeaningPB1 Link list for S5-S5 linksPB2 GP inputsPB3 GP outputsPB4 ZP listPB7 DP listOB2 SAP list for FL2 accessO

Seite 83

6.8.2 Block Overview CP 5431 FMS❑Block MeaningPB1 Link list for S5-S5 linksPB2 GP inputsPB3 GP outputsPB5 ZI listPB7 DP listOB2 SAP list for FL2 acces

Seite 85

7 Data Transmission Using Configured S5-S5LinksThis chapter describes how to transmit data using handling blocks viaconfigured S5-S5 links. The follow

Seite 86

7.1 Basics of Data Transmission with HDBs onConfigured S5-S5 LinksThe following applies for the CP 5430 TF/CP 5431 FMS:The firmware of the module gene

Seite 87 - 4 - 19 Volume 1

☞Make sure there can be no overlapping of job numbers andLSAPs for FMS links. COM 5431 FMS does not check thisautomatically.Checking data transmission

Seite 88 - 4.2 Memory Submodules

7.1.1 Sequence of the Data TransmissionFigs. 7.1 to 7.3 are schematics showing how the relevant bits of the ANZWchange during correct or incorrect dat

Seite 89 - 4.3 Installation Guidelines

If errors occur during the data transmission, the acknowledgment may befrom either the remote or local CP depending on the error.S5 add.ANZWANRSSNRPAF

Seite 90

The network is configured with COM 5430 TF/COM 5431 FMS underSINEC NCM (Network and Communication Management). The configurationtool can be run on the

Seite 91 - 4 - 23 Volume 1

7.1.2 Checking with ANZW and PAFEThe status word is part of a double word specified in the calling HDB. Thesecond part of the double word is formed by

Seite 92

Bits8 -11Meaning of the error bits0HNo error.If bit 3 "job complete with error" is nevertheless set, this means thatthe CP has set up the jo

Seite 93 - 4 - 25 Volume 1

Bits 8 -11Meaning of the error bits9HRemote error.The remote CP has acknowledged the job negatively because e.g. theSAP assignment is incorrect. Remed

Seite 94

The parameter assignment error byte (PAFE) informs you about variousparameter assignment errors. When assigning parameters for the individualblocks, y

Seite 95 - . . . . . . . .

7.2 ConfiguringTo assign parameters for S5-S5 functions, the software package COM 5430TF/COM 5431 FMS is used under SINEC NCM.The screen forms require

Seite 96

General procedure:To implement a simple task (transferring data from PLC 1 to PLC 2 viapre-configured links with HDBs) the following procedure is requ

Seite 97 - Small device

These links are either saved in a submodule file (offline mode) or writtendirectly to the CP submodule or modified there (online mode). This meansthat

Seite 98

"High": frames with this priority are given preference during data exchange.This means that if an L2 station has no more token time availabl

Seite 99

Function keys:F1+1Page forwards through the links for several S5-S5 links.F2-1Page backwards through the links for several S5-S5links.F4 INPUTPrepare

Seite 100 - Volume 1 5 - 2

7.3 Example of a Program for an S5-S5 LinkThe aim of the example is to set up a communication system that allowssimple control of the activity on a SI

Seite 101

General symbols:✔ This character indicates an activity or operation for you to perform.☞This symbol highlights special features and dangers.mm Th

Seite 102

The following software packages are also required:➣COM 5430 TF/COM 5431 FMS under SINEC NCM➣PG software for STEP 5 programming➣Appropriate handling bl

Seite 103

7.3.1 Outline of the TaskData from PLC 1 will be transmitted via configured links using HDBs to PLC2 and data will be transmitted via configured links

Seite 104

PLC 2➣DW 1 is incremented in DB 20.➣After DW 1 has been incremented in DB 20, this is transmitted to PLC 1using HDB SEND.➣HDB SEND is assigned the val

Seite 105 - (CP 5430 TF)

7.3.1.1 Program for PLC 1 (S5-155 U)When the PLC starts up, the CP interface is synchronized with theSYNCHRON handling block.PLC 1 increments data wor

Seite 106

7.3.1.2 Program for PLC 2 (S5-115 U)The CP interface of PLC 2 must also be synchronized during start-up usingthe SYNCHRON handling block. The SYNCHRON

Seite 107

When using the CP 5431 FMS under the network file AGAGQNCM.NET– for station 1 QAGAG.155– for station 2 QAGAG.115.➣Transfer the following STEP 5 files

Seite 108

7.3.3 Monitoring the Data TransmissionThe data transmission can be monitored best by using two PGs. Connectone PG to one CPU and display the data bloc

Seite 109

8 Data Transmission by Direct Access toLayer 2 ServicesThis chapter explains the following aspects:➣ The devices and applications for which "data

Seite 110

8.1 Basics of Data Transmission using Layer 2ServicesThe following applies to the CP 5430 TF/CP 5431 FMS:The firmware of the modules generates S5 fram

Seite 111

8.1.1 FDL Services implemented in a CP 5430 TF/CP 5431 FMS forData TransmissionThe layer 2 firmware of the CP 5430 TF/CP 5431 FMS provides variousserv

Seite 112 - 6.1 SINEC NCM

Siemens Aktiengesellschaft Elektronikwerk KarlsruhePrinted in the Federal Republic of GermanyWir haben den Inhalt der Druckschrift auf Überein-stimm

Seite 113

Requirements of the userTo understand the examples, you should have the following:➣Knowledge of programming with STEP 5➣Basic knowledge of the use of

Seite 114

Using the services for the actual data transferThe data to be transmitted (max. 242 bytes "net data") and the receiveddata (also max. 242 by

Seite 115

Description of the parameters in the headercom_class: 1 byte, format: KH FDL request =00H in transmit buffer: Service request to layer 2FDL co

Seite 116 - Fig. 6.2 Screen Layout

service_code: 1 byte, format: KH This identifies the type of service requested for thetransmitting job buffer:SDA=00HSDN=01HSRD=03HRPL_UPD_S=06HRPL_UP

Seite 117

rem_add_station: 1 byte, format: KHWhen transmitting, this indicates the station address ofthe receiver station, coded in hexadecimal.When receiving,

Seite 118

Value oflink_statusAbbreviationPROFIBUSMeaning SDA00H01H02H03H11H12HOKUERRRSNADSpositive acknowledgment, service exec

Seite 119 - Fig. 6.3 Special Window

8.1.2 How Data Transmission by Direct Access to Layer 2 ServicesFunctionsThe first 8 bytes of the block of data to be transmitted (in the header)conta

Seite 120 - 6.2 Installation and Start

The link to communication end points is via so-called channels. Tocommunicate via the free layer 2 access, a link must be configured using"channe

Seite 121

With the link editor you specify the following:➣The interface number➣The assignment between:– SEND/RECEIVE job numbers ANR (range: 134 to 186). The sa

Seite 122

☞The firmware of the CP 5430 TF/CP 5431 FMS activates all thespecified SAPs for the services SDA, SDN and SRD (both forthe initiator and responder fun

Seite 123

8.1.3 Handling the Individual Data Transmission Services from thePoint of View of the Control ProgramThe SEND block can be used to transfer an FDL req

Seite 124 - = Init Edit

To help you find your way through this manual (Volume 1) the remainder ofthis section outlines the chapters briefly.Chapter 2 System Overview This cha

Seite 125

The status word is part of a double word defined by the parameter ANZW inthe HDB call. The second part of the double word is the length word whichindi

Seite 126

If the bit "job complete with error" is set in the status bits, the "error bits"provide the coding of the cause. With the "ch

Seite 127

Bits8-11Meaning of the error bits0 No error.If bit 3 "job complete with error" is nevertheless set, this means that the CP hasset up the job

Seite 128

Structure of the parameter assignment error byteThe parameter assignment error byte (PAFE) informs you about variousparameter assignment errors. When

Seite 129

8.1.5 Sequence of the Data TransmissionTo understand how the services are handled, the following section showshow a data exchange must be coordinated

Seite 130

Start-up OBs for SIMATIC S5 PLCsYou must call the SYNCHRON handling block for the interface number ofthe CP 5430 TF/CP 5431 FMS in the start-up OB.Tra

Seite 131

Control program senderS5 add.ANZWANRSSNRPAFECPAnzw = Job_active receive possibleAnzw = Job_active(data)CPBUSFBSENDAnzw = RECEIVE possibleSDA-Requeste.

Seite 132

Transmitting and receiving data without acknowledgment (service:SDN)Sequence of the transmission☞In contrast to the SDA service, the sender does not r

Seite 133

Transmitting data with request to receiver to return data (service: SRD)Sequence of the transmission:Before the sender requests data from the receiver

Seite 134

With the RPL_UPD_M service, the data remain in the buffer until the bufferis overwritten. This means that the data can be read out more than once.How

Seite 135

Chapter 6 Basics of Configuration with NCMThis chapter contains an introduction to working with SINEC NCM andCOM 5430 TF/COM 5431 FMS. It is intended

Seite 136

CPCP(remote)BUSAnzw = Job active (...2Anzw = Job_complete_without_errorS5 add.ANZWANRSSNRe.g..:DBHeaderDATA21Request dataas soon as data are read out

Seite 137 - * Bit time

Once the requirements for the SRD service are met, the sender cantransmit data to the receiver and fetch the data from the receiver’s buffer.Fig. 8.11

Seite 138

Control program senderS5 add.ANZWANRSSNRPAFECPAnzw = Job_active receive possibleAnzw = Job_active(data)CPBUSFBSENDAnzw = RECEIVE possibleSRDrequeste.g

Seite 139

Special case: requesting data (service: SRD with 0 bytes of data to betransmitted)Sequence of the transmissionIf the sender does not have data to tran

Seite 140

8.2 Transmitting Multicast Messages by Direct Accessto Layer 2 ServicesIf the transmitted data are intended for several stations simultaneously(using

Seite 141 - * Bit time:

Another way of sending multicast messages to all stations is to use thedefault SAP. This SAP which can be programmed with the Init editor of theCOM 54

Seite 142

Fig. 8.13 illustrates how all the stations assigned a default SAP in the range2..54 can receive a multicast frame.☞COM 5430 TF/COM 5431 FMS automatica

Seite 143 - Fig. 6.11 Network Screen

8.3 ConfiguringThe software package COM 5430 TF/COM 5431 FMS is used under SINECNCM to configure free layer 2 communication.The screens required for c

Seite 144

General procedure:To implement a simple task (transferring data from PLC 1 to the remotedevice via pre-programmed links with HDBs) the following proce

Seite 145

Select Edit -> Links -> Free layer 2 Links to call the following screen. Thescreen is structured as follows:Output fieldsL2 stationaddress: L2

Seite 146

Chapter 12FMA ServicesThis chapter describes the different types of communication including adetailed description of the basics and the configuring pr

Seite 147

SSNR: Interface number corresponding to the PLC DPR pagenumber and therefore forming the CPU-CP interface.The interface number must be uniform for all

Seite 148

8.4 Example of a Layer 2 LinkThis section describes how two stations can be configured with COM 5430TF/COM 5431 FMS to be able to exchange data via di

Seite 149

8.4.1 Program DescriptionTwo SIMATIC programmable controllers with the L2 addresses 1 and 2 areto exchange data via the SINEC L2 bus. The transmitted

Seite 150

8.4.1.1 Program for PLC 1During the PLC start up, the CP interface is synchronized with theSYNCHRON handling block.Four data words will be sent from P

Seite 151

8.4.2 Transferring the Configuration Data for the CP 5430 TF/CP5431 FMS and the STEP 5 User ProgramTo be able to implement the practical example for f

Seite 152

9 Data Transmission with Global I/OsThis chapter explains the following:➣ The applications for which data transmission with global I/Os is suitable.➣

Seite 153

An important characteristic of the global I/Os is that changes in the databytes are recognized and only these changes transmitted. The changeddata byt

Seite 154 - Fig. 6.17 Archiving Screen

9.1 Basics of Data Transmission with Global I/OsThis section describes the functions of the global I/Os from the point of viewof the CPU control progr

Seite 155

➣ Each output I/O byte via which you want to transmit must be assignedto a "global object" (GO). A GO is a global I/O byte (GPB).➣ The GOs a

Seite 156 - 6.6 Transfer Functions

Receiving: on the CP➣ A frame containing changes is received.➣ Locally configured objects are filtered out of the frame.➣ All the filtered values are

Seite 157

Chapter A and BAbbreviations and IndexThe list of abbreviations will help you considerably when working with thismanual since you can check the meanin

Seite 158

Updating the input and output bytes of the global I/OsThe times at which the CP 5430 TF/CP 5431 FMS updates the GP bytesto be transmitted are either➣F

Seite 159

The FREE and CYCLE-SYNCHRONIZED modes are now explained inmore detail.Send GP (free)Explanation of Fig. 9.2:In the free mode, there is no synchronizat

Seite 160

In the PLC program, the control program changes the output byte to betransmitted (PY 7).In the CP cycle, the CP checks all (GP) output bytes for chang

Seite 161

Receive GP in the free modeExplanation of Fig. 9.3:When a frame containing changes is received, the data are entered in theDPR independently of the PL

Seite 162

➣In the bus cycle, GP bytes are only received when the data havechanged on the sender.➣In the PLC, the control program evaluates the received input by

Seite 163

Transmit GP cycle-synchronizedExplanation of Fig. 9.4:In the cycle-synchronized mode, the consistency of the I/O bytes of a PLCcycle is guaranteed. Th

Seite 164

➣The PLC control program changes the output byte to be transmitted(PY 7).➣At the point when the HDB is executed, the CP 5430 TF/CP 5431 FMSrechecks al

Seite 165

Receive GP (cycle-synchronized)Explanation of Fig. 9.5:The consistent acceptance of the input byte by the CP takes place at thecycle checkpoint. The c

Seite 166

➣The PLC control program accepts the received input byte (PY 1).The value of the GP byte at the time of the HDB execution (HDB receivecall with job nu

Seite 167

The following figure (Fig. 9.6) illustrates one way of integrating the HDBs inthe cold or warm restart branch of the PLC.Both in the cold restart bran

Seite 168

2 System Overview The performance of control systems is no longer simply determined by theprogrammable controllers but also to a great extent by the a

Seite 169 - 6.7 Link Configuration

Cyclic operationThe cyclic program has the following structure for all stations in the CYCLESYNCHRONIZED update mode:In cyclic operation, the SEND syn

Seite 170 - 6.8 Basic Configuration

Possibilities of error detection➣Group error message in ANZW (RECEIVE ANR 210)➣Reading the station list (ANR 201).Error statuses within the bus system

Seite 171

9.1.1 Checking the Data Transmission with ANZW and theGP Station ListStructure of the status word with HDB SEND (ANR 210) and RECEIVE(ANR 211):Bits 8.

Seite 172 - Volume 1 6 - 62

☞If there is a group error message, bit 3 of the error statusword is not set!If a station has failed, the corresponding GP input I/O byteson the other

Seite 173 - 6 - 63 Volume 1

Evaluation of the GP station list (HDB RECEIVE with ANR 201)Each CP 5430 TF/CP 5431 FMS which receives global I/Os manages aninternal GP station list.

Seite 174

Fig. 9.10 takes this difference into account in the explanation of theindividual bits of the status byte:A further distinction must be made as to the

Seite 175

➣CYCLE-SYNCHRONIZED: the station list is updated by the CP at the point when the HDBRECEIVE with job number 211 is called in the control program (GPre

Seite 176 - Configured S5-S5 Links

9.2 ConfiguringThe PG package SINEC NCM with COM 5430 TF/COM 5431 FMS is usedto configure the functions.The screens you require for programming are pr

Seite 177

9.2.1 I/O Areas CP 5430 TFThe assignment of input and output areas in the SIMATIC PLC is made forthe global I/Os in a screen.If you specify areas for

Seite 178 - Volume 1 7 - 4

Input fields:GP senders: All the stations from which GP bytes are expected mustbe marked with "X".Recommendation: only enter an X for the st

Seite 179 - 7 - 5 Volume 1

LANs form the basis of the communications system and can beimplemented ➣ electrically➣ optically➣ as an electrical/optical combination.System Overview

Seite 180

Function keys:F7OKThe "OK" key enters the data. If the module file doesnot yet exist, it is set up when you confirm the entries.F8SELECTIf y

Seite 181 - 7 - 7 Volume 1

➣GP and ZP/DP input areas must not overlap.➣GP and ZP/DP output areas must not overlap.➣The reserved input area for GP and ZP/DP must not include gaps

Seite 182 - Volume 1 7 - 8

9.2.2 I/O Areas CP 5431 FMSThe assignment of input and output areas in the SIMATIC PLC is made forthe global I/Os in a screen.If you specify areas for

Seite 183 - 7654 3210

Input fields:GP senders: All the stations from which GP bytes are expected mustbe marked with "X".Recommendation: only enter an X for the st

Seite 184 - 7.2 Configuring

Function keys:F7OKThe "OK" key enters the data. If the module file doesnot yet exist, it is set up when you confirm the entries.F8SELECTIf y

Seite 185 - L2 link

➣GP and ZI/DP input areas must not overlap.➣GP and ZI/DP output areas must not overlap.➣The reserved input area for GP and ZI/DP must not include gaps

Seite 186

9.2.3 Editor for Global I/OsOnce you have reserved the input/output areas for the global I/Os, you mustassign the individual inputs and outputs of the

Seite 187

Output fields:L2 station address: The address of the currently addressed station isdisplayed.Input/outputarea:Here, the I/O area is displayed in which

Seite 188

F8SELECTIf you press this key, a selection list is displayed withpossible entries for fields which cannot be edited freely.Select values from the list

Seite 189

9.3 Example of Data Transfer with Communicationusing Global I/OsThe following example describes an application with cycle-synchronizedglobal I/Os.Hard

Seite 190 - PLC2 (S5-115U)

2.1 SINEC OverviewSINEC (SIEMENS Network Architecture for Automation and Engineering) isthe name of the communications network for SIEMENS programmabl

Seite 191

The following software packages are also required:➣COM 5430 TF/COM 5431 FMS under SINEC NCM➣PG software for STEP 5 programming➣Appropriate handling bl

Seite 192

The distribution of the tasks is as follows:PLC Bus stationnumberTaskS5-155U 1 "head control"- Sends program selection number and controlcom

Seite 193

The following specification of the transmitted and received data includes theassignment of the I/O bytes (PY) to the global I/O bytes (GB).Busstn.no.I

Seite 194

In Figs. 9.16 to 9.20 you can see that the I/O input and output bytes of thethree stations in the manufacturing unit are practically directly connecte

Seite 195

Station 2Station 3Fault1Fault2PY 12PY 122IBQBFig. 9.18: Station 3 Sends Fault Messages to Station 2Station 2Station 3PY 22PY 112Fault1Fault2QBIBFig. 9

Seite 196

Station 2Station 3Auto Man Start StopPO51 PO52 Fault1Fault2PY 4 PY 5PY 120PY 121Position and fault messagesIBQBQBIBFig. 9.20: Station 3 Sends Acknowl

Seite 197 - Layer 2 Services

9.3.1.1 Start-up ResponseDuring a PLC "cold restart" the various PLCs process the following start-upOBs:The start-up OBs have the following

Seite 198 - Services

For the "manufacturing unit" example, the three stations should havedifferent start-up responses:As a result of the conditions listed above,

Seite 199

Station 2:(OB 20, OB21)With this HDB call (job number201) the station list is read inby the CP 5430 TF/list contains the statuses ofthe CPs of all act

Seite 200

Station 3:(OB 20, OB21, OB 22)With this HDB call (job number201), the station list is read inby the CP 5430 TF/CP 5431 FMS.The station list contains t

Seite 201

- triaxial cable (50 Ω)- fiber-optic cable - twisted pair➣ SINEC L2/L2FO,a communications network for the cell and field area according toPROFIBUS wit

Seite 202

9.3.1.2 Cyclic ModeThe cyclic program has the following structure in all stations for theCYCLE-SYNCHRONIZED update mode.HDB SEND call with ANR 210(at

Seite 203

9.3.2 Transferring the Configuration Data for the CP 5430 TF/CP5431 FMS and the STEP 5 User ProgramTo be able to implement the practical example for c

Seite 204 - Volume 1 8 - 8

NotesCommunication with Global I/Os B8976060/01Volume 1 9 - 48

Seite 205

10 Data Transmission with Cyclic I/Os (CP 5430 TF)This chapter contains the following information:➣ The devices and applications for which data transm

Seite 206

required by the user to ensure the consistency of inputs and outputs. ThisHDB also serves to trigger a group job for data transmission. The volume of

Seite 207

10.1 Basics of Data Transmission with Cyclic I/Os (ZP)When you have specified a SIMATIC S5 PLC with a CP 5430 TF as beingan active station, you can pr

Seite 208

Configuring I/O areas for ZPFig. 10.1 illustrates the basic function of the cyclic I/Os. The field device(slave) can only be addressed by the CP 5430

Seite 209

➣receives the reply frames and assigns them to the configured ZP inputbytes of the CPUThe following information is important:➣With field devices, diff

Seite 210

Consistency of the input and output bytes of the ZP➣FREE mode: guaranteed consistency of one byte.➣CYCLE-SYNCHRONIZED mode: guaranteed consistency ove

Seite 211

Procedure with the FREE mode: master transmits to slaveExplanation of Fig. 10.2:➣The control program modifies the output byte to be transmitted (PY 1)

Seite 212 - Volume 1 8 - 16

2.2 The PROFIBUS-Compatible Network SINEC L2/L2FOWithin the open, heterogeneous SINEC communications system, SINECL2/L2FO is the network for the cell

Seite 213

Procedure with the FREE mode: master receives from slaveExplanation of Fig. 10.3:➣The byte received by ZP is transferred to the I/O area of the DPR wi

Seite 214

☞If ZP bytes need to be transferred together because they forma logical unit (e.g. a control parameter requiring a word), theFREE update mode must und

Seite 215

Procedure with the CYCLE-SYNCHRONIZED mode: master transmits toslaveExplanation of Fig. 10.4:➣The control program changes the output byte to be transm

Seite 216 - Volume 1 8 - 20

➣At the point when the HDB is executed, the CP 5430 TF transmits allthe output bytes assigned to the ZP. In contrast to the FREE mode, youdetermine th

Seite 217

➣The control program can then work with these values under PY0.The advantage of the CYCLE-SYNCHRONIZED mode is that the time atwhich the ZP is sent or

Seite 218 - Control program receiver

➣If you have selected the CYCLE-SYNCHRONIZED update mode, thecomplete ZP should be received at the end of a start-up OBThe SEND synchronization point

Seite 219 - 8 - 23 Volume 1

Both in the cold restart branch (OB 20) and in the warm restart branch (OB21/22) each CP interface to be used later must be synchronized(SYNCHRON HDB)

Seite 220 - Volume 1 8 - 24

In cyclic operation, the SEND synchronization point is immediately at thestart of OB 1; the RECEIVE synchronization point at the end of the PLCcycle.

Seite 221 - 8 - 25 Volume 1

10.1.1 Checking the Data Transmission with ANZW and the ZPStation List☞If there is a group error message, bit 3 of the status word(status bit) is not

Seite 222 - Volume 1 8 - 26

Error bits for the RECEIVE-HDB (ANR 211)Error bits of the ZP station list (ANR 202)Bit 11 10 9 8of the status wordReserved for GP error messageZP imag

Seite 223

SINECCP 5430 TF/CP 5431 FMS with COM 5430 TF/COM 5431 FMSDescription C79000-B8976-C060/02

Seite 224

The following devices could be connected to each other via a SINECL2/L2FO network:➣ SIMATIC programmable controllers, S5-95U, S5-115U, S5-115H, S5-135

Seite 225

Structure of the ZP station listThe station list has a length of 16 bytes, with each bit assigned to a stationaddress.All stations configured for ZP a

Seite 226 - Volume 1 8 - 30

If an error occurs, (one or more links not in the data transfer phase), the ZPstation list can be read out at any point. If all the links are function

Seite 227 - 8.3 Configuring

10.2 ConfiguringThe PG package SINEC NCM with COM 5430 TF is used to configure thefunctions.The screens you require for configuring are provided by SI

Seite 228

10.2.1 I/O AreasInput and output areas of the SIMATIC PLC for cyclic I/Os are assigned ina screen.If you also specify areas for GP, you only require t

Seite 229

Input fields:Update: Cycle-synchronized: update at the cycle checkpoint bythe HDB.Free: implicit update of the I/O areas by the CP.Input areasZP/DP ST

Seite 230

☞The input or output area must always begin with an even bytenumber and must always end with an odd byte number.The fields remain empty if no input or

Seite 231 - 8.4 Example of a Layer 2 Link

10.2.2 ZP EditorOnce you have reserved the input/output areas for cyclic I/Os, you mustnow assign part of the reserved area to each field device (slav

Seite 232

Output areaIf you intend to define an output block for the corresponding slave on theDSAP, this block of continuous bytes is specified here.from: The

Seite 233

Function keys:F5 INSERTAn empty line is inserted at the current cursor position.F6 DELETEDeletes the line marked by the cursor in the input oroutput

Seite 234

10.3 Example of using the Cyclic I/OsThe following example describes an application using cycle-synchronizedcyclic I/Os.Hardware and software requirem

Seite 235

2.2.1 StandardsSINEC L2 is based on the reference model of the International StandardsOrganization ISO for "Open System Interconnection" (OS

Seite 236

10.3.1 Program DescriptionTwo programmable controllers (S5-115U and S5-95U) must be linked viathe SINEC L2-BUS.For the example, a simple data exchange

Seite 237

10.3.1.1 Program for PLC 1When a PLC starts up, the CP interface must be synchronized using aSYNCHRON HDB.PLC 1 sends DW 10 of DB 100 to PLC 2 and fet

Seite 238

10.3.2 Transferring the Configuration Data for the CP 5430 TF andthe STEP 5 User ProgramTo be able to implement the practical example for communicatio

Seite 239

11 Data Transmission with Distributed I/OsWith the distributed I/Os system SINEC L2-DP, you can use a large numberof distributed I/O modules and field

Seite 240

The distributed I/Os system SINEC L2-DP consists of active and passivestations on the bus.Active stations (masters) are:– the programmable controllers

Seite 241

ONLINE test and diagnostics with the COM 5430 TF/COM 5431 FMSpackage are described in Section 14.2.4 .☞Simultaneous use of GP/ZP and DP is not possibl

Seite 242

11.1 Basics of SINEC L2-DPSINEC L2-DP is the Siemens implementation of the DIN E19245 Part 3PROFIBUS-DP.The L2-DP protocol uses the functions specifie

Seite 243

➣Communication with other active PROFIBUS devices functioningaccording to the standard DIN 19245 Part 1 and 2 on the bus. Theseconfigurations are suit

Seite 244

11.1.1 The SINEC L2-DP Interface for the CP 5430 TF/CP 5431FMSCharacteristics of the SINEC L2-DP interface of the CP 5430 TF/5431 FMS:➣The CP can only

Seite 245

11.2 CP 5430 TF/CP 5431 FMS L2-DP FunctionsThe following SINEC L2-DP functions are implemented on the CP 5430TF/CP 5431 FMS:➣Assignment of parameters

Seite 246

SIMATIC S5 provides the following connections for these three protocolstandards:➣ The SINEC L2-TF connection with the CP 5430 TF➣ The SINEC L2-FMS con

Seite 247

With the exception of the functions that the user can execute using HDBcalls– read DP slave diagnostic information and – send control command to DP sl

Seite 248

11.3 Communication Between the DP Master and the DPSlave StationDuring the start-up phase, the CP checks whether the DP slave station isoperational by

Seite 249

11.4 Basics of Data Transmission Using the DP Serviceof the CPThis section describes the functions of the DP service from the point of viewof the CPU

Seite 250

11.5 Updating the Input and Output Areas with the DPServiceDepending on the selected mode, the CP distinguishes between two timeswhen the DP output by

Seite 251

11.5.2 How the FREE Mode FunctionsThe following diagram illustrates how the FREE mode functions for outputbytes.Explanation of Fig. 11.5:The output by

Seite 252

The following diagram illustrates how the FREE mode functions for inputbytes.Explanation of Fig.11.6:The input byte information received from the L2 b

Seite 253

☞If DP bytes need to be transferred together (e.g. analogvalues/counted values with word or double word length), theFREE update mode must under no cir

Seite 254

11.5.3 How the CYCLE-SYNCHRONIZED Mode FunctionsThe following diagram illustrates how the CYCLE-SYNCHRONIZED modefunctions for output bytes.Explanatio

Seite 255

In the CYCLE-SYNCHRONIZED mode, all the data located in the outputarea of the CP are accepted and buffered when the HDB send 210 iscalled. At the begi

Seite 256

The following diagram illustrates how the CYCLE-SYNCHRONIZED modefunctions for input bytes.Explanation of Fig. 11.8:The input byte information receive

Seite 257 - 9.2 Configuring

The ISO/OSI reference model is divided into 2 different areas:➣Transport-oriented layers: 1 - 4 ➣Application-oriented layers: 5 - 7In SINEC L2/L2FO th

Seite 258

In the CYCLE-SYNCHRONIZED mode, you as user decide when the DPinput and output data is accepted or transferred by the CP by calling theHDB checkpoints

Seite 259

Relationship between the HDB SEND 210 call and DP polling list cycleThe information transferred to the output area of the CP with the HDBSEND 210 call

Seite 260

Relationship between the HDB RECEIVE 211 call and the DP pollinglist cycleThe data information received during the processing of the DP polling list i

Seite 261

The DP update times are in no way connected to the communicationstaking place on the L2 bus.The data exchange with the L2-DP service between the CP an

Seite 262

11.6 ConfiguringThe PG package SINEC NCM with COM 5430 TF/COM 5431 FMS is usedto configure the DP functions.The screens you require for configuring ar

Seite 263

11.6.1 I/O AreasThe I/O areas used with the DP service are selected in the I/O area editorscreen.☞Simultaneous use of GP/ZP and DP is not possibleSimu

Seite 264

Free:The point at which the I/O areas are updated is decidedby the CP.Input areas:(CP 5431 FMS)CI/DP STA:(CP 5430 TF)ZP/DP STA:Beginning of the (conti

Seite 265

Function keys: F7OKThe "OK" key enters the data. If the module file doesnot yet exist, it is set up when you confirm the entries. F8SE

Seite 266

11.6.2 Assigning Parameters to DP SlavesFor each DP slave to be addressed with the DP service, parameters mustbe assigned using the screen "Edit-

Seite 267

The second slave parameter screen (Fig. 11.14) selected with F6 USERPAR.Input fields:Slave L2 address: Here, you enter the L2 bus address of the DP s

Seite 268

2.2.2 Network Access TechniqueThe medium access technique in SINEC L2/L2FO complies with the tokenbus technique for active stations and master-slave t

Seite 269

The group identifier makes it possible to distinguish the following 8 groups.If no group identifier was specified at the HDB call for the global contr

Seite 270

Slave watchdog time:With this parameter, you decide whether or not theslave operates on the L2-DP bus with watchdogmonitoring ON or watchdog monitorin

Seite 271 - 9 - 37 Volume 1

F8SELECTIf you press this key, a selection list is displayed withpossible entries for fields which cannot be edited freely.Select values from the lis

Seite 272 - Volume 1 9 - 38

11.6.3 DP EditorOnce you have reserved the input/output areas for distributed I/Os and haveentered the parameter data for the slaves to be addressed,

Seite 273 - 9 - 39 Volume 1

Input fields:Input areas: Here, you assign the input bytes of the configured DPslaves to the reserved input area of the CP.The permitted range of valu

Seite 274 - Volume 1 9 - 40

Min. pollingcycle time:Here you select the time intervals at which the DPpolling list is processed.Once all the jobs in the DP polling list have beene

Seite 275 - 9 - 41 Volume 1

Highest min. slave intervalThe time specified here is the highest value of theminimum slave interval of all DP slaves to beprocessed using the DP poll

Seite 276

F3GLOB.DAT.Change to the fields watchdog monitoring time, min.Polling cycle time and clear DP. F5DELETEDelete the input and output areas of a L2-DP s

Seite 277 - HDB SYNCHRON call

ET200U-DP example of a configurationThe following I/O assignments were made with the help of the COM for theET200U-DP station 10 described below:I/O a

Seite 278 - Volume 1 9 - 44

11.6.4 Example of using the DP serviceThe following example describes the use of the cycle-synchronized DP.Task:Three ET200U-DP station are to be conn

Seite 279 - 9 - 45 Volume 1

➣Every active station "knows" the addresses of the other active stations.An active station checks the address area between itself and the ne

Seite 280

The distributed I/O bytes will be assigned to the input addresses fromPY100 and the output byte addresses from PY108 .This means a DP input area from

Seite 281

Configuring with COM 5430 TF/COM 5431 FMSTo assign parameters to the CP 5430 TF/CP 5431 FMS for the DP service,several steps are required:➣First, the

Seite 282 - Volume 1 9 - 48

11.7 L2-DP Diagnostics with the User Program11.7.1 OverviewTo allow you to monitor the data exchange with the configured DP slavesfrom the user progra

Seite 283

All the bits of the DP slave stations, for which there was no configura-tion in the DP editor, (-> no input/output areas configured), are identifie

Seite 284

Meaning of the bitsBit coding Meaning0 Station does not exist or there are no new diagnostic data .1 There are new diagnostic data .All the bits of th

Seite 285

The extended DP slave diagnostic data:– Device-related diagnostics (Vendor and device-specific diagnostic data)– ID-related diagnostics (Configuration

Seite 286 - Field device

Structure of the diagnostic data according to the DP standard::::Byte 1234567 *)Station status 1Station status 2Station status 3Master address Ven

Seite 287

11.7.2 Examples of Practical Applications11.7.2.1 Reading out the DP station listWhenever the cyclic data exchange is disturbed with at least one DP s

Seite 288

DP Group messages with HDB Receive 202 ANZW The DP ANZW bits 8-11 of the HDB Receive job 202 create the followingDP group message: To update the group

Seite 289

Programming example of reading out the DP station list and updatingDP group messages FB202 "STAT-LIS" makes all DP group messages available

Seite 290

Within the token mechanism for the active stations, various procedures aredefined for the following special situations:➣Initializing the logical token

Seite 291

11.7.3 Reading Out the DP Diagnostic ListThe message that a slave has new diagnostic data causes thecorresponding bit in the DP diagnostic list to be

Seite 292

Example of a program for reading out the DP diagnostic listThe following figure shows the sequence of the HDB special service A-NR209 for reading out

Seite 293

Structure of the job field "DP diagnostic list"Structure of the Acknowledgment field for "DP diagnostic list"1st byte2nd byte3rd b

Seite 294

Example of programming for reading out the DP diagnostic list FB209 "DIAG-LIS" requests the diagnostic list from the CP with the specialserv

Seite 295

11.7.5 Example of a Program for Requesting Single DP StationDiagnosticsThe following figure shows the sequence of the HDB special service, A-Nr:209 s

Seite 296

Structure of the job field "single DP station diagnostics"1st byte2nd byte3rd byte4th byte040102Length of job field in bytesDiagnostics requ

Seite 297

Structure of the acknowledgment field for "single DP stationdiagnostics"Causes of errors in the acknowledgment 0AH "DP slave configurat

Seite 298 - Status Bits

Structure of the station status bytesStation status byte 1Bit no.MeaningExplanation7Master_Lock The DP slave was assigned parameters by a different DP

Seite 299 - 10 - 17 Volume 1

Station status byte 2If bit 1 and bit 0 are set at the same time, bit 0 has the higher priority.Bit no.MeaningExplanation7Deactivated6 Reserved5 Sync_

Seite 300

Station status byte 3Structure of the byte "master address"Bit no.MeaningExplanation76 - 0 reservedIf this bit is set, there is morediagnost

Seite 301

Each station measures the actual token rotation time and calculates thedifference between the target rotation time and the actual rotation time (=toke

Seite 302 - 10.2 Configuring

"Ident_Number" bytesThese two bytes contain the vendor ID for exact identification of a DP slavetype.Structure of the extended DP slave diag

Seite 303

The three diagnostic groups are distinguished by the header or identificationbytes. The order of the groups is unimportant. Each group can also occurm

Seite 304

1st byte of the data field of ID-related diagnostics2nd byte of the data field of ID-related diagnosticsBit 0123456710Header byte for the data field(g

Seite 305

3rd byte of the data field of ID-related diagnosticsChannel-related diagnosticsPart of a module is known as channel.The order of the diagnosed channel

Seite 306

1st byte of the channel-related diagnostics2nd byte of the channel-related diagnosticsBit 01234567ID number 0 to 630Identification byte forchannel-rel

Seite 307

3rd byte of the channel-related diagnosticsBit 01234567Byte for error and channel typeError type00000 reserved00001 short circuit00010 undervoltage000

Seite 308

Example: Structure of a complete data field "extended diagnostics"Bit01234567110000002 bytes vendor-specificdiagnostic data00100010111010000

Seite 309

Example of a program for read single DP slave diagnosticsFunctions block FB 208 "EINZ-DIA" requests the diagnostic data of a singleDP slave

Seite 310

11.8 Sending Control Commands to the DP SlaveUsing the special HDB A-NR: 209, the "Global_Control" DP service can beused to send various con

Seite 311 - Table 10.2: DB 1

11.8.1 Function of the Control Commands - Sync and UnsyncSyncThe output data last received with the "Sync" control command are outputby the

Seite 312

2.2.3 Transmission TechniquesWith SINEC L2/L2FO there are two different transmission techniquesavailable (RS-485, FO) for two different transmission m

Seite 313

11.8.2 Function of the Control Commands - Freeze and UnfreezeFreezeWhen the control command "Freeze" is received, the current statuses of th

Seite 314

11.8.3 Cyclic and Acyclic Transmission of Global_Control CommandsWhen a control command is sent with the special HDB A-NR: 209, the CPsdistinguish bet

Seite 315 - 11 - 3 Volume 1

If any of the DP slaves relevant to the control command job are not in thecyclic data transfer phase with the CPs when the job field is transferred, t

Seite 316 - 11.1 Basics of SINEC L2-DP

Program example of sending a control command to a DP slaveExplanation of Fig. 11.39:The special service to send "Global_Control commands" to

Seite 317

Structure of the job field "send control command"1st byte2nd byte3rd byte4th byte04 hexJob typeLength of job field in bytesBit 7 = reserved

Seite 318

Control Command ByteStructure of the acknowledgment field for "send control command"Bit01234567reserved = 0reserved = 0UnfreezeFreezeUnsyncS

Seite 319

Meaning of the bits for Un-/Sync and Un-/Freezebit 2 or 4 bit 3 or 5 Meaning0 0 No function0 1 Function is activated1 0 Function is deactivated1 1 Fun

Seite 320

Sequence of the special service "STOP DP polling list processing"Explanation of Fig. 11.43:The special service "STOP DP polling list pr

Seite 321 - Slave Station

Structure of the job field "STOP DP polling list processing"Structure of the acknowledgment field for "STOP DP polling listprocessing&q

Seite 322

12 Service and Diagnostic Functions on theSINEC L2 Bus using FMA ServicesThis chapter describes the administrative fieldbus management (FMA)services a

Seite 323

(only when using the SINEC L2 bus cable)Various cables are available from Siemens for SINECL2Number of stations: max. 32 per bus segment max. 127 per

Seite 324 - (m+1) PLC cycle

12.1 Use and Types of FMA ServiceThe fieldbus management (FMA) organizes the initialization, monitoring anderror handling between the FMA user and the

Seite 325 - (m+1). PLC cycle

To avoid dangerous plant states in the bus system, only the followingreading (passive) FMA services are permitted with the CP 5430 TF/CP5431 FMS:Servi

Seite 326

The following table lists some of the characteristics of the individualservices.Before using the FMA services, you must perform the following tasks fo

Seite 327

12.2 Fundamentals of using the FMA ServicesThe request for an FMA service by the CP 5430 TF/CP 5431 FMS and thetransfer of the confirmation to the CPU

Seite 328 - Volume 1 11 - 16

A distinction is made between local and remote FMA services Local control programS5-add.ANZWANRSSNRPAFECPAnzw = Job_active receive possibleAnzw = Job_

Seite 329

An FMA request consists of an 8-byte header. Depending on the service,the confirmation consists of a maximum of 250 bytes, of which the first 8bytes a

Seite 330

Storing the request header and confirmation dataThe data to be transferred (8 bytes) and the received data (max. 250 bytes)should be stored in a data

Seite 331 - 11 - 19 Volume 1

Controlling the data exchangeTo be able to control the data exchange between the CPU and CP 5430TF/CP 5431 FMS, you must evaluate the status word (ANZ

Seite 332 - Volume 1 11 - 20

Data acceptance/transfer(enable/disable bit)ReservedData transfer complete on CP (FMA request was transferred),This bit is reset by the HDBData accept

Seite 333

Bits8-11 Meaning0HNo errorIf bit 3 "job complete with error" is nevertheless set, this means that the CP hasset up the job a

Seite 334 - 11.6 Configuring

NoteWe would point out that the contents of this product documentation shall not become a part of or modify anyprior or existing agreement, commitment

Seite 335

A point-to-point link between 2 SINEC L2FO bus terminals (without anactive star coupler) is possible.Characteristics of the fiber-optic technique:➣lon

Seite 336

The parameter assignment error byte (PAFE) must also be evaluated inthe control program. It informs you about various parameter assignmenterrors. When

Seite 337

12.3 FDL_READ_VALUEThis service allows the FMA user to read out the current bus parameters ofthe local station.12.3.1 FDL_READ_VALUE_RequestFor the st

Seite 338

12.3.2 FDL_READ_VALUE_ConfirmationIn the FDL_READ_VALUE confirmation, the values for the header and busparameters are stored as follows:com_class 0. b

Seite 339

The following messages can occur with the FMA serviceFDL_READ_VALUE:The reaction in the user program when this message is received is notfixed.Value o

Seite 340

Structure of the bus parameter block (see also network parameters):Parameter Meaning Range of values/Codehsa (byte) Highest station address 2 to 126 (

Seite 341

12.4 LSAP_STATUSThis service allows the FMA user to read out the services and functionsassigned to a particular SAP of a remote or local station.Servi

Seite 342

12.4.1 LSAP_STATUS_RequestThe LSAP_STATUS request block must be structured as follows:com_class 0. byte: format KH, service request to layer 2here:FDL

Seite 343 - Fig. 11.17 DP Editor Screen

12.4.2 LSAP_STATUS ConfirmationThe values for the header and LSAP status are stored as follows in theLSAP_STATUS confirmation:com_class 0. byte: forma

Seite 344

The following messages can occur with the FMA service LSAP_STATUSThe reaction in the user program to receiving this message is not fixed.The status by

Seite 345

The entries in the right or left nibble have the following significance:Service_typeBitRole_in_service32 10Enabled serviceBitSAP function for the enab

Seite 346

For more information about fiber-optic cables, refer to Fundamentals, CableTechnology /5/, VDI/VDE 3692 page 2 /6/ and the SINEC L2/L2FO NetworkManual

Seite 347

12.5 FDL_LIFE_LIST_CREATE_LOCALThis service supplies status information about all active stations and allpassive stations located in the GAP area of t

Seite 348

12.5.2 FDL_LIFE_LIST_CREATE_LOCAL ConfirmationThe values for the header and station status are stored as follows in theFDL_LIFE_LIST_CREATE_LOCAL conf

Seite 349

The following messages can occur with this FMA service:The reaction of the user program to receiving this message is not fixed.The confirmation block

Seite 350 - Volume 1 11 - 38

12.6 FDL_IDENTWith this service, identification information can be requested from a stationconnected to the bus. This can involve both the local or a

Seite 351

12.6.2 FDL_IDENT ConfirmationThe values for the header and station Ident parameters are stored in theFDL_IDENT confirmation as follows:com_class 0. by

Seite 352 - Bit code Meaning

The parameter link_status of the confirmation indicates the success orfailure of the previous FMA request.The following messages can occur with this F

Seite 353

12.7 FDL_READ_STATISTIC_CTRThis service is used to read station-oriented statistical information. In theappropriate bytes, counters indicate how often

Seite 354 - Bit coding Meaning

12.7.2 FDL_READ_STATISTIC_CTR ConfirmationThe values for the header and station statistics parameters are stored in theFDL_READ_STATISTIC_CTR as follo

Seite 355

The following messages can occur with this FMA service:The reaction of the user program to receiving this message is not fixed.Value oflink_statusAbbr

Seite 356 - Volume 1 11 - 44

The values in the statistics block provide information about how often thefollowing processing statuses occurred:Parameter Meaninginvalid_start_delimi

Seite 357

2.3 Network Topology2.3.1 Topology of an Electrical SINEC L2 Network for the RS-485 TechniqueIn an electrical SINEC L2 network, the bus cable is a shi

Seite 358

12.8 FDL_READ_LAS_STATISTIC_CTRThis service is used to read bus-oriented statistical information. In theappropriate bytes, counters indicate how often

Seite 359

12.8.2 FDL_READ_LAS_STSTISTIC_CTR ConfirmationThe values for the header and statistical data are stored in theFDL_READ_LAS_STATISTIC_CTR confirmation

Seite 360

The following messages can occur with this FMA service:The reaction of the user program to receiving this message is not fixed.The statistics provide

Seite 361

12.9 ExamplesThe program example is described in detail for the FMA serviceFDL_READ_VALUE. Setting up the DB is also illustrated ascomprehensively as

Seite 362 - Diagnostics type

The user program is structured as follows:After evaluating the ANZW, to determine whether a previous job is stillactive, the request is sent. If no PA

Seite 363

FB140 ExplanationSegment 1Name: READ-ValDECL:ANST I/Q/D/B/T/C: I BI/BY/W/D:BI0008 :0009 :000A :000B :000C

Seite 364 - Acknowl. with

FB 140 (continued) Explanation0029 :002A : RB =ANST002B : 002C :002D CONF:002E :002F : A F 141.00

Seite 365 - Type of diagnostics

FB 140 (continued) Explanation0042 :0043 :0044 :0045 : C DB 1400046 :0047 : L KB 00048 : L

Seite 366

12.9.2 Program Example for the LSAP_STATUS ServiceFor the example, DB 141 is set up to store the request and confirmationdata.The following parameters

Seite 367 - 11 - 55 Volume 1

The structure of the user program for sending the request and receiving theconfirmation is exactly as described for the FMA serviceFDL_READ_VALUE (ref

Seite 368 - Volume 1 11 - 56

Using the repeater as a structuring element, SINEC L2 bus systems can beimplemented in rows and tree structures.Data rate Max. segment length9.6 Kbps1

Seite 369 - 11 - 57 Volume 1

12.9.3 Program Examples for the FDL_LIFE_LIST_CREATE_REMOTEService This service is not implementedService and Diagnostics us

Seite 370

12.9.4 Program Example for the FDL_LIFE_LIST_CREATE_LOCALServiceFor the example, DB 143 is set up to store the request and confirmationdata.The follow

Seite 371

The structure of the user program for sending the request and receiving theconfirmation is exactly as described for the FMA serviceFDL_READ_VALUE (ref

Seite 372 - Volume 1 11 - 60

12.9.5 Program Example for the FDL_IDENT ServiceFor the example, DB 144 is set up to store the request and confirmationdata.The following parameters m

Seite 373

Example of DB 144 with identification data of the station:DB144 Explanation0: KH = 0000;1: KY = 000,0002: KY = 028,0003: KY = 000,0004: KY = 002,0005:

Seite 374 - Volume 1 11 - 62

The structure of the user program for sending the request and receiving theconfirmation is exactly as described for the FMA serviceFDL_READ_VALUE (ref

Seite 375 - 11 - 63 Volume 1

12.9.6 Program Example for FDL_READ_STATISTIC_CTR ServiceFor the example, DB 145 is set up to store the request and confirmationdata.The following par

Seite 376 - Volume 1 11 - 64

After accepting the confirmation block with HDB RECEIVE, the values areentered in the DB and can be read out.DB 145 Explanation0: KH = 0000;1: KY = 00

Seite 377

The structure of the user program for sending the request and receiving theconfirmation is exactly as described for the FMA serviceFDL_READ_VALUE (ref

Seite 378

12.9.7 Program Example for FDL_READ_LAS_STATISTIC_CTRServiceFor the example, DB 146 is set up to store the request and confirmationdata.The following

Seite 379

2.3.2 Topology of an Optical SINEC L2FO NetworkUsing an active star coupler (AS 501) several stations can be connectedtogether in a star network ( Fig

Seite 380

The structure of the user program for sending the request and receiving theconfirmation is exactly as described for the FMA serviceFDL_READ_VALUE (ref

Seite 381

13 Clock ServicesThe CP 5430 TF/CP 5431 FMS clock function is implemented by a clockchip and clock software that uses the clock chip (clock task).The

Seite 382

Bit position for serialtransmission via L2More significant partLess significant partreservedCorrection value (in 1/2 h)for representing local timeSign

Seite 383 - Control command

13.1 Network Topology, Clock Master/Slave FunctionsWithin a SINEC L2 network, all the CP 5430 TF/CP 5431 FMSs canexecute clock functions. The aim is t

Seite 384 - Volume 1 11 - 72

The station address is defined as the L2 address:Based on the L2 address, a time is stipulated after which the stationattempts to become clock master.

Seite 385 - 11 - 73 Volume 1

Example:the following table shows which station takes over the clock master functionand if this fails, which station will replace it.☞Since in L2 the

Seite 386

13.2 How the Clock FunctionsThe clock can have the following statuses:Description of the status transitions1. When the CP starts up, the hardware cloc

Seite 387

5. During the undefined time, no synchronization frame was received. TheCP therefore attempts to take over the clock master function.6. The current cl

Seite 388 - Volume 1 11 - 76

13.3 Several CP 5430 TF/CP 5431 FMS Modules on aSINEC L2 BusDynamic clock masters can be configured on an L2 bus. The L2 addressdetermines which CP 54

Seite 389

N The CP 5430 TF/CP 5431 FMS receives synchronization frames if theyexist in the L2 network.Sync cycle: 10 (sec) defaultIf the CP 5430 TF/CP 5431 FMS

Seite 390

2.3.3 Topology of a Combined Electrical / Optical SINEC L2/L2 FONetworkUsing a SINEC L2 RS-485 repeater with an SF optical repeater adapter, an electr

Seite 391 - 12 - 3 Volume 1

Data format of the time in a DB of the PLC (S5 155 U format)Possible values (hexadecimal):1/100 seconds:1/10 secondsunits secondstens secondsunits min

Seite 392

The following identifiers are possible replies to a "set time" job from thePLC.Reply(decoded IDs)Identifier MeaningOK, no error 00HCommand c

Seite 393

The following identifiers are possible as the reply to a "read time" job of thePLC.Reply Identifier MeaningSystem error 0EHSystem error (e.g

Seite 394 - Volume 1 12 - 6

When the CP is starting up, the lower two bits of the status word are set to"set clock" and "read clock" not possible. During norm

Seite 395

13.4 Setting and Reading the Time with COM 5430TF/CP 5431 FMSUsing COM 5430 TF/CP 5431 FMS, it is possible to both set the hardwareclock of the CP 543

Seite 396

In the NCM menu, the following screen can be called under the menu itemUtilities -> Clock Functions.A clock read frame is then sent to the selected

Seite 397

F2 SETThe time can only be set when the CP status is "masterclock" or "clock_slave_asynchronous" or when the clockchip of the

Seite 398 - Volume 1 12 - 10

13.5 Restrictions / TipsThe time should be read or set by the programmable controller (withRECEIVE) at a time interval > 10 ms.a) The hardware cloc

Seite 399 - 12 - 11 Volume 1

13.6 AccuracyThe hardware clock of the CP 5430 TF/CP 5431 FMS has a maximumdeviation of 11.94 s/day or 8.3 ms/min. This deviation is based on acalcula

Seite 400

If the CP is in a transitional status, i.e. it has not received a synchronizationframe, and is attempting to become master, then depending on the L2ad

Seite 401 - 12.3 FDL_READ_VALUE

To connect a SINEC L2 repeater to an active star coupler using an SFoptical repeater adapter, the maximum distance of 1400m applies just as fora direc

Seite 403 - 12 - 15 Volume 1

14 Documentation and TestingThe screens required for documentation or testing are provided by SINECNCM as listed in Fig. 14.1 and Fig. 14.2.14.1 Docum

Seite 404 - Volume 1 12 - 16

With footer on/off in the "Init -> Edit" screen (Chapter 6, Fig. 6.7) you canspecify a footer file in which you saved a footer for the pr

Seite 405 - 12.4 LSAP_STATUS

14.2 TestSuitable test and diagnostic tools are particularly important when installingSINEC L2 networks. For this reason, the software package COM 543

Seite 406

☞With the test functions, only the data exchange between thePLC and CP via the S5 backplane bus is monitored. The datatransmission from the CP on the

Seite 407

14.2.1.1 Total StatusThe screen has the following structure (examples of parameters):Output fields:L2 station addressStation, with which the test func

Seite 408 - Volume 1 12 - 20

J type: Job type: the following job types can be distinguished:SEND - S5-S5RECV - S5-S5SEND - FL 2RECV - FL 2SEND - FMARECV - FMAJ status: Job status

Seite 409 - 12 - 21 Volume 1

Link statusesBased on the link statuses, you can see the current status of a configuredlink.Hex value ID Meaning0120HLINK_LAYER_2 Layer 2 link is esta

Seite 410

Job status Hex Meaning0000HInitial status, no current job exists0001HNo job processing at preset0021HAwait-Indication Request field sent to layer 2.00

Seite 411

Errors in S5-S5/free layer 2 communicationError ID Meaning0000HNo error0001HWrong block type for SEND-DIRECT.0002HMemory area does not exist on P

Seite 412

2.4 Configuring the Network2.4.1 Configuring a SINEC L2 Network for RS-485When configuring a purely electrical network the following values areimporta

Seite 413 - 12.6 FDL_IDENT

14.2.1.2 Single StatusThe screen with the example parameters has the following structure:Output fields:L type: Link type:"S5-S5" : S5-S5 lin

Seite 414

J status: Job status. Presentation of the action coded (see Table14.2) and in text form.J error: Job error in S5-S5/free layer 2 communication (seeTab

Seite 415 - 12 - 27 Volume 1

FDL error messagesThese error messages are returned as the link status in theacknowledgment (Confirmation).ID link_status MeaningL2_LST_OK 0x0000 ack.

Seite 416 - 12.7 FDL_READ_STATISTIC_CTR

14.2.2 GP Test FunctionsWith the GP test functions, the user can determine the statuses of individualparts of the system and localize any errors from

Seite 417

Output fields:L2 add: Here, the L2 addresses of the master stations in thelogical ring are displayed.GP inp: "X" indicates all the stations

Seite 418 - Volume 1 12 - 30

14.2.2.2 Display of the GP Output ValuesThe GP output values are displayed as bytes in ascending order.The screen with the example parameters has the

Seite 419 - 12 - 31 Volume 1

Pos:Line index.Output: Physical assignment of the output bytes of this station.GO: Global Object or object name of the output.Symbol: Symbolic name of

Seite 420

F8DESELECTWith this key, you can cancel the selection made withF7.With the page up and page down keys you can page through the lines ofthe screen if t

Seite 421

14.2.2.3 Display of the GP Input ValuesThe GP input values are displayed as byes in ascending order. The screenhas the following layout:Output fields:

Seite 422 - Volume 1 12 - 34

Sel: Indicates with an asterisk that a line is selected.Pos: Line index.GO: Global object or object name of the input.Input: Physical assignment of th

Seite 423 - 12.9 Examples

The following connecting cables are permitted for the data rates listed:☞Make sure that at data rates 187.5 Kbps, 500 Kbps or 1500Kbps the total lengt

Seite 424 - Table 12.14 DB 140

With the page up and page down keys you can page through the lines ofthe screen if they cannot all be displayed.Documentation, Test B8976060/02Volume

Seite 425 - 12 - 37 Volume 1

14.2.3 ZP Test Functions (CP 5430 TF)With the ZP test functions you can determine the status of individual partsof the system during communication and

Seite 426 - Volume 1 12 - 38

Pos: Display position. links are displayed in ascending order(0-255).rem. add.: Address of the remote station.DSAP: Remote SAP of the configured link.

Seite 427 - 12 - 39 Volume 1

ID Status MeaningZP_ERR_START 0x00F0 Start-up IDZP_ERR_DIAG_REQ 0x00F1 Diagnostics request from ET200UZP_ERR_INP_TOO_LONG0x00F3 Input area> receive

Seite 428

14.2.3.2 Display of the ZP Output ValuesThe ZP output values are displayed as byes in ascending order. The screenhas the following layout:Output field

Seite 429

Output: Physical assignment of the output bytes of this station.Rem. add: Remote L2 address or address of the remote station.DSAP: Remote SAP of the c

Seite 430 - Volume 1 12 - 42

F8DESELECTWith this key, you can cancel the selection made withF7.With the page up and page down keys you can page through the lines ofthe screen if t

Seite 431 - Table 12.19 DB 143

14.2.3.3 Display of the ZP Input ValuesThe GP input values are displayed as byes in ascending order. The screenhas the following layout:Output fields:

Seite 432 - Volume 1 12 - 44

DSAP: Remote SAP of the configured link.Value: Value of the input in KH (hexadecimal) and KM (bits).Function keys:F1UPD ONUsing this key, you can upda

Seite 433 - Table 12.20 DB 144

14.2.4 DP Test FunctionsWith the DP Test Functions you can find out the statuses on individual DPslaves and the DP master ONLINE and to localize any e

Seite 434 - Volume 1 12 - 46

2.4.2 Configuring a SINEC L2FO NetworkWhen planning a SINEC L2FO network the following parameters areimportant:➣maximum signal attenuation/attenuation

Seite 435 - 12 - 47 Volume 1

DP station status:Local DP master mode with the following meaning:RUN: DP polling list is processed.STOP: DP polling list is not processed.Clear: DP p

Seite 436

Function keys:F1UPD ONThis key switches on automatic cyclic updating of thescreen data.F1UPD OFFThis key switches off automatic cyclic updating of the

Seite 437 - 12 - 49 Volume 1

14.2.4.2 DP Single StatusThe screen for the test function "DP single status", which can be called inthe total status screen, has the followi

Seite 438 - Volume 1 12 - 50

Vendor ID: The configured vendor ID or (if possible) the vendor IDsent by the slave is displayed here.Group ID: The group ID of the DP slave specified

Seite 439 - Table 12.23

DP slave I/O configuration- DP slave works with consistent I/O areas, but the free mode is configured on the CP.Devicediagn.:Here, the general DP sl

Seite 440

14.2.5 FMA Test FunctionsThese test functions are used to read out the Layer 2 statistics.14.2.5.1 Local Life ListThis screen contains a list of all t

Seite 441 - 13 Clock Services

Function keys:F1PAGE +Page one page forwards. F2PAGE -Page one page backwards.14.2.5.2 Station-oriented StatisticsThis screen contains station-related

Seite 442 - Volume 1 13 - 2

Output fields:Counted values about station statuses.14.2.5.3 Bus-oriented StatisticsThis screen contains bus-oriented statistical information to allow

Seite 444 - Clock Services C8976060/02

15 UtilitiesThe following figure is an overview of all the utilities available under theUtilities menu item. The individual utilities are described in

Seite 445

1 Introduction 1 - 12 System Overview 2 - 12.1 SINEC Overview 2 - 32.2 The PROFIBUS-Compatible Network SINEC L2/L2FO 2 - 52.2.1 Standards 2 - 72.2.2

Seite 447

15.1 PG Functions on the SINEC L2 BusThe PG functions on the SINEC-L2 Bus allow you to obtain, monitor andconfigure stations (CPs, CPUs) in the networ

Seite 448 - SINEC L2 Bus

The PG has an internal L2 interface:This path (see Fig. 15.2,15.3), symbolized by the path name can be used tomonitor the selected station and if nece

Seite 449

PG 511CP-H1CP-H1CP-L2 PGCP-H1 PGCP-H1CP-L2PG 511CP-L2CP-L2CP-L2 ENDP ENDPCP-L1 ENDPSINEC L2SINEC L1SINEC L2SINEC H1MUX*MUX*MUX*MUX*MUX*MUX*In the di

Seite 450

15.1.1 Bus Selection - Creating Paths in Path FilesTo be able to obtain remote active stations on the SINEC L2 bus with thePG, the "BUS SELECTION

Seite 451 - 13 - 11 Volume 1

With the TERMINATE command of this utility, or by calling a differentPATH, you can terminate a dedicated link again.Example of a Path::PG-->COR/MUX

Seite 452 - Volume 1 13 - 12

– Activate the path only as far as the internal L2 interface module.– Check and if necessary match the internal SYSID.The set bus parameters of the in

Seite 453

15.1.3 Activating the Edited PathBefore activating a path starting from a CP L2, the local (SYSID)parameters of the CP L2 must be matched to the L2 bu

Seite 454 - TF/CP 5431 FMS

The screen for Init->Path selection has the following structureInput fields:CP link /Path file:Format: drive: fileDriveHere, you must specify the d

Seite 455

15.2 Change Submodule SizeYou can change the submodule size (16/32/64 bytes) using the menu itemwith this name in the Utilities menu. Input fields:Dat

Seite 456

Output fields:Current sub-module size:Memory capacity of the submodule in Kbytes (values:16/32/64)Currently requiredsubmodule sizeMemory requirements

Seite 457 - 13.5 Restrictions / Tips

3 Fundamentals of the Model To understand the procedure and to be able to work with the system, theuser must be familiar with the model and the termin

Seite 458 - 13.6 Accuracy

15.3 Convert CP 5430 Database old - new (CP 5430 TF)The CP 5430 TF has its own menu item under "Utilities" with which youcan convert old CP

Seite 459 - Table 13.2 Status Transitions

Network file: Format: drive: network file name- Drive: Here, you specify the drive with which you want towork. Press F8 to display a list of drives fo

Seite 461 - 14 Documentation and Testing

16 Working with the Application ExamplesOn the COM 5430 TF/COM 5431 FMS diskette, you will find all the COMand STEP 5 user files required to work thro

Seite 462

The following list include all the COM and STEP 5 files required for theapplication examples:List of example programs for the CP 5430 TF:S5-S5AGAGT1ST

Seite 463 - 14.2 Test

[email protected]@@@NCM.NETZP@@@NCM.BPBTFTF115UST.S5DOTFTLN1OTFTLN2TF@@@NCM.NETTF@@@NCM.BPBList of example programs for the CP 5

Seite 464

GPQGPTLN1.155QGPTLN2.115QGPTLN3.135GP115UST.S5DGP155UST.S5DGP135UST.S5DGPQ@@NCM.NETGPQ@@NCM.BPBDPDIAGNOST.S5DSTATIOST.S5DEINZELST.S5DQDPTLN1.115DP115U

Seite 465 - Fig. 14.4 Total Status Screen

17 Appendix 17.1 Job Numbers for the CP 5430 TFANR HDB0 Send or Receive All1 - 32 Send via Layer 233 - 96 Send or Receive via L2 Transport (T

Seite 466

SAP Use ANR0 Disabled ------------1 Disabled ------------2...33These SAPs are normally used forS5S5. Their use for free layer 2access or FMS applicat

Seite 467 - 14 - 7 Volume 1

17.2 Job Numbers for the CP 5431 FMS* These job numbers can also be used for FMS application associations. Make sure, howeverthat there are no double

Seite 468 - Volume 1 14 - 8

3.1 ISO/OSI Reference Model for Communication To obtain a structured architecture, the communications tasks were dividedinto seven layers (refer to Fi

Seite 469 - 14 - 9 Volume 1

SAP Use ANR0 Disabled ------------1 Disabled ------------2...33These SAPs are normally used forS5S5. Use as "free channels" isonly possible

Seite 470

17.3 SAP - Job Number AssignmentBefore you can work with free channels, the SAPs involved must beconfigured with the free layer 2 links. While the dua

Seite 471

17.4 Overview of the Error MessagesThe error messages are listed here to provide you with an overview.17.4.1 Messages in the status word for predefine

Seite 472 - Volume 1 14 - 12

Bits8 -11Meaning of the error bits0HNo error.If bit 3 "job complete with error" is nevertheless set, this means thatthe CP has set up the jo

Seite 473 - Fig. 14.6 GP-Total Status

Bits 8 -11Meaning of the error bits9H* Remote error.The remote CP has acknowledged the job negatively because e.g. theSAP assignment is incorrect. Rem

Seite 474

The following table lists the Profibus error IDs (link_status) modeled on theS5-S5 error messages.PROFIBUS Meaning ANZW error ID00 OK No error 0 No e

Seite 475 - Fig. 14.7 GP Output Values

17.4.2 Global I/Os - Error BitsStructure of the status word for HDB SEND (ANR 210) and RECEIVE (ANR211)Not usedErrorbitsDatamgment.Statusbits15 14 13

Seite 476

Bit 111098of the status wordorTransmission delay in the other station, i.e. thePLC cycle was faster than the transfer capacityof the L2 bus (transmit

Seite 477

Evaluation of the GP station list (HDB RECEIVE with ANR 201)Every CP that receives global I/Os manages a GP station list internally.This list is 32 by

Seite 478 - Fig. 14.8 GP Input Values

Explanation of the individual bits of the status byte:Bit012345670=no1=yesStatus byte of the local station:The complete expected GP is OKStatus byte o

Seite 479

3.2 Architecture <-> OSI Environment The architecture of the CP 5430 TF is illustrated in Fig. 3.2, that of the CP5431 FMS in Fig. 3.3, (refer a

Seite 480 - Volume 1 14 - 20

17.4.3 Cyclic I/Os Error MessagesNot usedErrorbitsDatamgment.Statusbits15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0Job complete with error*(e.g. invalid job

Seite 481 - Fig. 14.9 ZP Total Status

Error bits for RECEIVE-HDB (ANR 211)Error bits for the ZP station list (ANR 202)Bit 11 10 9 8of the status wordReserved for GP error messageZP image i

Seite 482

Structure of the ZP station list (ANR 202)The station list has a length of 16 bytes, with each bit assigned to a stationaddress.1576543 210120 1270176

Seite 483 - 14 - 23 Volume 1

17.4.4 DP Error DisplaysStructure of the status word for HDB SEND (ANR 210) and RECEIVE ANR 211).Not usedErrorbitsDatamgment.Statusbits15 14 13 12 11

Seite 484 - Fig. 14.10 ZP Outputs

DP group messages of the DP station listThe DP ANZW bits 8-11 of job 202 provide the following DP groupmessage:Bit 11 10 9 8of ANZW/A-NR: 2020 = no er

Seite 485

Structure of the DP station list (ANR 202)The DP station list has a length of 16 bytes (128 bits). Each bit of the DPstation list corresponds to one o

Seite 486

Meaning of the acknowledgment messages for special job ANR 209Acknowledgment:00 Hex No error01 Hex Syntax error in job field.02 Hex Error in HDB handl

Seite 487 - Fig. 14.11 ZP Inputs

17.5 Overview of the FMA ServicesRelevant bytes in the request fieldYou want to... .. thenuse theserviceFDLrequest(byte 0)Servicecode (byte2)SAP no.

Seite 488

Byte Field to be sent (request) Byte Field received(Confirmation/Indication)0 com_classFDL request=00(service request to layer 2)0com_classFDL confirm

Seite 489 - Fig. 14.12 DP Total Status

Value oflink_statusAbbreviationPROFIBUSMeaning SDA00H01H02H03H11H12HOKUERRRSNADSPositive-acknowledgment, service exec

Seite 490

Key:S5-S5: SIMATIC S5 PLC-PLC communication (Chapter 7)FL2: Free layer 2 communication (Chapter 8)GP: Global I/Os (Chapter 9)ZP:Cyclic I/Os (Chapter 1

Seite 491

17.6 Calculation of the Target Rotation Time (TTR)The TTR is dependent to a great extent on the data rate and the number ofactive stations (NAS).17.6.

Seite 492 - Fig. 14.13 DP Single Status

Parameter ExplanationThe address area between the local stationaddress of an active station and the address of the next active station is known as the

Seite 493

Orientation values for the INIT parametersRecommended default parameters:The next sections explain how to do the following,➣ calculate the target rota

Seite 494

Proceed as follows to calculate the required target rotation time:➣ Work out the maximum possible number of frames from all stations thatcan occur in

Seite 495 - Fig. 14.14 Local Life List

Selecting the GAP update factor:The GAP update factor decides how many token rotations take place beforeall the active stations check their GAP area.I

Seite 496

Calculation of the volume of frames and time required:Type of frame Number Overheads from column 187,5Kbps Table 17.13Result(in BTU)Token 3 (stations)

Seite 497

17.7 Calculating the Switch-off and Reaction Times ofthe Global I/OsCalculation of the switch-off times Tso for the free andcycle-synchronized modesTh

Seite 498

The shape of the curve is similar for all data rates; it always consists ofareas 1 and 2.The curves for different data rates differ in - The position

Seite 499 - 15 Utilities

Calculation of the reaction time TR of the global I/OsIn the CYCLE-SYNCHRONIZED mode, the time interval between HDBSEND (RECEIVE) calls in the control

Seite 500 - Utilities B8976060/02

The shape of the curve is similar for all data rates; it always consists ofareas 1 and 2.The curves for different data rates differ in - The position

Seite 501 - B8976060/02 Utilities

LLI:Lower layer interface (Volume 2) CP 5431 FMSFMS:Fieldbus messaging specification (Volume 2) CP 5431 FMSALI:Application layer interface (Volume 2)

Seite 502 - Volume 1 15 - 4

Example:You have set a TTR of 4000 BTU at a data rate of 187.5 Kbps. Based onthe table this means:Switch-off time Tso = Tsomin = 1.06 sReaction time T

Seite 503

A AbbreviationsAbbreviationsAALI Application Layer InterfaceANR Job number (for handling blocks)ANZW Status wordAP Automation protocol layers 5 to 7 o

Seite 504

COR Coordination moduleCP Communications ProcessorCPU Central Processing UnitCSF Control System Flowchart, graphical representation ofautomation tasks

Seite 505

EEG/EU Expansion unitEIA Electronic Industries AssociationEPROM Erasable Programmable Read Only MemoryET 200 Electronic Terminal 200FF Flag bitFB Func

Seite 506

GGO Global ObjectGP Global I/OsGPW Global Peripheral WordGPY Global Peripheral ByteGRAPH 5 Software package for planning and programmingsequence contr

Seite 507

LAN Local Area NetworkLB Link blockLED Light Emitting DiodeLEN Length of a blockLLC Logical Link ControlLLI Lower Layer InterfaceLSB Least Significant

Seite 508 - 15.2 Change Submodule Size

PC Personal ComputerPCI Protocol Control Information (for coordinating aprotocol)PCP/M-86 Operating system Personal CP/M-86PDU Protocol Data Unit (fra

Seite 509

RLO Result of logic operation (code bits)RS Recommended StandardRS 485 EIA standard (multipoint capability) standard forelectrical data transmissionSS

Seite 510

SINEC L2 SINEC bus system for industrial applications based onPROFIBUSSINEC L2-FO SINEC bus system for industrial applications based onPROFIBUS with f

Seite 511

TTF Technological functionsTSAP Transport Service Access PointTSAP-ID Transport Service Access Point IdentifierTSET Set-up timeTSDR Station delayTSL S

Seite 512

3.2.1 Communications ModelThis section is intended to introduce you to the communications world andto provide explanations of the model and terminolog

Seite 514

IndexAAck. field for DP station single diagnosis 11-54Active and passive stations on the bus 11-2Active star coupler (AS 501) 2-20Active stations 2-10

Seite 515

Cycle-synchronized 10-6Cyclic and acyclic transmission 11-69Cyclic communication 5-11DData rate 6-26Delete CP 6-49Medium connector 4-2Device-related d

Seite 516

Global_Control 11-66GP station list 9-18, 9-20Group identifier 11-27HHandling block (HDB) 4-8HDB Receive 202 ANZW 11-46HDB RECEIVE 211 11-20HDB SEND 2

Seite 517 - 17 Appendix

Memory submodules 4-20Menu structure SINEC NCM 6-4Minimum polling cycle 11-33Minimum station delay (min. TSDR) 6-27Mode changes 4-3Mode LEDs 4-3Mode:

Seite 518 - Volume 1 17 - 2

RResponse monitoring 11-29RPL_UPD_M 8-3RPL_UPD_S 8-3SS5-S5 links 7-1characteristics 7-2Screen layout 6-6SDA 5-3, 8-3SDN 8-3Service access point (SAP)

Seite 519 - 17 - 3 Volume 1

Token rotation 2-10Token rotation time 2-12Transfer functions 6-46Transmission according to RS 485 2-14Transmission medium 2-16Transmission with fiber

Seite 520 - Volume 1 17 - 4

CFurther Reading/1/ N.N.:PROFIBUS Standard DIN 19245, Part 1Beuth-Verlag Berlin 1988/2/ Siemens:SINEC TF, Manual for Order No. 6GK1971-1AB00-0AA0 Ger

Seite 521 - B8976060/02 Appendix

/11/ N.N.:PROFIBUS Standard DIN E19245, Part 3Beuth-Verlag Berlin 1994/12/ Siemens:CP 5431 FMS with COM 5431 FMS, Volume 2Order no. refer to latest SI

Seite 522 - Appendix B8976060/02

3.2.1.2 Logical Data ExchangeFDL services are available for issuing jobs. Jobs are transferred via thespecified communication relations (logical chann

Seite 523 - 17 - 7 Volume 1

The communications start and end point of a logical channel between twostations on the bus is known as a Service-Access Point (SAP). A SAP is afurther

Seite 524 - Volume 1 17 - 8

3.2.2.2 Addressing Model for Implicit Communication (GP, DP ZP)In data transmission using implicit communication via L2, the data exchangeis handled v

Seite 525 - 17 - 9 Volume 1

3.3 Application Interfaces of Layer 2 Communication 3 - 113.3.1 Explicit Communication 3 - 113.3.1.1 S5-S5 Communication 3 - 113.3.1.2 Free Layer 2 C

Seite 526

In ZP (cyclic I/Os) communication (CP 5430 TF), I/O areas of certainpassive stations are assigned by configuring their L2 address and theremote SAP.In

Seite 527 - 17 - 11 Volume 1

3.3 Application Interfaces of Layer 2 CommunicationIn this model, as already mentioned, there are two basic types ofcommunication: Explicit communicat

Seite 528

communication with the SIMATIC S5 PLC, it is necessary to check andevaluate the status words of the HDB during the communication.The basic sequence of

Seite 529 - 17 - 13 Volume 1

The layer 2 firmware of the CP provides various services for reliable datatransmission which you can use in the control program. In concrete terms,thi

Seite 530 - Status Bits

The basic procedure for communication with the free layer 2 access isdescribed in Chapter 8.The job numbers ANR 134 to ANR 186 are available for these

Seite 531

3.3.2 Implicit CommunicationIf you use implicit communication, the communications processor (CP)controls the communication. The types of communication

Seite 532 - Volume 1 17 - 16

3.3.2.1 Global I/Os (GP)The term "global I/Os" means that part of the I/O area is not used by I/Omodules but for global data exchange betwe

Seite 533 - 17 - 17 Volume 1

3.3.2.2 Cyclic I/Os (ZP), only with CP 5430 TFThe demanding requirements of cyclic communication for automationfunctions of a field device cannot be m

Seite 534 - Volume 1 17 - 18

3.3.2.3 Distributed I/Os (DP)Data transmission using L2-DP (distributed I/Os) provides a standardizedinterface for communication between SIMATIC S5 P

Seite 535

4 Technical Description and Installation ofthe CP 5430 TF/CP 5431 FMS 4.1 Technical Description 4.1.1 Communications Processor CP 5430 TF/CP 5431 FMS

Seite 536

4.4.2 Example of Transmission with RS 485 Bus Terminals 4 - 295 Selecting the Type of Communication 5 - 15.1 Data Transmission with HDBs (S5-S5) 5 - 3

Seite 537 - 17 - 21 Volume 1

Explanation of Fig. 4.1:Mode indicator H1 : RUN (refer to Table 4.1)H2 : STOP (refer to Table 4.1)H3 : CP-FAULT (refer to Table 4.2)Mode selector swit

Seite 538 - Volume 1 17 - 22

4.1.1.1 Mode Indicators (RUN and STOP LEDs)Table 4.1 explains the significance of the RUN and STOP LEDsMode changes The mode can change in a variety o

Seite 539 - 17 - 23 Volume 1

LED Status of the CP 5430 TF/CP 5431 FMSMeaningGreenRUN LEDlit, red unlitRUN - All types of data transmission are possible, both from the CPU control

Seite 540 - Volume 1 17 - 24

The START /STOP responseThe CP is a slave processor system in the S5 rack and must thereforefollow the START/STOP response of the master (here the PLC

Seite 541 - 17 - 25 Volume 1

4.1.1.2 Fault LEDThe fault LED is lit permanently or flashes when the firmware of the CPdetects an error (refer to Table 4.2). Note: when the CP fault

Seite 542

4.1.2 Data Exchange between the CPU and CP 5430 TF/CP 5431FMSThe following section explains how the CP 5430 TF/CP 5431 FMS receivesdata for transmissi

Seite 543

Data exchange using the job buffers of the dual-port RAMWith S5-S5 data transmission and free layer 2 access (refer to Chapters 7and 8) data is exchan

Seite 544

The interface number (SSNR) consists of the base interface number andthe page number of the CP.For the data exchange between the CP 5430 TF/CP 5431 FM

Seite 545

For monoprocessor PLCs, it makes sense to use only the base interfacenumber (refer to Fig. 4.4).The link between the STEP 5 user program and a particu

Seite 546

☞For more details about handling blocks for the individualPLCs (particularly when the blocks are integrated in theoperating system) refer to the descr

Seite 547

6.5.3.2 Local Network Parameters 6 - 286.5.4 Network Functions 6 - 336.5.4.1 Network Overview 6 - 346.5.4.2 Network Matching 6 - 366.5.4.3 GP Consiste

Seite 548 - Fig. 17.14 Reaction Times T

4.1.3 Technical Data of the CP 5430 TF/CP 5431 FMS4.1.3.1 InterfacesPG interface: TTYmax. 1 km longtransmission protocol Siemens AS 5119.6 KbpsL2 inte

Seite 549

4.1.3.3 Mechanical and Electrical DataCurrent consumption:5 V24 Vtypically 450 mAtypically 70 mA for RS 485Power loss: 1.9 W for RS 4855.3 W at 5V2/50

Seite 550

4.1.3.5 Performance Data CP 5430 TFS5-S5Maximum number of links: 32Maximum amount of data: 128 bytes per jobFree Layer 2Maximum number of links: 32

Seite 551 - A Abbreviations

DP (distributed I/Os)Number of DP slaves per master: 32Maximum number of inputs: 242 bytes per DP slave (max. however 256 bytes in total)Maximum numb

Seite 552 - Abbreviations B8976060/02

4.1.3.6 Performance data of the CP 5431 FMSALINumber of links: 32Number of variables(indexes): approx. 256Maximum lengthof a variable: 233 bytesMaximu

Seite 553 - B8976060/02 Abbreviations

GP (global I/Os)Maximum number of GP objects: 2048 throughout the network Maximum number of inputs: 256 bytes per stationMaximum number of outputs:

Seite 554

4.1.3.7 Interface AssignmentsThis section specifies the electrical interfaces of the CP 5430 TF/CP 5431FMS (refer to Tables 4.3 - 4.5). The interfaces

Seite 555

L2 interface socket X3 (RS 485)PG interface socket X4X4Pinno.Signalname123456789M-EXT (external ground))TTY-P24MASSE (internal ground))TTYTTYM-EXT (ex

Seite 556

4.2 Memory Submodules4.2.1 Memory Submodule Types for the CP 5430 TF/CP 5431 FMSTo store the parameter data in the CP 5430 TF/CP 5431 FMS, the followi

Seite 557

4.3 Installation Guidelines4.3.1 Basic ConfigurationFig. 4.6 illustrates the minimum configuration of a SINEC L2 bus system.➣Communications processor

Seite 558

7.3 Example of a Program for an S5-S5 Link 7 - 157.3.1 Outline of the Task 7 - 177.3.1.1 Program for PLC 1 (S5-155 U) 7 - 197.3.1.2 Program for PLC 2

Seite 559

☞Modules must only be inserted or removed when no voltageis applied. The rules for working with electrostaticallysensitive devices (ESD guidelines) mu

Seite 560

Expansion unit (EU):SIMATIC S5-135UCentral controller113 91837567595143 10799 155147139131123115 163without interrupt line3519 27Fig. 4.8 Slots for th

Seite 561 - B8976060/02 Index

SIMATIC S5-155U Central controller:In the S5 155U, in certain situations (Manual S5-155U) further slots may beavailable for the CP Expansion unit EU 1

Seite 562 - Index B8976060/02

SIMATIC S5-135U/155U113 83756743352719 107 155147139131123115 163 without interrupt line91 995159Fig. 4.13 Slots for the CP 5430 TF/CP 5431 FMS in th

Seite 563

4.4 Ways of Connecting PGs on the SINEC L2 BusWith the following L2 communications processors you can connect a PG ora PC/AT directly to a bus termina

Seite 564

If there are several CPs in one rack as for example in the multiprocessorPLC S5-135U, the modules can be connected using the PG-MUX 757.. . . . . .

Seite 565

If several PLCs are networked with one SINEC L2 bus system, you canalso program the CPUs via the bus. In practice, this means that a centrallyinstalle

Seite 566

4.4.1 Structure and Functions of the Bus TerminalBus terminals connect a CP 5430 TF/CP 5431 FMS, CP 5412 or a CP5410 to the SINEC L2 bus. As the end t

Seite 567 - CFurther Reading

Connecting cable for bus terminals with a PG/OP interfaceFig. 4.18 shows the connecting cable between the PG/OP interface of theRS 485 bus terminal an

Seite 568 - Further Reading B8976060/02

5 Selecting the Type of CommunicationChapter 3 explained that there are various mechanisms available for datatransmission that can, in practical terms

Kommentare zu diesen Handbüchern

Keine Kommentare