rasProject_01 / weSweetHome
R. 240
process control / RasPi software by weinert-automation
|
support for VDE-AR-N 4105 More...
Functions | |
void | arn4105TimChg (state_t *const me) |
AR-N 4105 control timer state change function. More... | |
void | setARN4105state (uint8_t const state, uint8_t const select) |
Set AR-N 4105 frequency and voltage states. More... | |
Variables | |
uint8_t | arn4105state |
AR-N 4105 frequency and voltage states. More... | |
state_t | arn4105Timer |
AR-N 4105 control timer. More... | |
state_t | checkL1_U |
The (one) five band checker for line L1 voltage. More... | |
state_t | checkL2_U |
The (one) five band checker for line L2 voltage. More... | |
state_t | checkL3_U |
The (one) five band checker for line L3 voltage. More... | |
state_t | checkLineFrq |
The (one) five band checker for line frequency. More... | |
support for VDE-AR-N 4105
Revision history
void setARN4105state | ( | uint8_t const | state, |
uint8_t const | select | ||
) |
Set AR-N 4105 frequency and voltage states.
This function is called internally by the respective five band checker's state_t.onStateChange function.
Parameter selection mask must be one of LfMsk, L1Msk - L3Msk.
state | state_t.status of the five band checker in question |
select | selection mask |
void arn4105TimChg | ( | state_t *const | me | ) |
AR-N 4105 control timer state change function.
It signals the timer state to the function arn4105TimChg.
me | pointer to the AR-N 4105 control timer |
state_t checkLineFrq |
The (one) five band checker for line frequency.
See newLineFcheck
state_t checkL1_U |
The (one) five band checker for line L1 voltage.
In a one phase system this will be the only one fed with values by fiveBandTick.
See newLineUcheck
state_t checkL2_U |
The (one) five band checker for line L2 voltage.
See newLineUcheck
state_t checkL3_U |
The (one) five band checker for line L3 voltage.
See newLineUcheck
uint8_t arn4105state |
AR-N 4105 frequency and voltage states.
If all is OK this status byte is 0. The meaning of bits set is
If any error bit is set the respective generators has to be cut off.
Ten minutes after the last warning bit is gone the respective generators may be put back to power line.
The timer arn4105Timer will be handled accordingly.
User software should not touch this variable (except when knowing the consequences.
state_t arn4105Timer |
AR-N 4105 control timer.
When this timer is running distributed small generators must be cut off. When this timer stops the respective generators may be put back to power line.
User software must provide a function switchARN4105 doing the cutoff and switch back plus optionally logging. It will be called by this timer and, hence, in the end by the frequency and voltage checkers.
The user/application software must check (timerTickCheck) regularly to enable switch back.