Community
HSM Post Processor Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Mach 3 Post customization - Where to set Homex, homey, retract plane

1 REPLY 1
Reply
Message 1 of 2
Anonymous
247 Views, 1 Reply

Mach 3 Post customization - Where to set Homex, homey, retract plane

Lines in question from mach3 cps file:

 

On open:

if (properties.useG28) {
// retract to safe plane
retracted = true;
writeBlock(gFormat.format(28), gAbsIncModal.format(91), "Z" + xyzFormat.format(machineConfiguration.getRetractPlane())); // retract
writeBlock(gAbsIncModal.format(90));
zOutput.reset();
}

 

Output value for retract plane in posted gcode:

N20 G28 G91 Z25.4

 

Z = 25.4 has not been set by me, and is way out of z range for the mill.

 

On end:

writeBlock(gAbsIncModal.format(90), gFormat.format(53), gMotionModal.format(0), homeX, homeY);
 

 Output in gcode:

N5210 G90 G53 G0 X101.6 Y101.6

 

homeX = 101.6 and homeY = 101.6  have not been set by me, and again are way out of range for the mill.

 

Where are these 'default values' coming from, and how do I change them?

 
Thanks
Tags (1)
1 REPLY 1
Message 2 of 2
bob.schultz
in reply to: Anonymous

It looks like you are using an older version of the Mach3 post.  Please download the latest version of the post from the online Post Library.

 

https://cam.autodesk.com/hsmposts?p=mach3mill

 

This will fix the problem if you are using G28 for the move to home position, though this does not explain why there are values stored in the home position and retract plane.  The only way to have values stored here is if you have a machine configuration defined in CAM or you manually define them in the post.  You can search the post for the following code, but I doubt it is there.

machineConfiguration.setHomePositionX(toPreciseUnit(1, IN));
machineConfiguration.setHomePositionY(toPreciseUnit(4, IN));
machineConfiguration.setRetractPlane(toPreciseUnit(4, IN));

If the post does not set the home position, then you have a machine configuration defined and it could cause problems if you are using G53 to move the axes home.



Bob Schultz
Sr. Post Processor Developer

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report