diff --git a/solution/tc_project_app/POUs/MAIN.TcPOU b/solution/tc_project_app/POUs/MAIN.TcPOU index a38f92c..0e20dc4 100644 --- a/solution/tc_project_app/POUs/MAIN.TcPOU +++ b/solution/tc_project_app/POUs/MAIN.TcPOU @@ -5,6 +5,7 @@ VAR sVersion: STRING := '1.0.0'; afbAxes: ARRAY [1..GVL_APP.nAXIS_NUM] OF FB_Axis; + afbPneumaticAxes: ARRAY [1..GVL_APP.nPNEUMATIC_AXIS_NUM] OF FB_PneumaticAxis; hmiAxisSelection: INT := 1; //Not possible to use local hmi variables for array indexes //Outputs: Power for Limit switches and Home Sensors (every 4th output) @@ -48,6 +49,10 @@ GVL.fbGetCurTaskIndex(); FOR GVL.iAxis := 1 TO GVL_APP.nAXIS_NUM DO afbAxes[GVL.iAxis](stAxisStruct := GVL.astAxes[GVL.iAxis]); END_FOR + +FOR GVL.iPneumaticAxis := 1 TO GVL_APP.nPNEUMATIC_AXIS_NUM DO + afbPneumaticAxes[GVL.iPneumaticAxis](stPneumaticAxisStruct := GVL.astPneumaticAxes[GVL.iPneumaticAxis]); +END_FOR ]]> @@ -86,7 +91,7 @@ END_IF]]> Axis_Template(); //Application program calls -Pneumatic_Axis();]]> +]]> @@ -224,6 +229,7 @@ END_FOR]]> +