refactoring to clean up whitespace

This commit is contained in:
SCooper
2022-07-27 15:25:53 +01:00
parent 37b8f7490c
commit 2222e7539e
2 changed files with 17 additions and 5 deletions

View File

@@ -6,7 +6,6 @@ VAR
sVersion: STRING := '1.0.0';
aIAxes : ARRAY [1..GVL_APP.nAXIS_NUM] OF I_Axis;
afbAxes: ARRAY [1..GVL_APP.nAXIS_NUM] OF FB_Axis;
afbAxesV2: ARRAY [1..GVL_APP.nAXIS_NUM] OF FB_Axis_V2;
afbPneumaticAxes: ARRAY [1..GVL_APP.nPNEUMATIC_AXIS_NUM] OF FB_PneumaticAxis;
hmiAxisSelection: INT := 1; //Not possible to use local hmi variables for array indexes
hmiPneumaticAxisSelection: INT := 1;
@@ -22,8 +21,6 @@ VAR
afbReadEncRefSys: ARRAY [1..GVL_APP.nAXIS_NUM] OF MC_ReadParameter;
afbRestorePosition: ARRAY [1..GVL_APP.nAXIS_NUM] OF MC_SetPosition;
fbGetDeviceIdentification: FB_GetDeviceIdentification;
counter : BYTE;
END_VAR
VAR PERSISTENT
@@ -43,8 +40,8 @@ GVL.fbGetCurTaskIndex();
IF _TaskInfo[fbGetCurTaskIndex.index].FirstCycle THEN
FOR GVL.iAxis := 1 TO GVL_APP.nAXIS_NUM DO
afbAxesV2[GVL.iAxis].stAxis REF= astAxes[GVL.iAxis];
aIAxes[GVL.iAxis] := afbAxesV2[GVL.iAxis];
afbAxes[GVL.iAxis].stAxis REF= astAxes[GVL.iAxis];
aIAxes[GVL.iAxis] := afbAxes[GVL.iAxis];
END_FOR
END_IF

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<Refactors>
<Renames>
<RenamedType>
<Type guid="ade71f2f-2325-4792-8103-f7cd9c07d44a">FB_AXIS_V2</Type>
<From>FB_Axis_V2</From>
<To>FB_Axis</To>
</RenamedType>
<RenamedSymbol>
<Type guid="33eb6f49-7781-4211-a70b-87ada6d80cb7">MAIN</Type>
<From>afbAxesV2</From>
<To>afbAxes</To>
</RenamedSymbol>
</Renames>
</Refactors>