Hello Guest it is March 28, 2024, 07:52:26 PM

Author Topic: loops and nested loops. Can I use my bridgeport programs?  (Read 4133 times)

0 Members and 1 Guest are viewing this topic.

loops and nested loops. Can I use my bridgeport programs?
« on: June 15, 2006, 05:58:26 PM »
I have just installed the trial mach 2 into my new control.  Mach 2 didn't recognize my loop commands (=N0010/25)  Do I need to rewrite my programs? bart

Offline Graham Waterworth

*
  • *
  •  2,668 2,668
  • Yorkshire Dales, England
    • View Profile
Re: loops and nested loops. Can I use my bridgeport programs?
« Reply #1 on: June 15, 2006, 07:24:54 PM »
Loops are done in mach with :-

M98 P100 L25

M98  =     call sub program with loop code in
P100 =    program number to call
L25   =    number of times to call sub program.

Graham.
Without engineers the world stops
Re: loops and nested loops. Can I use my bridgeport programs?
« Reply #2 on: June 15, 2006, 07:25:02 PM »
Are you talking about looping a Sub? If so it is the Q number that sets the number of times it is run :)
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com
Re: loops and nested loops. Can I use my bridgeport programs?
« Reply #3 on: June 16, 2006, 01:31:01 PM »
Thanks,  I used your format and created a loop subroutine.  I'll keep working on the nested loop.  bart.
Re: loops and nested loops. Can I use my bridgeport programs?
« Reply #4 on: June 17, 2006, 09:25:55 AM »
Hi guys,  machine is running on mach 2 trial version.  I had to use P with O and Lwith Q.  Nested subroutines works well.  Thank you for your help.