What's new
What's new

from mazatrol to iso then from iso to mazatrol else

Ruslan92

Plastic
Joined
Oct 10, 2022
Hello people. I tried go from mazatrol to iso then from iso to mazatrol else. (Lathe Mazatrol fusion 640m) how i can do this?
This is what i was going through:
this sub program is in the main program:

#150=#150-1.
IF [#150 EQ 0.] GOTO 10
M99
N 10
M198P6
M99

if the #150 is zero, this sub program calls program number six in Mazatrol.
But here's the problem: the program is called in ISO format instead of mazatrol and is only on upper turret changed and on lower turret still old program not number 6.
What i missd ?
 

mzbg

Plastic
Joined
Oct 13, 2022
I'm not sure exactly if I am understanding what you are trying to do. But if I am understanding correctly I think this would work.

#150=#150-1
IF[#150 EQ 0.] GOTO10
M99
N10
M98 P6
M99

No need for the M198, standard M98 sub-program call should work as would a G65. Change the end unit of the Mazatrol sub to set "Continue" to 1. This will make the Mazatrol sub return to this Main.
 

Ruslan92

Plastic
Joined
Oct 10, 2022
I'm not sure exactly if I am understanding what you are trying to do. But if I am understanding correctly I think this would work.

#150=#150-1
IF[#150 EQ 0.] GOTO10
M99
N10
M98 P6
M99

No need for the M198, standard M98 sub-program call should work as would a G65. Change the end unit of the Mazatrol sub to set "Continue" to 1. This will make the Mazatrol sub return to this Main.
I'm trying to switch from the Mazatrol program to ISO and then to another program in the Mazatrol format
 








 
Top