diff --git a/DUTs/Axis_Structures/ST_AxisPersistent.TcDUT b/DUTs/Axis_Structures/ST_AxisPersistent.TcDUT index 85b947e..c2b15cd 100644 --- a/DUTs/Axis_Structures/ST_AxisPersistent.TcDUT +++ b/DUTs/Axis_Structures/ST_AxisPersistent.TcDUT @@ -7,6 +7,9 @@ STRUCT fPositionAtShutdown: LREAL; //Position of the axis when the CPU was powered off fEncoderBiasAtShutdown: LREAL; //Encoder bias value when the CPU was powered off bMovingAtShutdown: BOOL; //Indicates if the axis was moving during the shutdown (True if moving, false otherwise) + bHomedAtShutdown: BOOL; //Homing status of the axis when the CPU was powered off + bInitializedAtShutdown: BOOL; //Initialized status of the axis when the CPU was powered off + fPositionDifferenceAtShutdown: LREAL; //Position difference between the sampled position and the position at shutdown END_STRUCT END_TYPE ]]> diff --git a/DUTs/Axis_Structures/ST_SwitchInfo.TcDUT b/DUTs/Axis_Structures/ST_SwitchInfo.TcDUT index 3c1b831..ba547a7 100644 --- a/DUTs/Axis_Structures/ST_SwitchInfo.TcDUT +++ b/DUTs/Axis_Structures/ST_SwitchInfo.TcDUT @@ -1,6 +1,6 @@  - + - + \ No newline at end of file diff --git a/DUTs/E_RestorePosition.TcDUT b/DUTs/E_RestorePosition.TcDUT index 9f96adf..f6d32d8 100644 --- a/DUTs/E_RestorePosition.TcDUT +++ b/DUTs/E_RestorePosition.TcDUT @@ -5,8 +5,9 @@ {attribute 'strict'} TYPE E_RestorePosition : ( - eDontRestore :=0, - eRestoreWithoutHome := 1 //Redefined the position of the axis to that when the power was lost + eDontRestore := 0, + eRestorePosition := 1, //Restores the position of the axis to that when the power was lost (incremental) + eRestorePositionBias := 2 //Restores position bias (absolute) ); END_TYPE ]]> diff --git a/GVLs/GVL.TcGVL b/GVLs/GVL.TcGVL index ba332f5..b532928 100644 --- a/GVLs/GVL.TcGVL +++ b/GVLs/GVL.TcGVL @@ -25,6 +25,7 @@ END_VAR VAR_GLOBAL PERSISTENT astAxesPersistent: ARRAY [1..GVL_APP.nAXIS_NUM] OF ST_AxisPersistent; + timeAtShutdownPersistent: DT; //Date and time when the CPU was powered off END_VAR ]]>