4/28/2009 5:38 PM | |
Joined: 9/23/2005 Last visit: 5/24/2024 Posts: 4329 Rating: (1428) |
Hi, sometime I wrote a article that would be published as FAQ http://support.automation.siemens.com/WW/view/en/26116927 Take a look at the last examples. |
Denilson Pegaia |
|
This contribution was helpful to5 thankful Users |
4/30/2009 7:29 AM | |
Joined: 9/6/2008 Last visit: 5/7/2022 Posts: 1121 Rating: (86) |
Thank you to all.. I shall check the program given in example 5 and 6 and get back to you all .. Thanks once again |
Jazz |
|
6/3/2009 12:55 PM | |
Joined: 9/6/2008 Last visit: 5/7/2022 Posts: 1121 Rating: (86) |
Dear all i have also done a block for run hour meter, it seems to be ok and i have not used any counter or timer or fc , sfc please go through the block send ur comments, i have tested it for 8 hours And i have also gone through the example 6 and 5 "It worked " AttachmentMtr_hr.zip (842 Downloads) |
Last edited by: Tagolover at: 6/3/2009 12:56 PMJazz |
|
6/3/2009 5:03 PM | |
Joined: 1/29/2006 Last visit: 5/7/2024 Posts: 446 Rating: (64) |
Hey, tagolover. I think, something is missing in your code..... In your NW4: how did you decide, that you must divide your #TEMP1 exactly with 100, in orther to calculate seconds? Is your cycle exactly 10ms long? How did you achieve that? There is no OB 35 call programmed in your project....... I am proposing a slightly different sollution, with use of Clock Memory.... See attacment, I believe, that all can be seen from comments in code. have fun! uel123 AttachmentSimple RT meter.pdf (1131 Downloads) |
Last edited by: uel123 at: 6/3/2009 5:24 PM |
|
This contribution was helpful to1 thankful Users |
6/4/2009 12:32 PM | |
Joined: 5/24/2007 Last visit: 4/24/2024 Posts: 284 Rating: (27) |
Dear Gentlemen Since we have too many devices for which runtime monitoring to be done, we created out own Runtime Monitors based on the idea given in the forum link http://support.automation.siemens.com/WW/view/en/8736315 It is very simple and works very fine. Krish |
This contribution was helpful to1 thankful Users |
6/4/2009 4:28 PM | |
Joined: 1/29/2006 Last visit: 5/7/2024 Posts: 446 Rating: (64) |
Hey, Krish! Thank you for your tip! I really did not know for this SFC64. It is a nice think. BUT! I have some "second thoughts" about using of this function. F.E: This "tick counter" runs automatically from 0 to 0x07FFFFFFF and then automatically rolls back to 0 and counts again..... . This value will be reached appr. in 24 and some more days. Imagine, what happens, if you read this value in to succesive calls of SFC 64 just around this moment: - in first call (let say few miliseconds, before its value will be 0x07FFFFFFF), you will get a value of f.e. 0x7FFFFFFA; - at next call (let say, that your OB1 cycle time is 20 ms), you will read a value of 0x0b. Then you calculate the passed time, (current value - previous value), and a big surprise, you will receive a big negative value. (Time format is equal as Dint format....). Ok, I must say, that I didnot try this by myself and this is only my speculation....... Anyhow, I will try this, to see results..... have fun! uel123 |
1/4/2016 9:42 AM | |
Joined: 9/1/2005 Last visit: 5/14/2024 Posts: 4101 Rating: (194) |
New question published by Hanzalh is split to a separate thread with the subject hour meter to calculate the hour meter of different weights . Best regards |
My Forum is the place to personalize your profile, |
|
1/8/2016 3:25 PM | |
Joined: 6/5/2014 Last visit: 4/25/2021 Posts: 109 Rating: (1) |
Many thanks |
4/9/2016 5:41 PM | |
Joined: 10/8/2015 Last visit: 3/1/2023 Posts: 59 Rating: (4) |
thanks ayman; urgent problem i want to use this example in my project which related to PM(maintenence). in my project there are a bout 30 motors .when i start each motor and get feed back this time must be calculated and when reach to my set point it must give alarm(it means time of meantenence).on the other hand operator should be check time or remaine day in wincc .can you help me how can i do it for 30 motors with only one fb1 and one datablock for all motors. when i executed program example (pegaia) i face on big problem in fb2 .so when i call fb2 ( fb2 call in fb3) i created two input seprate i0.0 and i 0.4 and two seperate output (slide1).but fb2 only run when two input areactive why? and time calulate together.this block must work when enable is (motor run) active seperatly and operator check time of each motor seperatly. best regards Attachmentslide1.pdf (351 Downloads) |
This contribution was helpful to1 thankful Users |
4/30/2016 2:02 PM | |
Joined: 10/8/2015 Last visit: 3/1/2023 Posts: 59 Rating: (4) |
Dear Sir, DO your example has Limitation time (max 24 day).? can i use it for more than 24 days?. best regards |
7/1/2016 8:54 PM | |
Joined: 6/27/2013 Last visit: 5/23/2024 Posts: 28 Rating: (0) |
hello all can I build hour meter via wincc v7.3 time? my idea in wincc side |
Follow us on