6/23/2018 11:54 PM | |
Joined: 11/29/2011 Last visit: 2/20/2023 Posts: 1347 Rating:
|
Hi, There is standard structures of variables in OB82. The SIMATIC System Software for S7-300/400 System and Standard Functions - Volume 1/2 manual under chapter 1.18 Diagnostic Interrupt Organization Block (OB82) details the variables. So these local variables available within the OB itself. If you wish to store this data you must save it to a DB while the block call is still opened. I am not sure what you are trying to do but easier to program this saving procedure into the OB code body. You can off course make an SCL source for that if you wish. As above suggested. If you need to build something like fault management for CFC compiler that is a bit different approach so let us known! We can help you with that too. |
- What you read here, please check with manuals and your requirements. |
|
This contribution was helpful to
1 thankful Users |
6/24/2018 10:16 AM | |
Joined: 11/29/2011 Last visit: 2/20/2023 Posts: 1347 Rating:
|
Hi, The way I understand it. The Temp data in Fault OBs are coming from the CPU firmware. The user can be configured differently from the data structure, but it means the variables in user program will not reflect information a firmware provide. Anyways that is my understanding of it. Anyways the structure of the OBs are coming from the System Software. You use the Data structure of the SIMATIC System Software for S7-300/400 System and Standard Functions - Volume 1/2 and that is it. Anyways when you insert the OB82 in Simatic Manager, the default variables gets declared to you. If you wish you can Generate SCL source from this OB if you wish to work with SCL editor instead of STL. Keep it simple! I hope I could help! |
Last edited by: MicroMan at: 6/24/2018 10:18:50 AM- What you read here, please check with manuals and your requirements. |
|
This contribution was helpful to
1 thankful Users |
6/24/2018 10:17 PM | |
Joined: 11/29/2011 Last visit: 2/20/2023 Posts: 1347 Rating:
|
Hi, You did not get what I posted. Keep it simple. You can program this function directly into the OB82. Insert your new OB82 as it comes from the Library. It have all the Temp variables prepared. Open the OB82 in the STL editor and you simply copy the content into a DB. Load, Transfer. Done. About variables. Follow the description. Self explanatory. Anyways you need to analyze the entire data content because each bit have a specific meaning. Building custom diagnostic is hard work and lot of testing required. What do you exactly try to do? |
Last edited by: MicroMan at: 6/24/2018 10:22:24 PM- What you read here, please check with manuals and your requirements. |
|
6/24/2018 10:53 PM | |
Posts: 2826 Rating:
|
Hello.
Breath easy, you have no reason for worry. Looking at GFathner's previous post, the code of OB82 is in the square block. That is the only concern for this topic. OB82 is mirroring the diagnostic data into a memory space so that a network connected device/application can get to the data. Thanks for voicing your concern. |
Last edited by: #dP at: 6/24/2018 10:54:31 PM |
|
Follow us on