• 0 رای - 0 میانگین
  • 1
  • 2
  • 3
  • 4
  • 5
With the S7-1200, how do you read out the diagnostics data of a PROFIBUS DP slave wit
#1
Description
Each DP slave has slave diagnostic data that is structured in compliance with EN 50 170 Volume 2, PROFIBUS.
You use the "DPNRM_DG" instruction (read diagnostic data of a DP slave) to read the current diagnostics data of a DP slave in the form defined by EN 50 170 Volume 2, PROFIBUS.
The following table shows the structure of the slave diagnostics data.


Byte Description
0 Station status 1
1 Station status 2
2 Station status 3
3 Master station number
4 Manufacturer ID (high byte)
5 Manufacturer ID (low byte)
6 ... More slave-specific diagnostics
Table 01
Description of sample program
In the sample program below the diagnostics data of an ET 200S is read out and evaluated with the S7-1200.
The user program consists of the components below.


Block Symbolic name Description
OB1 Main Cyclic program calls the function block FB2 "DIAG".
OB100 Startup Startup OB
FB2 DIAG The function block FB2 "DIAG" calls the "ModuleStates" instruction to read the status information of the DP slave, ET 200S, for example.
Depending on the status information of the ET 200S, the "DPNRM_DG" instruction is called to read the diagnostics data of the ET 200S in the format specified in EN 50 170 Volume 2, PROFIBUS.
DB2 iDB_DIAG Instance data block of the function block DB2 "DIAG"
DB82 Diagnostics Data The diagnostics data of the ET 200S (slave diagnostics data) is stored in data block DB82.
The document below includes a description of the sample program.
[عکس: AcrobatMiddle.jpg]DP_Slave_Diagnose_S7-1200_en.pdf( 1109 KB )
Download
The download includes the "Diagnostic_DP.zip" project.
Copy the "Diagnostic_DP.zip" file into a separate directory and then start the file with a double-click. After unpacking the project data you can then use STEP 7 V11 SP2 Update 2 (or higher) to open and process the project.
[عکس: disk_35.gif] Diagnostic_DP.zip( 2142 KB )
Further Information
Detailed information about the diagnostics data of the ET 200S, SIMATIC S7-1200 and configuring and programming in STEP 7 V11 SP2 is available in the manuals listed below.


Manual Entry ID
IM151-1 STANDARD (ET 200S) 25548014
SIMATIC S7-1200 36932465
CM 1243 (DP Master Class 1) 63653398
STEP 7 V11 SP2 (TIA Portal) 57185407
Creation environment
The screens and downloads in this FAQ response were created with STEP 7 V11 SP2 Update 2.








Entry ID:66439168 Date:2012-12-20
پاسخ


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


کاربران در حال بازدید این موضوع:
1 مهمان


کلیه حقوق این وب سایت محفوظ و متعلق به قشم ولتاژ می باشد. طراحی و اجرا توسط