7/26/2012 11:39 AM | |
Joined: 10/7/2005 Last visit: 6/28/2024 Posts: 3008 Rating: (1052)
|
Hello mrkintaro if you use SFC51 with SZL_ID = W#16#B4, theINDEX Paramater will need to be the configured Diagnostics address of the IM151 station (NOT the RACK& SLOT number of an individual module, see also the help on SFC51 with SZL_ID = W#16#B4 for more). You'll then find the structure of the Diagnostic record in the IM151 manual (e.g. chapter 4.4 of the SIMATIC ET 200S distributed I/O IM151-1 STANDARD interface module (6ES7151-1AA05-0AB0manual). I hope this helps |
Cheers |
|
This contribution was helpful to1 thankful Users |
7/26/2012 3:02 PM | |
Joined: 10/7/2005 Last visit: 6/28/2024 Posts: 3008 Rating: (1052)
|
Hello mrkintaro ok, so you have an IM151 CPU and want to read the Diagnostic dataof a module in that CPU rack, correct? If so, you should be able touse SLZ-ID W#16#00B2 in combination with INDEX = W#16#xxyy (xx = RACK and YY = SLOT) toto obtain diagnostic data record 1 of thatmodule. |
Cheers |
|
7/27/2012 1:15 AM | |
Joined: 10/7/2005 Last visit: 6/28/2024 Posts: 3008 Rating: (1052)
|
Well, it's for sure not the easiest way (and I never had the need to do so). Should you wish to proceed this way, you will find the structure of Data Record 0 and 1 explained in for example the ET 200S IM 151-7 CPU Interface Module manual (see chapter 7.7) and additional module channel specific information can be found in the individual module manuals (e.g. chapter 3.2 of the Power module PM-E DC24V (6ES7138-4CA01-0AA0) manual). Interestingly enough, the Data Record 0 and 1structure is no longer listed infor example the latest IM151-8 manual, which does not help with your task. While SFC59 and/or SFB52 can also be used toread these Diagnostic data records, you will still be left with the task of finding the infomation about their contentsstructure. As such the easy way isto use Report System Error (RSE) which takes care of this for you with a few simple mouse clicks. Ideally you have Siemens HMI/SCADA system with it and below are a couple of links with more on this: How can you have system error messages from a SIMATIC S7-300 / 400 displayed in WinCC flexible? How can you report S7 system errors in WinCC? Should you have a third party SCADA or need to further evaluate the Diagnostic data in the user program, RSE allows you toembedyour own "user Block" into it, have a look at the inbuilt Step7 help onRSE for more on this. I hope this helps |
Last edited by: fritz at: 7/27/2012 1:21 AMtypos Cheers |
|
Follow us on