小太阳0.0
发表于 2023-4-27 10:34:06
你这个怎么用的哦
rjk2008
发表于 2023-5-25 14:51:30
%
O9682
#31=#5241 (GongJianZuoBiaoXi X)
#32=#5242 (GongJianZuoBiaoXi Y)
#33=#5243 (GongJianZuoBiaoXi Z)
#4=666.483 (huizhuanzhongxin X-Axis )
#5=-311.714 (huizhuanzhongxin Y-Axis )
#6=-413.463 (huizhuanzhongxin Z-Axis )
#130=-#2
#131=-#3
#24=[#31-#4]*COS[#131]+[#32-#5]*SIN[#131]+#4
#23=-[#31-#4]*SIN[#131]+[#32-#5]*COS[#131]+#5
#25=[#24-#4]*COS[#130]+[#33-#6]*SIN[#130]+#4
#26=-[#24-#4]*SIN[#130]+[#33-#6]*COS[#130]+#6
G90G10L2P1X[#25]Y[#23]Z[#26]
M99
%
看看这个正在用的
750525659
发表于 2023-8-7 21:55:55
像风一样飞 发表于 2023-4-16 08:29
人家机床是横着摆放的,XY的方向和你的方向相差九十度,宏的算法不单单是把#1改成#2,问题在X轴和Y轴的运算 ...
靠谱{:handshake:}
212353414
发表于 2023-9-16 09:31:37
宏能否分享下?