請求助 版大 要改那才有
N1
N2
N3
N4
.
.
.
##############################################################################
# Description
# This is the definition file for mill3ax
#
# Revisions
#
# Date Who Reason
# 02-jul-1998 whb Original
# 31-jul-1998 whb load_tool_number now tool_number
# 20-apr-1999 whb feed rates are now feed(set in FEEDRATE_SET)
# 19-may-1999 whb add opt for mom_cycle_delay
# 02-Jun-1999 whb fix commentary
# 24-jun-1999 whb convert FORMATS from % to & formats
# rename Socket_x FORMATS
# 29-jul-1999 vb modify turret configuration
# 29-Jul-1999 whb default Seqno to 5 digits, default Coordinate to 5 digits
# 24-Aug-1999 jm Modify holding system in POCKET description
# to 330 (taper shank 50) so that some milling
# tools of the library fit.
# 31-aug-1999 mjr Add holders 300,310,320 to all pockets. Increase pockets
# from 12 to 30 total.
# 02-Sep-1999 whb remove carriage returns which were added by NT.
# 16-Nov-1999 gbs Include the ude file for udes
# 25-Jan-2000 whb update for usable output
# 14-Feb-2000 whb fix nurbs_start ADDRESS precision_g leader to G from G0
# 27-Jun-2000 whb add zero formats for M D H
# 08- 09-2000 Brian
# $HISTORY$
#
###############################################################################
MACHINE mill3ax
INCLUDE
{
$UGII_CAM_USER_DEF_EVENT_DIR/ude.cdl
}
FORMATTING
{
WORD_SEPARATOR " "
END_OF_LINE ""
# SEQUENCE Seq_no 10 10 1
FORMAT Coordinate "&__5.3_"
FORMAT Dwell_sec "&__3.3_"
FORMAT Spindle "&__5_00"
FORMAT Seqno "&__5_00"
FORMAT nurb_code "&_02.1_"
FORMAT Register_2 "&_02_00"
FORMAT Register_3 "&_03_00"
FORMAT Register_5 "&_05_00"
FORMAT T_Register "&_02_00"
FORMAT Feed_IPM "&__3.2_"
FORMAT Feed_IPR "&__4.2_"
FORMAT Feed_MMPM "&__5.1_"
FORMAT Feed_MMPR "&__6.2_"
FORMAT Feed_FRN "&__4.3_"
FORMAT Feed_INV "&__6.2_"
FORMAT Feed_DPM "&__6.2_"
FORMAT Feed "&__7.1_"
FORMAT zero "&_02_00"
FORMAT zero_coord "&_01.3_"
FORMAT zero_spin "&_01_00"
FORMAT EventNum "%-5d"
FORMAT AbsCoord "%9.4f"
FORMAT RotCoord "%8.3f"
FORMAT ComFeed "%7.2f"
FORMAT Rev "%5d"
FORMAT Minutes "%9.4f"
ADDRESS N {
FORMAT Seqno
FORCE off
MAX 99990
}
ADDRESS G {
ZERO_FORMAT zero
FORMAT Register_2
MAX 99
MIN 0
FORCE always
}
ADDRESS motion_g {
LEADER "G"
ZERO_FORMAT zero
FORMAT Register_2
FORCE off
}
ADDRESS plane_g {
LEADER "G"
ZERO_FORMAT zero
FORMAT Register_2
FORCE off
}
ADDRESS cutcom_g {
LEADER "G"
ZERO_FORMAT zero
FORMAT Register_2
FORCE off
}
ADDRESS return_g {
LEADER "G"
ZERO_FORMAT zero
FORMAT Register_2
FORCE off
}
ADDRESS mode_g {
LEADER "G"
ZERO_FORMAT zero
FORMAT Register_2
FORCE off
}
ADDRESS X {
ZERO_FORMAT zero_coord
FORMAT Coordinate
MAX 9999.9999
MIN -9999.9999
FORCE off
}
ADDRESS Y {
ZERO_FORMAT zero_coord
FORMAT Coordinate
MAX 9999.9999
MIN -9999.9999
FORCE off
}
ADDRESS Z {
ZERO_FORMAT zero_coord
FORMAT Coordinate
MAX 9999.9999
MIN -9999.9999
FORCE off
}
ADDRESS A {
ZERO_FORMAT zero_coord
FORMAT Coordinate
MAX 9999.9999
MIN -9999.9999
FORCE off
}
ADDRESS B {
ZERO_FORMAT zero_coord
FORMAT Coordinate
MAX 9999.9999
MIN -9999.9999
FORCE off
}
ADDRESS C {
ZERO_FORMAT zero_coord
FORMAT Coordinate
MAX 9999.9999
MIN -9999.9999
FORCE off
}
ADDRESS R {
ZERO_FORMAT zero_coord
FORMAT Coordinate
MAX 9999.9999
MIN -9999.9999
FORCE always
}
ADDRESS I {
ZERO_FORMAT zero_coord
FORMAT Coordinate
MAX 9999.9999
MIN -9999.9999
FORCE always
}
ADDRESS J {
ZERO_FORMAT zero_coord
FORMAT Coordinate
MAX 9999.9999
MIN -9999.9999
FORCE always
}
ADDRESS K {
ZERO_FORMAT zero_coord
FORMAT Coordinate
MAX 9999.9999
MIN -9999.9999
FORCE always
}
ADDRESS RISE {
ZERO_FORMAT zero_coord
FORMAT Coordinate
MAX 9999.9999
MIN -9999.9999
FORCE off
}
ADDRESS cycle_dwell {
FORMAT Dwell_sec
MAX 99999.999
MIN 0.001
FORCE off
LEADER ""
}
ADDRESS dwell {
FORMAT Dwell_sec
MAX 99999.999
MIN 0.001
FORCE off
LEADER ""
}
ADDRESS cycle_step {
ZERO_FORMAT zero_coord
FORMAT Coordinate
MAX 9999.9999
MIN -9999.9999
FORCE off
LEADER "Q"
}
ADDRESS cycle_nodrag {
ZERO_FORMAT zero_coord
FORMAT Coordinate
MAX 9999.9999
MIN -9999.9999
FORCE off
LEADER "Q"
}
ADDRESS F {
FORMAT Feed
MAX 9999.9
MIN 0.1
FORCE off
}
ADDRESS S {
ZERO_FORMAT zero_spin
FORMAT Spindle
MAX 99999
MIN 0
FORCE always
}
ADDRESS T {
FORMAT T_Register
MAX 99
MIN 0
FORCE off
}
ADDRESS coolant_m {
LEADER "M"
FORMAT Register_2
FORCE off
}
ADDRESS spindle_m {
LEADER "M"
FORMAT Register_2
FORCE off
}
ADDRESS M {
ZERO_FORMAT zero
FORMAT Register_2
MAX 99
MIN 0
FORCE off
}
ADDRESS D {
ZERO_FORMAT zero
FORMAT Register_2
MAX 99
MIN 0
FORCE off
}
ADDRESS H {
ZERO_FORMAT zero
FORMAT Register_2
MAX 99
MIN 0
FORCE off
}
ADDRESS precision_g {
LEADER "G"
FORMAT Register_2
FORCE always
}
ADDRESS precision {
LEADER ""
FORMAT Register_5
FORCE off
}
ADDRESS knot {
LEADER "K"
ZERO_FORMAT zero_coord
FORMAT Coordinate
FORCE always
}
ADDRESS order {
LEADER ""
FORMAT Register_2
FORCE off
}
# Addresses for the lpt file output
ADDRESS ENUM {
FORMAT EventNum
FORCE always
LEADER ""
}
ADDRESS ABSX {
FORMAT AbsCoord
FORCE always
LEADER ""
}
ADDRESS ABSY {
FORMAT AbsCoord
FORCE always
LEADER ""
}
ADDRESS ABSZ {
FORMAT AbsCoord
FORCE always
LEADER ""
}
ADDRESS AXIS4 {
FORMAT RotCoord
FORCE always
LEADER ""
}
ADDRESS AXIS5 {
FORMAT RotCoord
FORCE always
LEADER ""
}
ADDRESS FEED {
FORMAT ComFeed
FORCE always
LEADER ""
}
ADDRESS RPM {
FORMAT Rev
FORCE always
LEADER ""
}
ADDRESS TIME {
FORMAT Minutes
FORCE always
LEADER ""
}
BLOCK_TEMPLATE Seq_no { N[$mom_seqnum] }
BLOCK_TEMPLATE from {
X[$mom_pos(0)]
Y[$mom_pos(1)]
Z[$mom_pos(2)]
}
BLOCK_TEMPLATE rapid_xy {
motion_g[$mom_sys_rapid_code]
mode_g[$mom_sys_output_code($mom_output_mode)]\opt
X[$mom_pos(0)]
Y[$mom_pos(1)]
}
BLOCK_TEMPLATE rapid_z {
motion_g[$mom_sys_rapid_code]
Z[$mom_pos(2)]
# H[$mom_tool_length_adjust_register]\opt
# coolant_m[$mom_sys_coolant_code($mom_coolant_status)]\opt
}
BLOCK_TEMPLATE cycle_plane_change {
motion_g[$mom_sys_rapid_code]
X[$mom_cycle_clearance_pos(0)]
Y[$mom_cycle_clearance_pos(1)]
Z[$mom_cycle_clearance_pos(2)]
}
BLOCK_TEMPLATE linear {
cutcom_g[$mom_sys_cutcom_code($mom_cutcom_status)]\opt
# plane_g[$mom_sys_cutcom_plane_code($mom_cutcom_plane)]\opt
motion_g[$mom_sys_linear_code]
X[$mom_pos(0)]
Y[$mom_pos(1)]
Z[$mom_pos(2)]
F[$feed]
D[$mom_cutcom_adjust_register]\opt
}
BLOCK_TEMPLATE circle {
cutcom_g[$mom_sys_cutcom_code($mom_cutcom_status)]\opt
plane_g[$g_plane]
motion_g[$mom_sys_circle_code($mom_arc_direction)]
X[$mom_pos(0)]
Y[$mom_pos(1)]
Z[$mom_pos(2)]
I[$mom_pos_arc_center(0)-$mom_prev_pos(0)]
J[$mom_pos_arc_center(1)-$mom_prev_pos(1)]
K[$mom_pos_arc_center(2)-$mom_prev_pos(2)]
# R[$mom_arc_radius]
F[$feed]
}
BLOCK_TEMPLATE helix {
cutcom_g[$mom_sys_cutcom_code($mom_cutcom_status)]\opt
plane_g[$g_plane]
motion_g[$mom_sys_circle_code($mom_arc_direction)]
X[$mom_pos(0)]
Y[$mom_pos(1)]
Z[$mom_pos(2)]
I[$mom_pos_arc_center(0)-$mom_prev_pos(0)]
J[$mom_pos_arc_center(1)-$mom_prev_pos(1)]
K[$mom_pos_arc_center(2)-$mom_prev_pos(2)]
RISE[$mom_helix_pitch]
F[$feed]
}
BLOCK_TEMPLATE cycle_drill {
motion_g[$mom_sys_cycle_drill_code]
X[$mom_cycle_feed_to_pos(0)]
Y[$mom_cycle_feed_to_pos(1)]
Z[$mom_cycle_feed_to_pos(2)]
R[$mom_cycle_rapid_to_pos(2)]
F[$feed]
}
BLOCK_TEMPLATE cycle_drill_dwell {
motion_g[$mom_sys_cycle_drill_dwell_code]
X[$mom_cycle_feed_to_pos(0)]
Y[$mom_cycle_feed_to_pos(1)]
Z[$mom_cycle_feed_to_pos(2)]
R[$mom_cycle_rapid_to_pos(2)]
cycle_dwell[$mom_cycle_delay]\opt
F[$feed]
}
BLOCK_TEMPLATE cycle_drill_deep {
motion_g[$mom_sys_cycle_drill_deep_code]
X[$mom_cycle_feed_to_pos(0)]
Y[$mom_cycle_feed_to_pos(1)]
Z[$mom_cycle_feed_to_pos(2)]
R[$mom_cycle_rapid_to_pos(2)]
cycle_step[$mom_cycle_step1]
F[$feed]
}
BLOCK_TEMPLATE cycle_breakchip {
motion_g[$mom_sys_cycle_breakchip_code]
X[$mom_cycle_feed_to_pos(0)]
Y[$mom_cycle_feed_to_pos(1)]
Z[$mom_cycle_feed_to_pos(2)]
R[$mom_cycle_rapid_to_pos(2)]
cycle_step[$mom_cycle_step1]
F[$feed]
}
BLOCK_TEMPLATE cycle_tap {
motion_g[$mom_sys_cycle_tap_code]
X[$mom_cycle_feed_to_pos(0)]
Y[$mom_cycle_feed_to_pos(1)]
Z[$mom_cycle_feed_to_pos(2)]
R[$mom_cycle_rapid_to_pos(2)]
F[$feed]
}
BLOCK_TEMPLATE cycle_bore {
motion_g[$mom_sys_cycle_bore_code]
X[$mom_cycle_feed_to_pos(0)]
Y[$mom_cycle_feed_to_pos(1)]
Z[$mom_cycle_feed_to_pos(2)]
R[$mom_cycle_rapid_to_pos(2)]
F[$feed]
}
BLOCK_TEMPLATE cycle_bore_dwell {
motion_g[$mom_sys_cycle_bore_dwell_code]
X[$mom_cycle_feed_to_pos(0)]
Y[$mom_cycle_feed_to_pos(1)]
Z[$mom_cycle_feed_to_pos(2)]
R[$mom_cycle_rapid_to_pos(2)]
cycle_dwell[$mom_cycle_delay]\opt
F[$feed]
}
BLOCK_TEMPLATE cycle_bore_drag {
motion_g[$mom_sys_cycle_bore_drag_code]
X[$mom_cycle_feed_to_pos(0)]
Y[$mom_cycle_feed_to_pos(1)]
Z[$mom_cycle_feed_to_pos(2)]
R[$mom_cycle_rapid_to_pos(2)]
F[$feed]
}
BLOCK_TEMPLATE cycle_bore_no_drag {
motion_g[$mom_sys_cycle_bore_no_drag_code]
X[$mom_cycle_feed_to_pos(0)]
Y[$mom_cycle_feed_to_pos(1)]
Z[$mom_cycle_feed_to_pos(2)]
R[$mom_cycle_rapid_to_pos(2)]
cycle_nodrag[$mom_cycle_retract_to]\opt
F[$feed]
}
BLOCK_TEMPLATE cycle_bore_back {
motion_g[$mom_sys_cycle_bore_back_code]
X[$mom_cycle_feed_to_pos(0)]
Y[$mom_cycle_feed_to_pos(1)]
Z[$mom_cycle_feed_to_pos(2)]
R[$mom_cycle_rapid_to_pos(2)]
cycle_nodrag[$mom_cycle_retract_to]\opt
F[$feed]
}
BLOCK_TEMPLATE cycle_bore_manual {
motion_g[$mom_sys_cycle_bore_manual_code]
X[$mom_cycle_feed_to_pos(0)]
Y[$mom_cycle_feed_to_pos(1)]
Z[$mom_cycle_feed_to_pos(2)]
R[$mom_cycle_rapid_to_pos(2)]
F[$feed]
}
BLOCK_TEMPLATE cycle_bore_manual_dwell {
motion_g[$mom_sys_cycle_bore_manual_code]
X[$mom_cycle_feed_to_pos(0)]
Y[$mom_cycle_feed_to_pos(1)]
Z[$mom_cycle_feed_to_pos(2)]
R[$mom_cycle_rapid_to_pos(2)]
cycle_dwell[$mom_cycle_delay]\opt
F[$feed]
}
BLOCK_TEMPLATE cycle_off { motion_g[$mom_sys_cycle_off] }
BLOCK_TEMPLATE nurbs_start {
precision_g[$mom_sys_nurbs_precision_code]
precision[$nurbs_precision]
}
BLOCK_TEMPLATE anchor_point {
motion_g[$mom_sys_linear_code]
X[$mom_nurbs_points(0,0)]
Y[$mom_nurbs_points(0,1)]
Z[$mom_nurbs_points(0,2)]
}
BLOCK_TEMPLATE nurbs {
motion_g[$mom_sys_nurbs_code]
order[$mom_nurbs_order]
knot[$mom_nurbs_knots($nurbs_knot_count)]
X[$mom_nurbs_points($nurbs_knot_count,0)]
Y[$mom_nurbs_points($nurbs_knot_count,1)]
Z[$mom_nurbs_points($nurbs_knot_count,2)]
F[$feed]\opt\nows
}
BLOCK_TEMPLATE knots {
knot[$mom_nurbs_knots($nurbs_knot_count)]\nows
}
BLOCK_TEMPLATE spindle_start { S[$mom_spindle_rpm]
spindle_m[$mom_sys_spindle_direction_code($mom_spindle_direction)]
}
BLOCK_TEMPLATE spindle_off { spindle_m[$mom_sys_spindle_direction_code(OFF)]}
BLOCK_TEMPLATE coolant_off { coolant_m[$mom_sys_coolant_code(OFF)] }
BLOCK_TEMPLATE cutcom_off |