51
Mach4 General Discussion / Re: Random Fixture Offsets
« on: May 25, 2016, 10:19:48 AM »If I hit Reference All, it 0's out the machine coordinates without moving an axis. IE: references in place, but I don't have motors connected either. Axes are enables so DRO's will move, but mo motors or motion controller connected. Seems like there should be a function to set machine zero to current position.If the simulator is your motion device, that is how it performs a 'home": it simply pauses for 1 second and then sets the axis position to zero.
If you are using a real motion device and do a "reference all axes (home)" and nothing moves (or the DROs don't indicate any motion since you have no motors connected), it sounds like either no home switches are configured, or you have the "Home in Place" column checked in the "Homing/Soft Limits" tab of the configuration dialog.
As far as setting each axis to zero, use the mcMotionSetPos() function. That not only sets the DRO to zero but (more importantly) tells the motion planner that the axis is at zero. Otherwise, as you've seen, Mach updates the offsets so that "DRO + offset" equals the motion planner's idea of the position.
Bob