Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions DUTs/Axis_Structures/ST_AxisPersistent.TcDUT
Original file line number Diff line number Diff line change
Expand Up @@ -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
]]></Declaration>
Expand Down
4 changes: 2 additions & 2 deletions DUTs/Axis_Structures/ST_SwitchInfo.TcDUT
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1">
<DUT Name="ST_SwitchInfo" Id="{8b691b20-d15e-04fc-085e-324c48490184}">
<DUT Name="ST_SwitchInfo" Id="{fd2b2bd3-e117-0efc-04d6-132bd855c7c6}">
<Declaration><![CDATA[TYPE ST_SwitchInfo :
STRUCT
fLimitBwdTrigPos: LREAL; //Last trigger pos of the bwd limit
Expand All @@ -19,4 +19,4 @@ END_STRUCT
END_TYPE
]]></Declaration>
</DUT>
</TcPlcObject>
</TcPlcObject>
5 changes: 3 additions & 2 deletions DUTs/E_RestorePosition.TcDUT
Original file line number Diff line number Diff line change
Expand Up @@ -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
]]></Declaration>
Expand Down
1 change: 1 addition & 0 deletions GVLs/GVL.TcGVL
Original file line number Diff line number Diff line change
Expand Up @@ -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
]]></Declaration>
</GVL>
Expand Down
Loading