数控车床宏程序培训

2024-12-15 01:43:14
推荐回答(4个)
回答1:

就知道要钱,b类宏不知道的免费问我。不提供操作更是纸上谈兵。对你学一点宏程序还要交钱学,还有学了1年很是怀疑。这东西要是数学的参数方程和函数概念很清楚,再有点c语言的基础,一个月可以理论上掌握。

回答2:

还要1K啊,,不早点找我。这是我的两个程式。
%
O9108
IF[#7EQ#0]GOTO301
IF[#11EQ#0]GOTO301
IF[#18EQ#0]GOTO301
IF[#26EQ#0]GOTO301
IF[#2EQ#0]THEN#2=1.(DEFAULT B)
IF[#6EQ#0]THEN#6=.75
IF[#8EQ#0]THEN#8=1.
IF[#9EQ#0]THEN#9=#4109
IF[#17EQ#0]THEN#17=#18-#26
IF[#19EQ#0]THEN#19=#9*.5
IF[#2LT0]GOTO302
IF[#6LT0]GOTO302
IF[#7LT0]GOTO302
IF[#11LT0]GOTO302
IF[#17LT0]GOTO302
IF[#11LE#7]GOTO302
IF[#18LT#26]GOTO302
IF[#4003EQ91.]GOTO303(G91)
#100=.00001
#101=#18
#102=#5001
#103=#5002
#104=#5003
#105=#4001
#110=#11/2.-#7/2.
#130=#110*.7
#131=COS[15.]*#130
#132=SIN[15.]*#130
G0G90Z[#101+#2]
#18=#18-#17
IF[#18LT#26]THEN#18=#26
WHILE[#18GE[#26-#100]]DO1
G1Z#18F#19
IF[#7EQ0]GOTO4
#111=#110/FUP[#110/[#7*#6]]
#112=#111
WHILE[#112LE[#110-#111+#100]]DO2
G1X[#102+#112]F#9
G3I-#112
#112=#112+#111
END2
N4G1X[#102+#110-#130+#131]Y[#103-#132]F#9
G3X[#102+#110]Y#103I-#131J#132
I-#110
#108=1.9
WHILE[#108LE#8]DO3
I-#110
#108=#108+1.
END3
X[#102+#110-#130+#131]Y[#103+#132]I-#130
G1X#102Y#103
IF[#18EQ#26]GOTO3
#18=#18-#17
IF[#18GE#26]GOTO2
#18=#26
N2IF[#23EQ#0]GOTO6
G0Z[#101+#2]
Z[#18+#17+.1](OFFSET[0.1])
N6END1
N3#18=#101
G0Z#104
G#105
GOTO99
N301#3000=10(DATA LACK)
N302#3000=11(DATA ERROR)
N303#3000=13(MODAL G91, [G66...G67])
N99M99(END)(2009/07)
%
O0084(X/Y/Z/B/C//W0)
(B,C AXIS +- MODIFY/N1...N5)
IF[#24EQ#0]THEN#24=0.
IF[#25EQ#0]THEN#25=0.
IF[#26EQ#0]THEN#26=0.
IF[#2EQ#0]THEN#2=0.
IF[#3EQ#0]THEN#3=0.
IF[#23EQ#0]GOTO1
G10G90L2P2X#5221Y#5222Z#5223B#5224C#5225
N1#157=-#5244(B AXIS CW=+,#5244=+)
N2#158=#2(B AXIS CW=+,#2=-)
N3#159=-#3(C AXIS CW=+,#3=-)
#160=360.-#157(BCD)
#101=#5241+#24-#501(AB)
#102=#5242+#25-#502(,AB)
#103=#5243+#26-#503(BC)
#104=ATAN[#101]/[#103]-#160(ACD)
#111=SQRT[#101*#101+#103*#103](AC)
#161=SIN[#104]*#111(AD)
#113=SQRT[#111*#111-#161*#161](CD)
#114=SQRT[#161*#161+#102*#102](,AD)
#116=ATAN[#102]/[#161](,BDA)
#140=COS[#116+#159]*#114(RC DA)
#141=SIN[#160+#158]*#113(RB DH)
#142=COS[#160+#158]*#113(RB HC)
#143=SIN[#160-270.+#158]*#140(RC DQ)
#144=SIN[#116+#159]*#114(RC ,BA)
#145=COS[#160-270.+#158]*#140(RC QA)
#151=#501+#141+#143
#152=#502+#144
#153=#503+#142+#145
N4#154=#5244+#158(B AXIS CW=+,#158=-)
N5#155=#5245-#159(C AXIS CW=+,#159=-)
G10G90L2P3X#151Y#152Z#153B#154C#155
#2=#0
#3=#0
#24=#0
#25=#0
#26=#0
#23=#0
M99(2008/04)

回答3:

学校学的比你这精通多了

回答4:

宏程序很简单啊,你不会骗人吧!