Advertisement
Guest User

Untitled

a guest
Jan 15th, 2020
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 3.83 KB | None | 0 0
  1. --- delme.txt   2020-01-15 08:47:11.464750000 +0000
  2. +++ "pocket nc.cps" 2020-01-15 08:48:46.530650300 +0000
  3. @@ -4,8 +4,8 @@
  4.  
  5.    Pocket NC post processor configuration.
  6.  
  7. -  $Revision: 42473 905303e8374380273c82d214b32b7e80091ba92e $
  8. -  $Date: 2019-09-04 00:46:02 $
  9. +  $Revision: 42623 7d0467ea3f2bde989ba0ea01849c82dbe0ce81f2 $
  10. +  $Date: 2020-01-09 16:17:13 $
  11.    
  12.    FORKID {B9F40C50-EBFF-4547-90FF-CAF4C01C8E30}
  13.  */
  14. @@ -58,11 +58,11 @@
  15.  
  16.  // user-defined property definitions
  17.  propertyDefinitions = {
  18. -  writeMachine: {title:"Write machine", description:"Output the machine settings in the header of the code.", group:0, type:"boolean"},
  19. -  writeTools: {title:"Write tool list", description:"Output a tool list in the header of the code.", group:0, type:"boolean"},
  20. -  showSequenceNumbers: {title:"Use sequence numbers", description:"Use sequence numbers for each block of outputted code.", group:1, type:"boolean"},
  21. -  sequenceNumberStart: {title:"Start sequence number", description:"The number at which to start the sequence numbers.", group:1, type:"integer"},
  22. -  sequenceNumberIncrement: {title:"Sequence number increment", description:"The amount by which the sequence number is incremented by in each block.", group:1, type:"integer"},
  23. +  writeMachine: {title:"Write machine", description:"Output the machine settings in the header of the code.", group:1, type:"boolean"},
  24. +  writeTools: {title:"Write tool list", description:"Output a tool list in the header of the code.", group:1, type:"boolean"},
  25. +  showSequenceNumbers: {title:"Use sequence numbers", description:"Use sequence numbers for each block of outputted code.", group:2, type:"boolean"},
  26. +  sequenceNumberStart: {title:"Start sequence number", description:"The number at which to start the sequence numbers.", group:2, type:"integer"},
  27. +  sequenceNumberIncrement: {title:"Sequence number increment", description:"The amount by which the sequence number is incremented by in each block.", group:2, type:"integer"},
  28.    optionalStop: {title:"Optional stop", description:"Outputs optional stop code during when necessary in the code.", type:"boolean"},
  29.    separateWordsWithSpace: {title:"Separate words with space", description:"Adds spaces between words if 'yes' is selected.", type:"boolean"},
  30.    useRadius: {title:"Radius arcs", description:"If yes is selected, arcs are outputted using radius values rather than IJK.", type:"boolean"},
  31. @@ -77,12 +77,14 @@
  32.    useG0: {title:"Use G0", description:"Specifies that G0 rapid moves should be output. Highfeed G1s will be output when disabled.", type:"boolean"},
  33.    machineModel: {
  34.      title: "Machine model",
  35. -    description: "Select the machine model.",
  36. +    description: "Select the machine model.  V1 and V2 have a maximum RPM of 10,000 RPM, V2-50 has a maximum RPM of 50,000 RPM",
  37.      type: "enum",
  38.      values:[
  39.        {title:"V1", id:"V1"},
  40. -      {title:"V2", id:"V2"}
  41. -    ]
  42. +      {title:"V2-10", id:"V2"},
  43. +      {title:"V2-50", id:"V2-50"}
  44. +    ],
  45. +    group:0
  46.    }
  47.  };
  48.  
  49. @@ -216,9 +218,12 @@
  50.    if (properties.machineModel == "V1") {
  51.      spindleMin = 65;
  52.      spindleMax = 10000;
  53. -  } else {
  54. +  } else if (properties.machineModel == "V2") {
  55.      spindleMin = 2000;
  56.      spindleMax = 10000;
  57. +  } else {
  58. +    spindleMin = 2000;
  59. +    spindleMax = 50000;
  60.    }
  61.  
  62.    if (true) { // only one kind of machine
  63. @@ -587,7 +592,9 @@
  64.  function remapToABC(currentABC, previousABC) {
  65.    var both = machineConfiguration.getABCByDirectionBoth(machineConfiguration.getDirection(currentABC));
  66.    var abc1 = machineConfiguration.remapToABC(both[0], previousABC);
  67. +  abc1 = machineConfiguration.remapABC(abc1);
  68.    var abc2 = machineConfiguration.remapToABC(both[1], previousABC);
  69. +  abc2 = machineConfiguration.remapABC(abc2);
  70.    if (Vector.diff(abc1, previousABC).length < Vector.diff(abc2, previousABC).length) {
  71.      return abc1;
  72.    } else {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement