You are on page 1of 15

NCM S7 Ethernet Diagnostics

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7KE_DIAG.1

Contents: Page

NCM S7 Ethernet Diagnostics ................................................................................................... 2


General Command Buttons ....................................................................................................... 3
Diagnostics Procedure ............................................................................................................... 4
Starting the NCM S7 Ethernet Diagnostics ............................................................................... 5
Establishing a Connection with the Ethernet CP ....................................................................... 6
Starting Diagnostics via the Start Menu ..................................................................................... 7
Starting Diagnostics from the Properties Dialog ........................................................................ 8
Setting Options ........................................................................................................................... 9
Identifying the Ethernet CP ........................................................................................................ 10
Querying the Operating Mode .................................................................................................... 11
Diagnosing Transport Connections ............................................................................................ 12
General Error Diagnostics Using the Diagnostic Buffer .............................................................. 13

Siemens AG Page 1 NCM S7 Ethernet Diagnostics


Training Center
NCM S7 Ethernet Diagnostics

 Integral part of the NCM S7 for Ethernet option package


 Diagnostics functions
 Querying the operating mode of the CP
 Querying the event messages recorded on the Ethernet CP
(diagnostic buffer)
 ISO Transport connection diagnostics
 ISO - on - TCP connection diagnostics
 TCP connection diagnostics
 UDP connection diagnostics

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7KE_DIAG.2

Functions and The NCM S7 Ethernet diagnostics are an integral part of the NCM S7 For
Operation Ethernet option package. The individual diagnostics functions can be selected by
means of tabs.

Buttons in the tab page dialogs enable you to control the diagnostics process.

Diagnostics The following diagnostics functions are possible:


Functions
• Querying the operating mode of the CP

• Querying the event messages recorded on the Ethernet CP


(diagnostic buffer)

• Diagnosing ISO Transport connections

• Diagnosing ISO - on - TCP connections

• Diagnosing TCP connections

• Diagnosing UDP connections

Siemens AG Page 2 NCM S7 Ethernet Diagnostics


Training Center
General Command Buttons

Close
Close Cyc.
Cyc.Upd.
Upd.ON
ON Update
Update Help
Help

These buttons appear in many of the dialog boxes.

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7KE_DIAG.3

Button Function

Close Exit current diagnostics function. The diagnostics dialog is closed.

Cyc. Upd. ON / Activate (Cyc. Upd. ON) and deactivate (Cyc. Upd. OFF) automatic (cyclic)
Cyc. Upd. OFF updating of the diagnostic and status information displayed.
You can set the interval between updates in the "Options" tab page. Cyclic
updating is activated as standard when you call the statistics functions (station-
oriented). For the other functions it is initially deactivated.
As soon as you activate cyclic updating, the wording on the button changes to
"Cyc. Upd. OFF".

Note:
When cyclic update is activated, use of the key combination Alt + Tab for
switching programs in Windows may be disabled. If so, you can either use the
mouse button (if the other application is visible on the screen) or deactivate cyclic
update and then switch programs.

Update This button updates the diagnostic and status information display once when you
operate it.

Help Help on the current diagnostics function. You can also obtain help by pressing
function key F1.
In some of the dialog boxes you can also obtain context-sensitive help on certain
output fields. Position the cursor on the output field and press function key F1.

Siemens AG Page 3 NCM S7 Ethernet Diagnostics


Training Center
Diagnostics Procedure
Start NCM S7 diagnostics:
- Establish connection to the CP
- Select options
- Identify Ethernet CP

Find out the current operating mode of the CP using the


“Operating Mode” tab page

If the CP is in RUN mode


If the CP is not ISO Transport Connection
in RUN mode ISO-on-TCP Connection
TCP Connection
UDP Connection
If irregularities are indicated in the
- Connection status,
- Receive status,
- Send status

Check/evaluate diagnostic buffer for overview and clarification of


details of diagnostic events

Make adjustments to configuration/program, if necessary.

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7KE_DIAG.4

Siemens AG Page 4 NCM S7 Ethernet Diagnostics


Training Center
Starting the NCM S7 Ethernet Diagnostics

Start There are two ways of starting the diagnostics tool:

Method 1 Method 2

• By selecting the SIMATIC option in • From your STEP 7 project, in the


the standard Windows 95/NT Start Properties dialog for the CP
menu. concerned.

Choose this method if the STEP 7


project in which the CP was
configured is not present on your PG.

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7KE_DIAG.5

Siemens AG Page 5 NCM S7 Ethernet Diagnostics


Training Center
Establishing a Connection with the Ethernet CP

STEP 7
MPI interface
NCM S7 PG 720

or
Ethernet interface

Ethernet

Ethernet CP
S7-400 S7-300

Ethernet CP

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7KE_DIAG.6

Establish a physical connection between the PG and the SIMATIC S7 station. You can choose between:

 MPI
 Ethernet
(provided:
– an Ethernet CP is installed in the PG
– The Ethernet CP in the S7 has been assigned a MAC address and, if you are using
TCP, an IP address)

Siemens AG Page 6 NCM S7 Ethernet Diagnostics


Training Center
Starting Diagnostics via the Start Menu

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7KE_DIAG.7

If the configuration data is not present on your PG/PC, proceed as follows to start diagnostics for a
connected Ethernet CP:

1. Select the NCM S7 menu item and then “Diagnose Industrial Ethernet” in the continuation menu.

2. In the “NCM S7 Ethernet Diagnostics : Online Path” dialog box, which then appears, select the
correct interface for your hardware configuration.

Depending on the type of interface you have selected, you will be prompted to enter an address:

- MPI/S7-300
Enter: MPI address of the Ethernet CP

- MPI/S7-400
Enter: MPI address of the CPU and rack/slot No. of the Ethernet CP;

- Industrial Ethernet
Enter: MAC address of the Ethernet CP in hexedecimal format, and rack/slot No. of the
Ethernet CP.

- TCP/IP
Enter: IP address of the Ethernet CP in decimal format and rack/slot No. of the Ethernet
CP.

Result:

The “Diagnostics” dialog box opens.

Siemens AG Page 7 NCM S7 Ethernet Diagnostics


Training Center
Starting Diagnostics from the Properties Dialog

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7KE_DIAG.8

If the project data is present on your PG/PC, proceed as follows:

1. Select the S7 station concerned in the project and open the hardware configuration.

2. Select the Ethernet CP and open the Properties dialog.

3. Choose the “Diagnostics” tab.

4. Click the “Run...” button.

Result:

The "Diagnostics" dialog box is opened.

Siemens AG Page 8 NCM S7 Ethernet Diagnostics


Training Center
Setting Options

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7KE_DIAG.9

Purpose You set parameters to apply to the diagnostics session as a whole in the "Options"
tab page.

Parameter Meaning

Dialog Update Time Sets the interval for cyclic updating of the diagnostics data in a dialog
box.

Show TSAP in ASCII You can choose whether to display the TSAP in ASCII or
hexadecimal notation in the following tab dialogs.

Siemens AG Page 9 NCM S7 Ethernet Diagnostics


Training Center
Identifying the Ethernet CP

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7KE_DIAG.10

Purpose To identify the Ethernet CP to which NCM S7 Ethernet diagnostics is connected


and to find out the current operating mode.

Dialog Box and The following information is displayed in the “CP Information” tab page
Parameters (the entries are given as examples):

Parameters in the “General Module Information” section of the dialog box

Parameter Meaning

CP Type: Type of Ethernet CP, e.g. CP 443-1.

CP Version: Firmware version of the Ethernet CP.

Order Number: Siemens product identifier of the Ethernet CP, which is also used for assigning
the module to the programmable logic controller in the S7 hardware configuration
tool.

Parameters in the “Status of the Module” section of the dialog box

Operating Mode Possible modes are:


and Cause: Stop, Startup, Run.
Possible causes include OK, STOP command from PG.

Changing Existing If you want to change the existing operating mode, choose the
Operating Mode Operating Mode tab.

Siemens AG Page 10 NCM S7 Ethernet Diagnostics


Training Center
Querying the Operating Mode

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7KE_DIAG.11

Purpose To query the current operating mode of the Ethernet CP as a module in the S7
station and as a node on Industrial Ethernet and, if necessary, change it (Stop
CP/ Start CP buttons).
Dialog Box and The following information is displayed in the “Operating Mode” tab page:
Parameters

Parameters in the “Status of the Module” section of the dialog box:

Parameter Meaning
Operating Mode Possible states are: Stop, Startup, Run.
and Cause: Possible causes include OK, STOP command from PG, Not configured.

Parameters in the “Status Information", "Memory Resources" and Transfer Time” sections of the
dialog box:

Parameter Meaning
Status Information The information displayed for the status and cause gives you an indication of the
type of configuration and the current status of the configured services.
Memory Resources Indication of the memory capacity of the Ethernet CP occupied as a result of the
configuration and the current operating mode.
Transfer Time Indicates whether the CP has been configured to pass on the time to the CPU.
Additional The additional buttons, which are either activated or deactivated, depending
Buttons on the current operating mode of the Ethernet CP, enable you to control the
Ethernet CP:
Button Meaning
Stop CP Stop the Ethernet CP
Start CP You can start the Ethernet CP if the RUN/STOP selector is at RUN.

Siemens AG Page 11 NCM S7 Ethernet Diagnostics


Training Center
Diagnosing Transport Connections

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7KE_DIAG.12

Purpose To display and monitor the connections

Dialog Box and The following information is displayed in the “ISO-on-TCP” tab page,
Parameters for example. The entries for the other types of connection follow the same
pattern):

Parameters in the dialog box

Parameter Meaning

ISO-on-TCP (list The connection number and connection name configured are displayed,
of connections) together with the following information for each connection:

Sent:
Number of packets successfully sent

Received:
Number of frames received.

Connection The Connection, Send and Receive Status of the sender of the
Properties connection selected in the connection list are displayed.

Additional Buttons

Button Meaning

Reset Counter The counters for the frames sent and received on the connections are reset to 0
on the module and in the list displayed.

Siemens AG Page 12 NCM S7 Ethernet Diagnostics


Training Center
General Error Diagnostics Using the Diagnostic Buffer (1)

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7KE_DIAG.13

Purpose To display event messages recorded in the Ethernet CP in detail. The diagnostic
buffer gives you useful information about all the communication services of the
Ethernet CP.

Principle of Event messages are recorded on the Ethernet CP in a ring buffer


Operation which holds up to 50 entries.

Up to 500 messages can be stored in NCM S7!

All CP functions can generate event messages. When you choose this dialog
box, the messages are read out and displayed. The latest message appears in
the top line with the highest number.

Dialog Box and The following information is displayed in the “Diagnostic Buffer” tab page
Parameters (entries given as examples):

Parameters in the “Diagnostic Buffer” tab page:

Parameter Meaning
No.: Consecutive numbers of event messages.
Max. 500 event messages can be stored in NCM S7 Ethernet.

The next character indicates the level:


! = Error
!! = Important error
No extension = Information

Time Stamp: Timestamp

Function: Communication service that generated the message.

Siemens AG Page 13 NCM S7 Ethernet Diagnostics


Training Center
General Error Diagnostics Using the Diagnostic Buffer (2)

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7KE_DIAG.14

Additional The following additional buttons enable you to control the output in the
Buttons diagnostic buffer:

Button Meaning

New Entries If the “New Entries” button is activated, new event messages have occurred
since the dialog box was opened. When you click the button, the oldest of the
new messages is selected and you can easily see which messages are new.

Delete Entries All diagnostic buffer entries in NCM S7 are deleted. The new entries are then
made in the list on updating.

Note:
This does not affect the entries in the Ethernet CP. You can read the entries
back into NCM S7 by calling the dialog box again.

Save... You can save the event messages read in in a text file of your choice (name.txt)
with all the additional text.

Siemens AG Page 14 NCM S7 Ethernet Diagnostics


Training Center
Fully Decoded Event Message in the Help Window
Diagnostic Buffer ETHERNET CP
File Edit Bookmark
Content Search Back History

SEND /RECEIVE: ISO transport connection


Meaning:
The SEND/RECEIVE job was rejected since the ISO transport connection
is not established.
Possible Action:
Check the configuration of the ISO transport connection in the local and
remote station.
Check the parameters MAC address, local and remote TSAP, establishment
type active/passive.
Additional Information:
Connection ID according to the SEND/RECV block

Level of the entry: Error

SIMATIC NET Industrial Ethernet


Siemens AG 1999. All rights reserved.
Date: 01.09.1999
File No.: 7KE_DIAG.15

Detailed To obtain a complete, decoded version of an event message, proceed


Event as follows:
Messages
1. Select the relevant event message in the list of event messages with
the cursor.

The relevant entry for the selected message is displayed in the


“Decoded Event Message” field.

2. When you double-click a selected event message, a help text


explaining the message in greater detail appears.

Siemens AG Page 15 NCM S7 Ethernet Diagnostics


Training Center

You might also like