Explorar o código

add reservoir1 ca direplen twincat logci

chenzk hai 2 días
pai
achega
5c7fdbf322

+ 1 - 0
PunkHPX8_RT/PunkHPX8_RT.csproj

@@ -247,6 +247,7 @@
     <Compile Include="Devices\Reservoir\ReservoirCAPumpSpeedHelper.cs" />
     <Compile Include="Devices\Reservoir\ReservoirDevice.cs" />
     <Compile Include="Devices\Reservoir\ReservoirDiReplenHelper.cs" />
+    <Compile Include="Devices\Reservoir\TotalReservoirDevice.cs" />
     <Compile Include="Devices\Safety\SafetyAllOnRoutine.cs" />
     <Compile Include="Devices\SRD\SrdCommonChuckATMRoutine.cs" />
     <Compile Include="Devices\SRD\SrdCommonFlipperRoutine.cs" />

+ 10 - 2
PunkHPX8_Twincate/PunkHPX8/PlcTest/POUs/MAIN.TcPOU

@@ -574,13 +574,18 @@ END_IF
 
 //reservoir
 
-//ca pump
+//reservoir 1 ca pump
 IF  RES1_2_DO_16CHANNEL_EL2809_N201_3=TRUE THEN
 	RES1_2_DI_8CHANNEL_EL1008_N200_1:=TRUE;
 ELSE
 	RES1_2_DI_8CHANNEL_EL1008_N200_1:=FALSE;
 END_IF
-]]></ST>
+
+
+//reservoir 1 ca DIreplen
+IF  RES1_2_PNEU_SMC_EX260_V01_V04.0=TRUE AND RES1_2_AI_8CHANNEL_4_20MA_EL3058_N202_5 <= 32760 THEN
+	RES1_2_AI_8CHANNEL_4_20MA_EL3058_N202_5:= RES1_2_AI_8CHANNEL_4_20MA_EL3058_N202_5 + 10;
+END_IF]]></ST>
     </Implementation>
     <LineIds Name="MAIN">
       <LineId Id="52" Count="5" />
@@ -643,7 +648,10 @@ END_IF
       <LineId Id="1346" Count="0" />
       <LineId Id="1343" Count="0" />
       <LineId Id="1347" Count="2" />
+      <LineId Id="1737" Count="1" />
       <LineId Id="1339" Count="0" />
+      <LineId Id="1740" Count="1" />
+      <LineId Id="1739" Count="0" />
     </LineIds>
   </POU>
 </TcPlcObject>