SETUP: AccelRate = 40000 ’将加速度设置为 40000 rpm/s DecelRate = 40000 ’将减速度设置为 40000 rpm/s RunSpeed = 1200 ’将速度设置为 1200 rpm IndexDist = 4096 ’将距离设置为 4096 步 InPosLimit = 100 ’将位置窗口设置为 +/-100 步 Enable = 1 ’软件驱动启用 NOTENABLED: 当 Enable = 0 ’如果 Enable 输入未激活 BDOut6 = 1 ’BDout6 闪烁 Pause(1) ’1 秒 BDOut6 = 0 ’然后关闭 Pause(1) ’1 秒 Wend ’直到启用输入激活 MOVE: 当 Inp7 = 0 时: Wend ’等待 Inp7 变高 当 Inp7 = 0 时, GoIncr '当 Inp7 变为低电平时移动 While InPosition <>1: Wend '等待移动完成 Goto MOVE '返回 MOVE
主要关键词