Znaleziono 2 wyniki

autor: FTW
08 sty 2017, 11:59
Forum: NX CAM/Unigraphics
Temat: NX10 Postbuilder - Hole milling
Odpowiedzi: 8
Odsłony: 2888

Wywal znak "}" w linii 5301 i powinno działać. U mnie dodanie tego znaku w tej linii powoduje wystąpienie tego błędu.
autor: FTW
07 sty 2017, 17:44
Forum: NX CAM/Unigraphics
Temat: NX10 Postbuilder - Hole milling
Odpowiedzi: 8
Odsłony: 2888

W defaultowym poście sim08_iTNC jest takie coś w tym bloku jak poniżej. Co prawda z wersji 8.0, ale wygląda jakby ktoś wywalił połowę tego bloku.

W przykładowym programie jest taka składnia w momencie kończenia pierwszej helisy. W linii 115 jest wyjazd na retract plane i potem zaczyna się znowu druga.

105 L X-971.203 Y-989.404 Z547.523
106 L X-971.588 Y-989.775 Z547.419
107 L X-971.549 Y-990.308 Z547.314
108 L X-971.114 Y-990.62 Z547.209
109 L X-970.597 Y-990.484 Z547.105
110 L X-970.4 Y-990. Z547.
111 CC X-971. Y-990.
112 C X-970.4 Y-990. DR+
113 CC X-970.7 Y-990.
114 C X-971. Y-990. DR+
115 L Z556. FMAX
116 CC X-969.7 Y-990.
117 C X-968.4 Y-990. DR+
118 L X-968.605 Y-988.913 Z555.949
119 L X-969.268 Y-988.021 Z555.898
120 L X-970.241 Y-987.482 Z555.847
121 L X-971.349 Y-987.393 Z555.797
122 L X-972.395 Y-987.77 Z555.746

set mom_kin_helical_arc_output_mode LINEAR - zamień na QUADRANT i kod zmienia postać.

Nie jestem w stanie powiedzieć na ile to będzie działać, bo nigdy nie robiłem nic pod Heidenheina, trzeba by to dobrze przetestować zanim cokolwiek puścisz na maszynie.

170 CC X10. Y10.
171 CP IPA90. IZ-.25 DR+
172 CC X10. Y10.
173 CP IPA90. IZ-.25 DR+
174 CC X10. Y10.
175 CP IPA90. IZ-.25 DR+
176 CC X10. Y10.
177 C X12.1 Y10. DR+
178 CC X11.05 Y10.
179 C X10. Y10. DR+
180 L Z10. FMAX
182 L Z-3. FMAX
183 CC X10.25 Y10.
184 C X10.5 Y10. DR+
185 CC X10. Y10.
186 CP IPA90. IZ-.25 DR+
187 CC X10. Y10.
188 CP IPA90. IZ-.25 DR+
189 CC X10. Y10.
190 CP IPA90. IZ-.25 DR+
191 CC X10. Y10.
192 CP IPA90. IZ-.25 DR+
193 CC X10. Y10.


uplevel #0 {
#
# This ommand will be executed automatically at the start of program and
# anytime it is loaded as a slave post of a linked post.
#
# This procedure can be used to enable your post to output helix.
# You can choose from the following options to format the circle
# block template to output the helix parameters.
#

set mom_sys_helix_pitch_type "rise_revolution"

#
# The default setting for mom_sys_helix_pitch_type is "rise_radian".
# This is the most common. Other choices are:
#
# "rise_radian" Measures the rise over one radian.
# "rise_revolution" Measures the rise over 360 degrees.
# "none" Will suppress the output of pitch.
# "other" Allows you to calculate the pitch
# using your own formula.
#
# This custom command uses the block template circular_move to output
# the helix block. If your post uses a block template with a different
# name, you must edit the line that outputs the helix block.

#
# The following variable deines the output mode for helical records.
#
# FULL_CIRCLE -- This mode will output a helix record for each 360
# degrees of the helix.
# QUADRANT -- This mode will output a helix record for each 90
# degrees of the helix.
# LINEAR -- This mode will output the entire helix as linear gotos.
# END_POINT -- This mode will assume the control can define an entire
# helix in a single block.

#set mom_kin_helical_arc_output_mode END_POINT
set mom_kin_helical_arc_output_mode LINEAR

MOM_reload_kinematics



#=============================================================
proc MOM_helix_move { } {
#=============================================================
global mom_pos_arc_plane
global mom_sys_cir_vector
global mom_sys_helix_pitch_type
global mom_helix_pitch
global mom_prev_pos mom_pos_arc_center
global PI

switch $mom_sys_helix_pitch_type {
none { }
rise_revolution { set pitch $mom_helix_pitch }
rise_radian { set pitch [expr $mom_helix_pitch / ($PI * 2.0)]}
other {
#
# Place your custom helix pitch code here
#
}
default { set mom_sys_helix_pitch_type "none" }
}

global mom_pos
global helix_angle
global helix_height
global mom_helix_direction

switch $mom_pos_arc_plane {
XY { MOM_force Once I J; MOM_suppress Once K; set cir_index 2 }
YZ { MOM_force Once J K; MOM_suppress Once I; set cir_index 0 }
ZX { MOM_force Once K I; MOM_suppress Once J; set cir_index 1 }
}

set helix_height [expr $mom_pos($cir_index) - $mom_prev_pos($cir_index)]

switch $mom_helix_direction {
CLW { set helix_direction -1 }
CCLW {set helix_direction 1}
}

set helix_angle [expr 360*$helix_direction*$helix_height/$mom_helix_pitch]

# You may need to edit this line if you output more than one block
# or if you have changed the name of your circular_move block template
#
MOM_do_template coolant_on
MOM_do_template circular_move
MOM_force Once circle_direction
MOM_do_template helix_move


} ;# MOM_helix_move


} ;# uplevel

Wróć do „NX10 Postbuilder - Hole milling”