Hello Guest it is March 28, 2024, 09:49:26 AM

Author Topic: Random Fixture Offsets  (Read 4096 times)

0 Members and 1 Guest are viewing this topic.

Re: Random Fixture Offsets
« Reply #10 on: May 25, 2016, 06:07:37 PM »
I thought I had this figured out.  Today when I hit my "Zero All" button with all axes zero'd and homed, it actually moves the machine to X1 Y1.  Here's the code.  Hitting the individual zero buttons works as it should.

inst = mc.mcGetInstance()
rc = mc.mcAxisSetPos(inst, 0, 0)
rc = mc.mcAxisSetPos(inst, 1, 0)
rc = mc.mcAxisSetPos(inst, 2, 0)
Re: Random Fixture Offsets
« Reply #11 on: May 25, 2016, 06:17:28 PM »
OK...So I moved the script above from the left up event to the clicked event and it's once again working as it should.  It must have been calling another script somewhere in the system.