Profibus Diagnostic PDF
Profibus Diagnostic PDF
Profibus Diagnostic PDF
2000
For the PROFIBUS diagnosis a diagnostic package is available, which with the following components:
• S7 diagnostic block FB125 for the analysis and supply of the diagnostic information of a PROFIBUS
DP system.
• ProTool diagnostic pictures for the display of the diagnostic information on HMI devices or
visualization system. The diagnostic pictures access the information of the S7 diagnostic block and
bring them to the display.
Node overview
ok
1 2 3 4 5 6 7 fault
PLC-program 8 9 10 11 12 13 14
failed
Change to Detail
FB/DB125 view
HMI
Detail view
acess to
DP-Master: 1 Buttons
FB-Info
Single
Slave-Nr: 5 Diag
The specification and meaning of the parameters of the S7 diagnostic block are to be found in the
separate documentation to the FB125 (DP_Diag41).
• CPU 318-2 DP
• C7-626 DP (from 6ES7 626-2AG01-0AE3)
• C7-633 DP and C7-634 DP
• SINUMERIK 840D with integrated CPU315-2 DP (6ES7 315-2AF01-0AB0):
è FC125 not usble
è FB125 FB125 without detection of faulty slaves by Start/RESET
• SINUMERIK 840DI with integrated CPU315-2 DP (6ES7 315-2AF03-0AB0)
• CPU 41x-2/3/4 DP
• CP 443-5
• IM 467 and IM 467 FO
• WIN AC
• WIN LC
• Not for CP 342-5
CALL FB125, DBxy (xy represents any instance data block number)
The parameter list then appears automatically with the formal operands which should not be
parameratised. The controlling of the building block function is made by the ProTool diagnostic pictures.
This call (including the same instance data block number and the same user actual operand) must be
made in the three execution levels OB1, OB82 and OB86. A nested FB125 call in the three execution
levels is possible (e.g.: OB82 → FC120 → FB125). The order and the contents of the 20 bytes of
temporary local data of the organization blocks OB1, OB82 and OB86 must not be changed but can be
extended at any time.
The following SFCs are used internally in the FB125: SFC13 and SFC51 with SZL 0C91 (in the case of an
internal DP interface to the master CPU) or SZL 4C91 (in the case of an external DP interface to the
CP/IM). It is not permissible to call SFC13 and/or SFC51 with SZL 0C91/4C91 in OB1 in addition to the
FB125 call.
Evaluation of the information at the block output parameters only makes sense in the cyclic program
section (OB1).
The block FB125 will be processed orderly, if the BIE-Bit is set as “1”. And The BIE-Bit will be removed, if
the processing of FB125 was error.
Runtime with pending diagnostics message: depend on the DP master and the slave diagnostics
length
e.g. CPU 315-2 DP as DP master: approx. 11ms
2 ProTool-Diagnostic pictures
PROFIBUS Diagnostic pictures are supplied for the existing SIEMENS HMI devices. The tags of the
pictures are assigned to data of the FB125-Instance data block. Text lists and graphics are provided as
well.
ProTool project engineering was created with ProTool/ProCS V5.2 + Service Pack 1
2.1 Pictures
Name meaning
DetailDiag Detailed -Diagnostic
OverviewDiag Diagnostic overview
Z_SYSTEM_MEN Start-Picture (Standard picture)
Indicated number of the DP Master systems and DP tape of interface is taken over. The DP analysis is
afterwards initialized and again started. The entire DP Master system is again entered, i.e. all projected,
available, failed and disturbed DP Slaves is determined automatically in an initialization routine.
Quit PROFIBUS-Diagnosis.
2.2 Tags
Name Meaning Control access
Address_In Slave address input DB125.DBB3
Address_Out Slave address output DB125.DBB6
Asi0_7 ASI-Slaves DB125.DB18
Asi8_15 DB125.DB19
Asi16_23 DB125.DBB20
Asi24_31 DB125.DBB21
Channel_No Channel number DB125.DBB14
Channel_Typ1 Channel type, part 1 DB125.DBB15
Channel_Typ2 Channel type, part 2 DB125.DBB15
Count_Diag Number of diagnosis per Slave DB125.DBB26
Count_Slaves Number of concerned Slaves DB125.DBB5
Diag_Hex1 Diagnostic data in Hex format DB125.DBB938
Diag_Hex2 DB125.DBB939
Diag_Hex3 DB125.DBB940
Diag_Hex4 DB125.DBB941
Diag_Hex5 DB125.DBB942
Diag_Hex6 DB125.DBB943
Diag_Hex7 DB125.DBB944
Diag_Hex8 DB125.DBB945
Diag_Hex9 DB125.DBB946
Diag_Hex10 DB125.DBB947
Diag_Hex11 DB125.DBB948
Diag_Hex12 DB125.DBB949
Diag_Hex13 DB125.DBB950
Diag_Hex14 DB125.DBB951
Diag_Hex15 DB125.DBB952
Diag_Hex16 DB125.DBB953
DP_Interface DP-Interface type DB125.DBX2.0
DP_Master DP-Master system DB125.DBW0
Error_Code Error code DB125.DBW16
Error_No Error number DB125.DBB10
Error_Type Error type DB125.DBB11
Global_Info Collection display DB125.DBX4.0
Hand_Auto Manual / automatic operation DB125.DBX2.1
Module_No Module number DB125.DBB12
Module_State Module status DB125.DBB13
Next_Error Step up to the next error on the Slave DB125.DBX2.3
Next_Slave Step up to the next concerned Slave DB125.DBX2.2
Reset Reset analysis, take over inputs DB125.DBX2.4
Single_Diag Activate single diagnosis DB125.DBX2.5
Slave1_16 DP-Slaves DB125.DBW1240
Slave17_32 DB125.DBW1242
Slave33_48 DB125.DBW1244
Slave49_64 DB125.DBW1246
Slave65_80 DB125.DBW1248
Slave81_96 DB125.DBW1250
Slave97_112 DB125.DBW1252
Slave113_128 DB125.DBW1254
Slave_Ident1 Manufacturer identifier, part 1 DB125.DBB9
Due to the different function range of the HMI devices, the number of variables will change.
This table describes the variables for the MP270.
Due to the different function range of the HMI devices, the number of variables will change
This table describes the variables for the MP270.
Due to the smaller volume of project data available in the OP7 and OP17 devices, a reduced
number error messages has been integrated into the ProTool-applications for these devices
(Text list “Error_Text”).
In the text list "Name_Station", a designation can be assigned to each Slave address (e.g. local flag). This
designation appears in the detail view apart from the output field "DP address" (variable "Address_Out").
2.4 Graphics
Name Meaning
1 Slave 1
... ...
128 Slave 128
Array Slave empty field
Auto Automatic operation
Empty empty field
Hand Manual operation
Next_Slave Step up to the next concerned Slave
Overview Change to the outline diagnosis
Reset Reset analysis, take over inputs
Single_Diag Activate single diagnosis
ZP_DETAIL Change to the detail diagnosis
ZP_ESC Quit PROFIBUS diagnosis
ZP_NEXT_ERR Step up to the next error on the Slave
Due to the different function range of the HMI devices, the number of variables will change.
This table describes the variables for the MP270.
The S7-Blocks from the STEP7-Projekt can be easily brought into the respective user project with simply
"copy" and "paste". The call interfaces of the diagnostic block FB125 can be copied from the provided
organizational components (OB1, OB82, OB86) and inserted into the user program.
The pictures, tags, text lists and graphics can be easily brought from the STEP7-Project into the
respective user project by simply "copy" and "paste".
The "Steuerung_1" was adapted to the PLC of the user project (including OP and network parameters) :
Picture 6 : Internal function border in the instance data block of the FB125