Added inverter startup timeout to GVL_CONFIG and enabled inverter errors
This commit is contained in:
@@ -257,6 +257,8 @@ VAR_GLOBAL PERSISTENT
|
||||
// Inverter ip address for string 2
|
||||
sInverterIpString2 : STRING := '192.168.42.20';
|
||||
|
||||
timInverterStartupTimeout : TIME := T#2m;
|
||||
|
||||
// Absolute shutdown discharge power (Watt)
|
||||
// 12.000 W -> 1.000 W per unit
|
||||
rAbsShutdownDischargePower : REAL := 6_500;
|
||||
|
||||
534
PLC/PLC.tmc
534
PLC/PLC.tmc
File diff suppressed because one or more lines are too long
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4026.8">
|
||||
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4026.12">
|
||||
<POU Name="FB_Module" Id="{87be924f-018d-4c09-997b-f0c0054414cc}" SpecialFunc="None">
|
||||
<Declaration>< AND (NOT _xErrorInverter) AND (NOT _xErrorCyclicData) AND xHeartbeatOk THEN
|
||||
//IF xReset AND (NOT xEnable) AND (NOT _xErrorInverter) AND (NOT _xErrorCyclicData) AND xHeartbeatOk THEN
|
||||
IF xReset AND (NOT xEnable) AND (NOT _xErrorCyclicData) AND xHeartbeatOk THEN
|
||||
_eRequestedState := E_KACO_PCU_REQUESTED_STATE.OFF;
|
||||
xError := FALSE;
|
||||
_xErrorInverter := FALSE;
|
||||
_xFaultInverter := FALSE;
|
||||
_xErrorCyclicDataLedge := FALSE;
|
||||
_xHeartBeatNOK := FALSE;
|
||||
@@ -773,8 +775,12 @@ ELSE
|
||||
_xErrorInverter := FALSE;
|
||||
END_IF
|
||||
|
||||
IF _eCurrentState = E_KACO_CURRENT_STATE.FAULT AND xReleasePower THEN
|
||||
_xErrorInverter := TRUE;
|
||||
IF _eCurrentState = E_KACO_CURRENT_STATE.FAULT THEN// AND xReleasePower THEN
|
||||
IF (NOT xReleasePower) AND _stPCUState.ePCUError = E_KACO_PCU_ERROR.UNDER_VOLT THEN
|
||||
_xErrorInverter := FALSE;
|
||||
ELSE
|
||||
_xErrorInverter := TRUE;
|
||||
END_IF
|
||||
END_IF
|
||||
|
||||
// evaluate modbus errors
|
||||
|
||||
Reference in New Issue
Block a user