Thanks
it works well, but i have one problem that M var takes last value as 11 and never 12 in the program given below.
open prog 5
Clear
M4000==2
abs
M4000==3
linear
M4000==4
x500 z600F50
M4000==5
circle2
M4000==6
x300 z400 r1000
M4000==7
inc
M4000==8
linear
M4000==9
x300 y600 z300 F100
M4000==10
circle1
M4000==11
x200 y300 r500
M4000==12
Close