changes during start of safety check
- Refactoring of string fb - Added pump safety interlocks for pressure segment inlet too low and too high
This commit is contained in:
@@ -129,14 +129,20 @@ VAR
|
||||
|
||||
_xECModuleInOP : BOOL;
|
||||
|
||||
xDebug1 : BOOL;
|
||||
xDebug2 : BOOL;
|
||||
xDebug3 : BOOL;
|
||||
xDebug4 : BOOL;
|
||||
_xFirstCycle : BOOL := TRUE;
|
||||
END_VAR
|
||||
]]></Declaration>
|
||||
<Implementation>
|
||||
<ST><![CDATA[// Reset error and warning flag
|
||||
<ST><![CDATA[IF _xFirstCycle THEN
|
||||
_xFirstCycle := FALSE;
|
||||
|
||||
_fbUnit1.Name := CONCAT(Name, ' - Unit 1');
|
||||
_fbUnit2.Name := CONCAT(Name, ' - Unit 2');
|
||||
_fbUnit3.Name := CONCAT(Name, ' - Unit 3');
|
||||
_fbUnit4.Name := CONCAT(Name, ' - Unit 4');
|
||||
END_IF
|
||||
|
||||
// Reset error and warning flag
|
||||
xError := FALSE;
|
||||
xWarning := FALSE;
|
||||
|
||||
@@ -243,7 +249,6 @@ END_IF
|
||||
|
||||
IF _fbUnit1.xError THEN
|
||||
xError := TRUE;
|
||||
xDebug1 := TRUE;
|
||||
END_IF
|
||||
|
||||
IF NOT _fbUnit1.xSafetyIntlksOk THEN
|
||||
@@ -283,7 +288,6 @@ END_IF
|
||||
|
||||
IF _fbUnit2.xError THEN
|
||||
xError := TRUE;
|
||||
xDebug2 := TRUE;
|
||||
END_IF
|
||||
|
||||
IF NOT _fbUnit2.xSafetyIntlksOk THEN
|
||||
@@ -323,7 +327,6 @@ END_IF
|
||||
|
||||
IF _fbUnit3.xError THEN
|
||||
xError := TRUE;
|
||||
xDebug3 := TRUE;
|
||||
END_IF
|
||||
|
||||
IF NOT _fbUnit3.xSafetyIntlksOk THEN
|
||||
@@ -363,7 +366,6 @@ END_IF
|
||||
|
||||
IF _fbUnit4.xError THEN
|
||||
xError := TRUE;
|
||||
xDebug4 := TRUE;
|
||||
END_IF
|
||||
|
||||
IF NOT _fbUnit4.xSafetyIntlksOk THEN
|
||||
|
||||
Reference in New Issue
Block a user