diff --git a/solution/_Config/PLC/tc_project_app.xti b/solution/_Config/PLC/tc_project_app.xti index ecf2b39..482ce85 100644 --- a/solution/_Config/PLC/tc_project_app.xti +++ b/solution/_Config/PLC/tc_project_app.xti @@ -1,7 +1,7 @@ - + tc_project_app Instance {08500001-0000-0000-F000-000000000064} diff --git a/solution/tc_project_app/GVLs/GVL_APP.TcGVL b/solution/tc_project_app/GVLs/GVL_APP.TcGVL index 05a6eef..0da9a07 100644 --- a/solution/tc_project_app/GVLs/GVL_APP.TcGVL +++ b/solution/tc_project_app/GVLs/GVL_APP.TcGVL @@ -10,6 +10,12 @@ END_VAR VAR_GLOBAL CONSTANT nAXIS_NUM: UINT := 0; //Specifies the total of axes in the system nPNEUMATIC_AXIS_NUM: UINT := 0; //Specifies the total number of pneumatic axes in the system + + //Pneumatic air pressure groups high and low limits + fLOW_LIMIT_AIR_PRESSURE1: REAL := 0; //User defined value in bar for low limit air pressure value for pneumatic axes group 1 + fHIGH_LIMIT_AIR_PRESSURE1: REAL := 0; //User defined value in bar for high limit air pressure value for pneumatic axes group 1 + fLOW_LIMIT_AIR_PRESSURE2: REAL := 0; //User defined value in bar for low limit air pressure value for pneumatic axes group 2 + fHIGH_LIMIT_AIR_PRESSURE2: REAL := 0; //User defined value in bar for high limit air pressure value for pneumatic axes group 2 END_VAR ]]> 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 ca4ebf4..812c3c4 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,11 +4,13 @@ - , aErrorMsg=> , @@ -18,14 +20,34 @@ fbCabinetMonitoring( 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 557d5d8..98821bc 100644 --- a/solution/tc_project_app/POUs/MAIN.TcPOU +++ b/solution/tc_project_app/POUs/MAIN.TcPOU @@ -132,6 +132,7 @@ Axis_Template(); //Pneumatics_Template(); //Application program calls +Cabinet_Configuration(); Application_Template(); ]]> diff --git a/solution/tc_project_app/tc_mca_std_lib b/solution/tc_project_app/tc_mca_std_lib index 9cfc5a1..e0866f8 160000 --- a/solution/tc_project_app/tc_mca_std_lib +++ b/solution/tc_project_app/tc_mca_std_lib @@ -1 +1 @@ -Subproject commit 9cfc5a1d1df46a3d6efda48065477801acebdc50 +Subproject commit e0866f8a66aebed3bf87e21e19e6056b9fca198d