Lathe Post Variables
Introduction
This topic contains all of the Lathe post variables used for post scripting or customizing posts processors.
The Lathe Post has been updated to version 10.0 as of BobCAD-CAM V26.
Post Variables for Lathe Machines
Commands: |
Description |
oldvars |
use old position variables and misc. variables. |
newvars |
use new position variables and misc. variables. |
force_x |
force the x value to be output next time even if modal. |
force_y |
force the y value to be output next time even if modal. |
force_z |
force the z value to be output next time even if modal. |
force_drill_z |
force the z value for drilling to be output next time even if modal. |
memo_xmove |
Memorize the current x movement for use later. |
memo_ymove |
Memorize the current y movement for use later. |
memorize_line_number |
Memorize sequence number for use later. |
memorized_line_number |
Use memorize sequence number. |
debug_on |
Turns on automatic debug comments in post output. |
debug_off |
Turns off automatic debug comments in post output. |
outputxmemo |
output the x move which was memorized |
outputymemo |
output the y move which was memorized |
start_add_block_delete |
Add block delete to all lines until stop_add_block_delete is used |
stop_add_block_delete |
Stop adding block delete that started from using start_add_block_delete |
force_no_add_spaces |
Force no spaces even when default is set to add spaces. |
default_add_spaces |
Set add spaces back to condition before force_no_add_spaces was called. |
output_tool_list |
Output tool list. |
Variables: |
|
Positioning |
|
rapid_move |
Output rapid move. |
cr |
C rapid with live tool, diameter and face machining. |
xr |
X rapid with live tool, diameter and face machining. |
zr |
Z rapid with live tool, diameter and face machining. |
crl |
C rapid with live tool, diameter and face machining. |
xrl |
X rapid with live tool, diameter and face machining. |
zrl |
Z rapid with live tool, diameter and face machining. |
xh |
X home position. |
zh |
Z home position. |
xhl |
X home position with live tooling. |
zhl |
Z home position with live tooling. |
home |
X, Z tool home position. |
prev_x |
Previous X position. |
prev_z |
Previous X position. |
rapid_to_pickup_z |
|
rapid_to_position_x |
|
rapid_to_position_z |
|
rapid_to_stock_feed_z |
|
rapid_iplane_face |
Rapid to iplane in face live tool (G0 Z.1) |
rapid_rplane_face |
Rapid to rplane in face live tool (G0 Z1.) |
rapid_iplane_diam |
|
rapid_rplane_diam |
|
pos_rpm |
Position move in RPM mode. |
pos_rpm_prev |
Position move with previous RPM. |
Line Numbers |
|
n |
Sequence number. |
n_forced |
Output sequence number even if Q. 228 is set to NO. |
n_first |
P word for the first line number of turning canned cycle. |
n_last |
Q word for the last line number of turning canned cycle. |
n_first_finish |
P word for the first line number of turning canned cycle output to finish pass. |
n_last_finish |
Q word for the last line number of turning canned cycle output to finish pass. |
Comments |
|
prog_n |
Program number. |
prog_name |
Program name. |
output_date |
Output current date. |
operation_name_comment |
Outputs the name of the operation in the CAM Tree |
feature_name_comment |
Outputs the name of the feature in the CAM Tree |
comment1 |
Job comment. |
comment2 |
Tool comment. |
comment3 |
Operation name. |
start_comment |
Output start of comment string. |
end_comment |
Output end of comment string. |
user_comment_1 |
outputs user comment 1 entered in the Current Settings |
user_comment_2 |
outputs user comment 2 entered in the Current Settings |
user_comment_3 |
outputs user comment 3 entered in the Current Settings |
user_comment_4 |
outputs user comment 4 entered in the Current Settings |
user_comment_5 |
outputs user comment 5 entered in the Current Settings |
user_comment_6 |
outputs user comment 6 entered in the Current Settings |
user_comment_7 |
outputs user comment 7 entered in the Current Settings |
user_comment_8 |
outputs user comment 8 entered in the Current Settings |
user_comment_9 |
outputs user comment 9 entered in the Current Settings |
user_comment_10 |
outputs user comment 10 entered in the Current Settings |
user_comment_11 |
outputs user comment 11 entered in the Current Settings |
user_comment_12 |
outputs user comment 12 entered in the Current Settings |
user_comment_13 |
outputs user comment 13 entered in the Current Settings |
user_comment_14 |
outputs user comment 14 entered in the Current Settings |
user_comment_15 |
outputs user comment 15 entered in the Current Settings |
Tools |
|
t |
Output first tool number without prefix. |
f_tool |
Canned cycle auto finish tool number. |
t1 |
Tool number + #260 (without "T" prefix) |
t2 |
Tool number + #261 (without "T" prefix) |
special |
Tool number with offset cancelled (ex. T0100) |
f_special |
Finish tool number with offset cancelled (ex. T0100) |
n_tool |
N word with tool number. |
n_ftool |
N word with finish tool number. |
first_tool |
First tool number without 'T' code. |
next_tool |
Next tool number without 'T' code. |
p_tool_num |
P word with tool number for G10 line. |
p_ftool_num |
P word with finish tool for G10 line. |
p_special |
P word G10 line tool number with offset cancelled. |
Feed Rate |
|
f |
Feed rate with prefix. |
finish_feed |
F word with finish cycle feed rate. |
rough_feed |
|
tap_feed_mode |
Assigned based on Q305, Output string from Q763 / Q764 |
canned_feed_rate |
Output canned cycle feed rate. |
tap_feed |
Holds tapping feedrate. Prefix from Q706 / Q707 depending on feed mode. |
M Codes |
|
coolant_on |
M8 if coolant used, null if coolant not used. |
coolant_off |
M9 if coolant used, null if coolant not used. |
live_spindle_on |
M code for live tool on. |
spindle_on |
M code for spindle on. |
spindle_off |
M code for spindle off (from block 784.) |
Offset |
|
cc |
Cutter compensation code (G41,G42). |
h |
Output length offset register with prefix. |
length_offset |
Output tool length compensation block |
Miscellaneous Codes |
|
s |
Output spindle speed with prefix "S1000". |
finish_s |
Output finish spindle speed with prefix "S1000". |
smax |
Maximum spindle speed. |
sp_on_css |
Spindle on using constant surface speed. |
sp_on_rpm |
Spindle on using RPM. |
spsp_code |
Spindle speed code (G96, G97). |
spindle_gear |
Output spindle gear. |
g112 |
Activate G112 live tooling mode. |
g113 |
Cancel G112 live tooling mode. |
mill_radius_string |
R word with live tool radius. |
out_css_rpm |
|
out_finish_css_rpm |
|
finish_spsp_code |
|
Canned Cycles (Drilling) |
|
g_canned_cycle |
Output code for canned cycle. |
g98_g99 |
Output G98, G99 codes. |
drill_depth |
Output drill depth. |
reference_plane |
Output reference plane with prefix. |
first_peck_drill_increment |
Output the first peck drill increment. |
peck_increment |
Outputs a double value for the peck increment with prefix (from line 842). |
peck_drill_increment |
Output peck drill increment. |
x_f |
Output code for X feed value with prefix. |
y_f |
Output code for Y feed value with prefix. |
dwell |
Dwell amount for hole making cycles, output as real number. |
Rough Canned Cycles |
|
n_first_rough |
word for the first line number of Roughing canned cycle. |
n_last_rough |
word for the last line number of Roughing canned cycle. |
rough_x_allowance |
Outputs a double value for the X axis allowance with prefix (from line 805). The output value is affected by post question 249. |
rough_z_allowance |
Outputs a double value for the Z axis allowance with prefix (from line 806). |
rough_depth_of_cut |
Outputs a double value for the depth of cut with prefix (from line 804). The value is output with no decimal point. |
rough_feed |
Outputs a double value for the programmed feed rate with prefix (from line 707). |
rough_depth_of_cut_two_line |
Outputs a double value for the depth of cut with prefix (from line 804). The value is output with no decimal point. |
rough_depth_of_cut_with_decimal |
Outputs a double value for the depth of cut with prefix (from line 804). The value is output with a decimal point. |
rough_depth_of_cut_two_line_decimal |
Outputs a double value for the depth of cut with prefix (from line 804). The value is output with a decimal point. |
rough_retract_amount |
Outputs a double value for the retract amount with prefix (from line 807). Retract value set on post line 411. |
roughing_depth_of_cut_x |
Outputs a double value for the X axis depth of cut with prefix (from line 823). |
roughing_depth_of_cut_z |
Outputs a double value for the Z axis depth of cut with prefix (from line 824). |
Canned Finish Cut |
|
finish_x_spring_pass_stock_diameter |
Outputs a double value for the X stock amount, defined in wizard, with prefix (from line 810). Value is output in diameter. |
finish_z_spring_pass_stock_diameter |
Outputs a double value for the Z stock amount, defined in wizard, with prefix (from line 811). |
finish_x_allowance |
Outputs a double value for the X axis allowance with prefix (from line 808). |
finish_z_allowance |
Outputs a double value for the Z axis allowance with prefix (from line 809). |
finish_number_of_cuts |
Outputs an integer value for the number of finish passes. The prefix, D, is always used. |
finish_x_spring_pass_stock_radius |
Outputs a double value for the X stock amount, defined in wizard, with prefix (from line 810). Value is output in radius. |
finish_z_spring_pass_stock_radius |
Outputs a double value for the Z stock amount, defined in wizard, with prefix (from line 811). |
finish_number_of_cuts_two_line |
Outputs an integer value for the number of finish passes. The prefix, R, is always used. |
Groove Canned Cycles |
|
groove_x_bottom |
Outputs a double value for the X axis bottom of the groove (X Stock to Leave affects this value) with prefix (from line 813). |
groove_z_bottom |
Outputs a double value for the Z axis bottom of the groove (Z Stock to Leave affects this value) with prefix (from line 814). |
groove_peck_increment |
Outputs a double value for the peck increment with prefix for grooving (from line 816). |
groove_depth_of_cut |
Outputs a double value for the stepover with prefix for grooving (from line 815). |
groove_retract_amount |
Outputs a double value for the retract amount defined on post block 412 with prefix (from line 812). |
groove_rvalue |
Outputs 0.00 to set groove relief amount or return amount depending on machine controller and cycle type. |
drill_dwell |
Outputs a double value for the dwell. |
first_peck |
Outputs a double value for the first peck amount with prefix (from line 841). |
peck_increment |
Outputs a double value for the peck increment with prefix (from line 842). |
peck_clearance |
Outputs a double value for the peck clearance with prefix (from line 826). |
peck_retract |
Outputs a double value for the peck retract with prefix (from line 827). |
Threading Canned Cycles |
|
thread_x2 |
final x diameter for threading cycles |
thread_z2 |
final z for threading cycles |
thread_angle_out_start |
outputs "M23" (from line 712) used in single line threading cycles |
thread_angle_out_end |
outputs "M24" (from line 713) used in single line threading cycles |
thread_height |
outputs the thread height with prefix from line 793 |
thread_height_decimal |
outputs the thread height with prefix from line 793 as a decimal value |
thread_first_cut |
outputs first depth of cut with prefix from line 792 |
thread_first_cut_decimal |
outputs first depth of cut with prefix from line 792 as a decimal value |
thread_lead |
outputs the thread feedrate value which equals the lead (ex F.05) |
thread_angle_in |
outputs the angle in method (ex. A60 for single block, P011060 for two line) prefix from line 794 |
thread_angle_in_decimal |
outputs the angle in method (ex. A60 for single block, P011060 for two line) prefix from line 794 as a decimal value |
thread_last_cut |
used in two line cycles for last depth of cut with prefix from line 795 |
thread_machine_allowance |
outputs fixed amount for finish allowance using prefix from line 796 and value from 413 |
thread_g33_gcode |
|
thread_g33_xmove |
|
thread_g33_zmove |
|
thread_g33_feedrate |
|
taper_height |
Use this for Tapered Treads - Prefix comes from the 817 block |
General Canned Cycles |
|
peck_increment |
Outputs a double value for the peck increment with prefix (from line 842). Can be used with various canned cycles. |
Profile Start-End |
|
profile_start_x |
|
profile_start_z |
|
profile_end_x |
|
profile_end_z |
|
Predator Header Variables |
|
output_lathe_tool_list |
outputs the lathe tools in a list as described in block 110 |
output_stock |
outputs the stock definition as described in block 111 |
ltool_home |
outputs the tool home format as required by lathe predator header, prefix from line 843 |
ltool_type |
outputs the lathe tool type as required by the predator editor, prefix "S" required for header |
ltool_cutting_angle |
outputs the tool angle, prefix "O" required for header |
ltool_ic |
outputs the tool inscribed circle, prefix "I" required for header |
ltool_angle |
outputs the tool angle, prefix "A" required for header |
ltool_corner_rad |
outputs the corner radius of the tool, prefix "C" required for header |
ltool_height |
outputs the tool height (grooving), prefix "H" required for header |
ltool_diam |
outputs the tool diameter (drills), prefix "D" required for header |
ltool_orientation |
outputs the orientation as required for predator editor, prefix "N" required |
z_end_of_stock |
outputs the end coordinate for the stock |
stock_diameter |
outputs the diameter of the stock |
stock_length |
outputs the length of the stock |
stock_internal_diameter |
outputs the internal diameter of the stock |
Stock Feed |
|
init_stock_z |
Outputs the value input into the Stock feed dialog for Initial Z Position. |
init_stock_x |
Outputs the value input into the Stock feed dialog for Initial X Position. |
stock_from_z |
Outputs the value input into the Stock feed dialog for Z Start Position. |
stock_to_z |
Outputs the value input into the Stock feed dialog for Z End Location. |
stock_from_x |
Outputs the value input into the Stock feed dialog for X Clamp Position. |
stock_feed_t |
Outputs the value input into the Stock feed dialog for the Tool. |
stock_feedrate |
Outputs the value input into the Stock feed dialog for Feed Rate. |
stock_rapid_feedrate |
Outputs the value input into the Stock feed dialog for Rapid Feed Rate. |
stock_zh |
Outputs the value input into the Stock feed dialog for the Home Z. |
stock_xh |
Outputs the value input into the Stock feed dialog for the Home X. |
output_first_stock_feed |
Must be located in the program header or program start to allow for stock feeds to be output at the beginning of a program |
rapid_to_pickup_z |
Outputs the Z Clamp Location value |
rapid_to_position_x |
Outputs the X Clamp Location value |
rapid_to_position_z |
Outputs the Z Initial Position |
rapid_to_stock_feed_z |
Outputs the Z End Location |
Tap |
|
tap_g32_gcode |
G32 |
tap_g32_final_z |
Assigned from UI - Abs Z Depth - Prefix from Q803. |
tap_g32_initial_z |
Assigned From UI – Z Cut Pnt. Prefix from Q803 |
tap_canned_gcode |
Assigned by Left/Right hand thread – Output string from Q765 / Q766 |
tap_canned_gcode_right |
Output string from Q765 |
tap_canned_gcode_left |
Output string from Q766 |
tap_reference_plane |
Assigned from UI – Z Cut Pnt. Prefix from Q820 |
tap_canned_final_z |
Assigned from UI – Abs Z Depth – Prefix from Q803 |
tap_canned_x |
X Value – Should currently always return 0. Prefix from Q801 |
rigid_tapping_start |
Output G Code for rigid tapping start. |
rigid_tapping_end |
Output G Code for rigid tapping end. |
Scripting Blocks |
|
program_block_1 |
Use designated script block for output. |
program_block_2 |
Use designated script block for output. |
program_block_3 |
Use designated script block for output. |
program_block_4 |
Use designated script block for output. |
program_block_5 |
Use designated script block for output. |
program_block_6 |
Use designated script block for output. |
program_block_7 |
Use designated script block for output. |
program_block_8 |
Use designated script block for output. |
program_block_9 |
Use designated script block for output. |
program_block_10 |
Use designated script block for output. |
program_block_11 |
Use designated script block for output. |
program_block_12 |
Use designated script block for output. |
program_block_13 |
Use designated script block for output. |
program_block_14 |
Use designated script block for output. |
program_block_15 |
Use designated script block for output. |
program_block_16 |
Use designated script block for output. |
program_block_17 |
Use designated script block for output. |
program_block_18 |
Use designated script block for output. |
program_block_19 |
Use designated script block for output. |
program_block_20 |
Use designated script block for output. |
program_block_21 |
Use designated script block for output. |
program_block_22 |
Use designated script block for output. |
program_block_23 |
Use designated script block for output. |
program_block_24 |
Use designated script block for output. |
program_block_25 |
Use designated script block for output. |
program_block_26 |
Use designated script block for output. |
program_block_27 |
Use designated script block for output. |
program_block_28 |
Use designated script block for output. |
program_block_29 |
Use designated script block for output. |
program_block_30 |
Use designated script block for output. |
program_block_31 |
Use designated script block for output. |
program_block_32 |
Use designated script block for output. |
program_block_33 |
Use designated script block for output. |
program_block_34 |
Use designated script block for output. |
program_block_35 |
Use designated script block for output. |
program_block_36 |
Use designated script block for output. |
program_block_37 |
Use designated script block for output. |
program_block_38 |
Use designated script block for output. |
program_block_39 |
Use designated script block for output. |
program_block_40 |
Use designated script block for output. |
program_block_41 |
Use designated script block for output. |
program_block_42 |
Use designated script block for output. |
program_block_43 |
Use designated script block for output. |
program_block_44 |
Use designated script block for output. |
program_block_45 |
Use designated script block for output. |
program_block_46 |
Use designated script block for output. |
program_block_47 |
Use designated script block for output. |
program_block_48 |
Use designated script block for output. |
program_block_49 |
Use designated script block for output. |
program_block_50 |
Use designated script block for output. |
program_block_51 |
Use designated script block for output. |
program_block_52 |
Use designated script block for output. |
program_block_53 |
Use designated script block for output. |
program_block_54 |
Use designated script block for output. |
program_block_55 |
Use designated script block for output. |
program_block_56 |
Use designated script block for output. |
program_block_57 |
Use designated script block for output. |
program_block_58 |
Use designated script block for output. |
program_block_59 |
Use designated script block for output. |
program_block_60 |
Use designated script block for output. |
program_block_61 |
Use designated script block for output. |
program_block_62 |
Use designated script block for output. |
program_block_63 |
Use designated script block for output. |
program_block_64 |
Use designated script block for output. |
program_block_65 |
Use designated script block for output. |
program_block_66 |
Use designated script block for output. |
program_block_67 |
Use designated script block for output. |
program_block_68 |
Use designated script block for output. |
program_block_69 |
Use designated script block for output. |
program_block_70 |
Use designated script block for output. |
program_block_71 |
Use designated script block for output. |
program_block_72 |
Use designated script block for output. |
program_block_73 |
Use designated script block for output. |
program_block_74 |
Use designated script block for output. |
program_block_75 |
Use designated script block for output. |
program_block_76 |
Use designated script block for output. |
program_block_77 |
Use designated script block for output. |
program_block_78 |
Use designated script block for output. |
program_block_79 |
Use designated script block for output. |
program_block_80 |
Use designated script block for output. |
program_block_81 |
Use designated script block for output. |
program_block_82 |
Use designated script block for output. |
program_block_83 |
Use designated script block for output. |
program_block_84 |
Use designated script block for output. |
program_block_85 |
Use designated script block for output. |
program_block_86 |
Use designated script block for output. |
program_block_87 |
Use designated script block for output. |
program_block_88 |
Use designated script block for output. |
program_block_89 |
Use designated script block for output. |
program_block_90 |
Use designated script block for output. |
program_block_91 |
Use designated script block for output. |
program_block_92 |
Use designated script block for output. |
program_block_93 |
Use designated script block for output. |
program_block_94 |
Use designated script block for output. |
program_block_95 |
Use designated script block for output. |
program_block_96 |
Use designated script block for output. |
program_block_97 |
Use designated script block for output. |
program_block_98 |
Use designated script block for output. |
program_block_99 |
Use designated script block for output. |
program_block_100 |
Use designated script block for output. |