UNTIL REMAIN < 5 not working

UNTIL REMAIN < 5 not working

BASE(z_axis)
MOVEABS(0)
WA(200)
REPEAT
    WA(10)
UNTIL REMAIN < 5 
    
Probably, the MOVEABS is loading into PMOVE or even to NTYPE but the check of REMAIN is still seeing the REMAIN from the previous move that is in MTYPE.  You must check that the move you load is actually in the MTYPE before checking REMAIN.
    • Related Articles

    • MOVEABS not ending in Target positon

      The cause the problem is that a MOVEABS takes ENDMOVE of the previous move as the start point. When we cancel the move in the MTYPE, it stops before ENDMOVE so it is not a valid start point any more. Here is a possible solution but it is not perfect. ...
    • MOVEABS and MOVABSSEQ AN-273

      The MOVEABSSEQ and MOVESEQ commands allow a sequence of 2 to 6 axis movements to be loaded via TABLE values. The moves can be automatically blended together using a circular or spherical arcs. The sequence of points is loaded as a sequence of MOVEABS ...
    • Moving traverse from point to point repeatedly

      2 suggestions: 1. Move to positions BASE(0) REPEAT MOVEABS(position1) MOVEABS(position2) UNTIL event=TRUE 2. Move to sensor position1 and position 2 are set to be beyond the sensor postion BASE(0) REPEAT MOVEABS(position1) WAIT UNTIL IN(1)=ON CANCEL ...
    • Moves not getting to position

      We have an odd situation with an MC4N running EtherCAT drives. The issue is that axis 1 is not getting to the commanded position via MOVEABS. The command MOVEABS is where we are hanging because the move seems to cancel. We did a the test with all ...
    • XYZ axes running slower than expected

      One of our customers faced a problem with Slow Speed on all Axes.  They just changed the Y axis Drives with a different type and changed the UNITS (higher) which seems good becasue they can move the Axis more precisely.  But now when running XYZ ...