Skip to content

Commit 79ccffa

Browse files
MBP-247: Extend ST_AxisPersistent
ST_AxisPersistent is extended to include axis status variables to be saved before power failure.
1 parent 08a6735 commit 79ccffa

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

DUTs/Axis_Structures/ST_AxisPersistent.TcDUT

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@ STRUCT
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)
1010
bHomedAtShutdown: BOOL; //Homing status of the axis when the CPU was powered off
11+
bInitialized: BOOL; //Initialized status of the axis when the CPU was powered off
12+
13+
//Axis status variables
14+
stMotionState: MC_AXISSTATES;
15+
bError: BOOL;
16+
nErrorID: UDINT;
17+
bErrorStop: BOOL;
18+
bStandStill: BOOL;
19+
bHasBeenStopped: BOOL;
20+
bMoving: BOOL;
21+
fPositionDifference: LREAL;
22+
bDisabled: BOOL;
23+
24+
nCycles: ULINT; //Number of PLC cycles executed before shutdown
1125
END_STRUCT
1226
END_TYPE
1327
]]></Declaration>

0 commit comments

Comments
 (0)