RS_Limit / DPOS runs too far and beyond the limit

RS_Limit / DPOS runs too far and beyond the limit

Hello,

I have an axis (motor+spindle) and a MC4N controller.

I want to limit the movement with Trio to protect the axis.

The problem is, that RS_Limit in some cases do not work and the axis_DPOS is moving beyond the limit!

PROGRAM #1 : GOOD !  --> the axis ends at DPOS=-30 although I have sent 35 moves.  GOOD !
      DEFPOS(0)
      FS_LIMIT=30 
      RS_LIMIT=-30
      FOR i = 1 TO 35
          MOVE (-1)
          WAIT IDLE AXIS(0)  
      NEXT i

PROGRAM #2 : BAD ! --> the axis stops at DPOS = -33 which is beyond my RS_Limit.   BAD !
      DEFPOS(0)
      FS_LIMIT=30 
      RS_LIMIT=-30
      FOR i = 1 TO 4
          MOVE (-9)
          WAIT IDLE AXIS(0)  
      NEXT i

WHY runs DPOS beyond the limit ????

Thank you for any comments and your help.

best regards,
Joachim