8/10/2021 2:36 PM | |
Joined: 12/17/2019 Last visit: 4/6/2024 Posts: 33 Rating: (1) |
sorry to all expert users i'm little confuse siemens did not have support manual with example how to use OB86 , every one take with what they see but no real explain and real examples for OB86 especially on LADDER , so pls explain well , my equation are :- 1- after add OB86 and event was execution so result was ( OB86_EV_CLASS= B#16#39 ) and ( OB86_FLT_ID = B#16#C1 )
what the next step so you can create compare or set bit or showing it in HMI as you need pls if you have solution be in ladder regards.
------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 08/11/2021 06:53:04New subject after splitting |
|
8/11/2021 3:05 PM | |
Joined: 9/27/2006 Last visit: 4/18/2024 Posts: 12256 Rating: (2664)
|
Hello muntadher; I suggest you follow this video prepared by our friend Hamd Hosseini (forum member name: HDHosseini) showing an example of programming OB 86 through its local data. The example uses STL in Step 7 v5.x, but the logic can easily be appied to LAD, if you prefer, it consists of evaluation of the local data variables and actions (bit settigs) to be taken under specific conditions. https://www.youtube.com/watch?v=TuKRx1nEzAE Hamid has also prepared a similar video for TIA Portal: https://www.youtube.com/watch?v=4tFX1V5AzrA Hope this helps, |
8/14/2021 10:51 PM | |
Joined: 12/17/2019 Last visit: 4/6/2024 Posts: 33 Rating: (1) |
OB86 how used with ladder with S7-300 at first lets explain incoming event and outgoing event incoming event mean the failure are executed and registered in plc outgoing event mean the failure fixed so that means failure issue was leave plc after read help manual and expert assistance that explain before : - OB86_EV_CLASS >>> B#16#39: incoming event ( such as DP failure or station failure ) OB86_EV_CLASS >>> B#16#38 outgoing event ( failure was leave of any failure even DP or station ) remember the B#16#39 hex convert to decimal = 57 remember the B#16#38 hex convert to decimal = 56 so you can deliciated these numbers in compare block to active something like bit or alarm what ever you needed. OB86_FLT_ID >>>> error identification ( with many types ) B#16#C4 hex convert to decimal =196 referring to table help focus on OB86_Z23 with DWORD example can we understand how OB86_Z23 work if your OB86_EV_CLASS = B#16#39 and OB86_FLT_ID = B#16#C4 at first move OB86_Z23 to MD4 work with MD4 (double word ) separate and split in Byte ( MB1 , MB2 , MB3 , MB4 ) in help table on TIA PORTAL ( Bit 0 to 7: No. of the DP device) SO used MB4 with compare function set bit or do what you need as example MB4 = F ( 15 in decimal ) this mean DP device number 15 have failure see attached file hope to clarify well and make it easy to all remember there is many ways and many type of errors check table help for OB86 on tia portal AttachmentOB86 EXAMPLE.zip (533 Downloads) |
Last edited by: muntadher at: 08/16/2021 22:01:40 |
|
This contribution was helpful to1 thankful Users |
Follow us on