Add array of FB_PneumaticAxis
This commit is contained in:
@@ -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
|
||||
]]></ST>
|
||||
</Implementation>
|
||||
</Action>
|
||||
@@ -86,7 +91,7 @@ END_IF]]></ST>
|
||||
Axis_Template();
|
||||
|
||||
//Application program calls
|
||||
Pneumatic_Axis();]]></ST>
|
||||
]]></ST>
|
||||
</Implementation>
|
||||
</Action>
|
||||
<Action Name="RESTORE_POSITIONS" Id="{0c7ee537-7bd9-4833-b428-c17cbb57e893}" FolderPath="POSITION_RECOVERY\">
|
||||
@@ -224,6 +229,7 @@ END_FOR]]></ST>
|
||||
<LineId Id="1" Count="0" />
|
||||
<LineId Id="4" Count="0" />
|
||||
<LineId Id="10" Count="0" />
|
||||
<LineId Id="18" Count="3" />
|
||||
<LineId Id="17" Count="0" />
|
||||
</LineIds>
|
||||
<LineIds Name="MAIN.CHECK_UPS">
|
||||
|
||||
Reference in New Issue
Block a user