Added safety program pre comissioning and started implementing different modes

This commit is contained in:
Matthias Heisig
2024-03-20 18:08:57 +01:00
parent 57987cb19f
commit ef26159a4f
55 changed files with 10419 additions and 1663 deletions

File diff suppressed because one or more lines are too long

View File

@@ -57,7 +57,7 @@ END_VAR
]]></Declaration>
<Implementation>
<ST><![CDATA[// Pressure only if enabled
IF xEnable THEN
IF xEnable OR xErrorLow OR xErrorHigh THEN
// Normal enable value
_rTargetValue := rOnValue;
@@ -82,7 +82,7 @@ _rValue := _rFilterParam * _rTargetValue + _rFilterParam2 * _rPrevValue;
_rPrevValue := _rValue;
// Add some random noise
IF xEnable THEN
IF xEnable OR xErrorLow OR xErrorHigh THEN
_rValue := _rValue + (LREAL_TO_REAL(_lrTmp - 0.5) * rNoise);
END_IF