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
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
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
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
5.2 Data Transmission with HDBs (Free Layer 2Access)This type of data transmission is suitable for communication betweenSIMATIC S5 programmable contro
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
Special features: With this type of communication, the base interface is always used. Data isonly transmitted when the status of bytes has changed. If
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
5.5 Data Transmission with Distributed I/Os (DP)Data transmission via L2-DP (distributed I/Os) provides a standardizedinterface for communication betw
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
program development (the system grows with the requirements of theuser) and also means a reduction of training costs.➣ Bridges can be implemented with
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
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 -
NOTES
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
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
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
6.1.2 Menu Structure and OperationThis chapter briefly explains the structure, functions and operation of SINECNCM.The user interface is designed so t
➣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
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
Screen title bar:Screen name: Description of the path in abbreviated form, e.g. "InitEdit"Context: Screens specific to the CP: name of the
➣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
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
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
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
✔Call the command interpreter (KOMI) with >S5, then press the <insert>or <OK> key.– Selecting the package under S5 DOS stage VActivate
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
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
6.4 Overview of Basic ConfigurationTo provide you with an overview of the structure and procedures involved inconfiguration, these aspects are explain
When you first call SINEC NCM, the screen Init -> Edit appearsautomatically. Unless this screen is filled out correctly and completely, youcannot p
2. Edit -> CP Init basic initialization (SYSID) blockHere you program the system parameters which describe the generalallocation of the CP to a pro
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
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,
Documentation:Footer: With this you decide whether you want a footer printedout at the end of each page (refer to footer file, possibleselections: ON
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
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
➣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,
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
Date created: Date (max. 8 ASCII characters)Plant designation: Designation of the plant (possible selections: ASCIIcharacters).Output fieldsSubmodule
6.5.3 Network ParametersIf you do not make entries in the network parameter screens, the COMautomatically enters the default values.The network parame
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
Input fieldsCumulative topology info:No. of remoteactive stationsThe number of active stations not included in thetopology file. These are normally st
Setup time (TSET): Minimum "dead time" between the reception of anacknowledgment before sending a new call frame bythe initiator (range of v
Function keysF1CALCULATEThis key triggers the calculation of the bus parameterdatabased on the information.F7 OKThe "OK" function key en
Select Edit -> Local Network Parameters to call the COM screen. Thescreen has the following layout:Input fields:Highest stationaddress (HSA):Highes
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
Default SAP: When an L2 frame is received without a destinationSAP number, the layer 2 firmware automatically selectsthe default SAP. Maximum no. ofre
Maximum stationdelay (max. TSDR):(Maximum protocol processing time)An initiator must wait at least this time after transmittingbefore sending a furthe
Function keys:F7 OKThe "OK" function key enters the data. If the module filedoes not yet exist it is set up after confirmation.F8SELECTI
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
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
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
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
- Network file: Here, a network file is displayed whose name wasassigned in the Edit -> CP Init screen and whichcontains bus parameters created wit
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
- Network file: As default, the name of the last network you worked onis displayed.Update: Range of values:CYCLE SYNCHRONIZED: All configuration setti
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
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
Input field:Network file: Format: Drive : Network file name- Drive: Here, you specify the drive you want to work with. Youcan display possible drives
6.5.4.5 Network DocumentationThis function provides you with global network documentation of the variousservices.After selecting the required document
The following documentation filters are available:All: complete documentation of the network (starting with the network overview list).Topology: outpu
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
Output field:Status: Displays the status of the currently active archivingfunction.Function keys: F7OKStarts the archiving F8SELECTIf you press this k
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
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
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
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
Contents B8976060/02Volume 1 XII
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
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
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
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
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
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 -&
Function keys:F7 OKThe data are transferred to the EPROM.F8SELECTIf you press this key, a selection list is displayed withpossible entries for fie
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
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
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
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
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
General Procedure:During configuration, the following must be done for each station:➣A database file must be assigned in the Init -> Edit screen pe
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
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
NOTES
7 Data Transmission Using Configured S5-S5LinksThis chapter describes how to transmit data using handling blocks viaconfigured S5-S5 links. The follow
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
☞Make sure there can be no overlapping of job numbers andLSAPs for FMS links. COM 5431 FMS does not check thisautomatically.Checking data transmission
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
If errors occur during the data transmission, the acknowledgment may befrom either the remote or local CP depending on the error.S5 add.ANZWANRSSNRPAF
The network is configured with COM 5430 TF/COM 5431 FMS underSINEC NCM (Network and Communication Management). The configurationtool can be run on the
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
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
Bits 8 -11Meaning of the error bits9HRemote error.The remote CP has acknowledged the job negatively because e.g. theSAP assignment is incorrect. Remed
The parameter assignment error byte (PAFE) informs you about variousparameter assignment errors. When assigning parameters for the individualblocks, y
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
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
These links are either saved in a submodule file (offline mode) or writtendirectly to the CP submodule or modified there (online mode). This meansthat
"High": frames with this priority are given preference during data exchange.This means that if an L2 station has no more token time availabl
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
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
General symbols:✔ This character indicates an activity or operation for you to perform.☞This symbol highlights special features and dangers.mm Th
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
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
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
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
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
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
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
8 Data Transmission by Direct Access toLayer 2 ServicesThis chapter explains the following aspects:➣ The devices and applications for which "data
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
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
Siemens Aktiengesellschaft Elektronikwerk KarlsruhePrinted in the Federal Republic of GermanyWir haben den Inhalt der Druckschrift auf Überein-stimm
Requirements of the userTo understand the examples, you should have the following:➣Knowledge of programming with STEP 5➣Basic knowledge of the use of
Using the services for the actual data transferThe data to be transmitted (max. 242 bytes "net data") and the receiveddata (also max. 242 by
Description of the parameters in the headercom_class: 1 byte, format: KH FDL request =00H in transmit buffer: Service request to layer 2FDL co
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
rem_add_station: 1 byte, format: KHWhen transmitting, this indicates the station address ofthe receiver station, coded in hexadecimal.When receiving,
Value oflink_statusAbbreviationPROFIBUSMeaning SDA00H01H02H03H11H12HOKUERRRSNADSpositive acknowledgment, service exec
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
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
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
☞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
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
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
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
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
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
Structure of the parameter assignment error byteThe parameter assignment error byte (PAFE) informs you about variousparameter assignment errors. When
8.1.5 Sequence of the Data TransmissionTo understand how the services are handled, the following section showshow a data exchange must be coordinated
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
Control program senderS5 add.ANZWANRSSNRPAFECPAnzw = Job_active receive possibleAnzw = Job_active(data)CPBUSFBSENDAnzw = RECEIVE possibleSDA-Requeste.
Transmitting and receiving data without acknowledgment (service:SDN)Sequence of the transmission☞In contrast to the SDA service, the sender does not r
Transmitting data with request to receiver to return data (service: SRD)Sequence of the transmission:Before the sender requests data from the receiver
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
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
CPCP(remote)BUSAnzw = Job active (...2Anzw = Job_complete_without_errorS5 add.ANZWANRSSNRe.g..:DBHeaderDATA21Request dataas soon as data are read out
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
Control program senderS5 add.ANZWANRSSNRPAFECPAnzw = Job_active receive possibleAnzw = Job_active(data)CPBUSFBSENDAnzw = RECEIVE possibleSRDrequeste.g
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
8.2 Transmitting Multicast Messages by Direct Accessto Layer 2 ServicesIf the transmitted data are intended for several stations simultaneously(using
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
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
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
General procedure:To implement a simple task (transferring data from PLC 1 to the remotedevice via pre-programmed links with HDBs) the following proce
Select Edit -> Links -> Free layer 2 Links to call the following screen. Thescreen is structured as follows:Output fieldsL2 stationaddress: L2
Chapter 12FMA ServicesThis chapter describes the different types of communication including adetailed description of the basics and the configuring pr
SSNR: Interface number corresponding to the PLC DPR pagenumber and therefore forming the CPU-CP interface.The interface number must be uniform for all
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
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
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
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
9 Data Transmission with Global I/OsThis chapter explains the following:➣ The applications for which data transmission with global I/Os is suitable.➣
An important characteristic of the global I/Os is that changes in the databytes are recognized and only these changes transmitted. The changeddata byt
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
➣ 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
Receiving: on the CP➣ A frame containing changes is received.➣ Locally configured objects are filtered out of the frame.➣ All the filtered values are
Chapter A and BAbbreviations and IndexThe list of abbreviations will help you considerably when working with thismanual since you can check the meanin
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
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
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
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
➣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
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
➣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
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
➣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
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
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
Cyclic operationThe cyclic program has the following structure for all stations in the CYCLESYNCHRONIZED update mode:In cyclic operation, the SEND syn
Possibilities of error detection➣Group error message in ANZW (RECEIVE ANR 210)➣Reading the station list (ANR 201).Error statuses within the bus system
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.
☞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
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.
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
➣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
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
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
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
LANs form the basis of the communications system and can beimplemented ➣ electrically➣ optically➣ as an electrical/optical combination.System Overview
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
➣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
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
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
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
➣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
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
Output fields:L2 station address: The address of the currently addressed station isdisplayed.Input/outputarea:Here, the I/O area is displayed in which
F8SELECTIf you press this key, a selection list is displayed withpossible entries for fields which cannot be edited freely.Select values from the list
9.3 Example of Data Transfer with Communicationusing Global I/OsThe following example describes an application with cycle-synchronizedglobal I/Os.Hard
2.1 SINEC OverviewSINEC (SIEMENS Network Architecture for Automation and Engineering) isthe name of the communications network for SIEMENS programmabl
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
The distribution of the tasks is as follows:PLC Bus stationnumberTaskS5-155U 1 "head control"- Sends program selection number and controlcom
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
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
Station 2Station 3Fault1Fault2PY 12PY 122IBQBFig. 9.18: Station 3 Sends Fault Messages to Station 2Station 2Station 3PY 22PY 112Fault1Fault2QBIBFig. 9
Station 2Station 3Auto Man Start StopPO51 PO52 Fault1Fault2PY 4 PY 5PY 120PY 121Position and fault messagesIBQBQBIBFig. 9.20: Station 3 Sends Acknowl
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
For the "manufacturing unit" example, the three stations should havedifferent start-up responses:As a result of the conditions listed above,
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
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
- triaxial cable (50 Ω)- fiber-optic cable - twisted pair➣ SINEC L2/L2FO,a communications network for the cell and field area according toPROFIBUS wit
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
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
NotesCommunication with Global I/Os B8976060/01Volume 1 9 - 48
10 Data Transmission with Cyclic I/Os (CP 5430 TF)This chapter contains the following information:➣ The devices and applications for which data transm
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
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
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
➣receives the reply frames and assigns them to the configured ZP inputbytes of the CPUThe following information is important:➣With field devices, diff
Consistency of the input and output bytes of the ZP➣FREE mode: guaranteed consistency of one byte.➣CYCLE-SYNCHRONIZED mode: guaranteed consistency ove
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)
2.2 The PROFIBUS-Compatible Network SINEC L2/L2FOWithin the open, heterogeneous SINEC communications system, SINECL2/L2FO is the network for the cell
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
☞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
Procedure with the CYCLE-SYNCHRONIZED mode: master transmits toslaveExplanation of Fig. 10.4:➣The control program changes the output byte to be transm
➣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
➣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
➣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
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)
In cyclic operation, the SEND synchronization point is immediately at thestart of OB 1; the RECEIVE synchronization point at the end of the PLCcycle.
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
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
SINECCP 5430 TF/CP 5431 FMS with COM 5430 TF/COM 5431 FMSDescription C79000-B8976-C060/02
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
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
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
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
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
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
☞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
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
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
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
10.3 Example of using the Cyclic I/OsThe following example describes an application using cycle-synchronizedcyclic I/Os.Hardware and software requirem
2.2.1 StandardsSINEC L2 is based on the reference model of the International StandardsOrganization ISO for "Open System Interconnection" (OS
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
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
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
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
The distributed I/Os system SINEC L2-DP consists of active and passivestations on the bus.Active stations (masters) are:– the programmable controllers
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
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
➣Communication with other active PROFIBUS devices functioningaccording to the standard DIN 19245 Part 1 and 2 on the bus. Theseconfigurations are suit
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
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
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
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
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
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
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
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
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
☞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
11.5.3 How the CYCLE-SYNCHRONIZED Mode FunctionsThe following diagram illustrates how the CYCLE-SYNCHRONIZED modefunctions for output bytes.Explanatio
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
The following diagram illustrates how the CYCLE-SYNCHRONIZED modefunctions for input bytes.Explanation of Fig. 11.8:The input byte information receive
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
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
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
Relationship between the HDB RECEIVE 211 call and the DP pollinglist cycleThe data information received during the processing of the DP polling list i
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
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
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
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
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
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-
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
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
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
Slave watchdog time:With this parameter, you decide whether or not theslave operates on the L2-DP bus with watchdogmonitoring ON or watchdog monitorin
F8SELECTIf you press this key, a selection list is displayed withpossible entries for fields which cannot be edited freely.Select values from the lis
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,
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
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
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
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
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
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
➣Every active station "knows" the addresses of the other active stations.An active station checks the address area between itself and the ne
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
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
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
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
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
The extended DP slave diagnostic data:– Device-related diagnostics (Vendor and device-specific diagnostic data)– ID-related diagnostics (Configuration
Structure of the diagnostic data according to the DP standard::::Byte 1234567 *)Station status 1Station status 2Station status 3Master address Ven
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
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
Programming example of reading out the DP station list and updatingDP group messages FB202 "STAT-LIS" makes all DP group messages available
Within the token mechanism for the active stations, various procedures aredefined for the following special situations:➣Initializing the logical token
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
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
Structure of the job field "DP diagnostic list"Structure of the Acknowledgment field for "DP diagnostic list"1st byte2nd byte3rd b
Example of programming for reading out the DP diagnostic list FB209 "DIAG-LIS" requests the diagnostic list from the CP with the specialserv
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
Structure of the job field "single DP station diagnostics"1st byte2nd byte3rd byte4th byte040102Length of job field in bytesDiagnostics requ
Structure of the acknowledgment field for "single DP stationdiagnostics"Causes of errors in the acknowledgment 0AH "DP slave configurat
Structure of the station status bytesStation status byte 1Bit no.MeaningExplanation7Master_Lock The DP slave was assigned parameters by a different DP
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_
Station status byte 3Structure of the byte "master address"Bit no.MeaningExplanation76 - 0 reservedIf this bit is set, there is morediagnost
Each station measures the actual token rotation time and calculates thedifference between the target rotation time and the actual rotation time (=toke
"Ident_Number" bytesThese two bytes contain the vendor ID for exact identification of a DP slavetype.Structure of the extended DP slave diag
The three diagnostic groups are distinguished by the header or identificationbytes. The order of the groups is unimportant. Each group can also occurm
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
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
1st byte of the channel-related diagnostics2nd byte of the channel-related diagnosticsBit 01234567ID number 0 to 630Identification byte forchannel-rel
3rd byte of the channel-related diagnosticsBit 01234567Byte for error and channel typeError type00000 reserved00001 short circuit00010 undervoltage000
Example: Structure of a complete data field "extended diagnostics"Bit01234567110000002 bytes vendor-specificdiagnostic data00100010111010000
Example of a program for read single DP slave diagnosticsFunctions block FB 208 "EINZ-DIA" requests the diagnostic data of a singleDP slave
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
11.8.1 Function of the Control Commands - Sync and UnsyncSyncThe output data last received with the "Sync" control command are outputby the
2.2.3 Transmission TechniquesWith SINEC L2/L2FO there are two different transmission techniquesavailable (RS-485, FO) for two different transmission m
11.8.2 Function of the Control Commands - Freeze and UnfreezeFreezeWhen the control command "Freeze" is received, the current statuses of th
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
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
Program example of sending a control command to a DP slaveExplanation of Fig. 11.39:The special service to send "Global_Control commands" to
Structure of the job field "send control command"1st byte2nd byte3rd byte4th byte04 hexJob typeLength of job field in bytesBit 7 = reserved
Control Command ByteStructure of the acknowledgment field for "send control command"Bit01234567reserved = 0reserved = 0UnfreezeFreezeUnsyncS
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
Sequence of the special service "STOP DP polling list processing"Explanation of Fig. 11.43:The special service "STOP DP polling list pr
Structure of the job field "STOP DP polling list processing"Structure of the acknowledgment field for "STOP DP polling listprocessing&q
12 Service and Diagnostic Functions on theSINEC L2 Bus using FMA ServicesThis chapter describes the administrative fieldbus management (FMA)services a
(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
12.1 Use and Types of FMA ServiceThe fieldbus management (FMA) organizes the initialization, monitoring anderror handling between the FMA user and the
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
The following table lists some of the characteristics of the individualservices.Before using the FMA services, you must perform the following tasks fo
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
A distinction is made between local and remote FMA services Local control programS5-add.ANZWANRSSNRPAFECPAnzw = Job_active receive possibleAnzw = Job_
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
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
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
Data acceptance/transfer(enable/disable bit)ReservedData transfer complete on CP (FMA request was transferred),This bit is reset by the HDBData accept
Bits8-11 Meaning0HNo errorIf bit 3 "job complete with error" is nevertheless set, this means that the CP hasset up the job a
NoteWe would point out that the contents of this product documentation shall not become a part of or modify anyprior or existing agreement, commitment
A point-to-point link between 2 SINEC L2FO bus terminals (without anactive star coupler) is possible.Characteristics of the fiber-optic technique:➣lon
The parameter assignment error byte (PAFE) must also be evaluated inthe control program. It informs you about various parameter assignmenterrors. When
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
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
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
Structure of the bus parameter block (see also network parameters):Parameter Meaning Range of values/Codehsa (byte) Highest station address 2 to 126 (
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
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
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
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
The entries in the right or left nibble have the following significance:Service_typeBitRole_in_service32 10Enabled serviceBitSAP function for the enab
For more information about fiber-optic cables, refer to Fundamentals, CableTechnology /5/, VDI/VDE 3692 page 2 /6/ and the SINEC L2/L2FO NetworkManual
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
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
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
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
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
The parameter link_status of the confirmation indicates the success orfailure of the previous FMA request.The following messages can occur with this F
12.7 FDL_READ_STATISTIC_CTRThis service is used to read station-oriented statistical information. In theappropriate bytes, counters indicate how often
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
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
The values in the statistics block provide information about how often thefollowing processing statuses occurred:Parameter Meaninginvalid_start_delimi
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
12.8 FDL_READ_LAS_STATISTIC_CTRThis service is used to read bus-oriented statistical information. In theappropriate bytes, counters indicate how often
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
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
12.9 ExamplesThe program example is described in detail for the FMA serviceFDL_READ_VALUE. Setting up the DB is also illustrated ascomprehensively as
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
FB140 ExplanationSegment 1Name: READ-ValDECL:ANST I/Q/D/B/T/C: I BI/BY/W/D:BI0008 :0009 :000A :000B :000C
FB 140 (continued) Explanation0029 :002A : RB =ANST002B : 002C :002D CONF:002E :002F : A F 141.00
FB 140 (continued) Explanation0042 :0043 :0044 :0045 : C DB 1400046 :0047 : L KB 00048 : L
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
The structure of the user program for sending the request and receiving theconfirmation is exactly as described for the FMA serviceFDL_READ_VALUE (ref
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
12.9.3 Program Examples for the FDL_LIFE_LIST_CREATE_REMOTEService This service is not implementedService and Diagnostics us
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
The structure of the user program for sending the request and receiving theconfirmation is exactly as described for the FMA serviceFDL_READ_VALUE (ref
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
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:
The structure of the user program for sending the request and receiving theconfirmation is exactly as described for the FMA serviceFDL_READ_VALUE (ref
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
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
The structure of the user program for sending the request and receiving theconfirmation is exactly as described for the FMA serviceFDL_READ_VALUE (ref
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
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
The structure of the user program for sending the request and receiving theconfirmation is exactly as described for the FMA serviceFDL_READ_VALUE (ref
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
Bit position for serialtransmission via L2More significant partLess significant partreservedCorrection value (in 1/2 h)for representing local timeSign
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
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.
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
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
5. During the undefined time, no synchronization frame was received. TheCP therefore attempts to take over the clock master function.6. The current cl
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
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
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
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
The following identifiers are possible replies to a "set time" job from thePLC.Reply(decoded IDs)Identifier MeaningOK, no error 00HCommand c
The following identifiers are possible as the reply to a "read time" job of thePLC.Reply Identifier MeaningSystem error 0EHSystem error (e.g
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
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
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
F2 SETThe time can only be set when the CP status is "masterclock" or "clock_slave_asynchronous" or when the clockchip of the
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
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
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
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
NOTES
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
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
14.2 TestSuitable test and diagnostic tools are particularly important when installingSINEC L2 networks. For this reason, the software package COM 543
☞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
14.2.1.1 Total StatusThe screen has the following structure (examples of parameters):Output fields:L2 station addressStation, with which the test func
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
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
Job status Hex Meaning0000HInitial status, no current job exists0001HNo job processing at preset0021HAwait-Indication Request field sent to layer 2.00
Errors in S5-S5/free layer 2 communicationError ID Meaning0000HNo error0001HWrong block type for SEND-DIRECT.0002HMemory area does not exist on P
2.4 Configuring the Network2.4.1 Configuring a SINEC L2 Network for RS-485When configuring a purely electrical network the following values areimporta
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
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
FDL error messagesThese error messages are returned as the link status in theacknowledgment (Confirmation).ID link_status MeaningL2_LST_OK 0x0000 ack.
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
Output fields:L2 add: Here, the L2 addresses of the master stations in thelogical ring are displayed.GP inp: "X" indicates all the stations
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
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
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
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:
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
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
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
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
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.
ID Status MeaningZP_ERR_START 0x00F0 Start-up IDZP_ERR_DIAG_REQ 0x00F1 Diagnostics request from ET200UZP_ERR_INP_TOO_LONG0x00F3 Input area> receive
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
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
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
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:
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
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
2.4.2 Configuring a SINEC L2FO NetworkWhen planning a SINEC L2FO network the following parameters areimportant:➣maximum signal attenuation/attenuation
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
Function keys:F1UPD ONThis key switches on automatic cyclic updating of thescreen data.F1UPD OFFThis key switches off automatic cyclic updating of the
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
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
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
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
Function keys:F1PAGE +Page one page forwards. F2PAGE -Page one page backwards.14.2.5.2 Station-oriented StatisticsThis screen contains station-related
Output fields:Counted values about station statuses.14.2.5.3 Bus-oriented StatisticsThis screen contains bus-oriented statistical information to allow
15 UtilitiesThe following figure is an overview of all the utilities available under theUtilities menu item. The individual utilities are described in
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
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
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
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
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
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
– 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
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
The screen for Init->Path selection has the following structureInput fields:CP link /Path file:Format: drive: fileDriveHere, you must specify the d
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
Output fields:Current sub-module size:Memory capacity of the submodule in Kbytes (values:16/32/64)Currently requiredsubmodule sizeMemory requirements
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
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
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
NOTES
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
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
[email protected]@@@NCM.NETZP@@@NCM.BPBTFTF115UST.S5DOTFTLN1OTFTLN2TF@@@NCM.NETTF@@@NCM.BPBList of example programs for the CP 5
GPQGPTLN1.155QGPTLN2.115QGPTLN3.135GP115UST.S5DGP155UST.S5DGP135UST.S5DGPQ@@NCM.NETGPQ@@NCM.BPBDPDIAGNOST.S5DSTATIOST.S5DEINZELST.S5DQDPTLN1.115DP115U
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
SAP Use ANR0 Disabled ------------1 Disabled ------------2...33These SAPs are normally used forS5S5. Their use for free layer 2access or FMS applicat
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
3.1 ISO/OSI Reference Model for Communication To obtain a structured architecture, the communications tasks were dividedinto seven layers (refer to Fi
SAP Use ANR0 Disabled ------------1 Disabled ------------2...33These SAPs are normally used forS5S5. Use as "free channels" isonly possible
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
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
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
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
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
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
Bit 111098of the status wordorTransmission delay in the other station, i.e. thePLC cycle was faster than the transfer capacityof the L2 bus (transmit
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
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
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
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
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
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
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
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
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
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
17.5 Overview of the FMA ServicesRelevant bytes in the request fieldYou want to... .. thenuse theserviceFDLrequest(byte 0)Servicecode (byte2)SAP no.
Byte Field to be sent (request) Byte Field received(Confirmation/Indication)0 com_classFDL request=00(service request to layer 2)0com_classFDL confirm
Value oflink_statusAbbreviationPROFIBUSMeaning SDA00H01H02H03H11H12HOKUERRRSNADSPositive-acknowledgment, service exec
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
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.
Parameter ExplanationThe address area between the local stationaddress of an active station and the address of the next active station is known as the
Orientation values for the INIT parametersRecommended default parameters:The next sections explain how to do the following,➣ calculate the target rota
Proceed as follows to calculate the required target rotation time:➣ Work out the maximum possible number of frames from all stations thatcan occur in
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
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)
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
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
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
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
LLI:Lower layer interface (Volume 2) CP 5431 FMSFMS:Fieldbus messaging specification (Volume 2) CP 5431 FMSALI:Application layer interface (Volume 2)
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
A AbbreviationsAbbreviationsAALI Application Layer InterfaceANR Job number (for handling blocks)ANZW Status wordAP Automation protocol layers 5 to 7 o
COR Coordination moduleCP Communications ProcessorCPU Central Processing UnitCSF Control System Flowchart, graphical representation ofautomation tasks
EEG/EU Expansion unitEIA Electronic Industries AssociationEPROM Erasable Programmable Read Only MemoryET 200 Electronic Terminal 200FF Flag bitFB Func
GGO Global ObjectGP Global I/OsGPW Global Peripheral WordGPY Global Peripheral ByteGRAPH 5 Software package for planning and programmingsequence contr
LAN Local Area NetworkLB Link blockLED Light Emitting DiodeLEN Length of a blockLLC Logical Link ControlLLI Lower Layer InterfaceLSB Least Significant
PC Personal ComputerPCI Protocol Control Information (for coordinating aprotocol)PCP/M-86 Operating system Personal CP/M-86PDU Protocol Data Unit (fra
RLO Result of logic operation (code bits)RS Recommended StandardRS 485 EIA standard (multipoint capability) standard forelectrical data transmissionSS
SINEC L2 SINEC bus system for industrial applications based onPROFIBUSSINEC L2-FO SINEC bus system for industrial applications based onPROFIBUS with f
TTF Technological functionsTSAP Transport Service Access PointTSAP-ID Transport Service Access Point IdentifierTSET Set-up timeTSDR Station delayTSL S
3.2.1 Communications ModelThis section is intended to introduce you to the communications world andto provide explanations of the model and terminolog
Notes
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
Cycle-synchronized 10-6Cyclic and acyclic transmission 11-69Cyclic communication 5-11DData rate 6-26Delete CP 6-49Medium connector 4-2Device-related d
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
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:
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)
Token rotation 2-10Token rotation time 2-12Transfer functions 6-46Transmission according to RS 485 2-14Transmission medium 2-16Transmission with fiber
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
/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
3.2.1.2 Logical Data ExchangeFDL services are available for issuing jobs. Jobs are transferred via thespecified communication relations (logical chann
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
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
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
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
3.3 Application Interfaces of Layer 2 CommunicationIn this model, as already mentioned, there are two basic types ofcommunication: Explicit communicat
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
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
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
3.3.2 Implicit CommunicationIf you use implicit communication, the communications processor (CP)controls the communication. The types of communication
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
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
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
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
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
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
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
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
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
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
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
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
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
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
☞For more details about handling blocks for the individualPLCs (particularly when the blocks are integrated in theoperating system) refer to the descr
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
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
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
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
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
4.1.3.6 Performance data of the CP 5431 FMSALINumber of links: 32Number of variables(indexes): approx. 256Maximum lengthof a variable: 233 bytesMaximu
GP (global I/Os)Maximum number of GP objects: 2048 throughout the network Maximum number of inputs: 256 bytes per stationMaximum number of outputs:
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
L2 interface socket X3 (RS 485)PG interface socket X4X4Pinno.Signalname123456789M-EXT (external ground))TTY-P24MASSE (internal ground))TTYTTYM-EXT (ex
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
4.3 Installation Guidelines4.3.1 Basic ConfigurationFig. 4.6 illustrates the minimum configuration of a SINEC L2 bus system.➣Communications processor
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
☞Modules must only be inserted or removed when no voltageis applied. The rules for working with electrostaticallysensitive devices (ESD guidelines) mu
Expansion unit (EU):SIMATIC S5-135UCentral controller113 91837567595143 10799 155147139131123115 163without interrupt line3519 27Fig. 4.8 Slots for th
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
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
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
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.. . . . . .
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
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
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
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