Create Cabinet_Configuration program and call it from MAIN/PROG()

Cabinet_Configuraiton contains the cabinet monitoring and the
pressure limits high and low for the cbainets and pneumatic boxes.
modified:   solution/tc_project_app/POUs/Application_Specific/Applications/Cabinet_Configuration.TcPOU
modified:   solution/tc_project_app/POUs/MAIN.TcPOU
This commit is contained in:
federicorojas
2025-03-27 16:29:36 +01:00
parent 04cf94a1fe
commit 3b4bef7169
2 changed files with 9 additions and 6 deletions

View File

@@ -7,7 +7,8 @@ VAR
END_VAR
]]></Declaration>
<Implementation>
<ST><![CDATA[(*fbCabinetMonitoring(
<ST><![CDATA[(*
fbCabinetMonitoring(
nEcMasterNetId:= ,
aErrorID=> ,
aErrorMsg=> ,
@@ -18,12 +19,12 @@ END_VAR
*)
//Define pressure limits for pneumatic pressure group 1
GVL.fHighLimitAirPressureGroup1 := 0.0;
GVL.fLowLimitAirPressureGroup1 := 0.0;
//GVL.fHighLimitAirPressureGroup1 := 0.0;
//GVL.fLowLimitAirPressureGroup1 := 0.0;
//Define pressure limits for pneumatic pressure group 2
GVL.fHighLimitAirPressureGroup2 := 0.0;
GVL.fLowLimitAirPressureGroup2 := 0.0;
//GVL.fHighLimitAirPressureGroup2 := 0.0;
//GVL.fLowLimitAirPressureGroup2 := 0.0;
]]></ST>
</Implementation>
</POU>

View File

@@ -120,11 +120,13 @@ END_IF
<Implementation>
<ST><![CDATA[//Get task index for Axes parameters initialization.
GVL.fbGetCurTaskIndex();
Cabinet_Configuration();
//Call the programs that are defined in the "Application Specific" folder.
//Create as many programs in that folder as axes and applications you have or need
//Cabinet monitoring and pressure limits for pneumatics
Cabinet_Configuration();
//Axes initial parameters and program
Axis_Template();
//Pneumatics_Template();