07 - Checking The Electrical Bus Cable
07 - Checking The Electrical Bus Cable
07 - Checking The Electrical Bus Cable
PROFIBUS DP
SITRAIN
IK-PBSYS / BT200 + Diagnostic-Repeater Page 1 07/2007
Siemens AG 2007 - All reights reserved
Contents Page
BT200 test unit for bus cables to RS485 ........................................................................................... 2
Select special mode for extended functions ...................................................................................... 3
Log kit for BT200 .............................................................................................................................. 4
Exercise 1: Test your bus cable with the BT200 test unit .................................................................. 5
Exercise 1b: Test your bus cable with the simulator and BT200 test unit . 6
Exercise 2: Branch test for entering all slaves in a "live list" .............................................................. 7
Diagnostic repeater .......................................................................................................................... 8
Function of Diagnostic- Repeater ..................................................................................................... 9
Arrangement of the DP master in the topology .................................................................................. 10
Topology determination with STEP7 ................................................................................................. 11
Location of the fault is determined (1) ............................................................................................... 12
Location of the fault is determined (2) ............................................................................................... 13
Evaluation of the measurement results, GENERAL tab ..................................................................... 14
Evaluation of measurement results, DP SLAVE DIAGNOSTICS ...................................................... 15
Evaluation of the measurement results, DP1 tab and DP2 tab .......................................................... 16
Evaluation of the measurement results, DP3 tab and PG tab ............................................................ 17
Reading out the diagnostic buffer ..................................................................................................... 18
Diagnosis using the topology display in STEP 7, bus topology .......................................................... 19
Topology table and Statistics buffer .................................................................................................. 20
Exercise 3: Integrating the diagnostic repeater into the system ......................................................... 21
Exercise 4 : Configuring a diagnostic repeater in STEP7 .................................................................. 22
Exercise 5: Diagnosis of bus cable ................................................................................................... 23
SITRAIN
IK-PBSYS / BT200 + Diagnostic-Repeater Page 2 07/2007
Siemens AG 2007 - All reights reserved
The PROFIBUS cable can be tested with the BT200 test unit during the
installation phase.
The wiring can even be tested while the stations are connected. Installation errors
are detected quickly and easily. The person installing the system does not require
specialist PROFIBUS knowledge.
The RS 485 interfaces of the PROFIBUS DP stations can be tested even before
the system is commissioned.
The slaves which can be reached on the installed bus can be listed without a
master on the PROFIBUS DP.
In this way, the operating capability of individual bus segments can be tested
beforehand which reduces commissioning times.
With the help of the optional log kit the individual tests can be stored in the BT200
and transmitted to a PC. The test results can then be printed out in the form of a
report. In this way, the acceptance log can be drawn up simply and quickly.
Menue for
standard and
special mode
SITRAIN
IK-PBSYS / BT200 + Diagnostic-Repeater Page 3 07/2007
Siemens AG 2007 - All reights reserved
Special mode Press the ESC and OK keys simultaneously to switch from normal mode to
special mode.
Operation The BT 200 is menu-driven using the input keys of the membrane keypad.
Cursor The current position of the cursor on the display is indicated by a flashing arrow
which also indicates the function being executed.
SITRAIN
IK-PBSYS / BT200 + Diagnostic-Repeater Page 4 07/2007
Siemens AG 2007 - All reights reserved
General In recording mode, implemented tests are logged in the BT200 and can then be
transferred via a serial (COM) interface to a PC with logging software.
The required logging kit comprises the software and connecting cable for the PC
and can be ordered using the order number 6ES7 193-8MA00-0AA0.
Cabeling o.k.
(2R) OK
SITRAIN
IK-PBSYS / BT200 + Diagnostic-Repeater Page 5 07/2007
Siemens AG 2007 - All reights reserved
Task description: Test the bus cable which you will be using for the next few exercises.
Procedure: The wiring test for a bus segment is performed between the BT 200 and
test plug.
No stations may be connected to the bus cable.
The test plug must be connected to one end of the bus cable which is to be
tested
The terminating resistor at the end of the test plug must be activated
The terminating resistor on the connection point of the BT200 must be
activated
" Wiring OK
(1R) OK.
B -> Sh
A -> B
A -> Sh
A -> A
B -> B
Signal 0
3-5
Signal 0
8-6
SITRAIN
IK-PBSYS / BT200 + Diagnostic-Repeater Page 6 07/2007
Siemens AG 2007 - All reights reserved
Task description: Test the bus cable with the simulator and the BT200.
Procedure: 1. Connect the simulator between the BT200 and the test plug.
2. Test the different switches on the simulator and check the result with the
BT200.
ON
Off
ON
SITRAIN
IK-PBSYS / BT200 + Diagnostic-Repeater Page 7 07/2007
Siemens AG 2007 - All reights reserved
Branch test In this way, the availability of all slaves connected to PROFIBUS can be tested or
an individual slave can be addressed.
The branch test can also be performed over repeaters or fiber-optic cables.
Procedure Remove all masters from the bus, e.g. PGs, OPs, CPs (see Figure above).
All slaves must be switched on and supplied with power.
Connect BT 200 to the bus as shown in the figure above, for example
Select special mode by simultaneously pressing the ESC and OK keys.
Now use the cursor key " to point to the menu item "Branch test,
with the flashing menu arrow next to this text.
Now select it with the " OK key". The text "Branch test" is displayed.
Then press the "TEST key"
To check which slaves are connected to the branch, use the cursor keys of
the BT200 to enter "000" as the slave address and confirm with the OK key.
"Please wait" is displayed
After the search is complete, the slave numbers found are output on the
display separated by commas.
Test results For the total branch test, each accessible slave is listed in a list of
accessible stations (LIVE LIST).
Diagnostic repeater
S7-CPU STEP7
COM
PROFIBUS
Segment 1
Start
determining
of topology
Diagnostic
Segment 2 Segment 3
SITRAIN
IK-PBSYS / BT200 + Diagnostic-Repeater Page 8 07/2007
Siemens AG 2007 - All reights reserved
Introduction Under normal operating conditions, the bus cables are also subjected to external
forces that can cause damage. In particular, in the case of exceptional stress, e.g.
trailing cables or strong vibrations, frequent inspection of the cables is
recommended to reduce failures to a minimum.
Diagnostic repeater The diagnostic repeater is available for line diagnostics during normal system
operation.
It is integrated as an RS 485 repeater in the PROFIBUS DP network and also
features powerful functions for line diagnostics.
PG interface
Start
Topology determination
CPU STEP 7 > V5.1 SP2
2
3
Segment 1
Slave distance
4 5 12 17 9
Segment 2 Segment 3
SITRAIN
IK-PBSYS / BT200 + Diagnostic-Repeater Page 9 07/2007
Siemens AG 2007 - All reights reserved
Area of application The diagnostics repeater is a repeater that can monitor up to two segments of an
RS 485 PROFIBUS network (copper line) during operation and signal line faults
in a diagnostics message to the DP master.
The fault location and cause can then be displayed in plain text by means of an
HMI device. The line diagnostics during operation by the diagnostics repeater
permits early detection and locating of line faults.
Prerequisites Line diagnostics are possible for nodes that are connected to PROFIBUS
segments DP2 and DP3.
To implement a diagnostic repeater, you will need a PG/PC and STEP 7
V5.1 Service Pack 2 or higher or COM PROFIBUS V5.1 Service Pack 2.
To activate topology determination from the user program, an S7 CPU/CP
will be required that supports the integrated system function SFC 103
"DP_TOPOL" (e.g. integrated DP interfaces of S7-400 CPUs FW 3.1 and
higher).
DP1: non
diagonostics-capable segment DP2: diagonostics-capable segment
Arrangement with
two segments ( DP2 and DP3)
SITRAIN
IK-PBSYS / BT200 + Diagnostic-Repeater Page 10 07/2007
Siemens AG 2007 - All reights reserved
SITRAIN
IK-PBSYS / BT200 + Diagnostic-Repeater Page 11 07/2007
Siemens AG 2007 - All reights reserved
Segment OK
Segment disturbed
Segment OFF
No information for the Segment
SITRAIN
IK-PBSYS / BT200 + Diagnostic-Repeater Page 12 07/2007
Siemens AG 2007 - All reights reserved
SITRAIN
IK-PBSYS / BT200 + Diagnostic-Repeater Page 13 07/2007
Siemens AG 2007 - All reights reserved
The "DP2" tab could show the disturbance in the following view: The Diagnostic
Repeater is assigned to PROFIBUS address 4, the error is located between the
partners assigned to the PROFIBUS addresses 16 and 21. In addition, the view
shows the distance to the neighboring DP Slaves.
In the figure below you can find an example of a simplified detailed presentation
of the arrangement illustrated above.
SITRAIN
IK-PBSYS / BT200 + Diagnostic-Repeater Page 14 07/2007
Siemens AG 2007 - All reights reserved
General This tab sheet contains general data concerning the module:
Description, system identification, rack, slot and module width
Address: The address displayed is the start address of the useful data area: For modules
without a useful data area, it corresponds to the diagnostic address.
System behavior: When the module is a CPU with multi-computing capability, this information is
shown here.
Version The order number and version of the selected module is indicated here. This
display comprises several components that vary in accordance with the module
type, for example, separate entries for the hardware and firmware of the module.
Diagnosis in
Hexadezimal Format
SITRAIN
IK-PBSYS / BT200 + Diagnostic-Repeater Page 15 07/2007
Siemens AG 2007 - All reights reserved
Channel-specific diagnosis
Display of channel-specific diagnostic texts for configured modules of the DP
slave: For each diagnostic message, the activating channel is specified.
A channel is uniquely identified by the slot location of the module and the channel
number. Device-specific diagnostic texts are obtained using the GSD file. If the
diagnostic message is not stored in the GSD file, the diagnosis cannot be
displayed as plain text.
Segment DP1 is OK
Graphical display of
fault location:
Display of possible
cause of fault:
SITRAIN
IK-PBSYS / BT200 + Diagnostic-Repeater Page 16 07/2007
Siemens AG 2007 - All reights reserved
DP1 tab A tab sheet is assigned for each connection of a diagnostic repeater to a segment
a fault in a segment is indicated by a fault symbol.
If a fault is detected or if the interface for this segment is switched off (segment is
deactivated), an appropriate message is displayed in the tab.
If a fault is detected, the following fields will be displayed:
Error location In the "Error location" field, the location of the fault is displayed graphically
provided that the diagnostic repeater can determine the location.
Error The fault is explained in plain text in the "Error" field.
Remedy In the "Remedy" field you will find measures for rectifying the fault.
If the "Details" button is activated, you can use it to display further details of the
fault.
SITRAIN
IK-PBSYS / BT200 + Diagnostic-Repeater Page 17 07/2007
Siemens AG 2007 - All reights reserved
SITRAIN
IK-PBSYS / BT200 + Diagnostic-Repeater Page 18 07/2007
Siemens AG 2007 - All reights reserved
Diagnostic buffer The diagnostic repeater contains one diagnostic buffer for each of segments DP1,
DP2, DP3 and the PG interface in which the last 10 events are saved. The buffer
contains the time, date and a brief description of the events.
Incoming error events are indicated with "I" and outgoing error events are
indicated with "O".
The diagnostic buffers can be printed out. They can be exported as CSV files and
then read into Microsoft Excel and evaluated.
The diagnostic buffers can also be read out from the user program, whereby the
function block SFC59RD_REC must be used (see online help).
Procedure 1. Mark the DP master system whose data you want to read.
2. Start the function using the menu item Options > Diagnostic buffer.
Diagnostic - Repeater
SITRAIN
IK-PBSYS / BT200 + Diagnostic-Repeater Page 19 07/2007
Siemens AG 2007 - All reights reserved
Prerequisite To ensure that the distances specified in diagnostic messages are correct, the
topology must be determined again following every change in structure of the bus!
Requirements The diagnostics repeaters must support the function Display PROFIBUS network
topology. The PROFIBUS network must be set up according to the rules in the
diagnostics repeater manual so that the distance data can be determined
correctly. If diagnostics repeaters are cascaded, for example, they must only be
connected to a higher-level diagnostics repeater via the DP1 interface.
For the function Prepare line diagnostics, the programming device (PG) and the
diagnostics repeaters must be connected to the same PROFIBUS. Prepare line
diagnostics is also possible if no project is open.
For the function Display PROFIBUS network topology, the PROFIBUS network
with the diagnostics repeaters can also be connected to the programming device
via a Data record router (e.g. CP 443-5 Ext V3.2).
The programming device must be assigned in the STEP 7 project (menu
command Target system Assign PG/PC, in NETPRO use for the object
PG/PC). In order to be able to display the network topology via a routed
diagnostics repeater, the corresponding project must be opened and the
corresponding PROFIBUS subnetwork must be selected.
Procedure 1. In STEP 7, mark the DP master system whose data you want to read.
2. Start the function using the menu command View > Display >
All nodes/Only DR with nodes/Only DRs.
SITRAIN
IK-PBSYS / BT200 + Diagnostic-Repeater Page 20 07/2007
Siemens AG 2007 - All reights reserved
Procedure 1. Mark the DP master system whose data you want to read.
2. Start the function using the menu item View > Topology table.
Statistics buffer The diagnostic repeater contains one statistics buffer each for segments DP2 and
DP3 in which information about the reflection error rate and message frame error
rate can be saved.
Reflection errors occur, for example when the signal is reflected through a faulty
or defective line.
Message frame errors are detected when message frames with, for example,
parity errors occur. Parity errors can be caused, for example, by a defective
node. The values are displayed for a period of 60 seconds starting from the time
when the dialog box was opened. Internally, further values are saved over the
displayed period. The statistics buffers can be printed out. They can be exported
as CSV files and then read into Microsoft Excel and evaluated. The statistics
buffers can also be read out from the user program.
Procedure 1. In the topology display, mark the diagnostic repeater whose data you want to
read out.
2. Start the function using the menu item Options > Statistics.
SITRAIN
IK-PBSYS / BT200 + Diagnostic-Repeater Page 21 07/2007
Siemens AG 2007 - All reights reserved
Task: The diagnostic repeater must be integrated into your existing system
line faults must be provoked and diagnosed using the diagnostic
repeater.
Properties
SITRAIN
IK-PBSYS / BT200 + Diagnostic-Repeater Page 22 07/2007
Siemens AG 2007 - All reights reserved
Task The diagnostics repeater is to be configured for the master system with the
PROFIBUS address 9 as further DP slave.
Implementation
1. Open the hardware configuration on your training station
2. Drag the object Diagnostics Repeater from the hardware catalog under
PROFIBUS DP - Network Components to the master system
3. Assign the bus address 9 to this DP slave
4. Generate new system data blocks
5. Download the changed configuration onto the master CPU The master system
should ramp up without errors just like before
6. Connect the PG to the PG socket on the front of the diagnostics repeater using
the connecting cable of the diagnostics repeater
7. In SIMATIC Manager, select the subnetwork PROFIBUS(1) and select the
menu command Target system - PROFIBUS Prepare line diagnostics...
8. In the next window, start topology determination by clicking on the button
Restart
SITRAIN
IK-PBSYS / BT200 + Diagnostic-Repeater Page 23 07/2007
Siemens AG 2007 - All reights reserved
Implementation
1. Generate a bus fault, e.g. by removing a supply line in a bus connector.
2. Is the information about cable lengths consistent with the cable lengths in the
actual network?