qq314941766
发表于 2017-11-9 15:12:08
所罗门_x 发表于 2017-11-9 14:54
你这题目很牛叉,不是一般人能做出来的,看你的宏程序个人感觉也就一般子程序模式,没看懂它哪里会自己读取 ...
终于有人说到重点了,可不是嘛,就是没看到日期代码,感觉没用
正在连接...
发表于 2017-11-9 15:42:06
qq314941766 发表于 2017-11-9 13:07
O2005
T01M6
G90G54
你用仿真软件仿一下就知道,不过这个应该是4位序列号的。
xiaobing86203
发表于 2017-11-9 19:20:35
看完一脸懵逼,有木有
福哥ne
发表于 2017-11-29 14:15:03
前两天正好用到,提示下要用FIX函数
qq314941766
发表于 2017-11-29 14:31:12
能发上来研究研究么:loveliness:
福哥ne
发表于 2017-11-29 17:09:50
(#525= SHI)
(#625= RI)
(#725= YUE)
N2017 (shixun huan)
IF[#525GE24]GOTO1115
GOTO1116
N1115
#525=0.
#625=#625+1.
N1116
#526=FIX[#525/10.]
#527=[#525-[#526*10.]]
#525=#525+1.
N2018 (ri xun huan)
IF[#625GE32]GOTO1125
GOTO1126
N1125
#625=1.
#725=#725+1.
N1126
#626=FIX[#625/10.]
#627=[#625-[#626*10.]]
N2019 (yue xun huan)
IF[#725GE13]GOTO1135
GOTO1136
N1135
#725=1.
N1136
#726=FIX[#725/10.]
#727=[#725-[#726*10.]]
N175(KEZI D6.0)
T24 M6
T31
G00 G90 G54 X27.4 Y-81. S4000 M03
G43 H Z100. M08
Z15.
Z3.
G01 Z-0.1 F500
X59.
Y-87.
X27.4
Y-81.
G01 Z3.
G52 X29.3 Y-82.5
#500=1007(7 NIAN)
M98P7000
G52 X31.7 Y-82.5
#500=(1 YUE)
M98 P7000
G52 X34.1 Y-82.5
#500=(1 YUE)
M98 P7000
G52 X36.5 Y-82.5
#500=(2 RI)
M98 P7000
G52 X38.9 Y-82.5
#500=(1 RI)
M98 P7000
G52 X41.3 Y-82.5
#500=(0 SHI)
M98 P7000
G52 X43.7 Y-82.5
#500=(6 SHI)
M98 P7000
G52 X0. Y0.
G00 Z50.0
M05
M9
G91 G28 Z0
M01
M30
O7000
GOTO#500
N1000(0)
G00 X0.52 Y-2.942
Z3.
G01 Z-0.1 F500
X0.623 Y-2.995
X0.828
X1.032 Y-2.889
X1.342 Y-2.355
X1.446 Y-1.714
Y-1.286
X1.342 Y-0.645
X1.032 Y-0.111
X0.828 Y-0.005
X0.623
X0.418 Y-0.111
X0.108 Y-0.645
X0.005 Y-1.286
Y-1.714
X0.108 Y-2.355
X0.418 Y-2.889
X0.52 Y-2.942
G00 Z5.
M99
N1001(1)
G00 X0.564 Y-3.
Z3.
G01 Z-0.1 F500
Y-0.017
X0.004 Y-0.86
G00 Z5.
M99
N1002(2)
G00 X-0. Y-0.538
Z3.
G01 Z-0.1 F500
X0.099 Y-0.213
X0.1 Y-0.211
X0.204 Y-0.104
X0.206 Y-0.102
X0.518 Y0.005
X0.934
X1.245 Y-0.102
X1.247 Y-0.104
X1.35 Y-0.211
X1.352 Y-0.213
X1.455 Y-0.536
Y-0.752
X1.351 Y-1.074
X0.01 Y-2.995
X1.451
G00 Z5.
M99
N1003(3)
G00 X0. Y0.
Z3.
G01 Z-0.1 F500
X0.83
X1.141 Y-0.102
X1.144 Y-0.106
X1.248 Y-0.429
Y-1.073
X1.144 Y-1.394
X1.141 Y-1.398
X0.844 Y-1.5
X-0.
X0.844
X1.141 Y-1.602
X1.144 Y-1.606
X1.248 Y-1.929
Y-2.573
X1.144 Y-2.894
X1.141 Y-2.898
X0.829 Y-3.005
X-0.
G00 Z5.
M99
N1004(4)
G00 X1.455 Y-2.15
Z3.
G01 Z-0.1 F500
X1.
Y-3.
Y-1.5
Y-2.15
X-0.
X-0.005 Y-2.141
X0.72 Y-0.
G00 Z5.
M99
N1005(5)
G00 X-0. Y-3.
Z3.
G01 Z-0.1 F500
X0.828
X1.136 Y-2.889
X1.238 Y-2.571
Y-1.929
X1.136 Y-1.611
X0.828 Y-1.505
X-0.
X-0.005 Y-1.5
Y0.
X1.243
G00 Z5.
M99
N1006(6)
G00 X1.045 Y0.
Z3.
G01 Z-0.1 F500
X1.039 Y-0.004
X0.418 Y-0.539
X0.315 Y-0.646
X0.108 Y-1.073
X0.006 Y-1.495
X1.038
X1.349 Y-1.602
X1.352 Y-1.606
X1.455 Y-1.929
Y-2.359
X1.352 Y-2.68
X1.35 Y-2.682
X1.142 Y-2.897
X0.935 Y-3.004
X0.932 Y-3.005
X0.518
X0.516 Y-3.004
X0.307 Y-2.896
X0.1 Y-2.682
X0.099 Y-2.68
X-0.005 Y-2.357
Y-1.5
X-0.008 Y-1.495
G00 Z5.
M99
N1007(7)
G00 X0. Y0.
Z3.
G01 Z-0.1 F500
X1.45
X1.455 Y-0.001
X0.626 Y-3.001
G00 Z5.
M99
N1008(8)
G00 X0.356 Y-1.391
Z3.
G01 Z-0.1 F500
X0.508 Y-1.286
X0.309 Y-1.183
X0.099 Y-0.645
X0.306 Y-0.105
X0.622 Y0.005
X0.83
X1.141 Y-0.102
X1.352 Y-0.641
X1.144 Y-1.18
X0.942 Y-1.286
X0.508
X0.942
X1.246 Y-1.496
X1.455 Y-1.926
Y-1.929
Y-2.357
Y-2.359
X1.248 Y-2.788
X0.935 Y-3.004
X0.518
X0.204 Y-2.79
X-0.005 Y-2.359
Y-1.929
X0.203 Y-1.498
X0.356 Y-1.391
G00 Z5.
M99
N1009(9)
G00 X0.406 Y-2.997
Z3.
G01 Z-0.1 F500
X0.411 Y-2.996
X1.033 Y-2.461
X1.136 Y-2.354
X1.342 Y-1.927
X1.444 Y-1.505
X0.413
X0.102 Y-1.398
X0.099 Y-1.394
X-0.005 Y-1.071
Y-0.641
X0.099 Y-0.32
X0.1 Y-0.318
X0.309 Y-0.103
X0.516 Y0.004
X0.518 Y0.005
X0.932
X0.935 Y0.004
X1.143 Y-0.104
X1.35 Y-0.318
X1.352 Y-0.32
X1.455 Y-0.643
Y-1.5
X1.458 Y-1.505
G00 Z5.
M99
qq314941766
发表于 2017-11-29 18:01:36
感谢大哥分享,你用的是什么系统,是新代的吗?我有空放机台上试试
福哥ne
发表于 2017-11-30 08:36:15
跟系统没关系,看懂了就能活学活用
qq314941766
发表于 2017-11-30 09:36:41
:handshake,谢谢,因为我也不太懂,我研究研究。
hee3458
发表于 2017-12-7 21:45:36
时间是从哪里调出来的?