Skip to content

Commit 7334d3b

Browse files
MBP-247: Add persistent variable
Add homing status of axis before shutdown.
1 parent 5824a59 commit 7334d3b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

DUTs/Axis_Structures/ST_AxisPersistent.TcDUT

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ STRUCT
77
fPositionAtShutdown: LREAL; //Position of the axis when the CPU was powered off
88
fEncoderBiasAtShutdown: LREAL; //Encoder bias value when the CPU was powered off
99
bMovingAtShutdown: BOOL; //Indicates if the axis was moving during the shutdown (True if moving, false otherwise)
10+
bHomedAtShutdown: BOOL; //Homing status of the axis when the CPU was powered off
1011
END_STRUCT
1112
END_TYPE
1213
]]></Declaration>

DUTs/E_RestorePosition.TcDUT

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
TYPE E_RestorePosition :
77
(
88
eDontRestore :=0,
9-
eRestoreWithoutHome := 1, //Redefine the position of the axis to that when the power was lost
10-
eRestoreWithHome := 2 //Redefine the position of the axis to that when the power was lost and home
9+
eRestoreWithoutHome := 1, //Restores the position of the axis to that when the power was lost
10+
eRestoreWithHome := 2 // Restores the position of the axis to that when the power was lost and sets the home position to the restored position
1111
);
1212
END_TYPE
1313
]]></Declaration>

0 commit comments

Comments
 (0)