Joke Collection Website - Joke collection - Don't joke, everyone. I have less culture, so try to be as detailed as possible. I have a picture. I am engaged in numerical control work, and the drawings are not marked with A and B. How to do this

Don't joke, everyone. I have less culture, so try to be as detailed as possible. I have a picture. I am engaged in numerical control work, and the drawings are not marked with A and B. How to do this

Don't joke, everyone. I have less culture, so try to be as detailed as possible. I have a picture. I am engaged in numerical control work, and the drawings are not marked with A and B. How to do this and how to ensure the size? 1.IF[ conditional expression] GOTOn

2.WHILE[ conditional expression] DOm(m= 1, 2,3)

Circulating body end

The symbol (1 ~ 3) in the DO~END loop can be used as many times as needed. The following examples introduce several common ellipse processing methods.

Method 1: Use elliptic function and subroutine to write macro program.

The process is as follows:

O000 1

G99T0 10 1

S 1000M3 M98P0002

G0X52Z2 G00X 100Z 100

# 1=48.5 M30

N50IF[# 1lt 1]goto 100

M98P0002 O0002

# 1=# 1-3 #2=45

GOTO50 #3=25

N 100G00X52Z2 #4=45

N60IF[# 4LT-20]goto 1 10

s 15003 # 5 = SQRT[# 2 * # 2-# 4 * # 4]

# 1=0 #6=25*#5/45

g 0 1X[2 * # 6+# 1]Z[# 4-45]n 1 10g 00 x52z 2

#4=#4-0.5 M99

GOTO60

Method 2: Write with elliptic angle and compound loop instruction.

The elliptical contour as shown in Figure 2 is processed.

The elliptic equation is z = acos and x = bsin.

Where: a is the radius of the major axis of the ellipse, and b is the radius of the minor axis of the ellipse.

The process is as follows:

O0002

G99T0 10 1

S 1000M3

G00X62Z2

G73U3R4

g73p 10q 20u 0.5w 0. 1f 0.2

N 10G00X45.707F0. 1

G0 1Z0

# 1=4 1.5

N50IF[# 1gt 128.8]goto 100

#2=45*COS[# 1]-26

#3=28*SIN[# 1]

G0 1X[2*#3]Z[#2]F0.2

# 1=# 1+ 1

GOTO50

G 1X50. 165Z-46

N20X62

N 100G0X62Z2

G70P 10Q20

G00X 100Z 100

M30

The above two methods both use IF[ conditional expression ]GOTOn statement, but they can also be expressed by WHILE[ conditional expression ]DOm(m= 1, 2,3) endm, which is omitted here.