# SpeedRefresh

**URL:** <https://tech-community.robotics.abb.com/t/speedrefresh/3685>\
**Category:** Robot Controller\
**Created:** [June 30, 2010, 10:57pm UTC](https://tech-community.robotics.abb.com/t/speedrefresh/3685 "2010-06-30T22:57:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![drdeason21](https://avatars.discourse-cdn.com/v4/letter/d/b5e925/32.png) [@drdeason21](https://tech-community.robotics.abb.com/u/drdeason21)\
**Post date:** [June 30, 2010, 10:57pm UTC](https://tech-community.robotics.abb.com/t/speedrefresh/3685/1 "2010-06-30T22:57:02Z")

</div>

Is there a way to return the Robot speed to 100% if the Operator has set the speed to 50% from TP? If an operator changes the speed override from the TP, I want it to default back to 100%. The “SpeedRefresh” instruction works to lower the speed, but only works to increase the speed up to the speed set from the TP (i.e., if TP speed = 70%, SpeedRefresh 100; will not return the robot to 100%).

---

<div class="post-metadata">

**Author:** ![Gizmo](https://avatars.discourse-cdn.com/v4/letter/g/7feea3/32.png) [@Gizmo](https://tech-community.robotics.abb.com/u/Gizmo)\
**Post date:** [July 1, 2010, 12:15am UTC](https://tech-community.robotics.abb.com/t/speedrefresh/3685/2 "2010-07-01T00:15:41Z")

</div>

I have done something similar before without any problem.

First I read the current speed override, then slowed the robot down if necessary:  
**nNormalSpeed** := **CSpeedOverride** ();

\*\*!\*\*If slow speed less than current speed reduce to slow speed

If **nNormalSpeed\>nSlowSpeed** THEN

**SpeedRefresh**  **nSlowSpeed** ;

ENDIF

Later I would return to the normal speed with  
**SpeedRefresh**  **nNormalSpeed** ;

This worked fine with the normal speed being 100%

---

<div class="post-metadata">

**Author:** ![Henrik\_Berlin](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/henrik_berlin/32/1011_2.png) [@Henrik\_Berlin](https://tech-community.robotics.abb.com/u/Henrik_Berlin)\
**Post date:** [July 1, 2010, 11:11am UTC](https://tech-community.robotics.abb.com/t/speedrefresh/3685/3 "2010-07-01T11:11:19Z")

</div>

Moved to RobotWare forum

---

<div class="post-metadata">

**Author:** ![Henrik\_Berlin](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/henrik_berlin/32/1011_2.png) [@Henrik\_Berlin](https://tech-community.robotics.abb.com/u/Henrik_Berlin)\
**Post date:** [July 1, 2010, 11:13am UTC](https://tech-community.robotics.abb.com/t/speedrefresh/3685/4 "2010-07-01T11:13:46Z")

</div>

I don’t know the answer to this question, but from a safety perspective I think it would be a safety risk if the RAPID code can override the speed reduction defined on the FlexPendant. I doubt that this is possible.
