Hello
Guest
it is
May 11, 2025, 11:59:55 AM
Guest
Login
Register
Menu
Home
Help
Search
Login
Register
YouTube
Machsupport Forum
/
Mach Discussion
/
Mach4 General Discussion
/
Loop Counter
« previous
next »
Print
Pages:
1
Go Down
Author
Topic: Loop Counter (Read 3164 times)
0 Members and 1 Guest are viewing this topic.
rhtuttle
575
Loop Counter
«
on:
April 29, 2019, 01:43:32 PM »
When you run a subprogram (i.e. m98 p1234 L10) is there a register or other accessible variable that can be accessed to display the current loop number, the number of loops left and number of loops requested?
TIA
RT
Logged
smurph
1,574
"That there... that's an RV."
Re: Loop Counter
«
Reply #1 on:
April 30, 2019, 10:25:32 PM »
Not at the moment.
Steve
Logged
rhtuttle
575
Re: Loop Counter
«
Reply #2 on:
May 01, 2019, 11:01:16 AM »
Soooo....you're saying there may be hope?
Logged
smurph
1,574
"That there... that's an RV."
Re: Loop Counter
«
Reply #3 on:
May 01, 2019, 12:17:03 PM »
Well... no. Other than the way G code already gives you. This is usually done in the G code with a #var. Set the var to zero before the M98 L10 call and in the sub increment the #var.
Steve
Logged
Print
Pages:
1
Go Up
« previous
next »