SpeedRefresh only works in a motion task. The manual shows an example of updating the speed with a trap from a signal. Try adding a trap and updating the speed via a signal or shared PERS between the motion and background task.
Good question – I am only aware of CSpeedOverride which I believe only tells you that the operator overrode the speed via the pendant but not via RAPID with SpeedRefresh…