Technical Forum

Decentral Peripherie

SFC51 for diagnostics of slave connected to my CPU

Thread Starter: Vashist   Started: 8/31/2012 9:25 AM   Replies: 2

« Previous thread Next thread »
Page 1 of 1 (3 items)
  8/31/2012, 9:25 AM
Joined 5/16/2012
Last visit: 10/19/2012
Posts: 6
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hello

I tried to use the SFC51 for the diagnostics of slave connected to my CPU (S7-314-2DP). The slave addresses are 9, 10 and 11. Slave number 9 is ET200M rack and the other two are Siemens profibus compatible - DIGUREG.

I am calling SFC51 in one of the FC (FC105) for the slave diagnostics. The FC105 is again called in the OB1

I have written the following program in FC105    

//--------------------------------------------------------------------
 A     "TRUE"
      =     L      4.0
      BLD   103
      CALL  "RDSYSST"
       REQ       :=L4.0
       SZL_ID    :=W#16#292
       INDEX     :=W#16#1
       RET_VAL   :=MW80
       BUSY      :=M82.0
       SZL_HEADER:=#SZL_HEADER
       DR        :=P#DB1.DBX10.0 BYTE 16
      NOP   0
//--------------------------------------------------------------------------

AN    DB1.DBX   11.0
      =     #ET200M_Flt
//----------------------------------------------------------------------------
     AN    DB1.DBX   11.1
      =     #DUR_B_Flt
//---------------------------------------------------------------------------
      AN    DB1.DBX   11.2
      =     #DUR_B_Flt

Now my problem is that although the slave ET200M is healthy but the status in the progrm says that the slave is faulty.

Is the above because i have written something in my program or is it something else ?

I tried to check the above even on the DB1.DBX10.0, DB1.DBX10.1 and DB1.DBX10.2 bits as well but
no change.

Thanks in advance
Vashist 







=== Edited by O_Moderator @ 8/31/2012 9:37 AM [GMT ] ===
new subject after splitting from Profibus Diagnostic

Top
  9/2/2012, 2:35 PM
Joined 12/22/2006
Last visit: 5/18/2013
Posts: 1295
Rating:
Rated: Excellent [4.01 out of 5 / rated 151 time(s)]. (151) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hello,
Are you sure that the information is valid?
What is the content of MW80 when you start a request?
I wonder if the list 0292 is the correct one for your CPU (in the manual they refer to S7-400).
I would try 0294 for that type of CPU.

Best regards
jklm

Suggestion was helpful? Thanks to rate it.
Top
  10/3/2012, 3:00 PM
Joined 10/25/2011
Last visit: 10/14/2012
Posts: 51
Rating:
Rated: Excellent [4.92 out of 5 / rated 24 time(s)]. (24) 
Rated: Excellent [5 out of 5 / rated 1 time(s)]. (1) 

Try to create a fault manually in your module - Like Bus fault and check whether your status

changing ,from faulty to normal.

 

Means , you need to use the inverted logic for your device status...

Top
Page 1 of 1 (3 items)
Actions