diff --git a/solution/_Config/PLC/tc_project_app.xti b/solution/_Config/PLC/tc_project_app.xti index a36cf68..5cf9615 100644 --- a/solution/_Config/PLC/tc_project_app.xti +++ b/solution/_Config/PLC/tc_project_app.xti @@ -1,9 +1,22 @@ - + - + tc_project_app Instance {08500001-0000-0000-F000-000000000064} + + PlcTask Inputs + + GVL.nAirPressureSensorGroup1 + + INT + + + GVL.nAirPressureSensorGroup2 + + INT + + 0 diff --git a/solution/tc_project_app/POUs/Application_Specific/Applications/Cabinet_Configuration.TcPOU b/solution/tc_project_app/POUs/Application_Specific/Applications/Cabinet_Configuration.TcPOU index 1a332eb..3b26480 100644 --- a/solution/tc_project_app/POUs/Application_Specific/Applications/Cabinet_Configuration.TcPOU +++ b/solution/tc_project_app/POUs/Application_Specific/Applications/Cabinet_Configuration.TcPOU @@ -4,10 +4,13 @@ - , aErrorMsg=> , @@ -17,14 +20,34 @@ END_VAR nAlarmGrpBitNumber=> ); *) -//Define pressure limits for pneumatic pressure group 1 -GVL.fHighLimitAirPressureGroup1 := 0.0; -GVL.fLowLimitAirPressureGroup1 := 0.0; - -//Define pressure limits for pneumatic pressure group 2 -GVL.fHighLimitAirPressureGroup2 := 0.0; -GVL.fLowLimitAirPressureGroup2 := 0.0; +//Scale pressure sensor group 1 and 2 +fScaledAirPressureGroup1 := mScaledPressureValue(nRawValue:=GVL.nAirPressureSensorGroup1); +fScaledAirPressureGroup2 := mScaledPressureValue(nRawValue:=GVL.nAirPressureSensorGroup2); ]]> + + + + + + \ No newline at end of file diff --git a/solution/tc_project_app/POUs/MAIN.TcPOU b/solution/tc_project_app/POUs/MAIN.TcPOU index 1e0304d..2197f09 100644 --- a/solution/tc_project_app/POUs/MAIN.TcPOU +++ b/solution/tc_project_app/POUs/MAIN.TcPOU @@ -120,7 +120,6 @@ END_IF