Skip to content

Commit

Permalink
Removed unnecessary check for being at state
Browse files Browse the repository at this point in the history
  • Loading branch information
KaushikMalapati committed Jan 15, 2025
1 parent 50137cd commit ebb59e5
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ VAR
bEnable: BOOL;
nGoalAtClear : UINT;
bAtStateAtClear : BOOL;
rtEnable: R_TRIG;
END_VAR
]]></Declaration>
Expand Down Expand Up @@ -99,7 +98,7 @@ fbMotionBPTM(
bEnable:=bEnable,
bAtState:=stPlcToEpics.nGetValue = nCurrGoal AND nCurrGoal <> 0,
sDeviceName:=sDeviceName,
bRetry:=rtEnable.Q AND nGoalAtClear = nCurrGoal AND bAtStateAtClear,
bRetry:=rtEnable.Q AND nGoalAtClear = nCurrGoal,
bTransitionAuthorized=>,
bDone=>,
bMotorCountError=>,
Expand All @@ -111,7 +110,6 @@ fbMotionClearAsserts(
bExecute:=NOT fbMotionBPTM.bEnable,
);
nGoalAtClear := nCurrGoal;
bAtStateAtClear := fbMotionBPTM.bAtState;
fbStatePMPSEnables(
astMotionStage:=astMotionStageMax,
Expand Down

0 comments on commit ebb59e5

Please sign in to comment.