8/29/2021 8:27 PM | |
Joined: 12/17/2019 Last visit: 8/18/2025 Posts: 34 Rating:
|
hi at first i know only work with physical hardware , my equation are when have interrupted on analog channel should call OB40 and CPU SF LED lit WITHOUT CHANGE TO STOP MODE But in my situation even active ( diagnostic interrupted on module properties and diagnostic group ) and call OB40 and create block inside OB40 to know which channel have interrupted still CPU GO TO STOP MODE . REMEMER MY CPU ARE 315 2DP so can any one sent example for OB40 thank all ------------------------------------------------------------------------------------------ |
Last edited by: muntadher at: 08/29/2021 20:28:41Last edited by: The Helping Hand at: 08/31/2021 12:11:59New subject after splitting |
|
8/30/2021 8:31 AM | |
Joined: 3/16/2015 Last visit: 10/10/2021 Posts: 1250 Rating:
|
See this. |
8/30/2021 10:32 AM | |
Joined: 3/5/2014 Last visit: 8/5/2022 Posts: 5521 Rating:
|
hi, have a look into the diagnostic buffer and evaluate why the CPU is goinig into stop. If you don´t know how to read the diagnostic buffer, extract it as txt-file and share this file with us. OB40 can not have any general application sample. A HW-interrupt is depending on the process you are going to controll. for example: HW-interrupt comes because the temperature has reached a specific level and you need to react. Who can know how to react to this, exept you. Do you need to switch off or cool or start any other process? you, as programmer have to know this. Just programm a reaction to a specific event. You can search for applicaiton samples with OB40. But without looking into anyone of this applicaiton samples I can asure you, each content of the OB40 is different. hope this helps, regards, |
Last edited by: mopS04 at: 08/30/2021 10:36:39FCK WAR! |
|
This contribution was helpful to
1 thankful Users |
8/31/2021 9:05 AM | |
Joined: 12/17/2019 Last visit: 8/18/2025 Posts: 34 Rating:
|
hi regarding diagnostic buffer i check it the issue was analog module , as say before when choose on properties of module >> general >> select diagnostic interrupted >> channel 0-1 >> group diagnostic >> 4 wire transducer >> 4-20mA >> high limit =21 >> low limit =3 >> deactivate no need channels >> in physicals connection connect all deactivate channel together and terminated with -M . so as i know when any issue have been on my two analog signal most be call ob40 can you create simple example for OB40 and post it ohh i forget there is no issue with temperature because the panel temperature are 16 degree also CPU TYPE 315 2DP and analog module 7KF02 can you help me with this issue thank you best regards. |
Last edited by: muntadher at: 08/31/2021 09:06:09Last edited by: muntadher at: 08/31/2021 09:15:23 |
|
8/31/2021 10:40 PM | |
Joined: 3/16/2015 Last visit: 10/10/2021 Posts: 1250 Rating:
|
I am not sure I understand what you want to achieve. Do you want the CPU to *not* stop when there is a diagnostic error? Or are you wanting to *read* the error? |
9/2/2021 11:52 AM | |
Joined: 3/5/2014 Last visit: 8/5/2022 Posts: 5521 Rating:
|
hi, for diagnostic interrupt you can use this application sample: With diagnostics-compatible modules how do you evaluate a change of the diagnostics status in the user program of the S7-300?You can do the same in OB40. The difference is that OB40 is not called because of an error, it is called because of another event. If you just want to have shown something on your HMI, you only need to evaluate the address and channel from the OB40 header and set a bit if it is the rigth channel. this bit triggers a message on the HMI. hope this helps. P.S: If this information doesn´t helps you, you should consider to visit a professional training for automation. no offense, but if programming isn´t done in the rigth way, yours and others health may be in danger! |
FCK WAR! |
|
9/3/2021 3:25 AM | |
Joined: 3/16/2015 Last visit: 10/10/2021 Posts: 1250 Rating:
|
OB 82
OB 40 has nothing to do with Diagnostics. It can be configured only for violation of high or low limits and will have no effect at all on whether the CPU stops or not. I just saw your first thread and you are doing fine. All you were missing was OB 82. Now that you added OB 82 all you have to do is compile the hardware and download it; it should work fine then. Here's a manual that may be helpful. |
Last edited by: Kal.A at: 09/03/2021 03:36:13Last edited by: The Helping Hand at: 09/03/2021 08:36:23Optimized link. |
|
Follow us on