Hello Guest it is September 21, 2019, 12:11:54 PM

Author Topic: M98 wont repeat?  (Read 155 times)

0 Members and 1 Guest are viewing this topic.

M98 wont repeat?
« on: April 06, 2019, 07:58:02 AM »
Hello Chaps
I am using mach 3 and want to check for lost steps.
I wrote the little code attached - but it will only iterate
once??
where did I go wrong?
thanks for the help
best regards
Fred Evans
think of the trees-- use both sides of the computer paper

Offline reuelt

*
  •  444 444
    • View Profile
Re: M98 wont repeat?
« Reply #1 on: April 06, 2019, 08:21:39 AM »
Just add M99 at end of subroutine

f100      (faster than possible-mach3 will throttle back)
g21       (mm and absolute)
M98 P1 L5   (RUN SUBROUTINE 5 TIMES)
m30      (rewind and stop)


O1      (letter o - this subroutine must be run 5 times)
g01 z-10   (first position)
g01 z1      (do a feedrate move and move back)
M99   (return to main program)



« Last Edit: April 06, 2019, 08:24:30 AM by reuelt »
"the gift of God is eternal life through Jesus Christ our Lord"
Re: M98 wont repeat?
« Reply #2 on: April 08, 2019, 02:40:41 AM »
thank you very much- problem solved!!
regards fred evans
think of the trees-- use both sides of the computer paper