User Tools

Site Tools


mp:lathe_matrix

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mp:lathe_matrix [2021/10/19 15:28] russellmp:lathe_matrix [2023/01/19 15:52] (current) allan
Line 1: Line 1:
 ====== Lathe Config Matrix ====== ====== Lathe Config Matrix ======
  
-Any supplementary info on this post section goes hereThe toggles in this section should be used first //instead of changing any string selectors for output in the post.// As these settings are specific to spindle/turret/toolpath type changing here prevents a change affecting unwanted toolpath types and spindles.+//Any supplementary info on this post section goes here//\\  
 +The toggles in this section should be used first //instead of changing any string selectors (see below example) for output in the post.//\\  
 +Ex: don't ever change the following section in a lathe post, as these controls are in the sections below: 
 + 
 +<code> 
 +# Select work plane G code 
 +sg17    : "G17"      #XY plane code 
 +sg19    : "G19"      #YZ plane code 
 +sg18    : "G18"      #XZ plane code 
 +sgplane : ""            #Target string 
 + 
 +fstrsel sg17 plane$ sgplane 3 -1 
 +</code> 
 + 
 +All below settings are specific to spindle/turret/toolpath type. Changing these prevents a change affecting unwanted toolpath types and spindles.
 Note, all changes are made in the final sections, the initial sections are just descriptions and notes. Note, all changes are made in the final sections, the initial sections are just descriptions and notes.
  
Line 12: Line 26:
 </code> </code>
  
-lathetype determines which axis combo section is used below, based on the axis combos of the machine def. Don't worry about the numbering, as the turret/spindle labels are accurate in the matrix section.+''lathetype'' determines which axis combo section is used below, based on the axis combos of the machine def. Don't worry about the numbering, as the turret/spindle labels are accurate in the matrix section.
  
 <code> <code>
Line 33: Line 47:
 </code> </code>
  
-The below section dictates the G2/G3 and G41/G42 directions on each plane. These are linked so they change together when toggled. It is not typical for G2/G3 and G41/G42 to be unlinked in direction. Switching C/D/E for any toolpath type switches the compensation for that toolpath type. ex: setting to 1 for "Right Face cut" will flip the G2/G3 and G41/G42 directions for only "Right Face cut" toolpaths. +The below section dictates the G2/G3 and G41/G42 directions on each plane. These are linked so they change together when toggled. It is not typical for G2/G3 and G41/G42 to be unlinked in direction. Switching C/D/E for any toolpath type switches the compensation for that toolpath type. ex: setting to 1 for "Right Face cut" will flip the G2/G3 and G41/G42 directions for only "Right Face cut" toolpaths. See [[mp:planes| the convention for arcs/planes]] for reference.
  
 <code> <code>
Line 41: Line 55:
 </code> </code>
  
-The below section changes the plane selections associated with each mastercam plane. The convention here follows mastercam standard milling planes. +The below section changes the plane selections associated with each mastercam plane. The convention here follows mastercam standard milling ''plane$'': 
-Plane 0 - the plane of the current toolplane, so 2D arcs in the toolpath are plane 0+ 
 +Plane 0 - the XY plane of the current toolplane in milling pathsor the basic profile turning plane of turning toolpaths. Set to G17/G18/G19 by toggle.\\  
 +Face milling - typically G17 XY plane\\  
 +Cross milling - typically G19 YZ plane\\ 
 +Turning - typically G18 XZ plane\\ 
 + 
 +Plane 1 - the YZ plane of the current toolplane in milling paths. Normally NA for turning paths. Set to G17/G18/G19 by toggle.\\  
 +Face milling - typically G19 YZ plane\\  
 +Cross milling - typically G17 XY plane\\ 
 +Turning - normally not allowed to be anything but G18, so is forced to G18 XZ plane\\ 
 + 
 +Plane 2 - the XZ plane of the current toolplane in milling paths. Normally NA for turning paths. Set to G17/G18/G19 by toggle.\\  
 +Face milling - typically G18 XZ plane\\  
 +Cross milling - typically G18 XZ plane\\ 
 +Turning - normally not allowed to be anything but G18, so is forced to G18 XZ plane\\
  
 <code> <code>
Line 49: Line 77:
 # H - Plane 2, 0 = G17, 1 = G19, 2 = G18 # H - Plane 2, 0 = G17, 1 = G19, 2 = G18
 </code> </code>
 +
 +The following section is to flip axis directions/signs for XYZ. For some reason CNC split into planes, plane 0/1/2. I can't see a reason for this and generally I/L/O for the X axis for example should all be switched in the same manner if changed. (I/L/O)  (J/M/P)  (K/N/Q)  should all be set the same as groupings to keep the axes consistent.
 +Perhaps this format can allow for special cases, where an axis flips on a certain type of cut, but we have not run into this.
  
 <code> <code>
Line 62: Line 93:
 # Q - Plane 2, Z axis, 0 = normal, 1 = switch sign from basic # Q - Plane 2, Z axis, 0 = normal, 1 = switch sign from basic
 </code> </code>
 +
 +The below section is only in CQ posts. Allows rad/diameter per axis to be controlled by turret, spindle and type of cut. Note as well the dia_mult_interp override setting for "R - X-axis" that can affect Face/Cross interpolation G112/G107 type cycles only. If dia_mult_interp is set to 2 the table values for "R - X-axis" are not changed during G112/G107 type cycles.
  
 <code> <code>
Line 67: Line 100:
 # S - Y axis, 0 = radius, 1 = Diameter  (y_mult)   - MU-0042 # S - Y axis, 0 = radius, 1 = Diameter  (y_mult)   - MU-0042
 # T - Z axis, 0 = radius, 1 = Diameter  (z_mult)   - MU-0042 # T - Z axis, 0 = radius, 1 = Diameter  (z_mult)   - MU-0042
-</code> 
  
-<code> 
 dia_mult_interp : 2 #X axis face interp, 0 = radius dia_mult_interp : 2 #X axis face interp, 0 = radius
                     #MU-0055             1 = diameter                     #MU-0055             1 = diameter
                     #                    2 = not unique, set in table below                     #                    2 = not unique, set in table below
 </code> </code>
 +
 +use_only_tl writes the 1st matrix section settings identically to every turret/spindle section
  
 <code> <code>
Line 80: Line 113:
                     #When configuring for multi-spindle/turret set to 0                     #When configuring for multi-spindle/turret set to 0
 </code> </code>
 +
 +All settings are changed below based on above descriptions. The standard settings are listed below. Note the 4 sections conform to lathtype as described above and to the four main axis combos in lathe machine definitions.
  
 <code> <code>
mp/lathe_matrix.1634657299.txt.gz · Last modified: 2021/10/19 15:28 by russell