4/3/2020 3:09 PM | |
Joined: 12/3/2018 Last visit: 1/22/2024 Posts: 76 Rating: (0) |
Maybe you understood me, but I didn`t you. I didn`t know what you meant with 32767 limit, now you explained that you mean a V1 value of B003 (I thought you mean max. energy sum). This is what I am talking about the problems with communication over net with few sentences - one person always thinks the other knows what he means, but it is not always like that. OK, I don`t expect this V1 value (average Power) be ever high as that. Listed max. power of the machine is around 9000W. Please, check out this program, is it correct joined now? I noticed one small problem: timer B010 was quicker then averaging time - when B010 gives a "hour pulse" the average hour value was not ready yet (I tested on LOGO in real time). So the first hour was no energy added. Next hour was OK since the last result of averaging stays. AttachmentCombined test program.zip (304 Downloads) |
Last edited by: Frayer at: 04/03/2020 15:11:02 |
|
4/3/2020 5:23 PM | |
Joined: 12/3/2018 Last visit: 1/22/2024 Posts: 76 Rating: (0) |
ixo65 you helped me a lot and I am thankful for that. |
4/4/2020 8:11 PM | |
Joined: 2/22/2008 Last visit: 8/6/2024 Posts: 2698 Rating: (207) |
I have looked for a better solution, but i don't use an additional counter for the sensor. It may be also good with your principle with some little changes. I also have added counters, but check this for a fault, i am not perfect. The power is added in an arithmetic instruction every second. If the sum exceeds 3599 (3600), you have 3600 Ws = 1 Wh and the Wh counter will be increased. After 1000 Wh the kWh counter will be increased and the Wh counter will be resetted. Try out the program in attachment, maybe this help you. Regards, Scorp AttachmentTest2.zip (273 Downloads) |
Last edited by: Scorp at: 04/04/2020 20:12:17Last edited by: Scorp at: 04/04/2020 21:59:28 |
|
Follow us on