Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Background

Pathpilot is able to use parameterized and expression based programming in place of or with common G code commands. Two recommended resources on use of macro programming in Pathpilot are: the LinuxCNC documentation on G code syntax (http://linuxcnc.org/documents/ ) and the operator’s manual for your machine. Tormach makes every effort to maintain compatibility with LinuxCNC operation and the significant majority of our changes only add new functionality, however compatibility cannot be guaranteed and is at the sole discretion of Tormach.

This article is intended to detail a number of the additions to macro programming that Tormach has made from that of LinuxCNC.

Parameters

Tormach has created new named parameters that can be used in G code programs, their name and functions are listed here.

Parameter Name

Function

#<_motion_mode>

Returns the G value multiplied by 10 of G1/G2/G3/G5.2/G73/G80/G82/G83/G86/G87/G88/G89 (eg, G83 equals 830)

#<_plane>

Returns the G value multiplied by 10 of G17/G18/G19/G17.1/G18.1/G19.1 (eg, G18.1 equals 181)

#<_ccomp>

Returns the G value multiplied by 10 of G40/G41/G42 (eg, G40 equals 400)

#<_ccomp_diameter>

Returns the diameter applied by cutter compensation, equivalent to parameter #5410

#<_metric>

Returns 1 if G21 is on

#<_imperial>

Returns 1 if G20 is on

#<_absolute>

Returns 1 if G90 is on

#<_incremental>

Returns 1 if G91 is on

#<_inverse_time>

Returns 1 if G93 is on

#<_units_per_minute>

Returns 1 if G94 is on

#<_units_per_rev>

Returns 1 if G95 is on

#<_work_offset_number>

Returns 1-500 for the currently active work offset equivalent to G54.1 P#

#<_tool_offset>

Returns 1 if G43 is on

#<_retract_r_plane>

Returns 1 if G98 is set

#<_retract_old_z>

Returns 1 if G99 is set

#<_spindle_rpm_mode>

Returns 1 if G97 is on

#<_spindle_css_mode>

Returns 1 if G96 is on

#<_ijk_absolute_mode>

Returns 1 if G90.1 is on

#<_lathe_diameter_mode>

Returns 1 if G7 is on

#<_lathe_radius_mode>

Returns 1 if G8 is on

#<_spindle_on>

Returns 1 if the spindle is on

#<_spindle_cw>

Returns 1 if the spindle is on in the clockwise direction

#<_mist>

Returns 1 if M7 is on

#<_flood>

Returns 1 if M8 is on

#<_speed_override>

#<_feed_override>

#<_adaptive_feed>

#<_feed_hold>

#<_feed>

Returns the current active feedrate in the current machine units

#<_rpm>

Returns the current active RPM

#<_x>

Returns the current X position, equivalent to parameter #5420

#<_y>

Returns the current Y position, equivalent to parameter #5421

#<_z>

Returns the current Z position, equivalent to parameter #5422

#<_a>

Returns the current A position, equivalent to parameter #5423

#<_b>

Returns the current B position, equivalent to parameter #5424

#<_c>

Returns the current C position, equivalent to parameter #5425

#<_u>

Returns the current U position, equivalent to parameter #5426

#<_v>

Returns the current V position, equivalent to parameter #5427

#<_w>

Returns the current W position, equivalent to parameter #5428

#<_work_offset_x>

#<_work_offset_y>

#<_work_offset_z>

#<_work_offset_a>

#<_work_offset_b>

#<_work_offset_c>

#<_work_offset_u>

#<_work_offset_v>

#<_work_offset_w>

#<_tool_offset_x>

#<_tool_offset_y>

#<_tool_offset_z>

#<_tool_offset_a>

#<_tool_offset_b>

#<_tool_offset_c>

#<_tool_offset_u>

#<_tool_offset_v>

#<_tool_offset_w>

#<_axis_offset_x>

#<_axis_offset_y>

#<_axis_offset_z>

#<_axis_offset_a>

#<_axis_offset_b>

#<_axis_offset_c>

#<_axis_offset_u>

#<_axis_offset_v>

#<_axis_offset_w>

#<_x_machine>

#<_y_machine>

#<_z_machine>

#<_a_machine>

#<_b_machine>

#<_c_machine>

#<_u_machine>

#<_v_machine>

#<_w_machine>

#<_current_tool>

#<_current_pocket>

#<_value>

#<_value_returned>

#<_task>

#<_call_level>

#<_remap_level>

#<_probe_result>

Returns the result of a G38 probe result, equivalent to parameter #5070

#<_probe_x>

Returns the coordinates of a G38 probe trip, equivalent to parameter #5061

#<_probe_y>

Returns the coordinates of a G38 probe trip, equivalent to parameter #5062

#<_probe_z>

Returns the coordinates of a G38 probe trip, equivalent to parameter #5063

#<_probe_a>

Returns the coordinates of a G38 probe trip, equivalent to parameter #5064

  • No labels