Skip to content

wie Brennerstörung im Programm erkennen?!? #103

Closed Answered by dewenni
MisterButcher asked this question in Q&A
Discussion options

You must be logged in to vote

ok, das war mir nach dem ersten Post noch nicht so klar.

Die Information kannst du denke ich aus der Variablen kmStatus.BoilerErrorStates rausziehen. Diese Variable ist bitcodiert und wie folgt definiert:

Bit1 = "Brennerstoerung"
Bit2 = "Kesselfuehler"
Bit3 = "Zusatzfuehler"
Bit4 = "Kessel bleibt kalt"
Bit5 = "Abgasfuehler"
Bit6 = "Abgas ueber Grenzwert"
Bit7 = "Sicherungskette ausgeloest"
Bit8 = "Externe Stoerung"

So könntest du darauf zugreifen:

#include <km271.h>

s_km271_status *pkmStatus = km271GetStatusValueAdr();

void checkError() {

  if (bitRead(pkmStatus->BoilerErrorStates, 0)) {
    // Fehler Brennerstoerung
  }
}

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by MisterButcher
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants