Merge pull request 'Invert Circulation Pump' (#6) from feature/pirculationpump-invert into main

Reviewed-on: #6
This commit is contained in:
Hendrik Schutter 2024-12-21 21:22:25 +01:00
commit 9abf64f9dd
2 changed files with 4 additions and 3 deletions

View File

@ -75,7 +75,7 @@ Sntp <|-- Metrics
| Function | ESP32 | PLC ES32C14 | | Function | ESP32 | PLC ES32C14 |
|---------------------------------------|-------|---------------------------| |---------------------------------------|-------|---------------------------|
| Output CirculationPump | IO27 | Relay 1 NO1 | | Output CirculationPump | IO27 | Relay 1 NC1 |
| Output Burner Fire Signal | IO14 | Relay 2 NC2 | | Output Burner Fire Signal | IO14 | Relay 2 NC2 |
| Output Safety Contact (powers Burner) | IO12 | Relay 3 NC2 | | Output Safety Contact (powers Burner) | IO12 | Relay 3 NC2 |
| Input Burner Fault | IO19 | Digital Input IN1 | | Input Burner Fault | IO19 | Digital Input IN1 |

View File

@ -66,10 +66,10 @@ void setCirculationPumpState(eOutput in)
switch (sCirculationPumpState) switch (sCirculationPumpState)
{ {
case ENABLED: case ENABLED:
gpio_set_level(uCirculationPumpGpioPin, 1U); // Switch on Circulation Pump gpio_set_level(uCirculationPumpGpioPin, 0U); // Switch on Circulation Pump
break; break;
case DISABLED: case DISABLED:
gpio_set_level(uCirculationPumpGpioPin, 0U); // Switch off Circulation Pump gpio_set_level(uCirculationPumpGpioPin, 1U); // Switch off Circulation Pump
default: default:
break; break;
} }
@ -133,6 +133,7 @@ eOutput getSafetyControlState(void)
} }
return ret; return ret;
} }
void setSafetyControlState(eOutput in) void setSafetyControlState(eOutput in)
{ {
if (xSemaphoreTakeRecursive(xMutexAccessOutputs, pdMS_TO_TICKS(5000)) == pdTRUE) if (xSemaphoreTakeRecursive(xMutexAccessOutputs, pdMS_TO_TICKS(5000)) == pdTRUE)