4/17/2010 2:48 PM | |
Joined: 10/7/2005 Last visit: 10/11/2024 Posts: 3024 Rating: (1054)
|
Hello dendhondt there's a couple of ways I can think of: 1.) This will only help you for your ET200 I/O station and is the oldest trick in the book to detect faulty I/O stations: Use a spare DI and wire 24 V to it (usethe same 24V that also powers the Profibus IM of the ET200). If the input is 0you know the station is dead (ok you could hypothetically also havea faulted input but what are the odds?). Note that you need to make sure that response monitoring is active (otherwise inputs will stay at their last value) 2.) Read out System data word 103 in OB23 and 24 which contains the absolute module address if a QVZ occured (OB23 =QVZ timeoutif a module fails to acknowledge within 160 μs of being accessed. OB24 = QVZ timeout during updating of the process I/O or the interprocessor communication flag).
I can't say, can you please let us know what FB158/159 do (these are add-on blocks that could be Siemens standard blocks, but I can only speculate which ones as numbers can be changed). I hope this helps and perhaps other forum users have more ideas |
Cheers |
|
4/17/2010 9:13 PM | |
Joined: 8/5/2009 Last visit: 7/4/2022 Posts: 156 Rating: (7) |
This blocks can be find in the directory of Protool and WinCC , They are used to make the communication between an S5 CPU and a HMI(TP177 and others) device with profibus( IM308C or S5 95U Sinec L DP master) The OB23 / OB24 When is this OB Called? One time at start of the fault and one time at the end of the fault or is it called as long as the fault occurs. |
Last edited by: dendhondt at: 4/17/2010 9:26 PM |
|
4/18/2010 12:32 PM | |
Joined: 10/7/2005 Last visit: 10/11/2024 Posts: 3024 Rating: (1054)
|
Hello dendhondt
OB23 will be called on everyperipheral access in your user program toa "faulty" I/O address(e.g. L PY, L PW, T PY, T PW), which menas there could be numerous OB23 calls per scan as long a the "faulty" I/O addresses exist and your program tries to access them. OB24 willbe called once per scan for the update of the Process image of the Inputs an once per scan for the update of the Process image of the Outputs (and assuming there are problems with this). RS103 will in either case contain the first found "faulty" address. Please note that the above is from memory and I suggest you test it for yourself (it's been too long since I had to "worry" about their behaviour and themanual is notvery specific about their call behaviour either).
To tell you the truth, I don't know for sure asI never had theneed to do so. I'd say that you should be able to use FB192 for the diagnostic and FB158/159 for the HMI I/O handling, but as said above,I can't give you a definitive answer on this. I'd suggest you "simply" test it, if you have a test system handy or can use your packaging line S5 during non production periods. Others may be also able to advise you further on this and alternatively you could contact Siemens Service & support for advise on this. I hope this helps |
Cheers |
|
Follow us on