Default Header
(header konnte nicht geladen werden)
9/4/2011 11:19 AM | |
Joined: 1/28/2009 Last visit: 8/31/2025 Posts: 6874 Rating:
|
Dear Anil Belkery
Check chapter one of the following manual for more information on "Organization Blocks".There are some OBs , if they are not loaded and an error occures,STOP the CPU. http://support.automation.siemens.com/WW/view/en/44240604
Also note,OB10-OB17 are time of day interrupt OBs and OB30-OB38 are cyclic interrupt OBs and they may not cause the CPU to STOP if you do not load them to CPU. To count the number of times , an OB executed check the following codes as an example to be written in OB86. [code] //OB86 AN M10.0 = M10.0[/code] [code]//OB1 A( A M10.0 FP M11.0 O( A M10.0 FN M11.1 ) ) CU C0[/code] In each execution of OB86,status of M10.0 may change from false to true or vice versa.Count both edge changes with 2 edge detection parallel like an OR.The counter is called in OB1 due to global address (memory M10.0) used to create pulses.Check the attachment for sample codes. It is not recommended to be used for OB35 Also you can try this as a simple solution: [code]//OB86 L MW 100 L 1 +I T MW100[/code] Best regards AttachmentHd.zip (155 Downloads) |
Last edited by: hdhosseini at: 9/5/2011 10:33 AMLast edited by: hdhosseini at: 9/4/2011 11:24 AM |
|
Follow us on