Hi @werkplaats2Q7LY
When you are using a post that is updated, you can search for the function onDefineMachine.
And near the bottom of the function we may have, or we can add a code for defining the home position used by G53/G28 depending on your selection.
Example of this code
function defineMachine() {
var useTCP = true;
if (false) { // note: setup your machine here
var aAxis = createAxis({coordinate:0, table:true, axis:[1, 0, 0], range:[-120, 120], preference:1, tcp:useTCP});
...
Shortening the code to show the important part
...
machineConfiguration.setMultiAxisFeedrate(
useTCP ? FEED_FPM : getProperty("useDPMFeeds") ? FEED_DPM : FEED_INVERSE_TIME,
9999.99, // maximum output value for inverse time feed rates
getProperty("useDPMFeeds") ? DPM_COMBINATION : INVERSE_MINUTES, // INVERSE_MINUTES/INVERSE_SECONDS or DPM_COMBINATION/DPM_STANDARD
0.5, // tolerance to determine when the DPM feed has changed
1.0 // ratio of rotary accuracy to linear accuracy for DPM calculations
);
setMachineConfiguration(machineConfiguration);
}
/* home positions */
// machineConfiguration.setHomePositionX(toPreciseUnit(0, IN));
// machineConfiguration.setHomePositionY(toPreciseUnit(0, IN));
// machineConfiguration.setRetractPlane(toPreciseUnit(0, IN));
}
}
// End of machine configuration logic
And we will change it to this one
function defineMachine() {
var useTCP = true;
if (false) { // note: setup your machine here
var aAxis = createAxis({coordinate:0, table:true, axis:[1, 0, 0], range:[-120, 120], preference:1, tcp:useTCP});
...
Shortening the code to show the important part
...
machineConfiguration.setMultiAxisFeedrate(
useTCP ? FEED_FPM : getProperty("useDPMFeeds") ? FEED_DPM : FEED_INVERSE_TIME,
9999.99, // maximum output value for inverse time feed rates
getProperty("useDPMFeeds") ? DPM_COMBINATION : INVERSE_MINUTES, // INVERSE_MINUTES/INVERSE_SECONDS or DPM_COMBINATION/DPM_STANDARD
0.5, // tolerance to determine when the DPM feed has changed
1.0 // ratio of rotary accuracy to linear accuracy for DPM calculations
);
setMachineConfiguration(machineConfiguration);
}
/* home positions */
machineConfiguration.setHomePositionX(toPreciseUnit(0, MM)); // ADSK : uncomment the code, and eventually change the value, and set the unit to millimeter
machineConfiguration.setHomePositionY(toPreciseUnit(0, MM)); // ADSK : uncomment the code, and eventually change the value, and set the unit to millimeter
machineConfiguration.setRetractPlane(toPreciseUnit(1250, MM)); // ADSK : uncomment the code, and eventually change the value, and set the unit to millimeter
}
}
// End of machine configuration logic
With an older post, with the kinematic defined at the beginning of the onOpen function, then this will be done there.
Cheers.
______________________________________________________________
If my post answers your question, please click the "Accept Solution" button. This helps everyone find answers more quickly!