Post Variable and API Reference
Post Variable and API Reference
Introduction
This topic contains the reference for all posting variables and API calls used in post processor
modification and scripting.
Command Variables
debug_off
Mill Job
Lathe Job Turn off automatic debug comments in post output
Mill Turn Job
debug_on
Mill Job
Lathe Job Turn on automatic debug comments in post output
Mill Turn Job
default_add_spaces
Mill Job
Lathe Job Set add spaces back to condition before force_no_add_spaces was called.
Mill Turn Job
force_drill_z
Mill Job
Lathe Job Force the z value for drilling to be output next time even if modal.
Mill Turn Job
force_no_add_spaces
Mill Job
Lathe Job Force no spaces even when default is set to add spaces.
Mill Turn Job
force_x
Mill Job Force the x value to be output next time even if modal. It needs to be called before the
1
Lathe Job rapid_move variable
Mill Turn Job
force_y
Mill Job
Force the y value to be output next time even if modal. It needs to be called before the
Lathe Job
rapid_move variable
Mill Turn Job
force_z
Mill Job Force the z value to be output next time even if modal. It needs to be called before the
Lathe Job rapid_move variable
Mill Turn Job
memorize_line_number
Mill Job
Lathe Job Memorize sequence number for use later.
Mill Turn Job
memorized_line_number
Mill Job
Lathe Job Use memorize sequence number.
Mill Turn Job
newvars
Mill Job
Lathe Job Use new position variables and misc. variables.
Mill Turn Job
oldvars
Mill Job
Lathe Job Use old position variables and misc. variables.
Mill Turn Job
start_add_block_delete
Mill Job
Lathe Job Add block delete to all lines until stop_add_block_delete is used
Mill Turn Job
stop_add_block_delete
Mill Job
Stop adding block delete that started from using start_add_block_delete
Lathe Job
Mill Turn Job
output_tool_list
Mill Job Signals the output of the tool list.
Mill Turn Job Signals the output of the tool list.
output_lathe_tool_list
Lathe Job Signals the output of the tool list.
output_stock_definition
Mill Job Signals the output of the stock definition
Mill Turn Job Signals the output of the stock definition
Misc Characters
cr_lf
Mill Job
Lathe Job Outputs carriage return and line feed characters on the line.
Mill Turn Job
single_quote
Mill Job
Lathe Job Outputs the single quote character.
Mill Turn Job
quote
Mill Job
Lathe Job Outputs the double quote character.
Mill Turn Job
n_spaces
Mill Job
Lathe Job Outputs spaces into the code. The number of spaces output are determined by the
number of digits of the previous line number.
Mill Turn Job
3
Post Variables
The following is a list of all the available post variables to be utilized in the system.
absolute_coord
Mill Job Output code to set coordinate to absolute mode defined by post question: 620
Mill Turn Job Output code to set coordinate to absolute mode defined by post question: 620
incremental_coord
Mill Job Outputs the string value defined in post question: 621 and sets the mode to
Incremental.
Mill Turn Job Outputs the string value defined in post question: 621 and sets the mode to
Incremental.
inch_mode
Mill Job Outputs the string value defined in post question: 614 and sets the mode to Inch
Mill Turn Job Outputs the string value defined in post question: 614 and sets the mode to Inch
metric_mode
Mill Job Outputs the string value defined in post question: 615 and sets the mode to Metric
Mill Turn Job Outputs the string value defined in post question: 615 and sets the mode to Metric
h
Mill Job Output length offset register with prefix.
API:
short MILL_GetLengthOffsetNumber()
Lathe Job Output length offset register with prefix.
API:
short LATHE_GetLengthOffsetNumber()
Mill Turn Job Output length offset register with prefix. Prefix defined by post question: 688
API:
short MILLTURN_GetLengthOffsetNumber()
part_height
Mill Job Outputs the part height with the prefix from post question: 648
API:
double MILL_GetPartHeight()
Mill Turn Job Outputs the part height with the prefix from post question: 648
API:
double MILLTURN_GetPartHeight()
part_length
Mill Job Outputs the part length with NO prefix
API:
double MILL_GetPartlength()
Mill Turn Job Output the parth length with NO prefix.
API:
double MILLTURN_GetPartLength()
part_width
Mill Job Outputs the part width with NO prefix
API:
double MILL_GetPartWidth()
Mill Turn Job Outputs the part width with NO prefix.
API:
double MILLTURN_GetPartWidth()
Part Setup
work_coord
Mill Job Outputs the work coordinate string value based on selected work offset. Maximum
work offsets are defined by post question 258. Work offset string values are assigned
for each work offset starting at post question 900 go through post question 999.
API:
short MILL_GetWorkCoordNumber()
Mill Turn Job Outputs the work coordinate string value based on selected work offset. Maximum
work offsets are defined by post question 258. Work offset string values are assigned
for each work offset starting at post question 900 and go through post question 999.
API:
short MILLTURN_GetWorkCoordNumber()
work_coord_1 through
work_coord_99
Mill Job Outputs the work coordinate string value for a specific work coordinate. Work offset
string values are assigned for each work offset starting at post question 900 and go
5
through post question 999.
API:
short MILL_GetWorkCoordNumberCode(int)
int = 1 through 99
Example: var = MILL_GetWorkCoordNumberCode(1)
Mill Turn Job Outputs the work coordinate string value for a specific work coordinate. Work offset
string values are assigned for each work offset starting at post question 900 and go
through post question 999.
API:
short MILLTURN_GetWorkCoordNumberCode(int)
int = 1 through 99
Example: var = MILL_GetWorkCoordNumberCode(1)
clearance_face
Lathe Job Returns the clearance value for the face of the part defined in the machine setup.
Mill Turn Job Prefix is defined on post question: 1886
API:
double LATHE_GetClearanceFace()
clearance_diameter
Lathe Job Returns the clearance value for the diameter of the part defined in the machine setup.
Mill Turn Job Prefix is defined on post question: 1887
API:
double LATHE_GetClearanceDiameter()
clearance_internal_diameter
Lathe Job Returns the clearance value for the internal diameter of the part defined in the
Mill Turn Job machine setup.
Prefix is defined on post question: 1888
API:
double LATHE_GetClearanceInternalDiameter()
Positioning
xr
Mill Job Returns the X axis rapid location with the prefix defined by post question: 684
API:
double MILL_GetXRapid()
Lathe Job Returns the X axis rapid location with the prefix defined by post question: 684
API:
double LATHE_GetXRapid()
Mill Turn Job Returns the X axis rapid location with the prefix defined by the post mapping section of
the post processor. The devices have their prefixes defined based on DeviceID. The
prefix mapping blocks are 5000 through 5049 for absolute, and 5050 through 5099 for
incremental. If prefix is not defined in prefix mapping blocks, then prefix from post
question 684 will be used.
API:
double MILL_GetXRapid()
double LATHE_GetXRapid()
yr
Mill Job Returns the Y axis rapid location with the prefix defined by post question: 685
API:
double MILL_GetYRapid()
Mill Turn Job Returns the Y axis rapid location with the prefix defined by the post mapping section of
the post processor. The devices have their prefixes defined based on DeviceID. The
prefix mapping blocks are 5000 through 5049 for absolute, and 5050 through 5099 for
incremental. If prefix is not defined in prefix mapping blocks, then prefix from post
question 685 will be used.
API:
double MILL_GetYRapid()
zr
Mill Job Returns the Z axis rapid location with the prefix defined by post question: 686
API:
double MILL_GetZRapid()
Lathe Job Returns the Z axis rapid location with the prefix defined by post question: 686
API:
double LATHE_GetZRapid()
Mill Turn Job Returns the Z axis rapid location with the prefix defined by the post mapping section of
the post processor. The devices have their prefixes defined based on DeviceID. The
prefix mapping blocks are 5000 through 5049 for absolute, and 5050 through 5099 for
incremental. If prefix is not defined in prefix mapping blocks, then prefix from post
question 686 will be used.
API:
double MILL_GetZRapid()
double LATHE_GetZRapid()
7
MILL_SetXRapid(double var) – API Only
Sets the current rapid location for the X Axis using a Double variable
Mill Job
API:
Mill Turn Job Sets the current rapid location for the X Axis using a double variable.
API:
Lathe Job Lathe_SetXRapid(variable_name)
Mill Job
Sets the current rapid location for the Y Axis using a Double variable
API:
Mill Turn Job MILL_SetYRapid(variable_name)
xr_no_output
Mill Job Updates modality with the new position but does not output the position to the NC
Lathe Job file.
Mill Turn Job
yr_no_output
Mill Job Updates modality with the new position but does not output the position to the NC
Mill Turn Job file.
zr_no_output
Mill Job Updates modality with the new position but does not output the position to the NC
Lathe Job file.
Mill Turn Job
xf_no_output
Mill Job Updates modality with the new position but does not output the position to the NC
Lathe Job file.
Mill Turn Job
yf_no_output
Mill Job Updates modality with the new position but does not output the position to the NC
Lathe Job file.
Mill Turn Job
zf_no_output
Mill Job Updates modality with the new position but does not output the position to the NC
Lathe Job file.
Mill Turn Job
xh
Lathe Job Returns the X axis home positon with the prefix defined by post question 684. The
value comes from the X Home position defined in the operations Rapids page.
API:
double Lathe_GetXHome()
Mill Turn Job Returns the X axis home positon with the prefix for Lathe features only. Milling
features currently do not have any parameters to set this value. The value for Lathe
features come from the X Home position defined in the operations Rapids page.
The prefix is defined by the post mapping section of the post processor. The devices
have their prefixes defined based on DeviceID. The prefix mapping blocks are 5000
through 5049 for absolute, and 5050 through 5099 for incremental. If prefix is not
defined in prefix mapping blocks, then prefix from post question 684 will be used.
API:
double Lathe_GetXHome()
yh
Mill Job N/A
Lathe Job
Mill Turn Job
Zh
Lathe Job Returns the Z axis home positon with the prefix defined by post question 686. The
value comes from the Z Home position defined in the operations Rapids page.
9
API:
double Lathe_GetZHome()
Mill Turn Job Returns the Z axis home positon with the prefix for Lathe features only. Milling
features currently do not have any parameters to set this value. The value for Lathe
features come from the Z Home position defined in the operations Rapids page.
The prefix is defined by the post mapping section of the post processor. The devices
have their prefixes defined based on DeviceID. The prefix mapping blocks are 5000
through 5049 for absolute, and 5050 through 5099 for incremental. If prefix is not
defined in prefix mapping blocks, then prefix from post question 686 will be used.
API:
double Lathe_GetZHome()
prev_x
Mill Job Returns the value of the previous X axis feed move. Rapid moves are not included.
Prefix comes from post question: 684
API:
double MILL_GetPreviousXFeed()
Lathe Job Returns the value of the previous X axis feed move. Rapid moves are not included.
Prefix comes from post question: 684
API:
double LATHE_GetPreviousXFeed()
Mill Turn Job Returns the value of the previous X axis feed move. Rapid moves are not included.
The prefix is defined by the post mapping section of the post processor. The devices
have their prefixes defined based on DeviceID. The prefix mapping blocks are 5000
through 5049 for absolute, and 5050 through 5099 for incremental. If prefix is not
defined in prefix mapping blocks, then prefix from post question 684 will be used.
API:
double MILLTURN_GetPreviousXFeed()
prev_y
Mill Job Returns the value of the previous Y axis feed move. Rapid moves are not included.
Prefix comes from post question: 685
API:
double MILL_GetPreviousYFeed()
Mill Turn Job Returns the value of the previous Y axis feed move. Rapid moves are not included.
The prefix is defined by the post mapping section of the post processor. The devices
have their prefixes defined based on DeviceID. The prefix mapping blocks are 5000
through 5049 for absolute, and 5050 through 5099 for incremental. If prefix is not
defined in prefix mapping blocks, then prefix from post question 685 will be used.
API:
double MILLTURN_GetPreviousYFeed()
prev_z
Mill Job Returns the value of the previous Z axis feed move. Rapid moves are not included.
Prefix comes from post question: 686
API:
double MILL_GetPreviousZFeed()
Lathe Job Returns the value of the previous Z axis feed move. Rapid moves are not included.
Prefix comes from post question: 686
API:
double LATHE_GetPreviousZFeed()
Mill Turn Job Returns the value of the previous Z axis feed move. Rapid moves are not included.
The prefix is defined by the post mapping section of the post processor. The devices
have their prefixes defined based on DeviceID. The prefix mapping blocks are 5000
through 5049 for absolute, and 5050 through 5099 for incremental. If prefix is not
defined in prefix mapping blocks, then prefix from post question 686 will be used.
API:
double MILLTURN_GetPreviousZFeed()
x_f
Mill Job Returns the value of the current X axis feed move. Prefix comes from post question:
684.
API:
double MILL_GetXFeed()
Lathe Job Returns the value of the current X axis feed move. Prefix comes from post question:
684.
API:
double LATHE_GetXFeed()
Mill Turn Job Returns the value of the current X axis feed move.
The prefix is defined by the post mapping section of the post processor. The devices
have their prefixes defined based on DeviceID. The prefix mapping blocks are 5000
through 5049 for absolute, and 5050 through 5099 for incremental. If prefix is not
defined in prefix mapping blocks, then prefix from post question 684 will be used.
API:
double MILLTURN_GetXFeed()
11
y_f
Mill Job Returns the value of the current Y axis feed move. Prefix comes from post question:
685.
API:
double MILL_GetYFeed()
Mill Turn Job Returns the value of the current Y axis feed move.
The prefix is defined by the post mapping section of the post processor. The devices
have their prefixes defined based on DeviceID. The prefix mapping blocks are 5000
through 5049 for absolute, and 5050 through 5099 for incremental. If prefix is not
defined in prefix mapping blocks, then prefix from post question 685 will be used.
API:
double MILLTURN_GetYFeed()
z_f
Mill Job Returns the value of the current Z axis feed move. Prefix comes from post question:
686.
API:
double MILL_GetZFeed()
Lathe Job Returns the value of the current Z axis feed move. Prefix comes from post question:
684.
API:
double LATHE_GetZFeed()
Mill Turn Job Returns the value of the current Z axis feed move.
The prefix is defined by the post mapping section of the post processor. The devices
have their prefixes defined based on DeviceID. The prefix mapping blocks are 5000
through 5049 for absolute, and 5050 through 5099 for incremental. If prefix is not
defined in prefix mapping blocks, then prefix from post question 686 will be used.
API:
double MILLTURN_GetZFeed()
API:
Lathe Job LATHE_SetXHome(variable_name)
LATHE_SetZHome(double var) – API Only
API:
Lathe Job LATHE_SetZHome(variable_name)
API:
Lathe Job double LATHE_GetXHome()
API:
Lathe Job double LATHE_GetZHome()
API:
Lathe Job LATHE_SetPickupZ(variable_name)
API:
Lathe Job double LATHE_GetPickupZ()
Mill Turn Job Sets the previous feed location for the X Axis using a Double variable.
API:
Lathe Job LATHE_SetPreviousXFeed(variable_name)
13
LATHE_SetPreviousZFeed(double var) – API Only
Mill Turn Job Sets the previous feed location for the Z Axis using a Double variable.
API:
Lathe Job LATHE_SetPreviousZFeed(variable_name)
rapid_to_pickup_z
Lathe Job Outputs a “G0” code with a Z axis position move that uses the prefix defined on post
question: 686. This is used for the stock handling feature.
Mill Turn Job Outputs a “G0” code with a Z axis position move. This is used for the stock handling
feature.
The prefix is defined by the post mapping section of the post processor. The devices
have their prefixes defined based on DeviceID. The prefix mapping blocks are 5000
through 5049 for absolute, and 5050 through 5099 for incremental.
rapid_to_position_x
Lathe Job Outputs a “G0” code with a X axis position move that uses the prefix defined on post
question: 684. This is used for the stock handling feature.
Mill Turn Job Outputs a “G0” code with a X axis position. This is used for the stock handling feature.
The prefix is defined by the post mapping section of the post processor. The devices
have their prefixes defined based on DeviceID. The prefix mapping blocks are 5000
through 5049 for absolute, and 5050 through 5099 for incremental.
rapid_to_position_z
Lathe Job Outputs a “G0” code with a Z axis position move that uses the prefix defined on post
question: 686. This is used for the stock handling feature.
Mill Turn Job Outputs a “G0” code with a Z axis position. This is used for the stock handling feature.
The prefix is defined by the post mapping section of the post processor. The devices
have their prefixes defined based on DeviceID. The prefix mapping blocks are 5000
through 5049 for absolute, and 5050 through 5099 for incremental.
rapid_to_stock_feed_z
Lathe Job Outputs a “G0” code with a Z axis position move that uses the prefix defined on post
question: 686. This is used for the stock handling feature.
Mill Turn Job Outputs a “G0” code with a Z axis position. This is used for the stock handling feature.
The prefix is defined by the post mapping section of the post processor. The devices
have their prefixes defined based on DeviceID. The prefix mapping blocks are 5000
through 5049 for absolute, and 5050 through 5099 for incremental.
rapid_iplane_face
Lathe Job Outputs a “G0” code with a Z axis position move that uses the prefix defined on post
question: 686.
Mill Turn Job Outputs a “G0” code with a Z axis position. This is used for the stock handling feature.
The prefix is defined by the post mapping section of the post processor. The devices
have their prefixes defined based on DeviceID. The prefix mapping blocks are 5000
through 5049 for absolute, and 5050 through 5099 for incremental.
rapid_rplane_face
Lathe Job Outputs a “G0” code with a Z axis position move that uses the prefix defined on post
question: 686.
Mill Turn Job Outputs a “G0” code with a Z axis position. This is used for the stock handling feature.
The prefix is defined by the post mapping section of the post processor. The devices
have their prefixes defined based on DeviceID. The prefix mapping blocks are 5000
through 5049 for absolute, and 5050 through 5099 for incremental.
rapid_iplane_diam
Lathe Job Outputs a “G0” code with a X axis position move that uses the prefix defined on post
question: 684.
Mill Turn Job Outputs a “G0” code with a X axis position. This is used for the stock handling feature.
The prefix is defined by the post mapping section of the post processor. The devices
have their prefixes defined based on DeviceID. The prefix mapping blocks are 5000
through 5049 for absolute, and 5050 through 5099 for incremental.
rapid_rplane_diam
Lathe Job Outputs a “G0” code with a X axis position move that uses the prefix defined on post
question: 684.
Mill Turn Job Outputs a “G0” code with a X axis position. This is used for the stock handling feature.
The prefix is defined by the post mapping section of the post processor. The devices
have their prefixes defined based on DeviceID. The prefix mapping blocks are 5000
through 5049 for absolute, and 5050 through 5099 for incremental.
15
output_secondary_rotary_index (legacy = output_second_rotary_angle)
Mill Job output_second_rotary_angle – This calls block 17 which is used to add a prefix and
output the second_rotary_angle variable.
Mill Turn Job This calls block 17 which is used to add a prefix and output the
output_second_rotary_angle variable.
API:
Double MILL_GetRotaryAngle()
Mill Turn Job Outputs the rotation angle for the primary rotary axis. The prefix is defined on post
question: 722
The prefix is defined by the post mapping section of the post processor. The devices
have their prefixes defined based on DeviceID. The prefix mapping blocks are 5000
through 5049 for absolute, and 5050 through 5099 for incremental.
API:
double MILLTURN_GetPrimaryRotaryAngleOutput()
API:
double MILL_GetSecondRotaryAngleOutput()
Mill Turn Job Outputs the rotation angle for the primary rotary axis. The prefix is defined on post
question: 722
The prefix is defined by the post mapping section of the post processor. The devices
have their prefixes defined based on DeviceID. The prefix mapping blocks are 5000
through 5049 for absolute, and 5050 through 5099 for incremental.
API:
double MILLTURN_GetSecondaryRotaryAngleOutput()
API:
short MILL_PRotDirection()
0 = Forward
1 = Reverse
Mill Turn Job This outputs the code to define the rotation direction of the primary rotation axis. The
codes for CW and CCW are defined on post questions: 1xx22 and 1xx23 for workpiece
devices and 2xx16 and 2xx17 for toolpiece devices.
API:
Use Mill API call.
API:
short MILL_Get_SRotDirection()
0 = Forward
1= Reverse
Mill Turn Job This outputs the code to define the rotation direction of the primary rotation axis. The
codes for CW and CCW are defined on post questions: 1xx22 and 1xx23 for workpiece
devices and 2xx16 and 2xx17 for toolpiece devices.
API:
Use Mill API call.
p_rot
Mill Job This outputs the primary rotation axis angle value for rotary and 5 axis motion. The
output is formatted with the prefix defined on post question: 722
API:
double MILL_Get_PRot()
Mill Turn Job This outputs the primary rotation axis angle value for rotary and 5 axis motion. The
output is formatted with the prefix defined on post question: 722
The prefix is defined by the post mapping section of the post processor. The devices
have their prefixes defined based on DeviceID. The prefix mapping blocks are 5000
through 5049 for absolute, and 5050 through 5099 for incremental.
API:
Use Mill API call.
p_rot_no_prefix
Mill Turn Job This outputs the primary rotation axis angle value for rotary and 5 axis motion. The
output is formatted with the prefix defined on post question: 722
17
s_rot
Mill Job This outputs the secondary rotation axis angle value for rotary and 5 axis motion. The
output is formatted with the prefix defined on post question: 723
API:
double MILL_Get_SRot()
Mill Turn Job This outputs the secondary rotation axis angle value for rotary and 5 axis motion. The
output is formatted with the prefix defined on post question: 723
The prefix is defined by the post mapping section of the post processor. The devices
have their prefixes defined based on DeviceID. The prefix mapping blocks are 5000
through 5049 for absolute, and 5050 through 5099 for incremental.
API:
Use Mill API call.
s_rot_no_prefix
Mill Turn Job This outputs the primary rotation axis angle value for rotary and 5 axis motion. The
output is formatted with the prefix defined on post question: 722
force_prot
Mill Job Forces the primary rotary axis value to output regardless of modality.
Mill Turn Job
force_srot
Mill Job Forces the secondary rotary axis value to output regardless of modality.
Mill Turn Job
p_rot_no_output
Mill Job Updates modality with the new position but does not output the position to the NC
Lathe Job file.
Mill Turn Job
s_rot_no_output
Mill Job Updates modality with the new position but does not output the position to the NC
Lathe Job file.
Mill Turn Job
rotary_clamp_on
Outputs the string value to enable the rotary axis clamp on the primary rotation axis.
The string value is defined on post question: 716
Mill Job
API:
For API usage create logic using the following:
short MILL_GetPClampStatus()
0 = Not Clamped
1 = Clamped
rotary_clamp_off
Outputs the string value to disable the rotary axis clamp on the primary rotation axis.
The string value is defined on post question: 717
API:
Mill Job
For API usage create logic using the following:
short MILL_GetPClampStatus()
0 = Not Clamped
1 = Clamped
s_rotary_clamp_on
Outputs the string value to enable the rotary axis clamp on the secondary rotation axis.
The string value is defined on post question: 718
API:
Mill Job
For API usage create logic using the following:
short MILL_GetSClampStatus()
0 = Not Clamped
1 = Clamped
s_rotary_clamp_off
Outputs the string value to disable the rotary axis clamp on the secondary rotation
axis. The string value is defined on post question: 719
API:
Mill Job
For API usage create logic using the following:
short MILL_GetSClampStatus()
0 = Not Clamped
1 = Clamped
workpiece_device_brake
This variable is referred to as a Smart variable. Each Workpiece device has post
questions that define the brake codes for On and Off.
When this variable is output from Lathe postblocks the posting engine will output the
active workpiece’s OFF code.
When this variable is output from a milling postblock the posting engine will output the
ON code for Indexing operations and will output OFF for simultaneous 4 axis or 5 axis
19
motion.
API:
string MILLTURN_GetWorkpieceDeviceBrake()
prv_workpiece_device_brake_off
This variable will output the OFF command from the previously active Workpiece
device. See workpiece_device_brake for more details.
Mill Turn Job
API:
string MILLTURN_GetPrvWorkpieceDeviceBrakeOFF()
workpiece_device_brake_on
This variable will output the ON command for the active Workpiece device.
Each Workpiece device has post questions that define the brake codes for On and Off.
API:
string MILLTURN_GetWorkpieceDeviceBrakeON()
workpiece_device_auto_brake_on
This variable will output the Auto ON command for the active Workpiece device.
Each Workpiece device has post questions that define the brake codes for On and Off.
API:
string MILLTURN_GetWorkpieceDeviceAutoBrakeON()
workpiece_device_brake_off
This variable will output the OFF command for the active Workpiece device.
Each Workpiece device has post questions that define the brake codes for On and Off.
Mill Turn Job
Workpiece Device Post Questions:
10x05 – String - ON
10x06 – String – Auto ON
10x07 – String – OFF
API:
string MILLTURN_GetWorkpieceDeviceBrakeOFF()
tool_device_brake
This variable is referred to as a Smart variable. Each Tool device has post questions
that define the brake codes for On and Off.
Mill Turn Job When this variable is output from Lathe postblocks the posting engine will output the
active Tool device OFF code.
When this variable is output from a milling postblock the posting engine will output the
ON code for Indexing operations and will output OFF for simultaneous 4 axis or 5 axis
motion.
API:
string MILLTURN_GetToolDeviceBrake()
prv_tool_device_brake_off
This variable will output the OFF command from the previously active Tool device. See
tool_device_brake for more details.
Mill Turn Job
API:
string MILLTURN_GetPrvToolDeviceBrakeOFF()
tool_device_brake_on
This variable will output the ON command for the active Tool device.
Each Tool device has post questions that define the brake codes for On and Off.
API:
string MILLTURN_GetToolDeviceBrakeON()
tool_device_auto_brake_on
This variable will output the Auto ON command for the active Tool device.
Mill Turn Job
Each Tool device has post questions that define the brake codes for On and Off.
21
Tool Device Post Questions:
20x07 – String - ON
20x08 – String – Auto ON
20x09 – String – OFF
API:
string MILLTURN_GetToolDeviceAutoBrakeON()
tool_device_brake_off
This variable will output the OFF command for the active Tool device.
Each Tool device has post questions that define the brake codes for On and Off.
API:
string MILLTURN_GetToolDeviceBrakeOFF()
rotary_xy_f
This outputs either the X or Y axis position for wrapping toolpaths. Based on the
wrapping axis the prefix is defined by post question: 684 for the X axis and post
question: 685 for the Y axis.
Mill Job
API:
double MILL_GetRotaryXYFeedMove()
This outputs the linear axis position for wrapping toolpaths.
The prefix is defined by the post mapping section of the post processor. The devices
have their prefixes defined based on DeviceID. The prefix mapping blocks are 5000
Mill Turn Job
through 5049 for absolute, and 5050 through 5099 for incremental.
API:
double MILLTURN_GetRotaryXYFeedMove()
x_angle
Outputs the rotation angle from wrapping blocks using the prefix defined on post
Mill Job question: 684 for X axis and 685 for Y axis.
y_angle
Outputs the rotation angle from wrapping blocks using the prefix defined on post
Mill Job
question: 684 for X axis and 685 for Y axis.
rotary_xy_angle
Outputs the rotation angle from wrapping blocks using the prefix defined on post
Mill Job
question: 690 for X axis wrapping and post question 694 for Y axis wrapping.
Mill Turn Job This variable has been replaced by p_rot and s_rot variables.
xr_angle
Mill Job Outputs rotation angle from wrapping blocks using prefix from post question: 690
Mill Turn Job This variable has been replaced by p_rot and s_rot variables.
yr_angle
Mill Job Outputs rotation angle from wrapping blocks using prefix from post question: 694
Mill Turn Job This variable has been replaced by p_rot and s_rot variables.
measure_mode
Outputs the string based on the mode (Inch/Metric). Strings defined on post
questions: 614 (Inch) and post question: 615 (Metric).
API:
Mill Job short MILL_GetUnits()
0 = Inch
Lathe Job 1 = Metric
API:
short LATHE_GetUnits()
movement_mode
Outputs the string based on the current mode (Absolute/Incremental). The output
strings are defined on post question: 620(Abs) and post question: 621(Inc).
Mill Job
API:
short MILL_GetIsIncremental()
Outputs the string based on the current mode (Absolute/Incremental). The output
Mill Turn Job
strings are defined on post question: 620(Abs) and post question: 621(Inc).
23
API:
Use Mill API call.
xcenter
Outputs the arc center X coordinate value using the prefix from post question: 642
Mill Job
API:
double MILL_GetArcCenterX()
Outputs the arc center X coordinate value using the prefix from post question: 642
Mill Turn Job
API:
Use Mill API Call
ycenter
Outputs the arc center Y coordinate value using the prefix from post question: 643
Mill Job
API:
double MILL_GetArcCenterY()
Outputs the arc center Y coordinate value using the prefix from post question: 643
Mill Turn Job
API:
Use Mill API Call
zcenter
Outputs the arc center Z coordinate value using the prefix from post question: 640
Mill Job
API:
double MILL_GetArcCenterZ()
Outputs the arc center Z coordinate value using the prefix from post question: 640
Mill Turn Job
API:
Use Mill API Call
rcenter
Outputs the arc center radius value using the prefix from post question: 641
Mill Job
API:
double MILL_GetArcRadius()
Outputs the arc center radius value using the prefix from post question: 641
Mill Turn Job
API:
double MILLTURN_GetRCenter()
arc_center
Outputs the arc center value based on the current arc being cut using prefixes from
Mill Job
post questions: 640 through post question: 643.
API:
double MILL_GetArcCenterX()
double MILL_GetArcCenterY()
double MILL_GetArcCenterZ()
Outputs the arc center value based on the current arc being cut using prefixes from
post questions: 640 and post question: 642.
Lathe Job
API:
double LATHE_GetArcCenterX()
double LATHE_GetArcCenterZ()
Outputs the arc center value based on the current arc being cut using prefixes from
post questions: 640 through post question: 643.
Mill Turn Job
API:
Use Mill or Lathe API calls.
n
Mill Job
Lathe Job Outputs the sequence numbers in the program.
Mill Turn Job
n_forced
Mill Job Outputs the sequence number even if sequence number output has been turned off.
Lathe Job Outputs the sequence number even if sequence number output has been turned off.
Mill Turn Job Outputs the sequence number even if sequence number output has been turned off.
seq_only
Mill Job Outputs the sequence number with NO prefix
Mill Turn Job
n_first_rough
Outputs the line number at the beginning of the profile that is used to define the
canned roughing cycle. The prefix is defined on post question: 1790
Lathe Job
API:
string LATHE_GetFirstRoughLineNumberPrefix()
Outputs the line number at the beginning of the profile that is used to define the
canned roughing cycle. The prefix is defined on post question: 1790
Mill Turn Job
API:
Use Lathe API call
n_last_rough
Outputs the line number at the end of the profile that is used to define the canned
Lathe Job roughing cycle. The prefix is defined on post question: 1791
25
API:
string LATHE_GetLastRoughLineNumberPrefix()
Outputs the line number at the end of the profile that is used to define the canned
roughing cycle. The prefix is defined on post question: 1791
Mill Turn Job
API:
Use Lathe API call.
n_first_finish
Outputs the line number at the beginning of the profile that is used to define the
canned finish cycle. The prefix is defined on post question: 1790
Lathe Job
API:
string LATHE_GetLineNumberFirstFinish()
Outputs the line number at the beginning of the profile that is used to define the
canned finish cycle. The prefix is defined on post question: 1790
Mill Turn Job
API:
Use Lathe API Call
n_last_finish
Outputs the line number at the end of the profile that is used to define the canned
finish cycle. The prefix is defined on post question: 1791
Lathe Job
API:
string LATHE_GetLineNumberLastFinish()
string LATHE GetLastFinishLineNumberPrefix()
Outputs the line number at the end of the profile that is used to define the canned
finish cycle. The prefix is defined on post question: 1791
Mill Turn Job
API:
Use Lathe API Call
LATHE_GetLineNumberLastFinish() – API Only
Returns the Q word for the last line number of turning canned cycle output to the
finish pass.
Lathe Job
API:
short LATHE_GetLineNumberLastFinish()
sub_call
Mill Job Outputs sub call string. String defined from post question: 628
Mill Turn Job Outputs sub call string. String defined from post question: 628
sub_return
Mill Job Outputs sub return string. String defined from post question: 629
Mill Turn Job Outputs sub return string. String defined from post question: 629
sub_num
Mill Job Outputs sub program number with prefix defined from post question :658
Mill Turn Job Outputs sub program number with prefix defined from post question :658
sub_num_no_prefix
Mill Job Outputs sub program number without prefix
Outputs sub program number without prefix
Mill Turn Job
API:
string MILLTURN_GetSubProgramNumber()
sub_num_with_prefix
Outputs the sub program number with prefix defined on post question: 645
Mill Job
API:
string MILL_GetSubProgramNumberWithPrefix()
Outputs sub program number with prefix defined on post question: 645
Mill Turn Job
API:
string MILLTURN_GetSubProgramNumberWithPrefix()
Transform Plane
initial_positioning
Mill Job This variable should be utilized in the Milling tool change blocks to call the 30 or 31
block based on whether the operation is utilizing a transform block. If the operation is
not utilizing the transform plane, block 30 will be output. If the operation is under an
Mill Turn Job
index system, and using the transform plane, the 31 transform plane block will be
output.
27
transform_plane_origin_1
Mill Job Outputs the coordinate of the origin for the transformed plane from the machine setup
Mill Turn Job position along the first translation axis (Typically the X axis origin)
transform_plane_origin_2
Mill Job Outputs the coordinate of the origin for the transformed plane from the machine setup
Mill Turn Job position along the second translation axis (Typically the Y axis origin)
transform_plane_origin_3
Mill Job Outputs the coordinate of the origin for the transformed plane from the machine setup
Mill Turn Job position along the third translation axis (Typically the Z axis origin)
xr_transform
Mill Job Outputs the X axis rapid location on the transformed plane with the prefix defined by
post question: 684
Mill Turn Job This variable should be used in block 31 to output coordinates relative to the
transformed plane
yr_transform
Mill Job Outputs the Y axis rapid location on the transformed plane with the prefix defined by
post question: 685
Mill Turn Job This variable should be used in block 31 to output coordinates relative to the
transformed plane
zr_transform
Mill Job Outputs the Z axis rapid location on the transformed plane with the prefix defined by
post question: 686
Mill Turn Job This variable should be used in block 31 to output coordinates relative to the
transformed plane
transform_plane_rot_angle_first
Mill Job
Outputs first rotary angle for the operations on the transform plane
Mill Turn Job
transform_plane_rot_angle_second
Mill Job
Outputs second rotary angle for the operations on the transform plane
Mill Turn Job
transform_plane_rot_angle_third
Mill Job
Outputs third rotary angle for the operations on the transform plane
Mill Turn Job
euler_angle_zxz_intrinsic_1
euler_angle_zxz_intrinsic_2
euler_angle_zxz_intrinsic_3
Mill Job Outputs the rotation angles for Euler angle definition by intrinsic rotation around
machine setup Z axis first, then around X axis of the rotated coordinate system resulted
Mill Turn Job from first rotation & finally around Z axis of the rotated coordinate system resulted
from the second rotation respectively for the transformed plane
euler_angle_zxz_extrinsic_1
euler_angle_zxz_extrinsic_2
euler_angle_zxz_extrinsic_3
Mill Job Outputs the rotation angles for Euler angle definition by extrinsic rotation around the
machine setup Z axis first, X axis & Z axis again for the transformed plane
Mill Turn Job
euler_angle_xyx_intrinsic_1
euler_angle_xyx_intrinsic_2
euler_angle_xyx_intrinsic_3
Mill Job Outputs the rotation angles for Euler angle definition by intrinsic rotation around
machine setup X axis first, then around Y axis of the rotated coordinate system resulted
Mill Turn Job from first rotation & finally around X axis of the rotated coordinate system resulted
from the second rotation respectively for the transformed plane
euler_angle_xyx_extrinsic_1
euler_angle_xyx_extrinsic_2
euler_angle_xyx_extrinsic_3
Mill Job Outputs the rotation angles for Euler angle definition by extrinsic rotation around X
Mill Turn Job axis, Y axis, X axis respectively of the machine setup for the transformed plane
euler_angle_yzy_intrinsic_1
euler_angle_yzy_intrinsic_2
euler_angle_yzy_intrinsic_3
Mill Job Outputs the rotation angles for Euler angle definition by intrinsic rotation around
machine setup Y axis first, then around Z axis of the rotated coordinate system resulted
Mill Turn Job from first rotation & finally around Y axis of the rotated coordinate system resulted
from the second rotation respectively for the transformed plane
euler_angle_yzy_extrinsic_1
euler_angle_yzy_extrinsic_2
euler_angle_yzy_extrinsic_3
Mill Job Outputs the rotation angles for Euler angle definition by extrinsic rotation around Y
Mill Turn Job axis, Z axis, Y axis respectively of the machine setup for the transformed plane
euler_angle_zyz_intrinsic_1
euler_angle_zyz_intrinsic_2
euler_angle_zyz_intrinsic_3
Mill Job Outputs the rotation angles for Euler angle definition by intrinsic rotation around
machine setup Z axis first, then around Y axis of the rotated coordinate system resulted
Mill Turn Job
from first rotation & finally around Z axis of the rotated coordinate system resulted
29
from the second rotation respectively for the transformed plane
euler_angle_zyz_extrinsic_1
euler_angle_zyz_extrinsic_2
euler_angle_zyz_extrinsic_3
Mill Job
Outputs the rotation angles for Euler angle definition by extrinsic rotation around Z
Mill Turn Job axis, Y axis, Z axis respectively of the machine setup for the transformed plane
euler_angle_xzx_intrinsic_1
euler_angle_xzx_intrinsic_2
euler_angle_xzx_intrinsic_3
Mill Job Outputs the rotation angles for Euler angle definition by intrinsic rotation around
machine setup X axis first, then around Z axis of the rotated coordinate system resulted
Mill Turn Job from first rotation & finally around X axis of the rotated coordinate system resulted
from the second rotation respectively for the transformed plane
euler_angle_xzx_extrinsic_1
euler_angle_xzx_extrinsic_2
euler_angle_xzx_extrinsic_3
Mill Job
Outputs the rotation angles for Euler angle definition by extrinsic rotation around X
Mill Turn Job axis, Z axis, X axis respectively of the machine setup for the transformed plane
euler_angle_yxy_intrinsic_1
euler_angle_yxy_intrinsic_2
euler_angle_yxy_intrinsic_3
Mill Job Outputs the rotation angles for Euler angle definition by intrinsic rotation around
machine setup Y axis first, then around X axis of the rotated coordinate system resulted
Mill Turn Job from first rotation & finally around Y axis of the rotated coordinate system resulted
from the second rotation respectively for the transformed plane
euler_angle_yxy_extrinsic_1
euler_angle_yxy_extrinsic_2
euler_angle_yxy_extrinsic_3
Mill Job
Outputs the rotation angles for Euler angle definition by extrinsic rotation around Y
Mill Turn Job axis, X axis, Y axis respectively of the machine setup for the transformed plane
rpy_angle_xyz_intrinsic_1
rpy_angle_xyz_intrinsic_2
rpy_angle_xyz_intrinsic_3
Mill Job Outputs the rotation angles for Roll Pitch Yaw angle definition by intrinsic rotation
around machine setup X axis first, then around Y axis of the rotated coordinate system
Mill Turn Job resulted from first rotation & finally around Z axis of the rotated coordinate system
resulted from the second rotation respectively for the transformed plane
rpy_angle_xyz_extrinsic_1
rpy_angle_xyz_extrinsic_2
rpy_angle_xyz_extrinsic_3
Mill Job Outputs the rotation angles for Roll Pitch Yaw angle definition by extrinsic rotation
around X axis, Y axis, Z axis respectively of the machine setup for the transformed
Mill Turn Job
plane
rpy_angle_yzx_intrinsic_1
rpy_angle_yzx_intrinsic_2
rpy_angle_yzx_intrinsic_3
Mill Job Outputs the rotation angles for Roll Pitch Yaw angle definition by intrinsic rotation
around machine setup Y axis first, then around Z axis of the rotated coordinate system
Mill Turn Job resulted from first rotation & finally around X axis of the rotated coordinate system
resulted from the second rotation respectively for the transformed plane
rpy_angle_yzx_extrinsic_1
rpy_angle_yzx_extrinsic_2
rpy_angle_yzx_extrinsic_3
Mill Job Outputs the rotation angles for Roll Pitch Yaw angle definition by extrinsic rotation
around Y axis, Z axis, X axis respectively of the machine setup for the transformed
Mill Turn Job
plane
rpy_angle_zxy_intrinsic_1
rpy_angle_zxy_intrinsic_2
rpy_angle_zxy_intrinsic_3
Mill Job Outputs the rotation angles for Roll Pitch Yaw angle definition by intrinsic rotation
around machine setup Z axis first, then around X axis of the rotated coordinate system
Mill Turn Job resulted from first rotation & finally around Y axis of the rotated coordinate system
resulted from the second rotation respectively for the transformed plane
rpy_angle_zxy_extrinsic_1
rpy_angle_zxy_extrinsic_2
rpy_angle_zxy_extrinsic_3
Mill Job Outputs the rotation angles for Roll Pitch Yaw angle definition by extrinsic rotation
around Z axis, X axis, Y axis respectively of the machine setup for the transformed
Mill Turn Job plane
rpy_angle_xzy_intrinsic_1
rpy_angle_xzy_intrinsic_2
rpy_angle_xzy_intrinsic_3
Mill Job Outputs the rotation angles for Roll Pitch Yaw angle definition by intrinsic rotation
around machine setup X axis first, then around Z axis of the rotated coordinate system
resulted from first rotation & finally around Y axis of the rotated coordinate system
Mill Turn Job
resulted from the second rotation respectively for the transformed plane
31
rpy_angle_xzy_extrinsic_1
rpy_angle_xzy_extrinsic_2
rpy_angle_xzy_extrinsic_3
Mill Job Outputs the rotation angles for Roll Pitch Yaw angle definition by extrinsic rotation
around X axis, Z axis, Y axis respectively of the machine setup for the transformed
Mill Turn Job
plane
rpy_angle_zyx_intrinsic_1
rpy_angle_zyx_intrinsic_2
rpy_angle_zyx_intrinsic_3
Mill Job Outputs the rotation angles for Roll Pitch Yaw angle definition by intrinsic rotation
around machine setup Z axis first, then around Y axis of the rotated coordinate system
Mill Turn Job resulted from first rotation & finally around X axis of the rotated coordinate system
resulted from the second rotation respectively for the transformed plane
rpy_angle_zyx_extrinsic_1
rpy_angle_zyx_extrinsic_2
rpy_angle_zyx_extrinsic_3
Mill Job Outputs the rotation angles for Roll Pitch Yaw angle definition by extrinsic rotation
around Z axis, Y axis, X axis respectively of the machine setup for the transformed
Mill Turn Job
plane
rpy_angle_yxz_intrinsic_1
rpy_angle_yxz_intrinsic_2
rpy_angle_yxz_intrinsic_3
Mill Job Outputs the rotation angles for Roll Pitch Yaw angle definition by intrinsic rotation
around machine setup Y axis first, then around X axis of the rotated coordinate system
Mill Turn Job resulted from first rotation & finally around Z axis of the rotated coordinate system
resulted from the second rotation respectively for the transformed plane
rpy_angle_yxz_extrinsic_1
rpy_angle_yxz_extrinsic_2
rpy_angle_yxz_extrinsic_3
Mill Job Outputs the rotation angles for Roll Pitch Yaw angle definition by extrinsic rotation
around Y axis, X axis, Z axis respectively of the machine setup for the transformed
Mill Turn Job
plane
transform_plane_dir_x_1
transform_plane_dir_x_2
transform_plane_dir_x_3
Mill Job Outputs the first vector I,J,K for the transform plane when using 2 vectors definition for
Mill Turn Job transform planes
transform_plane_dir_z_1
transform_plane_dir_z_2
transform_plane_dir_z_3
Mill Job Outputs the second vector I,J,K for the transform plane when using 2 vectors definition
Mill Turn Job for transform planes
transform_plane_pnt_2_1
transform_plane_pnt_2_2
transform_plane_pnt_2_3
Mill Job Outputs X,Y,Z coordinates along the X axis of the transformed plane relative to the
origin of the machine setup.
Mill Turn Job
Note: The transform_plane_origin_# variables are typically used for the first point of
the 3 point transform plane output.
transform_plane_pnt_3_1
transform_plane_pnt_3_2
transform_plane_pnt_3_3
Mill Job Outputs X,Y,Z coordinates along the Y axis of the transformed plane relative to the
Mill Turn Job origin of the machine setup
transform_plane_projection_angle_x_along_y
transform_plane_projection_angle_y_along_x
transform_plane_projection_angle_along_new_z
Mill Job Outputs the angle of rotation for X axis of transformed plane along machine setup Y-
axis, Y axis of transformed plane along X axis of the machine setup and angle of
Mill Turn Job rotation about the Z axis of the rotated coordinate system
transform_plane_orientation_x
transform_plane_orientation_y
transform_plane_orientation_z
Mill Job
Outputs the I,J,K values for the Z axis of the transformed plane
Mill Turn Job
Comments
operation_name_comment
Outputs the name of the operation in the CAM tree using the comment_start and
comment_end characters defined on post question: 630 and post question: 631.
Mill Job
API:
string MILL_GetOperationNameComment()
Lathe Job Outputs the name of the operation in the CAM tree using the comment_start and
33
comment_end characters defined on post question: 630 and post question: 631.
Outputs the name of the operation in the CAM tree using the comment_start and
comment_end characters defined on post question: 630 and post question: 631.
Mill Turn Job
API:
string MILLTURN_GetOperationNameComment()
feature_name_comment
Outputs the name of the feature in the CAM tree using the comment_start and
comment_end characters defined on post question: 630 and post question: 631.
Mill Job
API:
string MILL_GetFeatureNameComment()
Outputs the name of the feature in the CAM tree using the comment_start and
comment_end characters defined on post question: 630 and post question: 631.
Mill Turn Job
API:
string MILLTURN_GetFeatureNameComment()
output_date
Mill Job
Lathe Job Outputs the date
Mill Turn Job
API:
Mill Turn Job string LATHE_GetDate()
output_time
Mill Job
Lathe Job Outputs the time
Mill Turn Job
prog_n
Outputs the program number with NO prefix
Mill Job
API:
string MILL_GetProgramNumber()
Outputs the program number with NO prefix
Lathe Job
API:
short LATHE_GetProgramNumber()
Outputs the program number with NO prefix()
Mill Turn Job
API:
string MILLTURN_GetProgramNumber()
prog_name
Mill Job Outputs the program name with no file path but does include the file extension.
35
API:
string MILL_GetProgramName()
Outputs the program name with no file path but does include the file extension.
Lathe Job
API:
string LATHE_GetProgramName()
Outputs the program name with no file path but does include the file extension.
Mill Turn Job
API:
string MILLTURN_GetProgramName()
While the Post Variable outputs the program name and file extension, it does not
Note: output the full file path. The API, however, outputs the file extension and the full file
path.
prog_name_no_ext
Outputs the program name with file path, but NO file extension.
Mill Job
API:
string MILL_GetProgramNameNoExt()
Outputs the program name with file path, but NO file extension.
Mill Turn Job
API:
string MILLTURN_GetProgramNameNoExt()
prog_name_no_ext_no_path
Mill Job
Outputs the program name without file path and file extension.
API:
Mill Turn Job string MILL_GetProgramNameNoExtNoPath()
prog_name_no_path
Mill Job
Outputs the program name with extension, but NO file path.
API:
Mill Turn Job string BC_GetProgramNameNoPath()
prog_name_full_path
Outputs the program name with file path and file extension.
Mill Job
API:
string BC_GetProgramNameFullPath()
Mill Turn Job
machine_make
Mill Job
Lathe Job Outputs the machine make defined on post question: 646
Mill Turn Job
machine_model
Mill Job
Lathe Job Outputs the machine model defined on post question: 647
Mill Turn Job
feature_name
Mill Job
Lathe Job Outputs the name of the feature with no comment start/end strings
Mill Turn Job
setup_name
Mill Job
Lathe Job Outputs the name of the setup with no comment start/end strings
Mill Turn Job
operation_name
Mill Job
Lathe Job Outputs the name of the operation with no comment start/end strings
Mill Turn Job
comment1
Outputs the Machine Setup comment and the first operation comment.
37
comment2
Outputs the tool number plus the tool label
Lathe Job
API:
string LATHE_GetComment2()
Outputs the tool number plus the tool label
Mill Turn Job
API:
string MILLTURN_GetComment2()
comment3
Outputs the operation comment
Lathe Job
API:
string LATHE_GetComment3()
Outputs the operation comment
Mill Turn Job
API:
string MILLTURN_GetComment3()
user_comment_1 through
user_comment_15
Mill Job
Lathe Job Outputs the user comments defined in the Current Settings for the job.
Mill Turn Job
material_comment
Mill Job Outputs the defined material as a string.
Lathe Job
API:
Mill Turn Job
string MILLTURN_GetMaterialComment()
Stock
stock_min_x
Returns the X coordinate for the bottom left hand corner of the stock with NO prefix.
Mill Job
API:
double MILL_GetStockMinX()
Returns the X coordinate for the bottom left hand corner of the stock with NO prefix.
Mill Turn Job
API:
double MILLTURN_GetStockMinX()
stock_min_y
Returns the Y coordinate of the lower edge of the stock with NO prefix
Mill Job
API:
double MILL_GetStockMinY()
Returns the Y coordinate of the lower edge of the stock with NO prefix
Mill Turn Job
API:
double MILLTURN_GetStockMinY()
stock_min_z
Returns the Z coordinate of the bottom of the stock with NO prefix
Mill Job
API:
double MILL_GetStockMinZ()
Returns the Z coordinate of the bottom of the stock with NO prefix
Mill Turn Job
API:
double MILLTURN_GetStockMinZ()
stock_max_x
Returns the X coordinate for the top right hand corner of the stock with NO prefix.
Mill Job
API:
double MILL_GetStockMaxX()
Returns the X coordinate for the top right hand corner of the stock with NO prefix.
Mill Turn Job
API:
double MILLTURN_GetStockMaxX()
stock_max_y
Returns the Y coordinate of the top right hand corner of the stock with NO prefix
Mill Job
API:
double MILL_GetStockMaxY()
Returns the Y coordinate of the top right hand corner of the stock with NO prefix
Mill Turn Job
API:
double MILLTURN_GetStockMaxY()
stock_max_z
Returns the Z coordinate of the top right hand corner of the stock with NO prefix
Mill Job
39
API:
double MILL_GetStockMaxZ()
Returns the Z coordinate of the right hand corner of the stock with NO prefix
Mill Turn Job
API:
double MILLTURN_GetStockMaxZ()
stock_length
Mill Job Outputs the X dimension of the stock with NO prefix
Lathe Job Outputs the length of the stock(Z axis) with NO prefix
Mill Turn Job Outputs the X dimension of the stock with NO prefix
stock_width
Mill Job
Outputs the Y dimension of the stock with NO prefix
Mill Turn Job
stock_height
Mill Job
Outputs the Z dimension of the stock with NO prefix
Mill Turn Job
rotary_stock_diameter
Mill Job Returns the wrapping stock diameter with prefix. The prefix is defined on post
question: 703
Mill Turn Job
API:
double MILL_GetRotaryStockDiameter()
rotary_stock_length
Mill Job Returns the length of the stock with prefix. The prefix is defined on post question: 704
rotation_axis
Mill Job Outputs rotation axis with the prefix defined on post question: 702
mtool_corner_rad
Mill Job Outputs the tool corner radius value with prefix. The prefix is defined on post
Mill Turn Job question: 700
mtool_type
Mill Job
Outputs the tool type with prefix. The prefix is defined on post question: 701
Mill Turn Job
tool_label
Outputs the tool label.
Mill Job
API:
string MILL_GetToolLabel()
Outputs the tool label.
Mill Turn Job
API:
string MILLTURN_GetToolLabel()
Outputs the block delete characters. The block delete characters that are output are
Mill Turn Job defined on post question: 656
41
LATHE_SetStockPosZ(double var) – API Only
API:
Lathe Job LATHE_SetStockPosZ(variable_name)
API:
Lathe Job LATHE_SetStockPosX(variable_name)
API:
Lathe Job double LATHE_GetStockPosZ()
API:
Lathe Job double LATHE_GetStockPosX()
API:
Lathe Job LATHE_SetStockFeedToZ(variable_name)
Mill Turn Job Returns the length of the currently defined stock.
API:
Lathe Job double LATHE_GetStockLength()
Mill Turn Job Returns the internal diameter of the currently defined stock.
API:
Lathe Job double LATHE_GetStockInternalDiameter()
Mill Turn Job Returns the Z axis position of the stock face.
API:
Lathe Job double LATHE_GetStockFaceZLocation()
Mill Turn Job Returns the Z axis position of the end of the stock.
API:
Lathe Job double LATHE_GetStockEndZLocation()
API:
Lathe Job double LATHE_GetStockDiameter()
G Codes
feed_move
Mill Job Outputs the code for move at feedrate. String defined on post question: 681
Lathe Job Outputs the code for move at feedrate. String defined on post question: 681
Outputs the code for move at feedrate. String defined on post question: 681
Mill Turn Job
43
rapid_move
Mill Job Outputs the code for move at rapid. String defined on post question: 680
Lathe Job Outputs the code for move at rapid. String defined on post question: 680
Mill Turn Job Outputs the code for move at rapid. String defined on post question: 680
feed_move_forced
Mill Job
Lathe Job Forces the output of the code for move at feedrate.
Mill Turn Job
rapid_move_forced
Mill Job
Lathe Job Forces the output of the code for move at rapid.
Mill Turn Job
cc
Outputs call to post block 11, 12 or 13 depending on the cutter compensation state.
(11=OFF, 12=Left, 13=Right)
API:
Mill Job
short MILL_GetOffsetSide()
0 = None
1 = Left
2 = Right
Outputs call to post block 11, 12 or 13 depending on the cutter compensation state.
(11=OFF, 12=Left, 13=Right)
API:
Lathe Job
short LATHE_GetCutterCompSide()
0 = None
41 = Left
42 = Right
Outputs call to post block 11, 12 or 13 depending on the cutter compensation state.
(11=OFF, 12=Left, 13=Right)
API:
Mill Turn Job
short MILLTURN_GetOffsetSide()
0 = None
1 = Left
2 = Right
force_cc
g_code_cc
Outputs cutter diameter compensation codes based on compensation state. Codes are
Lathe Job
defined on post questions: 650=Left, 651=Right, 639=Off.
Outputs cutter diameter compensation codes based on compensation state. Codes are
Mill Turn Job
defined on post questions: 750=Left, 751=Right, 739=Off.
Measurement
Mill Job Outputs blocks depending on current Inch/Metric mode. Blocks defined on 614=Inch,
Mill Turn Job 615=Metric
mt_output_rad_dia
Outupts the currently set mode Radius or Diameter based on post question: 1249. If
set to Radius mode the string from post question: 3561 will be output. If set to
Diameter mode the string from post question: 3562 will be output.
Mill Turn Job
API:
string MILLTURN_GetMtOutputRadDia()
g_arc_move
Outputs the arc strings based on the arc direction. Strings from post questions:
Mill Job
682=CW, and 683=CCW.
Outputs the arc strings based on direction. Strings from post questions: 682=CW, and
Lathe Job
683=CCW
Outputs the arc strings based on the arc direction. Strings from post questions:
Mill Turn Job
682=CW, and 683=CCW.
rigid_tapping_start
Outputs the post block 22 which is used to output the code that puts the machine in
Mill Job
feed per revolution mode.
Outputs the post block 1027 which is used to output the code that puts the machine in
Lathe Job
feed per revolution mode.
Outputs the post block 22 which is used to output the code that puts the machine in
Mill Turn Job
feed per revolution mode.
rigid_tapping_end
Outputs the post block 23 which is used to output the code that puts the machine in
Mill Job
feed per minute mode.
Outputs the post block 1028 which is used to output the code that puts the machine in
Lathe Job
feed per minute mode.
Mill Turn Job Outputs the post block 23 which is used to output the code that puts the machine in
45
feed per minute mode.
cross_rigid_tapping_start
Outputs the post block 3020 if the post question: 3509 is set to Yes. These blocks are
Mill Turn Job
used to put the machine in feed per revolution mode for the cross live tools.
cross_rigid_tapping_end
Outputs the post block 3021 if the post question: 3509 is set to Yes. These blocks are
Mill Turn Job
used to put the machine in feed per revolution mode for the cross live tools.
g_arc_plane
Mill Job Outputs the strings from post question: 691=XY, 692=YZ, and 693=XZ based on the
Mill Turn Job active plane.
initialize_gcode
Mill Job
Restarts modality rule and forces the output of the next gcode.
Mill Turn Job
work_plane
Mill Job Outputs the active work plane (XY, YZ, XZ) G-code for the current operation from post
Lathe job questions 691, 692, 693 respectively.
This variable can be used for machines which required to know the work plane in
which the current operation is executed. Typically used in block 2,3,4 in Mill & MillTurn
Mill Turn Job posts, 1002,1003,1004 for lathe posts and polar start and end blocks (3005, 3006) for
MillTurn posts
work_plane_G17
Mill Job
Outputs the XY work plane G-code for the current operation from post questions 691.
Lathe Job
Mill Turn Job
work_plane_G18
Mill Job
Outputs the YZ work plane G-code for the current operation from post questions 692.
Lathe Job
Mill Turn Job
work_plane_G19
Mill Job
Outputs the XZ work plane G-code for the current operation from post questions 693.
Lathe Job
Mill Turn Job
g_max_ss
Outputs the code used to set the maximum spindle speed clamp. The output string is
defined on post question: 3577
Mill Turn Job
API:
string MILLTURN_GetMaxSSGCode()
g_exact_stop
Outputs the string that is used to put the machine in exact stop mode. The output
string is defined on post question: 3578
Mill Turn Job
API:
string MILLTURN_GetExactStop()
g_exact_stop_modal_on
Outputs the string that is used to turn on exact stop mode on the machine. This is a
modal variable. The string is defined on post question: 3579.
Mill Turn Job
API:
string MILLTURN_GetExactStopModalOn()
g_exact_stop_modal_off
Outputs the string that is used to turn off exact stop mode on the machine. This is a
modal variable. The string is defined on post question: 3580.
Mill Turn Job
API:
string MILLTURN_GetExactStopModalOff()
g_balance_cut_on
Outputs the string that defines turning ON balance cutting mode on the machine. The
output string is defined on post question: 3581.
Mill Turn Job
API:
string MILLTURN_GetBalanceCutOn()
g_balance_cut_off
Outputs the string that defines turning OFF balance cutting mode on the machine. The
output string is defined on post question: 3582.
Mill Turn Job
API:
string MILLTURN_GetBalanceCutOff()
47
g_finish_cycle_code
Lathe Job Outputs the string that defines the code used to activate a Lathe Finish Canned cycle.
The string is defined on post question: 1870.
Mill Turn Job
API:
string MILLTURN_GetFinishCycleCode()
g_rough_cycle_code
Outputs the string that defines the code used to activate a Lathe Roughing Canned
cycle. The string that is output depends on if the cycle is OD or Facing.
The OD string that is output is defined on post question: 1871
Mill Turn Job The Face string that is output is defined on post question: 1872
API:
string MILLTURN_GetRoughCycleCode()
g_pattern_repeat_code
Outputs the string that defines the pattern repeat cycle on the machine. The output
string is defined on post question: 1873
Mill Turn Job
API:
string MILLTURN_GetPatternRepeatCode()
g_groove_cycle_code
Outputs the string that defines the grooving cycle on the machine. The code that is
output depends on if the cycle is OD or Face orientation.
OD/ID code is defined on post question: 1875
Face code is defined on post question: 1874
Mill Turn Job
API:
string MILLTURN_GetGrooveCycleCode()
g_thread_cycle_code
Outputs the string that turns on the thread cutting cycle on the machine. The code
that is output depends on if the cycle is OD or Face orientation.
OD/ID code is defined on post question: 1876
Face code is defined on post question: 1877
Mill Turn Job
API:
string MILLTURN_GetThreadCycleCode()
M Codes
end_of_file
Mill Job Outputs the string that defines the end of file to the machine. The string is defined on
Mill Turn Job post question: 625.
stop
Outputs the string that defines a stop to the machine. The string is defined on post
Mill Job
question: 626
Outputs the string that defines a stop to the machine. The string is defined on post
Lathe Job
question: 626
Outputs the string that defines a stop to the machine. The string is defined on post
Mill Turn Job
question: 626
optional_stop
Outputs the string that defines an optional stop to the machine. The string is defined
Mill Turn Job
on post question: 627
coolant_on
Outputs the coolant ON string. The strings output are as follows:
673 = Flood
Mill Job 706 = Mist
707 = Air
708 = Oil
Lathe Job Outputs the coolant ON string. The string is defined on post question: 673
Outputs the coolant ON string. The string that is output is dependant of the active
toolpiece device. Each toolpiece device has coolant codes for each of the coolant
types. The codes are as follows:
20x10 = Coolant 1 ON
Mill Turn Job 20x11 = Coolant 2 ON
20x12 = Coolant 3 ON
20x13 = Coolant 4 ON
20x14 = Coolant OFF
coolant_off
Mill Job Outputs the coolant OFF string. The string is defined on post question: 674
Lathe Job Outputs the coolant OFF string. The string is defined on post question: 674
Outputs the coolant OFF string. The string that is output is dependant of the active
toolpiece device. The post question defining the coolant OFF code is:
Mill Turn Job
20x14 = Coolant OFF
49
LATHE_GetIsCoolantOn() – API Only
API:
Lathe Job short LATHE_GetIsCoolantOn()
API:
Lathe Job string LATHE_GetCoolantOn()
API:
Lathe Job string LATHE_GetCoolantOff()
spindle_on
Outputs the spindle ON string based on the current Forwar/Reverse state. The strings
Mill Job
output are defined on post question: 670=Forward, and post question: 671=Reverse.
Outputs the spindle ON string based on the current Forward/Reverse state. The strings
output are defined on post question: 670=Forward, and post question: 671=Reverse.
Lathe Job
API:
string LATHE_GetSpindleOn()
Outputs the spindle ON string based on the currently active Workpiece device and the
Forward/Reverse state. Each Workpiece device has spindle codes that are used for
Forward, Reverse, and OFF. The post questions for these codes are as follows:
Mill Turn Job
10x02 = Forward Code
10x03 = OFF Code
10x04 = Reverse Code
spindle_off
Outputs the string to turn off the spindle. The string output is defined on post
Mill Job
question: 671.
Outputs the spindle OFF string. The output string is defined on post question: 672
Lathe Job
API:
string LATHE_GetSpindleOff()
Mill Turn Job Outputs the spindle OFF string based on the currently active Workpiece device. Each
Workpiece device has spindle codes that are used for Forward, Reverse, and OFF. The
post questions for these codes are as follows:
10x02 = Forward Code
10x03 = OFF Code
10x04 = Reverse Code
live_spindle_on
Outputs the spindle ON Forward, OFF, and ON Reverse strings. The system will output
the spindle strings based on the active Tool device. Each Tool device has spindle codes
that are used. The post questions for these string codes are as follows:
20x02 = ON Forward Code
Mill Turn Job 20x03 = OFF Code
20x04 = ON Reverse Code
API:
string MILLTURN_GetLiveSpindleOn()
live_spindle_off
Outputs the spindle OFF string. The system will output the spindle string based on the
active Tool device. Each Tool device has spindle codes that are used. The post
questions for these string codes are as follows:
20x02 = ON Forward Code
Mill Turn Job 20x03 = OFF Code
20x04 = ON Reverse Code
API:
string MILLTURN_GetLiveSpindleOff()
live_spindle_on_forward
Outputs the spindle ON Forward string. The system will output the spindle string
based on the active Tool device. Each Tool device has spindle codes that are used.
The post questions for these string codes are as follows:
20x02 = ON Forward Code
Mill Turn Job 20x03 = OFF Code
20x04 = ON Reverse Code
API:
string MILLTURN_GetLiveSpindleOnForward()
live_spindle_on_reverse
Outputs the spindle ON Forward string. The system will output the spindle string
based on the active Tool device. Each Tool device has spindle codes that are used.
Mill Turn Job
The post questions for these string codes are as follows:
20x02 = ON Forward Code
51
20x03 = OFF Code
20x04 = ON Reverse Code
API:
string MILLTURN_GetLiveSpindleOnReverse()
Canned Cycles
profile_start_x
Outputs the canned turning cycle starting X position with prefix. The prefix string is
defined on post question: 684
Lathe Job
API:
double LATHE_GetProfileStartX()
Outputs the canned turning cycle starting X position with prefix. The prefix string is
defined on post question: 1801
Mill Turn Job
API:
double MILLTURN_GetProfileStartX()
profile_start_z
Outputs the canned turning cycle starting Z position with prefix. The prefix string is
defined on post question: 686
Lathe Job
API:
double LATHE_GetProfileStartZ()
Outputs the canned turning cycle starting Z position with prefix. The prefix string is
defined on post question: 1803
Mill Turn Job
API:
double MILLTURN_GetProfileStartZ()
profile_end_x
Outputs the canned turning cycle ending X position with prefix. The prefix string is
defined on post question: 684
Lathe Job
API:
double LATHE_GetProfileEndX()
Outputs the canned turning cycle ending X position with prefix. The prefix string is
defined on post question: 1801
Mill Turn Job
API:
double MILLTURN_GetProfileEndX()
profile_end_z
Outputs the canned turning cycle ending Z position with prefix. The prefix string is
defined on post question: 686
Lathe Job
API:
double LATHE_GetProfileEndZ()
Outputs the canned turning cycle ending Z position with prefix. The prefix string is
defined on post question: 1803
Mill Turn Job
API:
double MILLTURN_GetProfileEndZ()
profile_end_x_top_of_thread
Outputs the canned threading cycle ending X position with prefix. The prefix string is
defined on post question: 1801. This variable will output the X dimension without the
thread depth being taken into account.
Mill Turn Job
API:
double MILLTURN_GetProfileEndXTopOfThread()
g_canned_cycle
Outputs the string defining the currently used cycle. The strings used are defined on
Mill Job
post questions: 800 through 831.
Outputs the string defining the currently used cycle. The strings used are defined on
Lathe Job
post questions: 1850 through 1868.
Outputs the string defining the currently used cycle. The strings used are defined on
Mill Turn Job
post questions: 800 through 831.
cancel_drill_cycle
Outputs the string that defines the Canned Cycle Cancel to the machine. The string
Mill Job
output is defined on post question: 679
Outputs the string that defines the Canned Cycle Cancel code to the machine. There
are several Cancel codes that will be used. Output is determined by the current drilling
mode(Mill, Lathe, or Cross Drilling). The strings output are defined as follows:
Mill Turn Job
Mill Drill Cycle Cancel – 679
Lathe Drill Cycle Cancel - 679
Cross Drill Cycle Cancel - 3518
53
currently defined string based on post questions: 515 and 516. The strings output are
defined on post questions: 727 and 728.
Cross Drilling will output the currently defined string based on post questions: 3513
and 3512. The strings output are defined on post questions: 3525 and 3526.
drill_depth
Outputs the drill depth with prefix. The prefix is defined on post question: 677
Mill Job
API:
double MILL_GetDrillDepth()
Lathe Job Outputs the drill depth with prefix. The prefix is defined on post question: 1844
Outputs the drill depth with prefix. The prefix is defined as the following:
Mill Operation(Face) – 677
Mill Turn Job
Mill Operation(Cross – 3517
Lathe Operation(Face) - 1844
drill_depth_no_prefix
Mill Turn Job Outputs the drill depth with NO prefix.
z_drill
Outputs the Z axis position at the depth of the hole. The prefix is defined on post
question: 677
Mill Job
API:
double MILL_GetDrillZ()
Outputs the Z axis position at the depth of the hole. The prefix is defined on post
question: 677
Mill Turn Job
API:
double MILLTURN_GetDrillZ()
z_drill_no_prefix
Outputs the Z axis position at the depth of the hole with NO prefix.
Mill Job
API:
double MILL_GetDrillZ()
Outputs the Z axis position at the depth of the hole with NO prefix
Mill Turn Job
API:
double MILLTURN_GetDrillZ()
abs_drill_depth
Mill Job Outputs the absolute value of the drilling depth with prefix. The prefix is defined on
post question: 677
API:
double MILL_GetAbsDrillDepth()
Outputs the absolute value of the drilling depth with prefix. The prefix used depends
on the orientation of the drilling operation. The prefixes are defined as follows:
Mill (Face with Live Tooling) = Prefix defined on post question: 677
Lathe (Face with Static Tooling) = Prefix defined on post question: 677
Mill Turn Job
Mill (Cross Drill with Live Tooling) = Prefix defined on post question: 3517
API:
double MILLTURN_GetAbsDrillDepth()
reference_plane
Outputs the value for the reference plane with prefix. The prefix is defined on post
question: 649
Mill Job
API:
double MILL_GetReferencPlaneHeight()
Outputs the value for the reference plane with prefix. The prefix is defined on post
Lathe Job
question: 1849
Outputs the value for the reference plane with prefix. The prefix used for output
depends on the orientation of the drilling operation. The prefixes are defined as
follows:
Mill (Face with Live Tooling) = Prefix defined on post question: 649
Mill Turn Job Lathe (Face with Static Tooling) = Prefix defined on post question: 649
Mill (Cross with Live Tooling) = Prefix defined on post question: 3514
API:
double MILLTURN_GetReferencPlaneHeight()
initial_plane
Outputs the value for the initial plane with prefix. The prefix is defined on post question: 689
Mill Job
API:
double MILL_GetInitialPlaneHeight()
Lathe Outputs the value for the initial plane with prefix. The prefix is defined on post question:
Job 1846
55
Outputs the value for the initial plane with prefix. The prefixes used for output depends on
the orientation of the drilling operation. The prefixes are defined as follows:
Mill (Face with Live Tooling) = Prefix defined on post question: 689
Mill Lathe (Face with Static Tooling) = Prefix defined on post question: 846
Turn Job Mill (Cross with Live Tooling) = Prefix defined on post question: 3520
API:
double MILLTURN_GetInitialPlaneHeight()
canned_feed_rate
Outputs the value of the canned cycle feedrate with prefix. The prefix is defined on
post question: 687
Mill Job
API:
double MILL_GetCannedCycleFeedRate()
Outputs the value of the canned cycle feedrate with prefix. The prefix is defined on
Lathe Job
post question: 1845
Outputs the value of the canned cycle feedrate with prefix. The prefix used for output
depends on the orientation of the drilling operation. The prefixes are defined as
follows:
Mill (Face with Live Tooling) = Prefix defined on post question: 687
Mill Turn Job Lathe (Face with Static Tooling) = Prefix defined on post question: 1845
Mill (Cross with Live Tooling) = Prefix defined on post question: 3519
API:
double MILLTURN_GetCannedCycleFeedRate()
peck_drill_increment
Outputs the value of the peck drilling increment with prefix. The prefix is defined on
post question: 676
Mill Job
API:
double MILL_GetPeckDrillIncrement()
Outputs the value of the peck drilling increment with prefix. The prefix is defined on
Lathe Job
post question: 1842
Outputs the value of the peck drilling increment with prefix. The prefix used for output
depends on the orientation of the drilling operation. The prefixes are defined as
follows:
Mill (Face with Live Tooling) = Prefix defined on post question: 676
Mill Turn Job Lathe (Face with Static Tooling) = Prefix defined on post question: 1842
Mill (Cross with Live Tooling) = Prefix defined on post question: 3516
API:
double MILLTURN_GetPeckDrillIncrement()
peck_increment
Outputs the value of the peck drilling increment with prefix. The prefix is defined on
post question: 1842
Lathe Job
API:
double LATHE_GetPeckIncrement()
Outputs the value of the peck drilling increment with prefix. The prefix used for output
depends on the orientation of the drilling operation. The prefixes are defined as
follows:
Mill (Face with Live Tooling) = Prefix defined on post question: 676
Mill Turn Job Lathe (Face with Static Tooling) = Prefix defined on post question: 1842
Mill (Cross with Live Tooling) = Prefix defined on post question: 3516
API:
double MILLTURN_GetPeckIncrement()
dwell
Outputs the dwell value with prefix. The prefix is defined on post question: 607
Mill Job
API:
double MILL_GetDwell()
Outputs the dwell value with prefix. The prefix is defined on post question: 1847
Lathe Job
API:
short LATHE_GetDrillDwell()
Outputs the dwell value with prefix. The prefix output depends on the operation type.
Mill (Face and Cross drilling with Live Tooling) = 607
Lathe (Face drilling with Static Tooling) = 1847
Mill Turn Job
API:
double MILLTURN_GetDwell()
gdwell
Outputs the string defined for the Dwell code. The output string is defined on post
question: 655
Mill Turn Job
API:
double MILLTURN_GetGDwell()
dwell_milliseconds
Mill Job Outputs the dwell value with prefix. The prefix is defined on post question: 607
57
inc_z_depth
Outputs the incremental Z depth value with prefix. The prefix is defined on post
Mill Job
question: 677
Outputs the incremental Z depth value with prefix. The prefix output depends on the
type and orientation of the operation.
Mill Turn Job Mill (Face with Live Tooling) = 677
Lathe (Face with Static Tooling) = 677
Mill (Cross with Live Tooling) = 3515
first_peck_drill_increment
Outputs the value for the first peck drill increment with prefix. The prefix is defined on
post question: 675.
Mill Job
API:
double MILL_GetPeckDrillFirstPeckAmount()
Outputs the value for the first peck drill increment with prefix. The prefix is defined on
Lathe Job
post question: 1841.
Outputs the value for the first peck drill increment with prefix. The prefix output
depends on the type and orientation of the operation.
Mill (Face with Live Tooling) = 675
Lathe (Face with Static Tooling) = 841
Mill Turn Job
Mill (Cross with Live Tooling) = 3515
API:
double MILLTURN_GetFirstPieckDrillIncrement()
drill_clearance_no_prefix
Outputs the Z axis position of the defined clearance in the Machine Setup with NO
prefix.
Mill Job
API:
double MILL_GetClearanceZ()
Outputs the clearance position along the tool axis. The clearance position is defined in
the Machine Setup. This value is output with NO prefix.
Mill Turn Job
API:
double MILLTURN_GetDrillClearance()
rough_x_allowance (deprecated)
(deprecated – used in v28 or previous)
Outputs the roughing canned cycle X axis allowance value with prefix. The prefix is
defined on post question: 1805
Lathe Job
API:
double LATHE_GetRoughXAllowance()
Outputs the roughing canned cycle X axis allowance value with prefix. The prefix is
defined on post question: 1805
Mill Turn Job
API:
double MILLTURN_GetRoughXAllowance()
rough_cycle_rough_x_allowance
Lathe Job Outputs the roughing canned cycle X axis allowance value with prefix. The prefix is
defined on post question: 1880
Mill Turn Job
API:
double LATHE_GetRoughCycleRoughXAllowance()
rough_cycle_finish_x_allowance
Lathe Job Outputs the roughing and finish canned cycle X axis finish allowance value with prefix.
The prefix is defined on post question: 1882
Mill Turn Job
API:
double LATHE_GetRoughCycleFinishXAllowance()
rough_z_allowance (deprecated)
(deprecated – used in v28 or previous)
Outputs the roughing canned cycle Z axis allowance value with prefix. The prefix is
defined on post question: 1806
Lathe Job
API:
double LATHE_GetRoughZAllowance()
Outputs the roughing canned cycle Z axis allowance value with prefix. The prefix is
defined on post question: 1806
Mill Turn Job
API:
double MILLTURN_GetRoughZAllowance()
59
rough_cycle_rough_z_allowance
Lathe Job Outputs the roughing canned cycle Z axis allowance value with prefix. The prefix is
defined on post question: 1881
Mill Turn Job
API:
double LATHE_GetRoughCycleRoughZAllowance()
rough_cycle_finish_z_allowance
Lathe Job Outputs the roughing and finish canned cycle Z axis finish allowance value with prefix.
The prefix is defined on post question: 1883
Mill Turn Job
API:
double LATHE_GetRoughCycleFinishZAllowance()
rough_depth_of_cut
Outputs the roughing canned cycle depth of cut value with prefix. The prefix is defined
on post question: 1804
Lathe Job
API:
double LATHE_GetRoughDepthOfCut()
Outputs the roughing canned cycle depth of cut value with prefix. The prefix is defined
on post question: 1804
Mill Turn Job
API:
double MILLTURN_GetRoughDepthOfCut()
rough_depth_of_cut_two_line
Outputs the roughing canned cycle depth of cut value needed for two line format with
Lathe Job
prefix. The prefix is defined on post question: 1804
Outputs the roughing canned cycle depth of cut value needed for two line format with
Mill Turn Job
prefix. The prefix is defined on post question: 1804
rough_depth_of_cut_with_decimal
Outputs the depth of cut for the one line canned cycle format with decimal format and
Lathe Job
prefix. The prefix is defined on post question: 1804
Outputs the depth of cut for the one line canned cycle format with decimal format and
Mill Turn Job
prefix. The prefix is defined on post question: 1804
rough_depth_of_cut_two_line_decimal
Outputs the depth of cut for the two line canned cycle format with decimal format and
Lathe Job
prefix. The prefix is defined on post question: 1804
Outputs the depth of cut for the two line canned cycle format with decimal format and
Mill Turn Job
prefix. The prefix is defined on post question: 1804
rough_retract_amount
Outputs the roughing canned cycle retract amount defined on post question: 1411
with a prefix. The prefix is defined on post question: 1807
Lathe Job
API:
double LATHE_GetRoughRetractAmount()
Outputs the roughing canned cycle retract amount defined on post question: 1411
Mill Turn Job
with a prefix. The prefix is defined on post question: 1807
roughing_depth_of_cut_x
Outputs the roughing canned cycle depth of cut in the X axis with prefix. The prefix is
Lathe Job
defined on post question: 1823
Outputs the roughing canned cycle depth of cut in the X axis with prefix. The prefix is
Mill Turn Job
defined on post question: 1823
roughing_depth_of_cut_z
Outputs the roughing canned cycle depth of cut in the Z axis with prefix. The prefix is
Lathe Job
defined on post question: 1824
Outputs the roughing canned cycle depth of cut in the Z axis with prefix. The prefix is
Mill Turn Job
defined on post question: 1824
roughing_depth_of_cut_x_decimal
Outputs the roughing canned cycle depth of cut in the X axis with prefix with decimal
Lathe Job
format. The prefix is defined on post question: 1823
Outputs the roughing canned cycle depth of cut in the X axis with prefix with decimal
Mill Turn Job
format. The prefix is defined on post question: 1823
roughing_depth_of_cut_z_decimal
Outputs the roughing canned cycle depth of cut in the Z axis with prefix with decimal
Lathe Job
format. The prefix is defined on post question: 1824
Outputs the roughing canned cycle depth of cut in the Z axis with prefix with decimal
Mill Turn Job
format. The prefix is defined on post question: 1824
61
finish_x_spring_pass_stock_diameter
Outputs the value of the X axis spring pass. The value is output in diameter with prefix.
The prefix is defined on post question: 1810
Lathe Job
API:
double LATHE_GetFinishXSpringPassStockDiameter()
Outputs the value of the X axis spring pass. The value is output in diameter with prefix.
The prefix is defined on post question: 1810
Mill Turn Job
API:
double MILLTURN_GetFinishXSpringPassStockDiameter()
finish_z_spring_pass_stock_diameter
Outputs the value of the Z axis spring pass with prefix. The prefix is defined on post
question: 1811
Lathe Job
API:
double LATHE_GetFinishZSpringPassStockDiameter()
Outputs the value of the Z axis spring pass with prefix. The prefix is defined on post
question: 1811
Mill Turn Job
API:
double MILLTURN_GetFinishZSpringPassStockDiameter()
finish_x_allowance (deprecated)
(deprecated – used in v28 or previous)
Outputs the value of the X axis allowance as diameter value with prefix. The prefix is
defined on post question: 1808
Lathe Job
API:
double LATHE_GetXFinishAllowance()
Outputs the value of the X axis allowance as diameter value with prefix. The prefix is
defined on post question: 1808
Mill Turn Job
API:
double MILLTURN_GetXFinishAllowance()
finish_z_allowance (deprecated)
(deprecated – used in v28 or previous)
Outputs the value of the Z axis allowance with prefix. The prefix is defined on post
question: 1809
Lathe Job
API:
double LATHE_GetZFinishAllowance()
Outputs the value of the Z axis allowance with prefix. The prefix is defined on post
question: 1809
Mill Turn Job
API:
double MILLTURN_GetZFinishAllowance()
finish_number_of_cuts
Outputs the number of finish cuts with prefix. The prefix is fixed to the “D” character.
This variable outputs the numbers of passes in pattern repeat cycle (Fanuc G73) as well
the number of finish passes for the threading cycle
Lathe Job
API:
short LATHE_GetFinishNumberOfCuts()
Outputs the number of finish cuts with prefix. The prefix is fixed to the “D” character.
This variable outputs the numbers of passes in pattern repeat cycle (Fanuc G73) as well
the number of finish passes for the threading cycle
Mill Turn Job
API:
short MILLTURN_GetFinishNumberOfCuts()
finish_x_spring_pass_stock_radius
Outputs the X axis radius value of the stock for finish operations with prefix. The prefix
is defined on post question: 1810
Lathe Job
API:
double LATHE_GetFinishXSpringPassStockRadius()
Outputs the X axis radius value of the stock for finish operations with prefix. The prefix
is defined on post question: 1810
Mill Turn Job
API:
double MILLTURN_GetFinishXSpringPassStockRadius()
finish_z_spring_pass_stock_radius
Outputs the Z axis value of the stock for finish operations with prefix. The prefix is
defined on post question: 1811
Lathe Job
API:
double LATHE_GetFinishZSpringPassStockRadius()
Outputs the Z axis value of the stock for finish operations with prefix. The prefix is
defined on post question: 1811
Mill Turn Job
API:
double MILLTURN_GetFinishZSpringPassStockRadius()
63
finish_number_of_cuts_two_line
Outputs the number of finish cuts with prefix. The prefix is set to “R”.
Lathe Job
API:
short LATHE_GetFinishNumberOfCutsTwoLine()
Outputs the number of finish cuts with prefix. The prefix is set to “R”.
Mill Turn Job
API:
short MILLTURN_GetFinishNumberOfCutsTwoLine()
pattern_repeat_depth_of_cut_x
Returns the value calculated from the pattern repeat operation’s X Stock / Number of
Mill Turn Job Cuts. Prefix is defined on post question: 1884
pattern_repeat_depth_of_cut_z
Returns the value calculated from the pattern repeat operation’s Z Stock / Number of
Mill Turn Job Cuts. Prefix is defined on post question: 1885
pattern_repeat_fagor_a
Returns the value to identify if the depth of cut is applied in the X or Z axis with prefix
Mill Turn Job defined on post question: 1797
groove_z_bottom
Outputs the Z axis value for the bottom of the groove with prefix. The prefix is defined
on post question: 1814
Lathe Job
API:
double LATHE_GetGrooveZBottom()
Outputs the Z axis value for the bottom of the groove with prefix. The prefix is defined
on post question: 1814
Mill Turn Job
API:
double MILLTURN_GetGrooveZBottom()
groove_peck_increment
Outputs the peck increment for the groove with prefix. The prefix is defined on post
question: 1816
Lathe Job
API:
double LATHE_GetGroovePeckIncrement()
Outputs the peck increment for the groove with prefix. The prefix is defined on post
question: 1816
Mill Turn Job
API:
double MILLTURN_GetGroovePeckIncrement()
groove_depth_of_cut
Outputs the depth of cut value for the groove with prefix. The prefix is defined on post
question: 1815
Lathe Job
API:
double LATHE_GetGrooveDepthOfCut()
Outputs the depth of cut value for the groove with prefix. The prefix is defined on post
Mill Turn Job question: 1815
65
API:
double MILLTURN_GetGrooveDepthOfCut()
groove_retract_amount
Outputs the retract amount for the groove cycle with prefix. The prefix is defined on
post question: 1812 The value output is defined on post question: 1412
Lathe Job
API:
double LATHE_GetGrooveCycleRetract()
Outputs the retract amount for the groove cycle with prefix. The prefix is defined on
post question: 1812 The value output is defined on post question: 1412
Mill Turn Job
API:
double MILLTURN_GetGrooveDepthOfCut()
groove_rvalue
Lathe Job This variable outputs “R0.0000” only. This is typically used in two-line canned cycle
Mill Turn Job format which denotes the relief amount at the end of the cut.
drill_dwell
Outputs the dwell value with prefix. The prefix is defined on post question: 1825.
Lathe Job
API:
double LATHE_GetDrillDwell()
Outputs the dwell value with prefix. The prefix is defined on post question: 1825.
Mill Turn Job
API:
double MILLTURN_GetDrillDwell()
first_peck
Outputs the first peck value with prefix. The prefix is defined on post question: 1841.
Lathe Job
API:
double LATHE_GetFirstPeck()
Outputs the first peck value with prefix. The prefix is defined on post question: 1841.
Mill Turn Job
API:
double MILLTURN_GetFirstPeck()
peck_clearance
Outputs the peck clearance value with the prefix defined on post question: 1826.
Lathe Job
API:
double LATHE_GetPeckClearance()
Outputs the peck clearance value with prefix. The prefix is defined on post question:
1826
Mill Turn Job
API:
double MILLTURN_GetPeckClearance()
peck_retract
Outputs the peck retract value with prefix. The prefix is defined on post question:
1827.
Lathe Job
API:
double LATHE_GetPeckRetract()
Outputs the peck retract value with prefix. The prefix is defined on post question: 1827
Mill Turn Job
API:
double MILLTURN_GetPeckRetract()
tap_g32_gcode
Lathe Job
Outputs the string from post question 1821
Mill Turn Job
tap_g32_final_z
Outputs the final Z axis position for the G32 tapping operation with prefix. The prefix is
defined on post question: 686.
Lathe Job
API:
double LATHE_GetTapG32FinalZ()
Outputs the final Z axis position for the G32 tapping operation with prefix. The prefix is
Mill Turn Job
defined on post question: 1803.
Mill Turn Job Returns the Z axis Final Z position for a canned tapping cycle.
API:
Lathe Job string LATHE_GetTapCannedFinalZ()
tap_g32_initial_z
Outputs the initial Z axis position for the G32 tapping operation with prefix. The prefix
is defined on post question: 686.
Lathe Job
API:
double LATHE_GetTapG32InitialZ()
Mill Turn Job Outputs the initial Z axis position for the G32 tapping operation with prefix. The prefix
67
is defined on post question: 1803.
tap_canned_gcode
Outputs the string for left or right hand tapping based on the operation parameters.
The outputs strings are defined on post questions:
Lathe Job
Right Hand Tapping = 1765
Left Hand Tapping = 1766
Outputs the string for left or right hand tapping based on the operation parameters.
The outputs strings are defined on post questions:
Mill Turn Job
Right Hand Tapping = 1765
Left Hand Tapping = 1766
tap_canned_gcode_right
Outputs the string for right hand tapping. The output string is defined on post
Lathe Job
question: 1765
Outputs the string for right hand tapping. The output string is defined on post
Mill Turn Job
question: 1765
tap_canned_gcode_left
Outputs the string for left hand tapping. The output string is defined on post question:
Lathe Job
1766
Outputs the string for left hand tapping. The output string is defined on post question:
Mill Turn Job
1766
tap_reference_plane
Outputs the tap reference plane value in decimal format with prefix. The prefix is
Lathe Job
defined on post question: 1820
Outputs the tap reference plane value in decimal format with prefix. The prefix is
Mill Turn Job
defined on post question: 1820
tap_canned_final_z
Outputs the tap final Z depth in decimal format with prefix. The prefix is defined on
Lathe Job
post question: 686
Outputs the tap final Z depth in decimal format with prefix. The prefix is defined on
Mill Turn Job
post question: 1803
tap_canned_x
Outputs the tap X value with prefix. The prefix is defined on post question: 684. With
Lathe Job
lathe operations this will always return a value of “0.000”
Mill Turn Job Outputs the tap X value with prefix. The prefix is defined on post question: 1801.
rigid_tapping_start
Outputs a call to post block 1027. This is normally used to put the machine in feed per
Lathe Job
revolution mode.
Outputs a call to post block 1027. This is normally used to put the machine in feed per
Mill Turn Job
revolution mode.
rigid_tapping_end
Outputs a call to post block 1028. This is normally used to put the machine in feed per
Lathe Job
minute mode.
Outputs a call to post block 1028. This is normally used to put the machine in feed per
Mill Turn Job
minute mode.
API:
double MILLTURN_GetTapFeed()
69
tapping_spindle_speed
Outputs the tapping spindle speed with prefix. The prefix is defined on post question:
696
Mill Job
API:
double MILL_GetTappingSpindleSpeed()
Outputs the tapping spindle speed with prefix. The prefix output will be determined by
the orientation and type of operation. The following determines the prefix output:
Mill (Face and Cross with Live Tooling) = Prefix defined on post question: 696
Mill Turn Job Lathe (Face with Static Tooling) = Prefix defined on post question: 1780
API:
double MILLTURN_GetTappingSpindleSpeed()
threads_per_inch
Outputs the number of threads per inch in Inch mode and threads per millimeter in
Metric mode with prefix. The prefix is defined on post question: 697
Mill Job
API:
double MILL_GetThreadsPerInch()
Outputs the number of threads per inch in Inch mode and threads per millimeter in
Metric mode with prefix. The prefix is defined on post question: 697
Mill Turn Job
API:
double MILLTURN_GetThreadsPerInch()
thread_lead
Outputs the pitch of the thread with prefix. The prefix is defined on post question: 698
Mill Job
API:
double MILL_GetThreadsPitch()
Outputs the lead of the thread with prefix. The prefix is defined on post question:
Lathe Job
1705
Outputs the pitch of the thread with prefix. The prefix is defined based on the
orientation/type of operation. The prefix is output as follows:
Mill (Face and Cross with Live Tooling) = Prefix defined on post question: 698
Mill Turn Job Lathe(Face with Static Tooling) = Prefix defined on post question: 705
API:
double MILLTURN_GetThreadPitch()
thread_x2
Outputs the final X axis diameter value for the thread with prefix. The prefix is defined
Lathe Job on post question: 684.
API:
double LATHE_GetThreadX2()
Outputs the final X axis diameter value for the thread with prefix. The prefix mapping
blocks are 5000 through 5049 for absolute, and 5050 through 5099 for incremental. If
prefix is not defined in the prefix blocks, then prefix specified in post question 684 will
Mill Turn Job
be used.
API:
double MILLTURN_GetThreadX2()
thread_z2
Outputs the final Z axis value for the thread with prefix. The prefix is defined on post
question: 686.
Lathe Job
API:
double LATHE_GetThreadZ2()
Outputs the final Z axis value for the thread with prefix. The prefix mapping blocks are
5000 through 5049 for absolute, and 5050 through 5099 for incremental. If prefix is not
defined in the prefix blocks, then prefix specified in post question 686 will be used.
Mill Turn Job
API:
double MILLTURN_GetThreadZ2()
thread_angle_out_start
Outputs the string value that defines the thread start angle. The output string is
Lathe Job
defined on post question: 1712.
Outputs the string value that defines the thread start angle. The output string is
Mill Turn Job
defined on post question: 1712.
thread_angle_out_end
Lathe Job Outputs the string value that defines the thread end angle. The output string is
71
defined on post question: 1713.
Outputs the string value that defines the thread end angle. The output string is
Mill Turn Job
defined on post question: 1713.
0 = OFF
Lathe Job
1 = ON
API:
short LATHE_GetUseThreadAngleOut()
thread_height
Outputs the thread height value with prefix. The prefix is defined on post question:
1793.
Lathe Job
API:
short LATHE_GetThreadHeight()
Outputs the thread height value with prefix. The prefix is defined on post question:
1793.
Mill Turn Job
API:
short MILLTURN_GetThreadHeight()
thread_height_decimal
Outputs the thread height value as decimal with prefix. The prefix is defined on post
question: 1793.
Lathe Job
API:
short LATHE_GetThreadHeight()
Outputs the thread height value as decimal with prefix. The prefix is defined on post
question: 1793.
Mill Turn Job
API:
short MILLTURN_GetThreadHeight()
thread_first_cut
Outputs the thread first cut value with prefix. The prefix is defined on post question:
1792.
Lathe Job
API:
double LATHE_GetThreadFirstCut()
Outputs the thread first cut value with prefix. The prefix is defined on post question:
1792.
Mill Turn Job
API:
double MILLTURN_GetThreadFirstCut()
thread_first_cut_decimal
Outputs the thread first cut value as decimal with prefix. The prefix is defined on post
Lathe Job
question: 1792.
Outputs the thread first cut value as decimal with prefix. The prefix is defined on post
Mill Turn Job
question: 1792.
thread_lead
Mill Job Outputs the lead of the thread with prefix. The prefix is defined on post question: 698.
Outputs the lead of the thread with prefix. The prefix is defined on post question:
1705.
Lathe Job
API:
double LATHE_GetThreadLead()
Outputs the lead of the thread with prefix. The prefix is defined on post question: 1705
Mill Turn Job
API:
double MILLTURN_GetThreadLead()
thread_angle_in
Outputs the angle in value for thread operations with prefix. The prefix is defined on
post question: 1794.
Lathe Job
API:
double LATHE_GetAngleIn()
Outputs the angle in value for thread operations with prefix. The prefix is defined on
post question: 1794.
Mill Turn Job
API:
double MILLTURN_GetAngleIn()
thread_angle_in_decimal
Lathe Job Outputs the angle in value, as decimal, for thread operations with prefix. The prefix is
73
defined on post question: 1794.
Outputs the angle in value, as decimal, for thread operations with prefix. The prefix is
Mill Turn Job
defined on post question: 1794.
thread_last_cut
Outputs the thread last cut amount with prefix. The prefix is defined on post question:
1795.
Lathe Job
API:
double LATHE_GetThreadLastCut()
Outputs the thread last cut amount with prefix. The prefix is defined on post question:
1795.
Mill Turn Job
API:
double MILLTURN_GetThreadLastCut()
thread_machine_allowance
Outputs the thread machine allowance value with prefix. The prefix is defined on post
question: 1796. The allowance value is defined on post question: 1413.
Lathe Job
API:
double LATHE_GetThreadMachineAllowance()
Outputs the thread machine allowance value with prefix. The prefix is defined on post
question: 1796. The allowance value is defined on post question: 1413.
Mill Turn Job
API:
double MILLTURN_GetThreadMachineAllowance()
thread_g33_gcode
Outputs the string used to put the machine in separate moves type threading mode.
The string output is defined on post question: 680.
Lathe Job
API:
string LATHE_GetG33GCode()
Outputs the string used to put the machine in separate moves type threading mode.
The string output is defined on post question: 1797.
Mill Turn Job
API:
string MILLTURN_GetThreadG33GCode()
thread_g33_xmove
Outputs the X axis position of the G33 type threading cycle with prefix. The prefix is
Lathe Job
defined on post question: 684.
Outputs the X axis position of the G33 type threading cycle with prefix. The prefix is
Mill Turn Job
defined on post question: 1801
thread_g33_zmove
Outputs the Z axis position of the G33 type threading cycle with prefix. The prefix is
Lathe Job
defined on post question: 686.
Outputs the Z axis position of the G33 type threading cycle with prefix. The prefix is
Mill Turn Job
defined on post question: 1803
thread_g33_feedrate
Outputs the threading feedrate value with prefix. The prefix is defined on post
Lathe Job
question: 1707
Outputs the threading feedrate value with prefix. The prefix is defined on post
Mill Turn Job
question: 1707
taper_height
Outputs the thread taper height with prefix. The prefix is defined on post question:
1817
Lathe Job
API:
double LATHE_GetTaperHeight()
Outputs the thread taper height with prefix. The prefix is defined on post question:
Mill Turn Job
1817
g_thread_face_code
Outputs the string defined for Lathe Face Threading cycles. The string output is defined
on post question: 1877
Mill Turn Job
API:
string MILLTURN_GetThreadFaceCode()
g_thread_turn_code
Outputs the string defined for Lathe OD/ID Threading cycles. The string output is
defined on post question: 1876
Mill Turn Job
API:
string MILLTURN_GetThreadTurnCode()
75
g_cancel_canned_cycle
Outputs the string defined for canceling Turning/Threading canned cycles. The output
string is defined on post question: 1878
Mill Turn Job
API:
string MILLTURN_GetCancelCannedCycle()
heiden_ref_height
Outputs the reference height for the Heidenhain machines with prefix. The prefix is set
to “P01”
Mill Job
API:
double MILL_GetHeidenReferenceHeight()
Outputs the reference height for the Heidenhain machines with prefix. The prefix is set
to “P01”
Mill Turn Job
API:
double MILLTURN_GetHeidenReferenceHeight()
heiden_depth
Outputs the depth value for the Heidenhain machines with prefix. The prefix is set to
“P02”
Mill Job
API:
double MILL_GetHeidenDepth()
Outputs the depth value for the Heidenhain machines with prefix. The prefix is set to
“P02”
Mill Turn Job
API:
double MILLTURN_GetHeidenDepth()
heiden_peck_inc
Outputs the peck increment value for the Heidenhain machines with prefix. The prefix
is set to “P03”
Mill Job
API:
double MILL_GetHeidenPeckIncrement()
Outputs the peck increment value for the Heidenhain machines with prefix. The prefix
is set to “P03”
Mill Turn Job
API:
double MILLTURN_GetHeidenPeckIncrement()
heiden_dwell
Outputs the dwell value for the Heidenhain machines with prefix. The prefix is set to
“P04”
Mill Job
API:
double MILL_GetHeidenDwell()
Outputs the dwell value for the Heidenhain machines with prefix. The prefix is set to
“P04”
Mill Turn Job
API:
double MILLTURN_GetHeidenDwell()
heiden_plunge_rate
Outputs the plunge feedrate with prefix. The prefix is set to “P05”
Mill Job
API:
double MILL_GetHeidenPlungeRate()
Outputs the plunge feedrate with prefix. The prefix is set to “P05”
Mill Turn Job
API:
double MILLTURN_GetHeidenPlungeRate()
Spindle Codes
s
Outputs the spindle speed for milling with prefix. The prefix is defined on post
question: 605.
Mill Job
API:
short MILL_GetSpindleSpeed()
Outputs the spindle speed for turning with prefix. The prefix is defined on post
question: 605
API:
short MILLTURN_GetSpindleSpeed()
77
LATHE_GetSpindleSpeedCode() – API Only
Returns the codes defined for CSS and RPM from post questions:
Mill Turn Job 1785 = CSS Code
1786 = RPM Code
sp_speed
Mill Job
Outputs the spindle speed with NO prefix.
Mill Turn Job
sp_on_css
Outputs the spindle ON code and the spindle speed value with prefix. The spindle ON
Lathe Job code for CSS is defined on post question: 1785. The spindle speed value prefix is
defined on post question: 605.
Outputs the spindle ON code and the spindle speed value with prefix. The spindle ON
code comes from the active Workpiece device and is defined as follows:
Mill Turn Job 10x02 for forward
10x04 for reverse
The spindle speed prefix is defined on post question: 605
sp_on_rpm
Outputs the spindle ON code and the spindle speed value with prefix. The spindle ON
Lathe Job code for RPM is defined on post question: 1786. The spindle speed value prefix is
defined on post question: 605.
Outputs the spindle ON code and the spindle speed value with prefix. The spindle ON
code comes from the active Workpiece device and is defined as follows:
Mill Turn Job 10x02 for forward
10x04 for reverse
The spindle speed prefix is defined on post question: 605
spsp_code
Outputs the code for RPM or CSS based on the active mode set in the operation. The
Lathe Job
RPM code is defined on post question: 1786. The CSS code is defined on post question:
1785.
Outputs the code for RPM or CSS based on the active mode set in the operation. The
Mill Turn Job RPM code is defined on post question: 1786. The CSS code is defined on post question:
1785.
finish_spsp_code (deprecated)
Lathe Job Outputs the spindle speed code for the finish cycle of an operation.
out_css_rpm
Outputs the spindle speed with prefix. The prefix is defined on post question: 605
Lathe Job
API:
short LATHE_GetCssRpm()
Mill Turn Job Outputs the spindle speed with prefix. The prefix is defined on post question: 605
out_finish_css_rpm (deprecated)
Outputs the finish pass spindle speed with prefix. The prefix is defined on post
question: 1781
Lathe Job
API:
short LATHE_GetFinishSpindleSpeed()
smax
Outputs the maximum spindle speed with prefix. The prefix is defined on post
question: 605
Mill Job
API:
short MILL_GetMaximumSpindleSpeed()
Outputs the maximum spindle speed with prefix. The prefix is defined on post
question: 605
Lathe Job
API:
short LATHE_GetMaximumSpindleSpeed()
Outputs the maximum spindle speed with prefix. The prefix output depends on the
operation type. The prefix will be output as the following:
Mill(Live Tooling) = Prefix from post question: 605
Mill Turn Job Lathe(Static Tooling) = 605
API:
short MILLTURN_GetMaximumSpindleSpeed()
spindle_range
Outputs the gear range string based on the current spindle speed and the high range
Mill Job
speed defined on post question: 431.
79
For speeds lower than the defined value the system calls post block 20.
For speeds higher than the defined value the system calls post block 21.
Outputs the gear range string based on the active Tool Device and the gear ranges
Mill Turn Job defined on post questions: 20x20 through 20x24. The strings that are output are
defined on post questions: 20x25 through 20x29.
spindle_gear
Outputs the gear range string based on the current spindle speed and the defined
ranges on post questions: 1517 through 1526. The strings output are defined on post
questions: 1831 through 1840.
Lathe Job
API:
string LATHE_GetSpindleGear()
Outputs the gear range string based on the current active Workpiece Device, spindle
Mill Turn Job speed and the defined ranges on post questions: 10x24 through 10x33. The strings
output are defined on post questions: 10x08 through 10x17.
null
Mill Job
Outputs a Null character into the NC program
Mill Turn Job
z_sp_speed
Mill Job
Outputs the Z axis spindle speed with NO prefix.
Mill Turn Job
z_s
Outputs the Z axis spindle speed with NO prefix. The prefix is defined on post
Mill Job
question: 605
Outputs the Z axis spindle speed with prefix. The prefix is defined based on the active
Mill Turn Job
axis and the prefix mapping table in the post processor.
API:
short MILLTURN_GetSpindleMode()
Mill Turn Job Get the previous value of the pos_rpm variable.
API:
Lathe Job short LATHE_GetPrevPosRpm()
Tool
t
Outputs the tool number with the prefix that is set to “T”. Decimal places used for the
output formatting is defined on post question: 215.
Mill Job
API:
short MILL_GetToolNumber()
Outputs the tool number with prefix. The prefix is defined on post question: 1781.
The number of places used for output is defined on post question: 1513 and the overall
output format is defined on post question: 1512. Reference the Tool Format section
of this document for the available options.
Lathe Job
NOTE: Only 1 through 5 are valid for Lathe Jobs.
API:
short LATHE_GetToolNumber()
Outputs the tool number with the prefix that is set to “T”. The overall output format is
defined on post question: 20x30 and 20x31. Reference the Tool Format section of this
document for the available options.
Mill Turn Job
API:
short MILLTURN_GetToolNumber()
t1
Outputs the tool number with NO prefix. The decimal places used for the output
Mill Job
formatting is defined on post question: 215
Outputs the tool number with NO prefix. The number of decimal places used for
output id defined on post question: 1513. The final output get the value from post
question: 240 added to it.
Lathe Job
API:
short LATHE_GetToolNumberT1()
Outputs the tool number with NO prefix. The decimal places used for the output
Mill Turn Job
formatting is defined on post question: 215
81
t2
Outputs the tool number with NO prefix. The decimal places used for output is defined
Mill Job
on post question: 215
Outputs the tool number with NO prefix. The decimal places used for output is defined
on post question: 1513. The final output get the value from post question: 241 added
to it.
Lathe Job
API:
short LATHE_GetToolNumberT2()
Outputs the tool number with NO prefix. The decimal places used for output is defined
Mill Turn Job
on post question: 215
f_tool (deprecated)
Lathe Job Outputs the finish tool number of a feature with prefix. The prefix is defined on post
question: 1781
Mill Turn Job
API:
short LATHE_GetFinishToolNumber()
first_tool
Outputs the first tool number with NO prefix.
Mill Job
API:
double MILL_GetFirstToolNumber()
Outputs the first tool number with NO prefix.
Lathe Job
API:
double LATHE_GetFirstToolNumber()
Outputs the first tool number with NO prefix.
Mill Turn Job
API:
double MILLTURN_GetFirstToolNumber()
first_tool_with_prefix
Mill Job
Outputs the first tool number with prefix. The prefix is set to “T”.
Mill Turn Job
next_tool
Outputs the next tool number with NO prefix.
Mill Job
API:
double MILL_GetNextToolNumber()
Lathe Job Outputs the next tool number with NO prefix.
API:
double LATHE_GetNextToolNumber()
Outputs the first tool number with NO prefix.
Mill Turn Job
API:
double MILLTURN_GetNextToolNumber()
next_tool_with_prefix
Mill Job
Outputs the next tool number with prefix. The prefix is set to “T”.
Mill Turn Job
tool_with_offset
Mill Job Outputs the current tool number with a space and then the offset number. The tool
Mill Turn Job number prefix is set to the letter “T”. The offset has no prefix.
next_tool_with_offset
Mill Job Outputs the next tool number with a space and then the offset number. The tool
Mill Turn Job number prefix is set to the letter “T”. The offset has no prefix.
toolchange_code
Outputs the string defined on post question: 654. This code defines the command
used to initiate a tool change on the machine. This code will only be output if the
active tool device post question 20x30 is set to a value of 7 or 8.
Mill Turn Job
API:
string MILLTURN_GetToolchangeCode()
suffix_code
Returns the Suffix Code of the current tool with NO prefix. This is a string value with
NO prefix commonly used for Mazak tool numbering.
Mill Turn Job
API:
string MILLTURN_GetSuffixCode()
next_suffix_code
Returns the Suffix Code of the next tool with NO prefix. This is a string value with NO
prefix commonly used for Mazak tool numbering.
Mill Turn Job
API:
string MILLTURN_GetNextSuffixCode()
83
tool_orientation
Outputs the orientation number in a 2 digit format with NO prefix. Used for Mazak tool
numbering. The value output comes from the Tool Orientation Mapping questions in
the post (5200 through 5208). The Tool Orientation Control parameters in a turning
feature is used to define the output.
Mill Turn Job
API:
string MILLTURN_GetToolOrientation() This returns the mapped string
integer MILLTURN_GetToolOrientationIndex() This returns the orientation index value
Mill Turn Job Returns the current tool orientation. (Number 1-8)
API:
Lathe Job short LATHE_GetToolOrientation()
special
Returns the tool number formatted with the offset canceled (T0100) The prefix is
defined on post question: 1781
Lathe Job
API:
string LATHE_GetSpecialToolNumber()
Returns the tool number formatted with the offset canceled (T0100) The prefix is
defined on post question: 1781
Mill Turn Job
API:
string MILLTURN_GetSpecialToolNumber()
f_special (deprecated)
Returns the tool number formatted with the offset canceled (T0100) The prefix is
defined on post question: 1781
Lathe Job
API:
string LATHE_GetFinishSpecialToolNumber()
Returns the tool number formatted with the offset canceled (T0100) The prefix is
defined on post question: 1781
Mill Turn Job
API:
string MILLTURN_GetFinishSpecialToolNumber()
n_tool (deprecated)
Lathe Job
Outputs the current line number
Mill Turn Job
n_ftool (deprecated)
Lathe Job
Outputs the current line number
Mill Turn Job
p_tool_num
Lathe Job
Outputs the tool number with NO prefix.
Mill Turn Job
p_ftool_num (deprecated)
Lathe Job
Outputs the tool number for finishing operation with NO prefix.
Mill Turn Job
p_special
Lathe Job
Outputs the tool number with a prefix defined on post question 1781.
Mill Turn Job
list_tool_number
Mill Job
Outputs the tool list number with NO prefix.
Mill Turn Job
tool_diameter
Outputs the value of the diameter of the milling tool with NO prefix.
Mill Job
API:
double MILL_GetToolDiameter()
Outputs the value of the diameter of the milling tool with NO prefix.
Mill Turn Job
API:
double MILLTURN_GetToolDiameter()
tool_radius
Outputs the value of the radius of the milling tool with NO prefix.
Mill Job
API:
double MILL_GetToolRadius()
Outputs the value of the of the milling tool with NO prefix.
Mill Turn Job
API:
double MILLTURN_GetToolRadius()
tool_name
Mill Job Outputs the string containing the tool name. The names that are output are the tool
85
types that can be seen in the tool crib.
API:
string MILL_GetToolName()
Outputs the string containing the tool name. The names that are output are the tool
types that can be seen in the tool crib.
Mill Turn Job
API:
string MILLTURN_GetToolName()
tool_protrusion_length
Outputs the protrusion length of the tool with NO prefix.
Mill Job
API:
double MILL_GetToolProtrusionLength()
Outputs the protrusion length of the tool with NO prefix.
Mill Turn Job
API:
double MILLTURN_GetToolProtrusionLength()
tool_length
Outputs the length of the tool with NO prefix.
Mill Job
API:
double MILL_GetToolLength()
Outputs the length of the tool with NO prefix.
Mill Turn Job
API:
double MILLTURN_GetToolName()
Feed Rate
feed_rate
Outputs the current feed rate value with prefix. The prefix is defined on post question:
606
Mill Job
API:
double MILL_GetFeedRate()
Outputs the current feed rate value with prefix. The prefix output depends on the
orientation and type of operation. The prefix is defined as follows:
Mill UPM = Prefix from post question: 606
Mill Turn Job Mill Inverse Time = Prefix from post question: 609
Lathe UPM = Prefix from post question: 1707
Lathe UPR = Prefix from post question: 1706
API:
double MILLTURN_GetFeedRate()
F
Mill Job Outputs the current feed rate with prefix. The prefix is defined on post question: 606
Outputs the current feedrate with prefix. The prefix is based on Feed Per Minute or
Feed Per Revolution. The prefixes output are defined as follows:
Lathe Job
Feed Per Revolution (FPR) = Post question: 1706
Feed Per Minute (FPM) = Post question: 1707
Outputs the current feed rate with prefix. The prefix is defined based on the
orientation/type of operation.
Mill Turn Job Mill (Face and Cross Live Tooling) = Prefix from post question: 606
Lathe (FPR) = Prefix from post question: 1706
Lathe (FPM) = Prefix from post question: 1707
force_feed_rate_on
Mill Job
This is a command that forces the output of the feed rate on lines following it’s use.
Mill Turn Job
force_feed_rate_off
Mill Job
This is a command that suppresses the output of the feed rate on the line.
Mill Turn Job
z_feed_rate
Mill Job Outputs the feedrate from post block 51 with a value representing the Z axis(Plunge)
Mill Turn Job feedrate. The prefix output is defined on post question: 705
feed_mode_inv
Mill Job Outputs the string that defines Inverse Time feed mode on the machine. The string
Mill Turn Job output is defined on post question: 714
feed_mode_upm
Mill Job Outputs the string that defines Unit Per Minute feed mode on the machine. The string
Mill Turn Job output is defined on post question: 715
feed_mode_upr
Outputs the string that defines Unit Per Revolution feed mode on the machine. The
Mill Turn Job
string output is defined on post question: 729
feed_rate_upm
Outputs the feed rate for Unit per Minute with prefix string defined on post question
Lathe Job
1707
87
Outputs the feed rate for Unit Per Minute feed with prefix. The prefix string is defined
based on operation type as follows:
Mill Operations = String defined on post question: 606
Mill Turn Job Lathe Operation = String defined on post question: 1707
API:
string MILLTURN_GetFeedRateUPM()
feed_rate_upr
Outputs the feed rate for Unit Per Revolution feed with prefix. The prefix string is
defined based on operation type as follows:
Mill Operations = String defined on post question: 606
Mill Turn Job Lathe Operation = String defined on post question: 1707
API:
string MILLTURN_GetFeedRateUPR()
feed_mode
Outputs the strings that will put the machine in Feed Per Minute or Inverse Time mode
on the machine. The strings output depend on the current mode determined by the
operation. The strings are defined as follows:
Unit Per Minute = String defined on post question: 715
Inverse Time Feed = String defined on post question: 714
Mill Job
API:
short MILL_Get_FeedMode()
0 = UPM
1 = Inverse Feed
Outputs the strings that will put the machine in Feed Per Minute or Inverse Time mode
on the machine. The strings output depend on the current mode determined by the
operation. The strings are defined as follows:
Unit Per Minute = String defined on post question: 715
Inverse Time Feed = String defined on post question: 714
Mill Turn Job
API:
short MILLTURN_Get_FeedMode()
0 = UPM
1 = Inverse Feed
finish_feed (deprecated)
Outputs the current feedrate with prefix. The output depends on the active feed mode
(Unit Per Minute or Unit Per Revolution). The prefix output is defined as follows:
Lathe Job Unit Per Minute = String defined on post question: 1707
Unit Per Revolution = String defined on post question: 1706
API:
string LATHE_GetFinishFeedRate()
Outputs the current feedrate with prefix. The output depends on the active feed mode
(Unit Per Minute or Unit Per Revolution). The prefix output is defined as follows:
Mill Turn Job Unit Per Minute = String defined on post question: 1707
Unit Per Revolution = String defined on post question: 1706
rough_feed (deprecated)
Outputs the current feedrate with prefix. The output depends on the active feed mode
(Unit Per Minute or Unit Per Revolution). The prefix output is defined as follows:
Unit Per Minute = String defined on post question: 1707
Lathe Job Unit Per Revolution = String defined on post question: 1706
API:
double LATHE_GetRoughFeedRate()
Outputs the current feedrate with prefix. The output depends on the active feed mode
(Unit Per Minute or Unit Per Revolution). The prefix output is defined as follows:
Mill Turn Job
Unit Per Minute = String defined on post question: 1707
Unit Per Revolution = String defined on post question: 1706
tap_feed_mode
Outputs the string defining the mode for the tapping cycle. The string output are as
follows:
Feed Per Minute = String defined on post question: 715
Lathe Job Feed Per Revolution = String defined on post question: 729
API:
string LATHE_GetTapFeedMode()
Outputs the string defining the mode for the tapping cycle. The string output are as
follows:
Feed Per Minute = String defined on post question: 1763
Mill Turn Job Feed Per Revolution = String defined on post question: 1764
API:
string MILLTURN_GetTapFeedMode()
LATHE_SetTapFeedMode(short FeedMode) – API Only
Sets the feed mode for the tapping cycle. Post question: 1305 is the default setting for
the tap mode.
API:
LATHE_SetTapFeedMode(short FeedMode)
89
LATHE_GetFinishFeedRate() – API Only
Returns the current finish feedrate.
Lathe Job
API:
double LATHE_GetFinishFeedRate()
init_stock_x
Outputs the initial X axis position of the stock with a prefix for the stock feed
Lathe Job
operation. The prefix is defined on post question: 684
Outputs the initial X axis position of the stock with a prefix for the stock feed
Mill Turn Job
operation. The prefix is defined on post question: 1801
stock_from_x
Outputs the value with the prefix from the stock feed operation for the X axis starting
Lathe Job
position. The prefix is defined on post question: 684
Outputs the value with the prefix from the stock feed operation for the X axis starting
Mill Turn Job
position. The prefix is defined on post question: 1801
stock_from_z
Outputs the value with the prefix from the stock feed operation for the Z axis starting
Lathe Job
position. The prefix is defined on post question: 686
Outputs the value with the prefix from the stock feed operation for the Z axis starting
Mill Turn Job
position. The prefix is defined on post question: 1803
stock_to_z
Outputs the value with the prefix from the stock feed operation for the Z axis ending
Lathe Job
position. The prefix is defined on post question: 686
Outputs the value with the prefix from the stock feed operation for the Z axis ending
Mill Turn Job
position. The prefix is defined on post question: 1803
stock_feed_t
Outputs the tool value entered into the stock feed operation for the tool with prefix.
Lathe Job
The prefix is defined on post question: 1781
Outputs the tool value entered into the stock feed operation for the tool with prefix.
Mill Turn Job
The prefix is defined on post question: 1781
stock_feedrate
Lathe Job
Outputs the value entered for the feedrate into the stock feed operation.
Mill Turn Job
stock_rapid_feedrate
Lathe Job
Outputs the value entered for the rapid feedrate into the stock feed operation.
Mill Turn Job
stock_zh
Outputs the value entered into the stock feed operation for the Z axis home with
Lathe Job
prefix. The prefix is defined on post question: 686.
Outputs the value entered into the stock feed operation for the Z axis home with
Mill Turn Job
prefix. The prefix is defined on post question: 1803.
stock_xh
Outputs the value entered into the stock feed operation for the X axis home with
Lathe Job
prefix. The prefix is defined on post question: 684.
Outputs the value entered into the stock feed operation for the X axis home with
Mill Turn Job
prefix. The prefix is defined on post question: 1801.
output_first_stock_feed
Lathe Job Command that must be located in the first tool change block to output the stock feed
as the first operation in a program. If you do not have this variable in the previously
Mill Turn Job defined blocks and the part program has the stock feed operation as the very first
feature the NC output will not be correct.
rapid_to_pickup_z
Outputs the Z axis position for the Clamp position defined in the stock feed operation
Lathe Job
parameters. The prefix is defined on post question: 686
Outputs the Z axis position for the Clamp position defined in the stock feed operation
Mill Turn Job parameters. The prefix is defined on post question: 1803
91
rapid_to_position_x
Outputs the X axis position for the Clamp Position defined in the stock feed operation
Lathe Job
parameters. The prefix is defined on post question: 686
Outputs the X axis position for the Clamp Position defined in the stock feed operation
Mill Turn Job
parameters. The prefix is defined on post question: 1803
rapid_to_position_z
Outputs the Z axis initial position defined in the stock feed operation. The prefix is
Lathe Job
defined on post question: 686
Outputs the Z axis initial position defined in the stock feed operation. The prefix is
Mill Turn Job
defined on post question: 803
rapid_to_stock_feed_z
Outputs the Z axis end position defined in the stock feed operation. The prefix is
Lathe Job
defined on post question: 686
Outputs the Z axis end position defined in the stock feed operation. The prefix is
Mill Turn Job
defined on post question: 1803
Stroke Limit
g_stroke_limit_on
Outputs the string that turns ON the Stroke Limit function on the machine’s controller.
The output string is defined on post question: 3569
Mill Turn Job
API:
string MILLTURN_GetStrokeLimitOn()
g_stroke_limit_off
Outputs the string that turns OFF the Stroke Limit function on the machine’s controller.
The output string is defined on post question: 3570
Mill Turn Job
API:
string MILLTURN_GetStrokeLimitOff()
stroke_limit_x
Outputs the value with prefix used to define the 1st point X position for the stroke limit.
The prefix is defined on post question: 3571
Mill Turn Job
API:
string MILLTURN_GetStrokeLimitX()
stroke_limit_y
Outputs the value with prefix used to define the 1st point Y position for the stroke limit.
The prefix is defined on post question: 3572
Mill Turn Job
API:
dtring MILLTURN_GetStrokeLimitY()
stroke_limit_z
Outputs the value with prefix used to define the 1st point Z position for the stroke limit.
The prefix is defined on post question: 3573
Mill Turn Job
API:
string MILLTURN_GetStrokeLimitZ()
stroke_limit_i
Outputs the value with prefix used to define the 2nd point X position for the stroke
limit. The prefix is defined on post question: 3574
Mill Turn Job
API:
string MILLTURN_GetStrokeLimitI()
stroke_limit_j
Outputs the value with prefix used to define the 2nd point Y position for the stroke
limit. The prefix is defined on post question: 3575
Mill Turn Job
API:
string MILLTURN_GetStrokeLimitJ()
stroke_limit_k
Outputs the value with prefix used to define the 2nd point Z position for the stroke
limit. The prefix is defined on post question: 3576
Mill Turn Job
API:
string MILLTURN_GetStrokeLimitK()
Torque Skip
g_torque_skip
Outputs the string that puts the machine in Torque Skip Mode (Used in part transfers)
The output string is defined on post question 3566.
Mill Turn Job
API:
93
string MILLTURN_GetTorqueSkip()
g_torque_limit_on
Outputs the string that is used to enable the torque limit mode on the machine. The
output string is defined on post question: 3567
Mill Turn Job
API:
string MILLTURN_GetTorqueLimitOn()
g_torque_limit_cancel
Outputs the string that cancels the torque limit mode on the machine. The output
string is defined on post question: 3568
Mill Turn Job
API:
string MILLTURN_GetTorqueLimitCancel()
Offset
cancel_offset
Outputs the string representing the compensation OFF command. The output string is
Mill Job
defined on post question: 639
Outputs the string representing the compensation OFF command. The output string is
Lathe Job
defined on post question: 639
Outputs the string representing the compensation OFF command. The output string is
Mill Turn Job
defined on post question: 639
force_cancel_offset
Mill Job
Forces the output of the cancel cutter compensation code. The string is defined on
post question: 639
Mill Turn Job
d_offset
Outputs the tool diameter offset value with prefix. The prefix string is defined on post
question: 678
Mill Job
API:
double MILL_GetToolDiamCompNumber()
double MILL_GetToolDiamCompNumberWithAddAmount()
Lathe Job Outputs the offset value with no formatting or prefix.
Outputs the tool diameter offset value with prefix. The prefix string is defined on post
question: 678
Mill Turn Job
API:
double MILLTURN_GetToolDiamCompNumber()
t_offset
Mill Job Outputs the tool diameter offset value with NO prefix.
Outputs the offset in a format determined by post question: 513. The value is output
Lathe Job
with NO prefix.
Mill Turn Job Outputs the tool diameter offset value with NO prefix.
l_offset
Outputs the length offset value with NO prefix.
Mill Job
API:
double MILL_GetToolLengthCompNumber()
Outputs the offset value formatted by post question: 1513
Lathe Job
API:
double LATHE_GetLengthOffsetNumber()
Outputs the length offset value with NO prefix.
Mill Turn Job
API:
double MILLTURN_GetToolLengthOffsetNumber()
length_offset
Outputs a call to post block: 14 that is used to format and output the tool length offset
Mill Job commands.
Outputs a call to post block: 14 that is used to format and output the tool length offset
Lathe Job commands.
Outputs a call to post block: 14 that is used to format and output the tool length offset
Mill Turn Job commands.
95
API:
double MILL_GetLPWCutterWidth()
lpw_pierce_height
Returns the Z pierce height for laser/plasma/waterjet tools with prefix. The prefix is
defined on post question: 751
Mill Job
API:
double MILL_GetLPWPierceHeight()
lpw_cutter_on_off
Returns the status of the cutter ON and OFF option in the LPW tool page.
API:
short MILL_GetLPWIsCutterOnOff()
lpw_cutter_on
Returns the Cutter ON string from block 752.
Mill Job
API:
double MILL_GetLPWGetCutterOnString()
lpw_cutter_off
Returns the Cutter OFF string from block 753.
Mill Job
API:
double MILL_GetLPWGetCutterOffString()
lpw_gas_assist_on_off
Returns the status of the Gas Assist option in the LPW Tool page.
API:
short MILL_GetLPWIsGasAssistOnOff()
lpw_gas_assist_on
Returns the Gas Assist ON string from post question: 760.
Mill Job
API:
string MILL_GetLPWGetGasAssistOnString()
lpw_gas_assist_off
Returns the Gas Assist OFF string from post question: 761.
lpw_gas_assist_type
Returns the type of Gas Assist selected in the LPW Tool page.
API:
short MILL_GetLPWIsGasAssistType()
lpw_shutter_open
Returns the Shutter Open string from post question: 765
Mill Job
97
API:
string MILL_GetLPWGetShutterOpenString()
lpw_shutter_open_closed
Returns the Shutter Open/Closed state.
Open – String found on post question: 765
Mill Job
Closed – String found on post question: 766
lpw_shutter_closed
Returns the Shutter Closed string from post question: 766
Mill Job
API:
string MILL_GetLPWGetShutterClosedString()
lpw_pulse_frequency
Returns the Laser Pulse Frequency specified on the Tool page. The prefix is defined on
post question: 767
Mill Job
API:
short MILL_GetLPWGetPulseFrequency()
lpw_power_setting
Returns the Laser Power setting specified on the LPW tool page with prefix. The prefix
is defined on post question: 768
Mill Job
API:
short MILL_GetLPWPowerSetting()
lpw_torch_height_control
Returns the value specified in the Torch Height Control on the LPW tool page with
prefix. The prefix is defined on post question: 769
Mill Job
API:
short MILL_GetLPWTorchHeightControl()
lpw_waterjet_abrasive_on_off
Outputs the abrasive on or off code based on what is selected in the machining
feature.
Mill Job ON – String found on post question: 780
OFF – String found on post question: 781
lpw_waterjet_abrasive_on
Mill Job Outputs the abrasive ON command. The string is defined on post question: 780
lpw_waterjet_abrasive_off
Mill Job Outputs the abrasive OFF command. The string is defined on post question: 781
lpw_waterjet_vacuum_assist_on_off
Outputs the vacuum on or off code based on what is selected in the machining feature.
Mill Job ON – String defined on post question: 782
OFF – String defined on post question: 783
lpw_waterjet_vacuum_assist_on
Mill Job Outputs the vacuum ON code. The string is defined on post question: 782
lpw_waterjet_vacuum_assist_off
Mill Job Outputs the vacuum OFF code. The string is defined on post question: 783
lpw_waterjet_pressure_type
Outputs the pressure command based on selection in the machining feature.
Low – String defined on post question: 784
Mill Job
Medium – String defined on post question: 785
High – String defined on post question: 786
Origin Tracking
origin_tracking_on
Mill Job
Outputs the string to turn ON the origin tracking on the machine. The string output is
defined on post question: 730
Mill Turn Job
origin_tracking_off
Mill Job
Outputs the string to turn OFF the origin tracking on the machine. The string output is
defined on post question: 731
Mill Turn Job
99
RTCP Codes
rtcp_code_on
Mill Job
Outputs the string to turn ON the RTCP command on the machine. The string output is
defined on post question: 720
Mill Turn Job
rtcp_code_off
Mill Job
Outputs the string to turn OFF the RTCP command on the machine. The string output
is defined on post question: 721
Mill Turn Job
Mill Turn
g112 (Deprecated)
(deprecated – used in v27 or previous)
Lathe Job Outputs the string used to turn ON Polar Milling mode. The string output is set to
Mill Turn Job “G112”
g113 (Deprecated)
(deprecated – used in v27 or previous)
Lathe Job Outputs the string used to turn OFF Polar Milling mode. The string output is set to
Mill Turn Job “G113”
mt_mode
Outputs the string for the active mode.
C axis Enabled for Milling mode
C axis Disabled for Turning mode
The string values output depends on the active Workpiece device. The strings are
Mill Turn Job
defined on post questions: 10x18 and 10x19.
API:
string MILLTURN_GetMTMode()
API:
short MILLTURN_GetPostingMode()
y_axis_mode
Outputs the string value used to turn ON or OFF the Y Axis mode on the machine. The
output strings are defined on post questions:
Mill Turn Job
ON = Post Question: 3590
OFF = Post Question: 3591
y_axis_mode_disable
Outputs the string value used to turn OFF the Y Axis mode on the machine. The
Mill Turn Job
output string is defined on post question: 3591
MDI
NOTE: Custom Tasks will dynamically create the variable that is used to trigger its output. Whatever the
task is named is used to create the variable name. Example: In the UI the task is named: "Custom Task".
The variable name will be "mdi_CustomTask". Any spaces in the task name will be removed in the
variable name. Also note that you cannot use the "_" character.
mdi_BeforeToolChange
This command variable specifies the location where the MDI blocks defined in the
Mill Turn Job Before Tool Change task list should be output.
101
mdi_WithToolChange
This command variable specifies the location where the MDI blocks defined in the With
Mill Turn Job Tool Change task list should be output.
mdi_AfterOperation
This command variable specifies the location where the MDI blocks defined in the After
Operation task list should be output.
Tailstock
tailstock_advance_code
Outputs the code used to make the tailstock advance on the machine. The output
string is defined for each tailstock device’s post question: 30x01
Mill Turn Job
API:
string MILLTURN_GetTailstockAdvanceCode()
tailstock_retract_code
Outputs the code used to make the tailstock retract on the machine. The output string
is defined for each tailstock device’s post question: 30x02
Mill Turn Job
API:
string MILLTURN_GetTailstockRetractCode()
tailstock_advance_code_1 through
tailstock_advance_code_10
Outputs the code used to make the tailstock advance on the machine. The output
string is defined for each specific tailstock device’s post question: 30x01. The last
number in the variable name defines the tailstock device that should be output.
Mill Turn Job
API:
string MILLTURN_GetTailstockAdvanceCodeOfDevice(int)
tailstock_retract_code_1 through
tailstock_retract_code_10
Outputs the code used to make the tailstock retract on the machine. The output string
is defined for each specific tailstock device’s post question: 30x01. The last number in
the variable name defines the tailstock device that should be output.
Mill Turn Job
API:
string MILLTURN_GetTailstockRetractCodeOfDevice(int)
tailstock_device_command_block_1_1
through tailstock_device_command_block_1_10
This variable will call and process the code that is in the defined tailstock device’s
Mill Turn Job Command Block 1 postblock. The last number in the variable name specifies the
specific tailstock device to be called.
tailstock_device_command_block_2_1
through tailstock_device_command_block_2_10
This variable will call and process the code that is in the defined tailstock device’s
Mill Turn Job Command Block 2 postblock. The last number in the variable name specifies the
specific tailstock device to be called.
tailstock_device_command_block_3_1
through tailstock_device_command_block_3_10
This variable will call and process the code that is in the defined tailstock device’s
Mill Turn Job Command Block 3 postblock. The last number in the variable name specifies the
specific tailstock device to be called.
tailstock_device_command_block_4_1
through tailstock_device_command_block_4_10
This variable will call and process the code that is in the defined tailstock device’s
Command Block 4 postblock. The last number in the variable name specifies the
Mill Turn Job
specific tailstock device to be called.
103
tailstock_device_command_block_5_1 through
tailstock_device_command_block_5_10
This variable will call and process the code that is in the defined tailstock device’s
Mill Turn Job Command Block 5 postblock. The last number in the variable name specifies the
specific tailstock device to be called.
Steady Rest
steady_rest_open_code
Outputs the code used to open the stead rest on the machine. The output string is
defined on the active stead rest’s post question: 40x01
Mill Turn Job
API:
string MILLTURN_GetSteadRestOpenCode()
steady_rest_close_code
Outputs the code used to close the stead rest on the machine. The output string is
defined on the active stead rest’s post question: 40x02
Mill Turn Job
API:
string MILLTURN_GetSteadRestCloseCode()
steady_rest_open_code_1 through
steady_rest_open_code_10
Outputs the code used to open the stead rest on the machine for a specific stead rest
device. The output string is defined on the defined stead rest’s post question: 40x01
API:
Mill Turn Job
string MILLTURN_GetSteadRestOpenCode1()
through
string MILLTURN_GetSteadyRestOpenCode10()
steady_rest_close_code_1 through
steady_rest_close_code_10
Outputs the code used to close the stead rest on the machine for a specific stead rest
device. The output string is defined on the defined stead rest’s post question: 40x02
Mill Turn Job
API:
string MILLTURN_GetSteadRestCloseCode1()
through
string MILLTURN_GetSteadyRestCloseCode10()
steady_rest_device_command_block_1_1 through
steady_rest_device_command_block_1_10
This variable will call and process the code that is in the defined steady rest device’s
Mill Turn Job Command Block 1 postblock. The last number in the variable name specifies the
specific steady rest device to be called.
steady_rest_device_command_block_2_1 through
steady_rest_device_command_block_2_10
This variable will call and process the code that is in the defined steady rest device’s
Command Block 2 postblock. The last number in the variable name specifies the
Mill Turn Job specific steady rest device to be called.
steady_rest_device_command_block_3_1 through
steady_rest_device_command_block_3_10
This variable will call and process the code that is in the defined steady rest device’s
Command Block 3 postblock. The last number in the variable name specifies the
Mill Turn Job specific steady rest device to be called.
steady_rest_device_command_block_4_1 through
steady_rest_device_command_block_4_10
This variable will call and process the code that is in the defined steady rest device’s
Command Block 4 postblock. The last number in the variable name specifies the
Mill Turn Job specific steady rest device to be called.
steady_rest_device_command_block_5_1 through
steady_rest_device_command_block_5_10
This variable will call and process the code that is in the defined steady rest device’s
Command Block 5 postblock. The last number in the variable name specifies the
Mill Turn Job
specific steady rest device to be called.
105
Parts Catcher
parts_catcher_advance_code
Outputs the command from the active parts catcher device to advance the parts
catcher on the machine. The output string is defined on each parts catcher device’s
post question: 50x01
Mill Turn Job
API:
string MILLTURN_GetPartsCatcherAdvanceCode()
parts_catcher_retract_code
Outputs the command from the active parts catcher device to retract the parts catcher
on the machine. The output string is defined on each parts catcher device’s post
question: 50x02
Mill Turn Job
API:
string MILLTURN_GetPartsCatcherRetractCode()
parts_catcher_advance_code_1 through
parts_catcher_advance_code_10
Outputs the command from the define parts catcher device to advance the parts
catcher on the machine. The output string is defined on each parts catcher device’s
post question: 50x01
parts_catcher_retract_code_1 through
parts_catcher_retract_code_10
Outputs the command from the define parts catcher device to retract the parts catcher
on the machine. The output string is defined on each parts catcher device’s post
question: 50x02
This variable will call and process the code that is in the defined parts catcher device’s
Mill Turn Job Command Block 1 postblock. The last number in the variable name specifies the
specific parts catcher device to be called.
parts_catcher_device_command_block_2_1 through
parts_catcher_device_command_block_2_10
This variable will call and process the code that is in the defined parts catcher device’s
Command Block 2 postblock. The last number in the variable name specifies the
Mill Turn Job specific parts catcher device to be called.
parts_catcher_device_command_block_3_1 through
parts_catcher_device_command_block_3_10
This variable will call and process the code that is in the defined parts catcher device’s
Mill Turn Job Command Block 3 postblock. The last number in the variable name specifies the
specific parts catcher device to be called.
parts_catcher_device_command_block_4_1 through
parts_catcher_device_command_block_4_10
This variable will call and process the code that is in the defined parts catcher device’s
Mill Turn Job Command Block 4 postblock. The last number in the variable name specifies the
specific parts catcher device to be called.
parts_catcher_device_command_block_5_1 through
parts_catcher_device_command_block_5_10
This variable will call and process the code that is in the defined parts catcher device’s
Mill Turn Job Command Block 5 postblock. The last number in the variable name specifies the
specific parts catcher device to be called.
Workpiece Device
workpiece_device_command_block_1
This variable will call and process the code that is in the active workpiece device’s
Mill Turn Job
Command Block 1 postblock.
107
workpiece_device_command_block_2
This variable will call and process the code that is in the active workpiece device’s
Mill Turn Job
Command Block 2 postblock.
workpiece_device_command_block_3
This variable will call and process the code that is in the active workpiece device’s
Mill Turn Job
Command Block 3 postblock.
workpiece_device_command_block_4
This variable will call and process the code that is in the active workpiece device’s
Mill Turn Job
Command Block 4 postblock.
workpiece_device_command_block_5
This variable will call and process the code that is in the active workpiece device’s
Mill Turn Job
Command Block 5 postblock.
workpiece_device_command_block_6
This variable will call and process the code that is in the active workpiece device’s
Mill Turn Job Command Block 6 postblock.
workpiece_device_command_block_7
This variable will call and process the code that is in the active workpiece device’s
Mill Turn Job
Command Block 7 postblock.
workpiece_device_command_block_8
This variable will call and process the code that is in the active workpiece device’s
Mill Turn Job Command Block 8 postblock.
workpiece_device_command_block_9
This variable will call and process the code that is in the active workpiece device’s
Mill Turn Job Command Block 9 postblock.
workpiece_device_command_block_1_1 through
workpiece_device_command_block_1_10
This variable will call and process the code that is in the defined workpiece device’s
Mill Turn Job Command Block 1 postblock. The last number in the variable name specifies the
specific workpiece to be called.
workpiece_device_command_block_2_1 through
workpiece_device_command_block_2_10
This variable will call and process the code that is in the defined workpiece device’s
Mill Turn Job Command Block 2 postblock. The last number in the variable name specifies the
specific workpiece to be called.
workpiece_device_command_block_3_1 through
workpiece_device_command_block_3_10
This variable will call and process the code that is in the defined workpiece device’s
Mill Turn Job Command Block 3 postblock. The last number in the variable name specifies the
specific workpiece to be called.
workpiece_device_command_block_4_1 through
workpiece_device_command_block_4_10
This variable will call and process the code that is in the defined workpiece device’s
Mill Turn Job Command Block 4 postblock. The last number in the variable name specifies the
specific workpiece to be called.
workpiece_device_command_block_5_1 through
workpiece_device_command_block_5_10
This variable will call and process the code that is in the defined workpiece device’s
Mill Turn Job Command Block 5 postblock. The last number in the variable name specifies the
specific workpiece to be called.
workpiece_device_command_block_6_1 through
workpiece_device_command_block_6_10
This variable will call and process the code that is in the defined workpiece device’s
Mill Turn Job Command Block 6 postblock. The last number in the variable name specifies the
specific workpiece to be called.
workpiece_device_command_block_7_1 through
workpiece_device_command_block_7_10
This variable will call and process the code that is in the defined workpiece device’s
Mill Turn Job Command Block 7 postblock. The last number in the variable name specifies the
specific workpiece to be called.
workpiece_device_command_block_8_1 through
workpiece_device_command_block_8_10
Mill Turn Job This variable will call and process the code that is in the defined workpiece device’s
109
Command Block 8 postblock. The last number in the variable name specifies the
specific workpiece to be called.
workpiece_device_command_block_9_1 through
workpiece_device_command_block_9_10
This variable will call and process the code that is in the defined workpiece device’s
Mill Turn Job Command Block 9 postblock. The last number in the variable name specifies the
specific workpiece to be called.
workpiece_device_rotary_index_forward_code
Outputs the code from the active workpiece device for Rotary Index Forward. String
output is defined in each workpiece on post question: 10x22
Mill Turn Job
API:
string MILLTURN_WorkpieceDeviceRotaryIndexForwardCode()
workpiece_device_rotary_index_reverse_code
Outputs the code from the active workpiece device for Rotary Index Reverse. String
output is defined in each workpiece on post question: 10x23
Mill Turn Job
API:
string MILLTURN_WorkpieceDeviceRotaryIndexReverseCode()
workpiece_device_enable
Outputs the enable code from the active workpiece device. The string output is
defined in each workpiece on post question: 10x00
Mill Turn Job
API:
string MILLTURN_GetWorkpieceDeviceEnable()
workpiece_device_disable
Outputs the disable code from the active workpiece device. The string output is
defined in each workpiece on post question: 10x01
Mill Turn Job
API:
string MILLTURN_GetWorkpieceDeviceDisable()
chuck_unclamp
Outputs the code to make the active workpiece device’s chuck unclamp the workpiece
on the machine. The output string is defined on the active workpiece’s post question:
10x35.
Mill Turn Job
API:
string MILLTURN_GetChuckUnclamp()
spindle_sync
Outputs the code to enable spindle syncing on the machine. The output string is
defined on the active workpiece’s post question: 10x36.
Mill Turn Job
API:
string MILLTURN_GetSpindleSync()
spindle_unsync
Outputs the code to disable spindle syncing on the machine. The output string is
defined on the active workpiece’s post question: 10x37.
Mill Turn Job
API:
string MILLTURN_GetSpindleUnsync()
c_axis_enable
Outputs the string from the active workpiece’s block to enable the C axis Milling Mode
on the machine. The output string is defined on each workpiece’s post question:
10x18.
Mill Turn Job
API:
string MILLTURN_GetCAxisEnable()
c_axis_disable
Outputs the string from the active workpiece’s block to disable the C axis Milling Mode
on the machine. The output string is defined on each workpiece’s post question:
Mill Turn Job 10x19.
API:
string MILLTURN_GetCAxisEnable()
111
Tool Device
tool_device_command_block_1
This variable will call and process the code that is in the active tool device’s Command
Mill Turn Job
Block 1 postblock.
tool_device_command_block_2
This variable will call and process the code that is in the active tool device’s Command
Mill Turn Job
Block 2 postblock.
tool_device_command_block_3
This variable will call and process the code that is in the active tool device’s Command
Mill Turn Job
Block 3 postblock.
tool_device_command_block_4
This variable will call and process the code that is in the active tool device’s Command
Mill Turn Job
Block 4 postblock.
tool_device_command_block_5
This variable will call and process the code that is in the active tool device’s Command
Mill Turn Job
Block 5 postblock.
tool_device_command_block_6
This variable will call and process the code that is in the active tool device’s Command
Mill Turn Job
Block 6 postblock.
tool_device_command_block_7
This variable will call and process the code that is in the active tool device’s Command
Mill Turn Job
Block 7 postblock.
tool_device_command_block_8
This variable will call and process the code that is in the active tool device’s Command
Mill Turn Job
Block 8 postblock.
tool_device_command_block_9
This variable will call and process the code that is in the active tool device’s Command
Mill Turn Job
Block 9 postblock.
tool_device_command_block_1_1 through
tool_device_command_block_1_10
Mill Turn Job This variable will call and process the code that is in the defined tool device’s
Command Block 1 postblock. The last number in the variable name specifies the
specific tool device to be called.
tool_device_command_block_2_1 through
tool_device_command_block_2_10
This variable will call and process the code that is in the defined tool device’s
Mill Turn Job Command Block 2 postblock. The last number in the variable name specifies the
specific tool device to be called.
tool_device_command_block_3_1 through
tool_device_command_block_3_10
This variable will call and process the code that is in the defined tool device’s
Mill Turn Job Command Block 3 postblock. The last number in the variable name specifies the
specific tool device to be called.
tool_device_command_block_4_1 through
tool_device_command_block_4_10
This variable will call and process the code that is in the defined tool device’s
Mill Turn Job Command Block 4 postblock. The last number in the variable name specifies the
specific tool device to be called.
tool_device_command_block_5_1 through
tool_device_command_block_5_10
This variable will call and process the code that is in the defined tool device’s
Command Block 5 postblock. The last number in the variable name specifies the
Mill Turn Job
specific tool device to be called.
tool_device_command_block_6_1 through
tool_device_command_block_6_10
This variable will call and process the code that is in the defined tool device’s
Mill Turn Job Command Block 6 postblock. The last number in the variable name specifies the
specific tool device to be called.
tool_device_command_block_7_1 through
tool_device_command_block_7_10
This variable will call and process the code that is in the defined tool device’s
Command Block 7 postblock. The last number in the variable name specifies the
Mill Turn Job
specific tool device to be called.
113
tool_device_command_block_8_1 through
tool_device_command_block_8_10
This variable will call and process the code that is in the defined tool device’s
Mill Turn Job Command Block 8 postblock. The last number in the variable name specifies the
specific tool device to be called.
tool_device_command_block_9_1 through
tool_device_command_block_9_10
This variable will call and process the code that is in the defined tool device’s
Mill Turn Job Command Block 9 postblock. The last number in the variable name specifies the
specific tool device to be called.
tool_device_rotary_index_forward_code
Outputs the code to index in the forward direction on the machine. The output string
is defined on each tool device’s post question: 20x18
Mill Turn Job
API:
string MILLTURN_GetToolDeviceRotaryIndexForwardCode()
tool_device_rotary_index_reverse_code
Outputs the code to index in the reverse direction on the machine. The output string is
defined on each tool device’s post question: 20x19
Mill Turn Job
API:
string MILLTURN_GetToolDeviceRotaryIndexReverseCode()
tool_device_enable
Outputs the code to enable the active tool device. The output string is defined on
each tool device’s post question: 20x00
Mill Turn Job API:
string MILLTURN_GetToolDeviceEnable()
tool_device_disable
Outputs the code to disable the active tool device. The output string is defined on
each tool device’s post question: 20x01
Mill Turn Job API:
string MILLTURN_GetToolDeviceDisable()
Tool Device ID – API Only
Used to get the ID of the active tool device.
Mill Turn Job
API:
short MILLTURN_GetToolDeviceID()
spindle_orient_code
Outputs the string from the active tool device to activate the spindle orientation on the
machine. The output string is defined on each tool device’s post block: 20x05.
Mill Turn Job
API:
string MILLTURN_GetSpindleOrientCode()
spindle_orient_position
Outputs the position of the spindle orientation with prefix for the active tool device.
The value will come from the Tool Angle Control dialog found in each turning
operation. The prefix is defined on each tool device’s post question: 20x06
Mill Turn Job
API:
string MILLTURN_GetSpindleOrientPosition()
spindle_orient_position_no_prefix
Outputs the position of the spindle orientation with NO prefix for the active tool
device. The value will come from the Tool Angle Control dialog found in each turning
Mill Turn Job
operation.
Zone
zone_device_enable
Outputs the command to enable a workzone on the machine. The output string is
defined for each zone post block and the active zone determines the output. The zone
1 enable block is defined on post question: 6011.
Mill Turn Job
API:
string MILLTURN_GetZoneDeviceEnable()
zone_device_disable
Outputs the command to disable a workzone on the machine. The output string is
defined for each zone post block and the active zone determines the output. The zone
Mill Turn Job 1 disable block is defined on post question: 6012.
API:
115
string MILLTURN_GetZoneDeviceDisable()
zone_device_enable_1 through
zone_device_enable_100
Outputs the command to enable a specific workzone on the machine. The output
string is defined for each zone post block and the specified zone determines the
output. The zone 1 enable block is defined on post question: 6011. The number at the
Mill Turn Job end of the variable name defines the specific zone to output.
API:
string MILLTURN_GetZoneDeviceEnableOfDevice(int)
zone_device_disable_1 through
zone_device_disable_100
Outputs the command to disable a specific workzone on the machine. The output
string is defined for each zone post block and the specified zone determines the
output. The zone 1 disable block is defined on post question: 6012. The number at the
end of the variable name defines the specific zone to output.
Mill Turn Job
API:
string MILLTURN_GetZoneDeviceDisableOfDevice(int)
zone_command_block_1
This variable will call and process the code that is found in the active Zone’s Command
Mill Turn Job
Block 1 postblock.
zone_command_block_2
This variable will call and process the code that is found in the active Zone’s Command
Mill Turn Job
Block 2 postblock.
zone_command_block_3
This variable will call and process the code that is found in the active Zone’s Command
Mill Turn Job
Block 3 postblock.
zone_command_block_4
This variable will call and process the code that is found in the active Zone’s Command
Mill Turn Job
Block 4 postblock.
zone_command_block_5
This variable will call and process the code that is found in the active Zone’s Command
Mill Turn Job
Block 5 postblock.
zone_command_block_1_1 through
zone_command_block_1_99
This variable will call and process the code that is in the defined Zone’s Command Block
Mill Turn Job 1 postblock. The last number in the variable name specifies the specific zone to be
called.
zone_command_block_2_1 through
zone_command_block_2_99
This variable will call and process the code that is in the defined Zone’s Command Block
Mill Turn Job 2 postblock. The last number in the variable name specifies the specific zone to be
called.
zone_command_block_3_1 through
zone_command_block_3_99
This variable will call and process the code that is in the defined Zone’s Command Block
3 postblock. The last number in the variable name specifies the specific zone to be
Mill Turn Job
called.
zone_command_block_4_1 through
zone_command_block_4_99
This variable will call and process the code that is in the defined Zone’s Command Block
4 postblock. The last number in the variable name specifies the specific zone to be
Mill Turn Job
called.
zone_command_block_5_1 through
zone_command_block_5_99
This variable will call and process the code that is in the defined Zone’s Command Block
5 postblock. The last number in the variable name specifies the specific zone to be
Mill Turn Job
called.
117
Syncing Codes
sync_code_out
This variable is used to output the system generated syncing code.
The output is dependent on the setting of post question: 3603.
Mill Turn Job The prefix of output sync codes is defined on post question: 3600
The sync code starting number is defined on post question: 3601
The sync code increment value is defined on post question: 3602
sync_code_out_no_prefix
This variable is used to output the system generated syncing code with NO prefix.
The output is dependent on the setting of post question: 3603.
Mill Turn Job
The sync code starting number is defined on post question: 3601
The sync code increment value is defined on post question: 3602
sync_section_code_out
This variable is used to output the section starting code used to define the beginning of
Mill Turn Job
a section for syncing. The output string is defined in the tool device block 20x32.
Outputs the lathe tool home number needed for the predator header. The string prefix
Mill Turn Job
comes from post question: 1843
ltool_type
Lathe Job
Outputs the lathe tool type with no prefix.
Mill Turn Job
ltool_cutting_angle
Lathe Job
Outputs the lathe tool cutting angle with NO prefix.
Mill Turn Job
ltool_ic
Lathe Job
Outputs the tool IC in decimal format with NO prefix.
Mill Turn Job
ltool_angle
Lathe Job
Outputs the tool angle with NO prefix.
Mill Turn Job
ltool_corner_rad
Lathe Job
Outputs the tool corner radius value in decimal format with NO prefix.
Mill Turn Job
ltool_height
Lathe Job
Outputs the tool height in decimal format with NO prefix.
Mill Turn Job
ltool_diam
Lathe Job
Outputs the tool diameter in decimal format with NO prefix.
Mill Turn Job
ltool_orientation
Lathe Job
Outputs the tool orientation number with NO prefix.
Mill Turn Job
z_end_of_stock
Lathe Job
Outputs the end coordinate for lathe stock in decimal format with NO prefix.
Mill Turn Job
stock_diameter
Lathe Job
Outputs the diameter(x axis) of the stock in decimal format with NO prefix.
Mill Turn Job
stock_length
Lathe Job
Outputs the length of the stock(z axis) in decimal format with NO prefix.
Mill Turn Job
119
stock_internal_diameter
Lathe Job
Outputs the ID of the stock in decimal format with NO prefix.
Mill Turn Job
Misc Codes
g_offset_value_set
Outputs the string used to put the machine in offset value set mode. The string output
is defined on post question: 3564
Mill Turn Job
API:
string MILLTURN_GetOffsetValueSet()
g_offset_value_set_cancel
Outputs the string used to cancel the machine offset value set mode. The string output
is defined on post question: 3565
Mill Turn Job
API:
string MILLTURN_GetOffsetValueSetCancel()
machine_coordinate_code
Outputs the code that is used to switch the machine to Machine Coordinates. The
output string is defined on post question: 652
API:
string MILLTURN_GetMachineCoordinateCode()
machine_home_code
Outputs the code that is used to switch the machine to coordinates relative to the
home position. The output string is defined on post question: 653
API:
string MILLTURN_GetMachineCoordinateCode()
optional_rotary_rewind
This command variable controls when the rotary rewind block 111 will be called in
posting. The following logic is used for the output of this command variable:
Mill Turn Job
Lathe Operation – Don’t Output
Mill Operation and post question: 445 = Y then output
Mill Operation and post question: 445 = N then don’t output
121
short LATHE_GetFeatureSubType()
API:
Mill Turn Job
string GetIntegerOfBlock(long BlockID)
Mill Job
Sets the current rapid location for the Z Axis using a Double variable
API:
Mill Turn Job MILL_SetZRapid(variable_name)
Mill Job
Sets the current feed location for the X Axis using a Double variable
API:
Mill Turn Job MILL_SetXFeed(variable_name)
Mill Job
Sets the current feed location for the Y Axis using a Double variable
API:
Mill Turn Job MILL_SetYFeed(variable_name)
Mill Job
Sets the current feed location for the Z Axis using a Double variable
API:
Mill Turn Job MILL_SetZFeed(variable_name)
123
MILL_SetPreviousYFeed(double var) – API Only
Sets the previous feed location for the Y Axis using a Double variable
Mill Job
API:
MILL_SetPreviousYFeed(variable_name)
Mill Turn Job
Mill Job
Sets the previous feed location for the Z Axis using a Double variable
API:
Mill Turn Job MILL_SetPreviousZFeed(variable_name)
Mill Job
Returns the relative X coordinate for the center of an arc.
API:
Mill Turn Job double MILL_GetArcRelCenterX()
Mill Job
Returns the relative Y coordinate for the center of an arc.
API:
Mill Turn Job double MILL_GetArcRelCenterY()
Mill Job
Returns the relative Z coordinate for the center of an arc.
API:
Mill Turn Job double MILL_GetArcRelCenterZ()
MILL_GetCurrentArcAngle() – API Only
Returns the sweep of the current arc in radians.
Mill Job
API:
double MILL_GetCurrentArcAngle()
Mill Turn Job
Mill Job
Returns the length of the current arc.
API:
Mill Turn Job double MILL_GetCurrentArcLength()
125
0 = XY Plane
1 = YZ Plane
Mill Turn Job 2 = XZ Plane
API:
short MILL_GetArcMachiningPlane()
Mill Job Returns the current index angle for the rotational axis. This returns the user-input
value from the Rotary Angle option within the feature.
Mill Job
Returns the previous rotational index angle
API:
Mill Turn Job double MILL_GetPrevRotaryIndexAngle()
Mill Job
Returns the clearance distance for rotational index moves.
API:
Mill Turn Job double MILL_GetRotaryIndexClearance()
Mill Job Returns the previous angle of the rotational axis for wrapping, around the X axis.
API:
Mill Turn Job double MILL_GetPreviousXAngle()
MILL_GetPreviousYAngle() – API Only
Mill Job
Returns the previous angle of the rotational axis for wrapping, around the Y axis.
API:
Mill Turn Job double MILL_GetPreviousYAngle()
Mill Job
Returns the current index angle of the second rotary axis.
API:
Mill Turn Job double MILL_GetSecondRotaryIndexAngle()
Mill Job
Returns the previous index angle of the second rotary axis.
API:
Mill Turn Job double MILL_GetPrevSecondRotaryIndexAngle()
Mill Job
Returns the current index angle of the third rotary axis.
API:
Mill Turn Job double MILL_GetThirdRotaryIndexAngle()
127
MILL_Get_PrevPRot() – API Only
Mill Job
Returns the previous value for the primary axis of rotation.
API:
Mill Turn Job double MILL_Get_PrevPRot()
Mill Job
Returns the previous value for the secondary axis of rotation.
API:
Mill Turn Job double MILL_Get_PrevSRot()
Mill Job
Returns the value for the I vector of the toolpath position.
API:
Mill Turn Job double MILL_Get_IVec()
Mill Job
Returns the previous value for the I vector of the toolpath position.
API:
Mill Turn Job double MILL_Get_PrevIVec()
Mill Job Returns the value for the J vector of the toolpath position.
API:
Mill Turn Job double MILL_Get_JVec()
MILL_Get_PrevJVec() – API Only
Mill Job
Returns the previous value for the J vector of the toolpath position.
API:
Mill Turn Job double MILL_Get_PrevJVec()
Mill Job
Returns the value for the K vector of the toolpath position.
API:
Mill Turn Job double MILL_Get_KVec()
Mill Job
Returns the previous value for the K vector of the toolpath position.
API:
Mill Turn Job double MILL_Get_PrevKVec()
129
MILL_Get_PRotDirection() – API Only
Returns the direction of the primary rotation axis.
Mill Job
0 = Forward
1 = Reverse
Mill Turn Job
API:
short MILL_Get_PRotDirection()
Mill Job Returns the (Top of Feature + Rapid Plane) value to give the return height for the
feature in relation to the machining origin.
Mill Job Returns the (Top of Stock + Clearance Plane) value to give the return height for the
feature in relation to the machining origin.
Mill Job
Returns the user-specified pitch of the thread in tapping.
API:
Mill Turn Job double MILL_GetThreadPitch()
MILL_GetG98G99Mode() – API Only
Returns 99 or 98 to a variable based on the value applied to line 516 in the post
Mill Job processor.
98 = G98 Mode
99 = G99 Mode
Mill Turn Job
API:
integer MILL_GetG98G99Mode()
Mill Job
Returns the return plane distance value.
API:
Mill Turn Job double MILL_GetReturnPlaneDistance()
Mill Job
Returns the security plane distance value.
API:
Mill Turn Job double MILL_GetSecurityPlaneDistance()
Mill Job
Returns the system comment for the current feature.
API:
Mill Turn Job string MILL_GetSystemComment()
Mill Job
Returns the sequence number of the current line.
API:
Mill Turn Job short MILL_GetSequenceNumber()
131
MILL_GetOperationType() – API Only
Returns the current operation type.
Mill Job
Drilling
100 = Center Drill
101 = Drill
102 = Tap
103 = Ream
104 = Boring
105 = Chamfer Drill
106 = Counterbore Drill
204 = Chamfer Mill
206 = Counterbore Mill
Milling
200 = Profile Rough
201 = Profile Finish
202 = Pocket
203 = Facing
204 = Chamfer Mill
205 = 2 Axis Plunge Rough
206 = Counterbore Mill
208 = Tapered Pocket (V-Carve Rough)
209 = 2 Axis Engraving
Mill Turn Job 210 = Thread Mill
212 = Drag Knife
300 = Z Level Rough
301 = Z Level Finish
302 = Planar
303 = Spiral
304 = Radial
305 = 3 Axis Plunge Rough
306 = Advanced Rough
307 = Flatlands
308 = Equidistant
309 = Pencil
310 = 3 Axis Engrave Rough
311 = 3 Axis Engrave Finish
312 = V-Carve Finishing
400 = 4 Axis Rotary
500 = 5 Axis Toolpaths
API:
short MILL_GetOperationType()
MILL_GetDrillCycleType() – API Only
Returns the current drill cycle type. This function is used within the drill cycle blocks or
Mill Job the drill point blocks.
0 = Standard Drill
1 = Peck Drill
2 = Fast Peck/Chip Break
3 = Tap
4 = Bore 1
5 = Bore 2
Mill Turn Job 6 = Bore 3/Back Bore
7 = Left Hand Tap
8 = Fine Bore
API:
short MILL_GetDrillCycleType()
Mill Job
Returns the number for the current feature, based on the order in the CAM tree.
API:
Mill Turn Job short MILL_GetCurrentFeatureNumber()
Mill Job
Returns the current contour number.
API:
Mill Turn Job short MILL_GetCurrentContourNumber()
133
API:
short MILL_GetCurrentContourEntityNumber()
Mill Turn Job
Mill Job
Returns the current line number.
API:
Mill Turn Job short MILL_GetCurrentLineNumber()
Mill Job
Returns the current line number increment value
API:
Mill Turn Job short MILL_GetLineNumberIncrement()
Mill Turn Job Returns the current line number increment value
API:
Lathe Job short LATHE_GetLineNumberIncrement()
LATHE_GetLineNumberWithToolNumber() – API Only
Returns the tool number based on this formula:
Mill Turn Job Tool Number * 100 + Sequence Number Increment
135
API:
short MILL_GetFeatureType()
API:
string LATHE_GetFeatureType()
1 = Turning Rough
2 = Turning Rough/Finish
3 = Face Rough
Lathe Job
4 = Face Rough/Finish
API:
short LATHE_GetCycleType()
Mill Job
Returns the top of feature value for the current feature.
API:
Mill Turn Job double MILL_Get_TopOfPart()
MILL_Get_FeedPlane() – API Only
Mill Job
Returns the feed plane value for the current feature.
API:
Mill Turn Job double MILL_Get_FeedPlane()
Mill Job
Returns the workpiece name.
API:
Mill Turn Job string MILL_GetWorkPieceName()
Mill Job
Returns the global stock height for all operations in the CAM tree.
API:
Mill Turn Job double MILL_GetGlobalStockHeight()
Mill Job
Returns the feature stock height for the current feature.
API:
Mill Turn Job double MILL_GetFeatureStockHeight()
137
MILL_GetNumberOfContours() – API Only
Mill Job
Returns the total number of profiles assigned to operations in the CAM tree.
API:
Mill Turn Job short MILL_GetNumberOfContours()
Mill Job
Returns the total number of entities in a given shape.
API:
Mill Turn Job short MILL_GetNumberOfContourEntities()
Mill Job
Returns the total number of features in the program.
API:
Mill Turn Job short MILL_GetNumberOfFeatures()
API:
short MILL_GetNumberOfOperations()
Milling
15 = Endmill Rough
Mill Turn Job 16 = Endmill Finish
19 = Chamfer Mill
22 = Thread Mill
23 = V-Tool
24 = Tapered Endmill
26 = T-Cutter
30 = Dove Mill
31 = Lollipop
25 = Corner Round
27 = Laser
28 = Plasma
29 = Waterjet
33 = Drag Knife
API:
short MILL_Get_ToolType()
139
MILL_GetSysOffsetSide() – API Only
Returns what direction the system compensation is set to for a profile feature.
Mill Job
0 = None
1 = Left
2 = Right
Mill Turn Job
API:
short MILL_GetSysOffsetSide()
API:
short MILL_GetLeadinType()
API:
short MILL_GetLeadoutType()
Mill Job
Returns the name of the work offset as specified on lines 901 through 999.
API:
Mill Turn Job string MILL_GetWorkCoordName()
Mill Job Returns the work offset number (1, 2, 3, etc.). This function returns from a 0 based
index, so choosing Work Offset 1 in the software returns 0 in the API.
141
API:
string MILL_GetPatternWorkCoordName()
Mill Turn Job
API:
short MILL_OutputCoordinateMode()
RunBlock_xxxx
Used to direct the posting engine to execute the postlines found in the specified
Mill Turn Job
postblock. The “xxxx” is the block number for the postblock to be executed.
API:
Mill Turn Job void MILL_MakeYString(double var)
Mill Job Returns a string converted from a double value formatted by post blocks 414 or 415
depending on the unit. The prefix is added to the string from post question: 686.
API:
Mill Turn Job short MILL_GetNumberOfIntMemoryLoc()
API:
Mill Turn Job short MILL_GetNumberOfDoubleMemoryLoc()
API:
Mill Turn Job short MILL_GetNumberOfStringMemoryLoc()
143
MILL_SetIntMemoryLoc(short Index, short SetInteger) – API Only
LATHE_SetIntMemoryLoc(short Index, short SetInteger) – API Only
Sets the memory location at the specified index to the value specified for SetInteger.
Mill Job
Note that both share the same memory locations
API:
Mill Turn Job MILL_SetIntMemoryLoc(Index, SetInteger)
LATHE_SetIntMemoryLoc(Index, SetInteger)
Lathe Job
Mill Job Returns the integer value stored in the specified index. Note that both share the same
memory locations
API:
Mill Turn Job
variable_name = MILL_GetIntMemoryLoc(short index)
Mill Job Sets the memory location at the specified index to the value specified in SetDouble.
Note that both share the same memory locations
API:
Mill Turn Job
void MILL_SetDoubleMemoryLoc(short Index, double SetDouble)
Mill Job Sets the memory location at the specified index to the value specified in SetString.
Note that both share the same memory locations
API:
Mill Turn Job
void MILL_SetStringMemoryLoc(short Index, string SetString)
Return Functions
MILL_GetOutputLineToNcFile() – API Only
Returns a single line of the posted code to a string variable. This is used in program
Mill Job block 2102, and block 540 must be set to “y”. This allows the user to modify the code
after it has been processed through the posting engine.
145
MILL_SetOutputLineToNcFile(string var) – API Only
Sets the string to be output in the posted program followed by a carriage return/line
Mill Job feed.
API:
Mill Turn Job void MILL_SetOutputLineToNcFile(string var)
API:
Mill Turn Job void LATHE_SetOutputLineToNcFile(string var)
For the case that the block outputs code within an existing posting line, meaning the
program block is being used to output for a single variable.
Lathe Job
(Example: “n, rapid_move, program_block_1, xr, yr”)
API:
LATHE_SetReturnString(variable_name)
API:
void LATHE_ProcessPostLine(string var)
0 = Not Selected
1 = Selected
Mill Turn Job
API:
variable_name = MILL_GetUserCheckBoxVariable(short index)
Returns the selected index of the specified combo box in the Advanced Posting page of
the Current Settings dialog box.
Lathe Job
API:
variable_name = LATHE_GetUserCheckBoxVariable(short Index)
147
MILL_GetUserSelectComboVariable(short index) – API Only
LATHE_GetUserSelectComboVariable(short index) – API Only
Returns the selected index of the specified combo box in the Advanced Posting page
Mill Job inside of a machining feature.
API:
Mill Turn Job variable_name = MILL_GetUserSelectComboVariable(short index)
Returns the selected index of the specified combo box in the Advanced Posting page
inside of a machining feature.
Lathe Job
API:
variable_name = LATHE_GetUserSelectComboVariable(short index)
API:
Mill Turn Job variable_name = MILL_GetUserEditRealVariable(short index)
Returns the value entered in the edit box at the specified index from the Advanced
Posting page inside of a machining feature.
Lathe Job
API:
variable_name = LATHE_GetUserEditRealVariable(short index)
MILL_GetUserEditStringVariable(short index) – API Only
LATHE_GetUserEditStringVariable(short index) – API Only
Returns the value entered in the edit box at the specified index from the Advanced
Mill Job Posting page inside of a machining feature.
API:
Mill Turn Job variable_name = MILL_GetUserEditStringVariable(short index)
Returns the value entered in the edit box at the specified index from the Advanced
Posting page inside of a machining feature.
Lathe Job
API:
variable_name = LATHE_GetUserEditStringVariable(short index)
0 = Not Selected
1 = Selected
Mill Turn Job
API:
variable_name = MILL_GetUserCheckBoxSettingsVariable(short index)
Returns the state of the check box at the specified index from the Advanced Posting
page inside of the current settings dialog box.
0 = Not Selected
Lathe Job
1 = Selected
API:
variable_name = LATHE_GetUserCheckBoxSettingsVariable(short index)
Mill Job Returns the selected index of the specified combo box in the Advanced Posting page of
the Current Settings dialog box.
API:
Mill Turn Job variable_name = MILL_GetUserSelectComboSettingsVariable(short index)
Returns the selected index of the specified combo box in the Advanced Posting page of
Lathe Job
the Current Settings dialog box.
149
API:
variable_name = LATHE_GetUserSelectComboSettingsVariable(short index)