Lathe 3 axis sub

More
18 Jan 2018 23:33 - 18 Jan 2018 23:35 #104709 by Darek63
Lathe 3 axis sub was created by Darek63
Hello

I'm from Poland. I do not speak English. I am writing through a translator.

There is a C axis for my lathe. I want to have a sub to handle. I have only a part written for rotation of the axis. I need to add other operations. I can not do it. Would someone help me finish my sub lathe 3 axis?

I have the first two options. The rest must be added

Sub operations

1 (= 10 number of operations rotary)
2 (= 36 angle)
3 (= 100 X speed)
4 (= 50 Z speed)
5 (= 0 C initial)
6 (= 0 Z initial)
7 (= -10 Z final)
8 (= -2 depth)
9 (= 0.5 X jump)
10(= 0 X initial)
11(= 5 trip Z)
12(= 1 trip X)

What I have ready and works. Work Metric units

o<obrotnica> sub
(
)
#<liczba_operacji> = #1 (=10 liczba operacji)
#<kat> = #2 (=-36 kąt)
#<predkosc_x> = #3 (=100 prędkość)
#<predkosc_z> = #4 (=50 prędkość)
#<c_poczatkowe> = #5 (=0 C początkowe)
#<zpocz> = #6 (=0 Z początkowy)
#<zkonc> = #7 (=-10 Z końcowy)
#<glebokosc> = #8 (=-2 głębokość)
#<skok> = #9 (=0.5 skok)
#<xpocz> = #10 (=0 X początkowy)
#<w_z> = #11 (=5 wyjazd Z)
#<w_x> = #12 (=1 wyjazd X)

(
)

#<operacja> = 0
g0 x1
g0 z#<zpocz> x#<zpocz>
m8
o1 endif
o100 while [#<operacja> lt #<liczba_operacji>]
g0 c[#<c_poczatkowe> + [#<operacja> * #<kat>]]
o<obrotnica> endsub
Last edit: 18 Jan 2018 23:35 by Darek63.

Please Log in or Create an account to join the conversation.

More
21 Jan 2018 11:00 #104767 by andypugh
Replied by andypugh on topic Lathe 3 axis sub
What doesn't work?

One thing I notice is that this line is probably wrong:

g0 z#<zpocz> x#<zpocz>
You have no O1 IF to match the O1 ENDIF
You also never terminate the O100 WHILE

Please Log in or Create an account to join the conversation.

More
21 Jan 2018 11:38 #104775 by Darek63
Replied by Darek63 on topic Lathe 3 axis sub
You did not understand what I meant. This is a defect in the translator's writing. There is no problem anymore. The machine is already working. Thank you.

Please Log in or Create an account to join the conversation.

Time to create page: 0.139 seconds
Powered by Kunena Forum