|
发表于 2024-12-22 09:46:59
|
显示全部楼层
这种三角函数后处理也方便
T01 M06
G54 G90
S1800 M03
#1 = #7921 - 500 (P47.x - center500)
#2 = 500 - #7941 (center500 - P48.X.Z)
IF [#7944 LT 0] THEN #2 = - #2 (B-90)
#3 = SQRT[#1 * #1 + #2 * #2](R)
#4 = ATAN [#1]/[#2] (THETA)
#5= -67.5(B)
#6 = [SIN[#4 - #5] - SIN[#4]] * #3 (DELTA X)
#7 = [COS[#4 - #5] - COS[#4]] * #3 (DELTA Z)
G00 Z[400. + #7]
G00 B-67.5
G90 X[27.955 + #6] Y185.918
Z[29.441 + #7]
Z[14.522 + #7]
G01 X[27.93 + #6] Y-21.918 F2700.
G00
X[28.829 + #6] Y-21.922
Z[14.072 + #7]
G01 X[28.832 + #6] Y185.922
G00
X[29.732 + #6] Y185.926
Z[13.623 + #7]
G01 X[29.71 + #6] Y-21.925
G00
X[30.609 + #6] Y-21.93
Z[13.174 + #7]
G01 X[30.623 + #6] Y185.929
G00 |
|