Siemens S7 Initial Situation, Starting Diagnostics from the NCM Program Group, Mpi, Profibus

Page 182

NCM S7 Diagnostics

6.3Starting Diagnostics – Establishing a Connection to the Ethernet CP

Initial Situation

Establish the physical connection between the PG and the SIMATIC S7 Station. There are two ways of doing this:

SMPI

SIndustrial Ethernet

SIndustrial Ethernet TCP/IP

SPROFIBUS

Starting Diagnostics from the NCM Program Group

If there are no configuration data on your PG/PC, follow the steps outlined below to start diagnostics with a connected CP:

1.Select the function “NCM Diagnostics” in the NCM S7 program group.

NCM S7 Diagnostics is started with the message “No online connection to the CP” in the contents area.

2.Select the “Diagnostics"Open Online Connection...” menu command.

3.In the displayed dialog “NCM S7 Diagnostics”, select the interface to match your hardware configuration.

Depending on the type of network attachment you have, you will be prompted to specify an address:

Table 6-2 Possible Settings for the Online Paths – without Parameters for Internetworking

Attachment on

Node Address

Location of the Module

Destination Station

 

Rack / Slot

 

 

 

MPI

MPI address of the CP if this has its

Rack/slot no. of the CP to be

 

own MPI address.

checked.

 

Otherwise specify the MPI address of

If you specify the MPI address of the

 

the CPU.

CP, you can simply use the default

 

 

setting “0/0”.

 

 

With this setting, the CP whose

 

 

address was specified as the node

 

 

address is accessed.

 

 

 

PROFIBUS

PROFIBUS address of the

Rack/slot no. of the CP to be

 

PROFIBUS CP via which the S7

checked.

 

station is reached.

 

 

 

 

182

SIMATIC NET NCM S7 for Industrial Ethernet

C79000-G8976-C129–06

Image 182
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 PrimerScope of this Manual Symbols used in this ManualAudience 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 SectorPG/OP communication Simatic S7 Communication with S7 Ethernet CPsTypes of 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 IsdnNetworking the PG / Engineering Station PG Communication with over Industrial EthernetRequirements for PG Communication Procedure RequirementsClient and server functionality at both ends S7 Communication on Industrial EthernetNodes Profibus Block type Client Server Described Configuring S7 ConnectionsInterface in the User Program of the S7 Station Communication via Ethernet CPs in S7 Stations S5-compatible Communication SEND/RECEIVE Interface1 ISO Transport ConnectionIP Internet Protocol SEND/RECEIVE interfaceStations WANConnection Types FETCH/WRITE Services ServerCoordinating Access Using the User Program Networking in a Multiproject ConfiguringNetworking Stations with Step ToolsVariant examples Characteristics/Configuration VariantsView in a Project Configuration of the SystemNetwork/Project Variant One Subnet One 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 Operation InstallationFunctions UDP ProcedureConfiguration data in the project Select Insert Subnet Industrial Ethernet Creating an Industrial Ethernet SubnetAims 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 ResultAddresses Tab Setting Further CP PropertiesOverview 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 Type of Interface Downloading the Configuration Data to the Target SystemPrinciple Downloading the Configured Connections Deactivating the MAC Address in the ConfigurationSaving the Configuration Data in Non-Volatile Memory 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 FC Calls Slower than the Transmission Time Data Exchange S7 CPU Ethernet CPFC Calls Faster than the Transmission Time SEND/RECEIVE Interface in the User Program Programming Data Transfer on TCP Connections Special FeaturesAdditional Information Purpose of TCP ConnectionsRemedy Known ProblemsRecommendations for Use with a High Communications Load 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 Handling Connections in a Multiproject Connections to Non-S7 Stations using Substitute ObjectsConnections to Partners in Other Projects To or by a specific partner Unspecified ConnectionsBy any partner via specific Tsap Empty Configuring Communication Connections Print Function in the Overview Tab Further FunctionsToolbar 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 PassiveLinks to Other Systems Messages in the Diagnostic BufferSystem Memory 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 TCP Specifying TCP AddressesAddress Parameters and Connection Types Application / Note Port Addresses Addresses Tab Specified TCP ConnectionPorts 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-300Cause Reaction / Code Setting Block Parameters Automatically1Response to Incorrect Addresses 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 0BHAgsend / Aglsend Meaning of the BlockCall 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 Status Output Word Recv Input ANYNDR Output Bool 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 MC7 Numeric Data / Resource Requirements of the FCsName 174 NCM S7 Diagnostics Overview Diagnostic Options in StepWhere to Find Further Information What You Should Already KnowMode-Dependent Functions Functions of NCM S7 DiagnosticsGeneral diagnostic and statistical functions Installing and Starting NCM S7 Diagnostics AlternativeStructure OptionsCustomize General Menu CommandsMenu Meaning 181 MPI Starting Diagnostics from the NCM Program GroupInitial Situation ProfibusTCP/IP Starting Diagnostics from the Properties Dialog of the CPInternetworking 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 layerISO-on-TCP Base addressInd. Ethernet station 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

S7 specifications

The Siemens S7 series represents a cornerstone in the realm of programmable logic controllers (PLCs), developed by Siemens, a leading company in industrial automation. Widely used across various industries, the S7 series offers robust solutions for controlling machinery and processes, thanks to its reliable performance, flexibility, and scalable architecture.

One of the key features of Siemens S7 PLCs is the modularity of their design. Each system can be configured to meet specific application requirements due to the ability to mix various input/output modules, CPUs, and communication processors. This modular approach allows for the customization of systems to suit diverse automation tasks, providing end users with the adaptability required for modern manufacturing environments.

The S7 series encompasses several models, including the S7-1200, S7-300, and S7-1500. The S7-1200 is particularly suited for small to medium-sized applications, offering a compact design and integrated communication interfaces. In contrast, the S7-300 is designed for more extensive and complex control systems, making it ideal for large-scale industrial applications. The S7-1500 stands out with its advanced performance metrics, rich feature set, and high-speed processing capabilities, making it perfect for demanding applications that require real-time control and extensive data handling.

Siemens also emphasizes the importance of communication technologies within the S7 series. With options such as PROFINET, PROFIBUS, and EtherNet/IP, the S7 PLCs can seamlessly integrate into existing automation infrastructures, ensuring smooth data exchange between devices. The incorporation of web-based technologies and cloud connectivity further enables remote monitoring and control of systems, enhancing operational efficiency.

Another notable characteristic of Siemens S7 PLCs is the use of TIA Portal (Totally Integrated Automation Portal), an innovative software platform that simplifies the engineering process. TIA Portal allows users to program, configure, and diagnose their automation devices in a single environment, reducing setup times and improving productivity.

In conclusion, the Siemens S7 series stands out due to its modular design, range of models suitable for various applications, advanced communication technologies, and user-friendly programming software. This combination of features and characteristics makes S7 PLCs a preferred choice for industries seeking reliable and efficient automation solutions. As industrial demands continue to evolve, Siemens S7 PLCs remain at the forefront, adapting to technological advancements and setting benchmarks in the automation field.