rzkz2011 发表于 2012-11-30 09:45:17

mach3:有一行 vb脚本程序不执行

在这段程序中code "g0 xa yb"    不执行。怎么才能执行这样的代码?请各位大侠帮忙看看。

全部VB脚本如下:
Dim a AsInteger
Dim b AsInteger
Dim c AsInteger
Dim d AsInteger
Open"E:\Code_CNC\123.txt"For Input As #1
Do While Not EOF(1)
   Line Input #1,a
Line Input #1,b
Line Input #1,c
   Line Input #1,d
Loop
Close #1
code "g0 xa yb"    '此代码软件不执行
Code "(矩阵钻孔)" '在信息栏提示工作内容
Code "g0 x10 y10"
Code "g0 z3"
Code "g0 x0 y0"
code"g0 z0"

zqNightCAT 发表于 2012-11-30 17:56:42

code "g0 x" &a &" y" &b

rzkz2011 发表于 2012-11-30 22:51:30

zqNightCAT 发表于 2012-11-30 17:56 static/image/common/back.gif
code "g0 x" &a &" y" &b

谢谢了,
我试试

zyzsorry 发表于 2012-12-1 07:49:33

不明白干嘛的。还要好好学习啊。VB里面也没这东西啊?难道VB我白学了?
页: [1]
查看完整版本: mach3:有一行 vb脚本程序不执行