Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Power value L3 #30

Open
Schampbakken opened this issue Feb 18, 2018 · 2 comments
Open

Power value L3 #30

Schampbakken opened this issue Feb 18, 2018 · 2 comments

Comments

@Schampbakken
Copy link

Hello,

i'm missing the power value of L3. L1 and 2 work perfect but L3 is missing.
When I look in InverterMsg.py I see the next code.
I added a print for debug

``
def p_ac(self, i=1):
"""Power output of the output channel

    Available channels are 1, 2 or 3; if no tin this range the function will
    default to channel 1.

    Args:
        i (int): output channel (valid values: 1, 2, 3)

    Returns:
        float: Power output of channel i
    """
    if i not in range(1, 4):
        i = 1
    num = 59 + (i - 1) * 4
    print num, ": L", i, ": ", int(self.__get_short(num, 1))
    return int(self.__get_short(num, 1))  # Don't divide

``
In the console it looks like:
59 : L 1 : 394
63 : L 2 : 380
67 : L 3 : 0

What can this be? Or is this not the power for each phase?

@Schampbakken
Copy link
Author

Think I found it!
I think the multilpier should be 2 instead of 4.
Think the value is in 2 bytes instead of 4.

num = 59 + (i - 1) * 2

@XtheOne
Copy link

XtheOne commented Mar 19, 2018

Nope... From the data frame layout table:
f_ac1 57 2 100 Hz Frequency of the AC output channel 1.
p_ac1 59 2 1 W Power output of the AC output channel 1.
f_ac2 62 2 100 Hz Frequency of the AC output channel 2.
p_ac2 63 2 1 W Power output of the AC output channel 2.
f_ac3 65 2 100 Hz Frequency of the AC output channel 3.
p_ac3 67 2 1 W Power output of the AC output channel 3.
Maybe you have an old logger which outputs an old frame type.
A dump is needed then to look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants