How to call subprogram several times on Fanuc 0TB?
How to call subprogram several times on Fanuc 0TB?
M98 P00123456 calls sub O3456 12 times.
M98 P00041111 calls sub O1111 4 times.
thanks
wiil try
I have not tried but read somewhere that P-word can have only seven digits, allowing a maximum of 999 repetitions???
The 0-TB Operators Manual specified a 7 digit P-word and states that a call command can specify up to 999 repetitions of a subprogram.
The 0-TC Operators Manual specifies an 8 digit P-word and states that a call command can specify up to 9999 repetitions of a subprogram.
Your original reply was fine in that it presented the correct solution methodology. These forums are useful in not only solving the particular problem reported by the original poster, but also inform and educate others with various FANUC CNC models.
Since FANUC's controls do vary somewhat in capabilities, if he encountered an error when running an 8 digit P-word on the 0-TB, he could go to that appropriate CNC manual and figure out the error.
btw: I had no idea of this slight operational difference in the 0-TB vs 0-TC until after I checked on the question in sinha_nsit's post.
The best thing is to check on the machine. Manuals sometimes give contradictory information. For example, on page 129 of 0i-TC Operator's Manual, maximun repetition count is stated as 9999, but in the given syntax, only three spaces are shown for repetition count (followed by four spaces for subprogram number).
And, IIRC, OiMate-TC ignores the eighth digit from right. But 9999 repetitions are still possible with L9999.