edite post procesor hurco ending position.

edite post procesor hurco ending position.

werkplaats2Q7LY
Contributor Contributor
163 Views
1 Reply
Message 1 of 2

edite post procesor hurco ending position.

werkplaats2Q7LY
Contributor
Contributor

how can i change the ending postion in the new post processor i know it is some where her and i also tried already evrywhere where the 150 valeu stands nothing change somebody hwo can help me.

 

werkplaats2Q7LY_0-1662457439305.png

 

0 Likes
164 Views
1 Reply
Reply (1)
Message 2 of 2

serge.quiblier
Autodesk
Autodesk

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!



Serge.Q
Technical Consultant
cam.autodesk.com
0 Likes