Siemens S7 appendix System Memory

Page 126

Configuring Communication Connections

Notice

Remember that with this configuration on an S7-300, one connection resource (free connection for S7 functions) of the S7-300 CPU is used. CPU connection resources are also used, for example, by S7-300 CPs, in the FMS mode or by PGs and OPs. For more detailed information about the maximum connection resources, refer to /13/ and /7/.

System Memory

You can access the following address areas in the system memory on the SIMATIC S7 PLC using FETCH or WRITE:

SData blocks (DB)

(When accessing DBs, remember that the highest DB number is 255.)

SBit memory (M, MB, MW, MD)

SProcess image input table (E)

SProcess image output table (A)

SI/O area inputs (PIW, PID, PIB)

SI/O area outputs (PQW, PQD, PQB)

SCounters (C)

STimers (T)

Links to Other Systems

The FETCH and WRITE modes supported on ISO transport connections and ISO-on-TCP or TCP connections can be used with any other device to access the S7 system memory areas.

To be able to use this type of access, for example for PC applications, you need to know the PDU structure of the jobs. The required S7 or S5 headers for request and response frames are 16 bytes long and their structure is described in the Appendix.

Messages in the Diagnostic Buffer

As a result of FETCH/WRITE access, negative acknowledgments from the S7 CPU are possible. This then leads to corresponding connection-oriented entries in the diagnostic buffer that you can read out with NCM Diagnostics (see Section 6.5).

126

SIMATIC NET NCM S7 for Industrial Ethernet

C79000-G8976-C129–06

Image 126
Contents Simatic NET Classification of Safety-Related Notices Qualified Personnel Safety Instructions Regarding your ProductTrademarks Correct Usage of Hardware ProductsPrior to Startup Copyright E Siemens AG 2001-2002All rights reservedManual Communication services with / NCM S7S7-CP and / NCM S7 PrimerSymbols used in this Manual AudienceScope of this Manual Ethernet Title ContentNCM S7 for Industrial ManualAdditional Information on Simatic S7 and Step Topic DocumentAccess to Online Help of and NCM S7 ConventionsContents Programming FCs Functions and FBs for S7 Ethernet CPs 141 175201 191197 211Communication via Ethernet CPs in S7 Stations Definition Network AccessIndustrial Ethernet All-Round Communication in the Industrial SectorSimatic S7 Communication with S7 Ethernet CPs Types of CommunicationPG/OP communication PROFInet communication S7 communicationS5-compatible communication with SEND/RECEIVE interface Html process controlFile management and file access with FTP Possibilities for Communication between Device TypesConfiguration and Diagnostics PG/OP Communication via Industrial Ethernet ApplicationConfiguration for PG/OP Operation IsdnPG Communication with over Industrial Ethernet Requirements for PG CommunicationNetworking the PG / Engineering Station Procedure RequirementsS7 Communication on Industrial Ethernet NodesClient and server functionality at both ends Profibus Configuring S7 Connections Interface in the User Program of the S7 StationBlock type Client Server Described Communication via Ethernet CPs in S7 Stations S5-compatible Communication SEND/RECEIVE Interface1 ISO Transport ConnectionIP Internet Protocol SEND/RECEIVE interfaceStations WANFETCH/WRITE Services Server Coordinating Access Using the User ProgramConnection Types Networking in a Multiproject ConfiguringNetworking Stations with Step ToolsVariant examples Characteristics/Configuration VariantsConfiguration of the System Network/Project Variant One Subnet One ProjectView in a Project Simatic S5 Network/Project Variant Two or More Subnets One Project Network/Project Variant One Subnet More Than One SubProject Organization in a MultiprojectPossibilities for stations outside the current project Merging projects in the multiproject Cell level = subproject Communication via Ethernet CPs in S7 Stations Network/Project Variant Connections between Subnets TCP/IP Communication via Ethernet CPs in S7 Stations Installing and Starting the Ethernet CP With Step Installation FunctionsOperation Procedure Configuration data in the projectUDP Creating an Industrial Ethernet Subnet AimsSelect Insert Subnet Industrial Ethernet Properties of Merged Subnets Multiproject Installing and Starting the Ethernet CP with Step Entering an Ethernet CP in the Hardware Configuration Subnet AttachmentInstalling and Starting the Ethernet CP with Step Installing and Starting the Ethernet CP with Step Displaying the Network Attachments of a Station Graphic Overview in NetProOverview in Table Form ResultSetting Further CP Properties OverviewAddresses Tab Options Tab Option Meaning / EffectCPU Default Setting Time-of-Day Synchronization Tab Diagnostics Tab Addressing TabS7-400/2 Substitute Objects in the ProjectPlant Production Non-Siemen Device Ethernet subnet S7-400/3Project With Substitute Objects Configured Attaching Non-S7 Stations to the SubnetSelecting the Subnet Type for Other Station Example Configuring Communication Services Setting Up ConnectionsAssigning Addresses for the First Time Applies to Latest CPs Assigning the Address Options and RecommendationsSelect the menu command PLC Assign Ethernet Address Installing and Starting the Ethernet CP with Step Alternative Procedure Installing and Starting the Ethernet CP with Step Downloading the Configuration Data to the Target System PrincipleType of Interface Deactivating the MAC Address in the Configuration Saving the Configuration Data in Non-Volatile MemoryDownloading the Configured Connections Relocating the CP in the Hardware Configuration Page SEND/RECEIVE Interface in the User Program Amounts of Data How the SEND/RECEIVE Interface Works on the CPUFunctions FCs Ethernet CPPurpose of the FCs Programming the SEND/RECEIVE InterfacePrinciple of Job and Data Transfer Programming ConnectionsCalling FCs in the CPU Program Agsend AgrecvSEND/RECEIVE Interface in the User Program Data Exchange S7 CPU Ethernet CP FC Calls Faster than the Transmission TimeFC Calls Slower than the Transmission Time SEND/RECEIVE Interface in the User Program Programming Data Transfer on TCP Connections Special FeaturesAdditional Information Purpose of TCP ConnectionsKnown Problems Recommendations for Use with a High Communications LoadRemedy SEND/RECEIVE Interface in the User Program Configuring Communication Connections Programming ConfiguringSteps Program the SEND/RECEIVE interface in the user programPossible Connection Configurations Simatic S5Organization in a Multiproject Characteristics of a Connection ConnectionsTasks of the Ethernet CP Requirements for Configuring Connections Creating a New Connection New ConnectionConfiguring Communication Connections Configuring Communication Connections Connections to Non-S7 Stations using Substitute Objects Connections to Partners in Other ProjectsHandling Connections in a Multiproject Unspecified Connections By any partner via specific Tsap EmptyTo or by a specific partner Configuring Communication Connections Further Functions ToolbarPrint Function in the Overview Tab Menu option Edit Connection Connections Without AssignmentAssignment to a CP PartnerDisplay Example Remain without assignment Connection PartnerOpening the Dialog Configuring ISO Transport ConnectionsIntroduction TabsSpecifying the Local Connection Endpoint General TabBlock Parameters Attributes Description Access Local EndpointConnection Name Reference Only in Multiproject LaddrTsap Specifying ISO Transport AddressesAddress Parameters Tsap MACTsap Format Local and Remote TSAPsDefault TSAPs Addresses Tab Unspecified ISO transport connectionDynamics Tab Attributes Description Access Connection EstablishmentSpecifying ISO Transport Dynamic Properties Data TransferAttributes Description Access ISO Transport with the FETCH/WRITE Mode Using Fetch Passive / Write PassiveMessages in the Diagnostic Buffer System MemoryLinks to Other Systems Connection Overview with Multiple CPUs in an S7 Station Checking ISO Transport Connection PropertiesOverview Tab Parameter DescriptionConfiguring ISO-on-TCP Connections Properties Specifying the Local Connection Endpoint Parameter Description Access Local Endpoint Specifying ISO-on-TCP Addresses Address parameterAddresses Tab Addresses Tab Unspecified ISO-on-TCP Connection ISO-on-TCP with the FETCH/WRITE Mode 117 Checking ISO-on-TCP Connection Properties Configuring TCP Connection Properties Specifying the Local Connection Endpoint 121 Specifying TCP Addresses Address Parameters and Connection TypesTCP Addresses Tab Specified TCP Connection Ports Application / Note Port Addresses Addresses Tab Unspecified TCP Connection TCP with the FETCH/WRITE Mode System Memory Checking TCP Connection Properties Configuring UDP Connection Properties Specifying the Local Connection Endpoint Connection Name Reference Only in Multiproject Specifying UDP Addresses 23 Sending and Receiving on One UDP ConnectionAddresses Tab Specified UDP Connections Addresses Tab Unspecified UDP Connection When to Use Multicast instead of Broadcast ? UDP with Broadcast and Multicast135 Addresses Tab Connection to all Broadcast Nodes Addresses Tab Connection to all Multicast Nodes Checking the Properties of a UDP Connection Free UDP Connection Program-Controlled AddressingRouting to Distribute Load Routing to Distribute LoadProgramming FCs Functions and FBs for S7 Ethernet CPs General Notes on FCs / FBs Block LibraryFCs and Module Replacement Spares Which Block Version Should I Use?Programming FCs Functions and FBs for S7 Ethernet CPs Setting Parameters for FC Calls Calling Communication Blocks for an S7-300Setting Block Parameters Automatically1 Response to Incorrect AddressesCause Reaction / Code Specifying the Data Area on the CPU Parameters for Specifying a CPU Data Area input parametersStatus Information output parameters Evaluating Status CodesFCs for Configured Connections Can be used with MeaningAglsend / Aglrecv Working without the Job Header Working with the Job Header 8EH 0BHMeaning of the Block CallAgsend / Aglsend How the Block Works Time Explanation of the Formal Parameters Parameter Declara Type Possible Remarks Tion ValuesTransport Condition CodesOn ISO On UDPDone Error Status 8F3AH8F7FH Example of Agsend BEU160 2 FC6 Agrecv / FC60 Aglrecv Agrecv / AglrecvProgramming FCs Functions and FBs for S7 Ethernet CPs Status code is updated at each block call Recv Input ANY NDR Output BoolStatus Output Word NDR Error Status LEN Output INT166 Access with FETCH/WRITE FCs for Access Coordination with FETCH/WRITELocks external data access With FETCH/WRITEAglock FETCH/WRITE Locked = Aglock FETCH/WRITE1 FC7 Aglock Locked Output Bool 2 FC8 Agunlock 172 Numeric Data / Resource Requirements of the FCs NameMC7 174 NCM S7 Diagnostics Overview Diagnostic Options in StepWhere to Find Further Information What You Should Already KnowFunctions of NCM S7 Diagnostics General diagnostic and statistical functionsMode-Dependent Functions Installing and Starting NCM S7 Diagnostics AlternativeStructure General Menu Commands Menu MeaningOptionsCustomize 181 MPI Starting Diagnostics from the NCM Program GroupInitial Situation ProfibusStarting Diagnostics from the Properties Dialog of the CP InternetworkingTCP/IP Other Startup Options How to Use Diagnostics If the CP is in the RUN modeCall-Specific Diagnostic Functions 187 Checklist for ‘Typical Problems‘ in a System MeaningChecklist for General CP Functions Problem Possible Cause Identifying the Cause and RemedyCheck the user program Communication Connections ChecklistEvaluate diagnostic buffer Evaluate status bytes in AG-SENDFirmware Loader Uses of the Firmware Loader ApplicationFirmware Load FilesStarting the Download NCM S7 Firmware Loader menu commandLoading Firmware 1st Step2nd Step 3rd Step195 196 References References Sinec CP Order Numbers Glossary General Section Multicast GatewayIndustrial Ethernet NCM S7 for Industrial EthernetProtocol ServicesPROFInet SegmentTransmission rate SubnetSystem Transport layerBase address Ind. Ethernet stationISO-on-TCP RFC1006 Media Access Control MACMAC address S5S5 connectionPROFInet PROFInet device Profibus devicePROFInet PROFInet device, proxyPage FETCH/WRITE Structure of Write Frames Structure of Fetch Frames ORG ID Parameter ValuesS7 Address Area DbnrPI/PQ Address Area216 New in Release 05 / V5.1 SP3 New in Release 04 / up to V5.1 SP2Page Index-223 NCM S7 Technical Support Service & Support on the Internet
Related manuals
Manual 21 pages 33.88 Kb