This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| mp:lathe_matrix [2021/10/19 15:12] – russell | mp: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 here. | + | //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: | ||
| < | < | ||
| + | # Select work plane G code | ||
| + | sg17 : " | ||
| + | sg19 : " | ||
| + | sg18 : " | ||
| + | sgplane : "" | ||
| + | fstrsel sg17 plane$ sgplane 3 -1 | ||
| + | </ | ||
| + | |||
| + | All below settings are specific to spindle/ | ||
| + | Note, all changes are made in the final sections, the initial sections are just descriptions and notes. | ||
| + | |||
| + | < | ||
| #region Turret and Spindle Settings Arc / Comp / Plane / Spindle direction | #region Turret and Spindle Settings Arc / Comp / Plane / Spindle direction | ||
| Line 10: | Line 24: | ||
| # Switch strings based on turret position top/ | # Switch strings based on turret position top/ | ||
| # Turret position is based on the Mastercam settings (see lathtype). | # Turret position is based on the Mastercam settings (see lathtype). | ||
| - | |||
| </ | </ | ||
| - | 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/ | + | '' |
| < | < | ||
| Line 23: | Line 36: | ||
| </ | </ | ||
| + | The below sections dictate the changes you can make and the setting values are provided. 0,1,2 are the only acceptable toggles in the matrix section. | ||
| < | < | ||
| - | |||
| # Strings are re-assigned for output in the routine psw_str_mult. | # Strings are re-assigned for output in the routine psw_str_mult. | ||
| # The string variable sw_string holds the place position value to determine | # The string variable sw_string holds the place position value to determine | ||
| Line 32: | Line 45: | ||
| # A - Unassigned. c_axistype set in machine def | # A - Unassigned. c_axistype set in machine def | ||
| # B - Spindle direction, 0 = normal, 1 = reverse | # B - Spindle direction, 0 = normal, 1 = reverse | ||
| + | </ | ||
| + | |||
| + | 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: | ||
| + | |||
| + | < | ||
| # C - Plane 0 arc/comp, 0 = normal, 1 = switch | # C - Plane 0 arc/comp, 0 = normal, 1 = switch | ||
| # D - Plane 1 arc/comp, 0 = normal, 1 = switch | # D - Plane 1 arc/comp, 0 = normal, 1 = switch | ||
| # E - Plane 2 arc/comp, 0 = normal, 1 = switch | # E - Plane 2 arc/comp, 0 = normal, 1 = switch | ||
| + | </ | ||
| + | |||
| + | The below section changes the plane selections associated with each mastercam plane. The convention here follows mastercam standard milling '' | ||
| + | |||
| + | Plane 0 - the XY plane of the current toolplane in milling paths, or 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\\ | ||
| + | |||
| + | < | ||
| # F - Plane 0, 0 = G17, 1 = G19, 2 = G18 | # F - Plane 0, 0 = G17, 1 = G19, 2 = G18 | ||
| # G - Plane 1, 0 = G17, 1 = G19, 2 = G18 | # G - Plane 1, 0 = G17, 1 = G19, 2 = G18 | ||
| # H - Plane 2, 0 = G17, 1 = G19, 2 = G18 | # H - Plane 2, 0 = G17, 1 = G19, 2 = G18 | ||
| + | </ | ||
| + | |||
| + | The following section is to flip axis directions/ | ||
| + | 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. | ||
| + | |||
| + | < | ||
| # Decimal (required) | # Decimal (required) | ||
| # I - Plane 0, X axis, 0 = normal, 1 = switch sign from basic | # I - Plane 0, X axis, 0 = normal, 1 = switch sign from basic | ||
| Line 48: | Line 92: | ||
| # P - Plane 2, Y axis, 0 = normal, 1 = switch sign from basic | # P - Plane 2, Y axis, 0 = normal, 1 = switch sign from basic | ||
| # Q - Plane 2, Z axis, 0 = normal, 1 = switch sign from basic | # Q - Plane 2, Z axis, 0 = normal, 1 = switch sign from basic | ||
| + | </ | ||
| + | |||
| + | The below section is only in CQ posts. Allows rad/ | ||
| + | |||
| + | < | ||
| # R - X axis, 0 = radius, 1 = Diameter | # R - X axis, 0 = radius, 1 = Diameter | ||
| # S - Y axis, 0 = radius, 1 = Diameter | # S - Y axis, 0 = radius, 1 = Diameter | ||
| Line 55: | Line 104: | ||
| # | # | ||
| # 2 = not unique, set in table below | # 2 = not unique, set in table below | ||
| + | </ | ||
| + | use_only_tl writes the 1st matrix section settings identically to every turret/ | ||
| + | |||
| + | < | ||
| use_only_tl : 0 #Use only Top turret/Left spindle settings (below) for | use_only_tl : 0 #Use only Top turret/Left spindle settings (below) for | ||
| #all Mastercam turret/ | #all Mastercam turret/ | ||
| #When configuring for multi-spindle/ | #When configuring for multi-spindle/ | ||
| + | </ | ||
| + | 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. | ||
| + | |||
| + | < | ||
| # | # | ||
| scase_tl_c1 | scase_tl_c1 | ||