(0)| 12/30/2008 12:30 PM | |
|
Posts: 1502 Rating:
|
Read Position 1 --> Pos_1 Read Position 2 --> Pos_2 SCL-Code: IF ( ABS( Pos_1 - Pos_2 ) > 200 ) THEN Pos_Error := TRUE; END_IF Thats all. |
| 12/30/2008 5:27 PM | |
|
Posts: 1742 Rating:
|
Hello, In this manual http://support.automation.siemens.com/WW/view/en/1105178 In chapter 11.4, they explain how you can get diagnostic data from OB82 (channel diagnosic). You should use theFC 5 DIAG_RD. The function DIAG_RD can only be called in the interrupt OB82. The FC DIAG_RD executes the following actions: Reads 16 bytes of diagnostic data from the FM 350-2 Enters these data in the counter DB in the data area DIAGNOSTIC_IN_INFO. These data contain the diagnostic status of the whole module (covering all counters). |
Follow us on