Author Topic: G31 will run twice only  (Read 2291 times)

0 Members and 1 Guest are viewing this topic.

Offline thespindoctor

  • Active Member
  • Posts: 292
    • View Profile
    • The Spin Doctor
G31 will run twice only
« on: April 02, 2017, 11:28:37 AM »
g31 will only run 2 times.  Is this a bug in the ess plugin??


Quote

inst = mc.mcGetInstance()

mc.mcCntlGcodeExecuteWait(inst,"G90G00 X-4.2 Y-.6") --position at beginning at pin setpoint

mc.mcCntlProbeFileOpen(inst, "C:\\mach4Hobby\\GcodeFiles\\KFCProbeValues.csv","%.4AXIS_ %.4AXIS_Y\n", true)

     mc.mcCntlGcodeExecuteWait(inst,"G31 Y-.65 F20.0")
     mc.mcCntlGcodeExecuteWait(inst,"G91G00 X-.1 Y.07")
     mc.mcCntlGcodeExecuteWait(inst,"G90")

     mc.mcCntlGcodeExecuteWait(inst,"G31 Y-.65 F20.0")
     mc.mcCntlGcodeExecuteWait(inst,"G91G00 X-.1 Y.07")
     mc.mcCntlGcodeExecuteWait(inst,"G90")

     mc.mcCntlGcodeExecuteWait(inst,"G31 Y-.65 F20.0")
     mc.mcCntlGcodeExecuteWait(inst,"G91G00 X-.1 Y.07")
     mc.mcCntlGcodeExecuteWait(inst,"G90")


mc.mcCntlProbeFileClose(inst) --close probe file


Offline thespindoctor

  • Active Member
  • Posts: 292
    • View Profile
    • The Spin Doctor
Re: G31 will run twice only
« Reply #1 on: April 02, 2017, 01:34:17 PM »
Working but not sure what I did different!