Added shutdown when inverter error

This commit is contained in:
Matthias Heisig
2024-09-06 18:47:03 +02:00
parent 3d041c50c4
commit d9f39953a0
6 changed files with 144 additions and 73 deletions

View File

@@ -175,6 +175,9 @@ IF _xFirstCycle THEN
_stECString2ErrSI.sName := 'MAIN';
_fbEtherCATErrorString2.CreateEx(stEventEntry := TC_EVENTS.BMSEvents.EthercatStringError, TRUE, _stECString2ErrSI);
_fbEtherCATErrorString2.ipArguments.Clear().AddString('2');
_afbStrings[0].Name := 'String 1';
_afbStrings[1].Name := 'String 2';
END_IF
// Reset error flag
@@ -845,7 +848,9 @@ END_CASE]]></ST>
</Implementation>
</Action>
<LineIds Name="MAIN">
<LineId Id="3" Count="117" />
<LineId Id="3" Count="32" />
<LineId Id="345" Count="2" />
<LineId Id="36" Count="84" />
<LineId Id="122" Count="8" />
<LineId Id="132" Count="212" />
<LineId Id="2" Count="0" />